Skip to content

Commit

Permalink
Bug 282306: Update spelling of "non-zero" to "nonzero" for C23 compli…
Browse files Browse the repository at this point in the history
…ance

Note: This update excludes changes to contrib, cddl, and man pages originating outside of FreeBSD itself.

Signed-off-by: Faraz Vahedi <[email protected]>
  • Loading branch information
kfv committed Dec 17, 2024
1 parent c7d1368 commit 99cab21
Show file tree
Hide file tree
Showing 151 changed files with 253 additions and 253 deletions.
2 changes: 1 addition & 1 deletion lib/msun/man/feclearexcept.3
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ The
.Fn feraiseexcept ,
and
.Fn fesetexceptflag
functions return 0 upon success, and non-zero otherwise.
functions return 0 upon success, and nonzero otherwise.
The
.Fn fetestexcept
function returns the bitwise OR of the values of the current exception
Expand Down
2 changes: 1 addition & 1 deletion lib/msun/man/fegetenv.3
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ The
.Fn fesetenv ,
and
.Fn feupdateenv
functions return 0 if they succeed, and non-zero otherwise.
functions return 0 if they succeed, and nonzero otherwise.
.Sh SEE ALSO
.Xr feclearexcept 3 ,
.Xr fenv 3 ,
Expand Down
2 changes: 1 addition & 1 deletion lib/msun/man/fegetround.3
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The
routine returns the current rounding mode.
The
.Fn fesetround
function returns 0 on success and non-zero otherwise;
function returns 0 on success and nonzero otherwise;
however, the present implementation always succeeds.
.Sh SEE ALSO
.Xr fenv 3 ,
Expand Down
2 changes: 1 addition & 1 deletion lib/msun/man/fenv.3
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ representing the five standard floating-point exceptions.
A divide-by-zero exception occurs when the
.Em exact
result of a computation is infinite (according to the limit definition).
For example, dividing a finite non-zero number by zero or computing
For example, dividing a finite nonzero number by zero or computing
.Fn log 0
raises a divide-by-zero exception.
.It Dv FE_INEXACT
Expand Down
2 changes: 1 addition & 1 deletion lib/msun/man/fmod.3
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ functions compute the floating-point remainder of
.Sh RETURN VALUES
If
.Fa y
is non-zero, the
is nonzero, the
.Fn fmod ,
.Fn fmodf ,
and
Expand Down
2 changes: 1 addition & 1 deletion lib/msun/man/signbit.3
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The
.Fn signbit
macro takes an argument of
.Fa x
and returns non-zero if the value of its sign is negative, otherwise 0.
and returns nonzero if the value of its sign is negative, otherwise 0.
.Sh SEE ALSO
.Xr fpclassify 3 ,
.Xr math 3
Expand Down
4 changes: 2 additions & 2 deletions share/man/man3/bitstring.3
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ in the bit string
The
.Fn bit_test
function
evaluates to non-zero if the zero-based numbered bit
evaluates to nonzero if the zero-based numbered bit
.Fa bit
of bit string
.Fa name
Expand All @@ -195,7 +195,7 @@ is set, and zero otherwise.
The
.Fn bit_ntest
function
evaluates to non-zero if the zero-based numbered bits from
evaluates to nonzero if the zero-based numbered bits from
.Fa start
through
.Fa stop
Expand Down
2 changes: 1 addition & 1 deletion share/man/man3/pthread_cleanup_pop.3
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The
function pops the top cleanup routine off of the current threads cleanup
routine stack, and, if
.Fa execute
is non-zero, it will execute the function.
is nonzero, it will execute the function.
If there is no cleanup routine
then
.Fn pthread_cleanup_pop
Expand Down
2 changes: 1 addition & 1 deletion share/man/man3/pthread_equal.3
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ and
.Sh RETURN VALUES
The
.Fn pthread_equal
function will return non-zero if the thread IDs
function will return nonzero if the thread IDs
.Fa t1
and
.Fa t2
Expand Down
2 changes: 1 addition & 1 deletion share/man/man3/pthread_testcancel.3
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ The
function is a cancellation point if it is potentially blocking,
such as when the
.Fa nevents
argument is non-zero.
argument is nonzero.
.It Fn mq_receive
.It Fn mq_send
.It Fn mq_timedreceive
Expand Down
4 changes: 2 additions & 2 deletions share/man/man3/stats.3
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ which is a callback used to interact with the subsystem's stats template sample
rates list.
Subsystems can optionally specify the sysctl's
.Fa arg2
as non-zero, which causes a zero-initialized allocation of arg2-sized contextual
as nonzero, which causes a zero-initialized allocation of arg2-sized contextual
memory to be heap-allocated and passed in to all subsystem callbacks made during
the operation of
.Fn stats_tpl_sample_rates .
Expand Down Expand Up @@ -657,7 +657,7 @@ struct member to provide useful metadata about the iteration:
.Dv SB_IT_NULLVOI
and
.Dv SB_IT_NULLVOISTAT .
Returning a non-zero value from the callback function terminates the iteration.
Returning a nonzero value from the callback function terminates the iteration.
.Pp
The
.Fn stats_blob_tostr
Expand Down
2 changes: 1 addition & 1 deletion share/man/man4/aio.4
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ and disabled by default.
They can be enabled by setting
the
.Va vfs.aio.enable_unsafe
sysctl node to a non-zero value.
sysctl node to a nonzero value.
.Pp
Asynchronous I/O operations on sockets,
raw disk devices,
Expand Down
2 changes: 1 addition & 1 deletion share/man/man4/bnxt.4
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Normally, both frames that have a matching VLAN tag and frames that have no
VLAN tag are accepted.
Defaults to 0.
.It Va dev.bnxt.X.vlan_strip
When non-zero the NIC strips VLAN tags on receive.
When nonzero the NIC strips VLAN tags on receive.
Defaults to 0.
.It Va dev.bnxt.X.rx_stall
Enable buffering rather than dropping frames when there are no available host
Expand Down
6 changes: 3 additions & 3 deletions share/man/man4/bpf.4
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ Returns the address associated with the interface.
.It Dv FIONBIO
.Pq Li int
Sets or clears non-blocking I/O.
If arg is non-zero, then doing a
If arg is nonzero, then doing a
.Xr read 2
when no data is available will return -1 and
.Va errno
Expand All @@ -689,7 +689,7 @@ Note: setting this overrides the timeout set by
.It Dv FIOASYNC
.Pq Li int
Enables or disables async I/O.
When enabled (arg is non-zero), the process or process group specified by
When enabled (arg is nonzero), the process or process group specified by
.Dv FIOSETOWN
will start receiving
.Dv SIGIO 's
Expand Down Expand Up @@ -986,7 +986,7 @@ compare the accumulator against a constant
.Pq Dv BPF_K
or the index register
.Pq Dv BPF_X .
If the result is true (or non-zero),
If the result is true (or nonzero),
the true branch is taken, otherwise the false branch is taken.
Jump offsets are encoded in 8 bits so the longest jump is 256 instructions.
However, the jump always
Expand Down
2 changes: 1 addition & 1 deletion share/man/man4/bridge.4
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ If
.Xr sysctl 8
node
.Va net.link.bridge.inherit_mac
has a non-zero value, the newly created bridge will inherit the MAC
has a nonzero value, the newly created bridge will inherit the MAC
address from its first member instead of choosing a random link-level
address.
This will provide more predictable bridge MAC addresses without any
Expand Down
2 changes: 1 addition & 1 deletion share/man/man4/cc_cdg.4
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Number of consecutive delay-gradient based congestion episodes to hold the
window backoff for loss-based CC compatibility.
Default is 5.
.It Va alpha_inc
If non-zero, this enables an experimental mode where CDG's window increase
If nonzero, this enables an experimental mode where CDG's window increase
factor (alpha) is increased by 1 MSS every
.Va alpha_inc
RTTs during congestion avoidance mode.
Expand Down
4 changes: 2 additions & 2 deletions share/man/man4/ciss.4
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ provided that they are exported by the controller firmware and are not
marked as being masked.
Masked devices can be exposed by setting the
.Va hw.ciss.expose_hidden_physical
tunable to non-zero at boot time.
tunable to nonzero at boot time.
Direct Access devices (such as disk
drives) are only exposed as
.Xr pass 4
Expand All @@ -85,7 +85,7 @@ The problem which adapter freezes with the message
.Dq ADAPTER HEARTBEAT FAILED
might be solved by updating the firmware and/or setting the
.Va hw.ciss.nop_message_heartbeat
tunable to non-zero at boot time.
tunable to nonzero at boot time.
.Sh HARDWARE
Controllers supported by the
.Nm
Expand Down
2 changes: 1 addition & 1 deletion share/man/man4/crypto.4
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ for future encryption or hashing requests.
.\" .Nx
.\" extension.
.Pp
For non-zero privacy algorithms, the privacy algorithm
For nonzero privacy algorithms, the privacy algorithm
must be specified in
.Fa sessp-\*[Gt]cipher ,
the key length in
Expand Down
2 changes: 1 addition & 1 deletion share/man/man4/cxgbe.4
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ A value of 2 would ensure that the Ethernet payload (usually the IP header)
is at a 4 byte aligned address.
0-7 are all valid values.
.It Va hw.cxgbe.fl_pad
A non-zero value ensures that writes from the hardware to a receive buffer are
A nonzero value ensures that writes from the hardware to a receive buffer are
padded up to the specified boundary.
The default is -1 which lets the driver pick a pad boundary.
0 disables trailer padding completely.
Expand Down
2 changes: 1 addition & 1 deletion share/man/man4/cxgbev.4
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ The default value of 2 ensures that the Ethernet payload (usually the IP header)
is at a 4 byte aligned address.
0-7 are all valid values.
.It Va hw.cxgbe.fl_pad
A non-zero value ensures that writes from the hardware to a receive buffer are
A nonzero value ensures that writes from the hardware to a receive buffer are
padded up to the specified boundary.
The default is -1 which lets the driver pick a pad boundary.
0 disables trailer padding completely.
Expand Down
4 changes: 2 additions & 2 deletions share/man/man4/cyapa.4
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ the default is 15.
.It Va debug.cyapa_thumbarea_percent
Size of bottom thumb area in percent, the default is 15.
.It Va debug.cyapa_debug
Setting this to a non-zero value enables debug output to console and syslog,
Setting this to a nonzero value enables debug output to console and syslog,
the default is 0.
.It Va debug.cyapa_reset
Setting this to a non-zero value reinitializes the device.
Setting this to a nonzero value reinitializes the device.
The sysctl resets to zero immediately.
.El
.Sh FILES
Expand Down
4 changes: 2 additions & 2 deletions share/man/man4/ddb.4
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ The debugger is also invoked on kernel
if the
.Va debug.debugger_on_panic
.Xr sysctl 8
MIB variable is set non-zero,
MIB variable is set nonzero,
which is the default
unless the
.Dv KDB_UNATTENDED
Expand All @@ -94,7 +94,7 @@ This variable has a default value of
.Dv 0 ,
and has no effect if
.Va debug.debugger_on_panic
is already set non-zero.
is already set nonzero.
.Pp
The current location is called
.Va dot .
Expand Down
2 changes: 1 addition & 1 deletion share/man/man4/dtrace_sched.4
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ queue.
Its first two arguments are the thread and corresponding process.
The third argument is currently always
.Dv NULL .
The fourth argument is a boolean value that is non-zero if the thread is
The fourth argument is a boolean value that is nonzero if the thread is
enqueued at the beginning of its run queue slot, and zero if the thread is
instead enqueued at the end.
.Pp
Expand Down
4 changes: 2 additions & 2 deletions share/man/man4/em.4
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ being enabled.
.It Va hw.em.rx_abs_int_delay
If
.Va hw.em.rx_int_delay
is non-zero, this tunable limits the maximum delay in which a receive
is nonzero, this tunable limits the maximum delay in which a receive
interrupt is generated.
.It Va hw.em.tx_int_delay
This value delays the generation of transmit interrupts in units of
Expand All @@ -267,7 +267,7 @@ The default value is 64.
.It Va hw.em.tx_abs_int_delay
If
.Va hw.em.tx_int_delay
is non-zero, this tunable limits the maximum delay in which a transmit
is nonzero, this tunable limits the maximum delay in which a transmit
interrupt is generated.
.It Va hw.em.max_interrupt_rate
Maximum interrupts per second.
Expand Down
2 changes: 1 addition & 1 deletion share/man/man4/fdc.4
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ Print status registers.
.It Dv 0x20
Print detailed status registers when interrupts complete.
Print the source code line number close to the source of a
non-zero return from a thread worker operation.
nonzero return from a thread worker operation.
.It Dv 0x40
Print when the disk appears to be lost.
Print cylinder, head, sector, and sector shift information
Expand Down
4 changes: 2 additions & 2 deletions share/man/man4/geom.4
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,8 @@ From this it also follows that changing the size of open geoms can
only be done with their cooperation.
.Pp
Finally: the spoiling only happens when the write count goes from
zero to non-zero and the retasting happens only when the write count goes
from non-zero to zero.
zero to nonzero and the retasting happens only when the write count goes
from nonzero to zero.
.It Em CONFIGURE
is the process where the administrator issues instructions
for a particular class to instantiate itself.
Expand Down
2 changes: 1 addition & 1 deletion share/man/man4/gre.4
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ as this would be a loop.
The kernel must be set to forward datagrams by setting the
.Va net.inet.ip.forwarding
.Xr sysctl 8
variable to non-zero.
variable to nonzero.
.Pp
By default,
.Nm
Expand Down
2 changes: 1 addition & 1 deletion share/man/man4/hwpmc.4
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ The default is 64.
The number of entries in the per-CPU ring buffer used during sampling.
The default is 512.
.It Va security.bsd.unprivileged_syspmcs Pq boolean, read-write
If set to non-zero, allow unprivileged processes to allocate system-wide
If set to nonzero, allow unprivileged processes to allocate system-wide
PMCs.
The default value is 0.
.It Va security.bsd.unprivileged_proc_debug Pq boolean, read-write
Expand Down
2 changes: 1 addition & 1 deletion share/man/man4/icmp.4
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Defaults to false.
.Pq Vt "unsigned integer"
When
.Va maskrepl
is set and this value is non-zero,
is set and this value is nonzero,
it will be used instead of the real address mask when
the system replies to an ICMP Address Mask Request packet.
Defaults to 0.
Expand Down
8 changes: 4 additions & 4 deletions share/man/man4/iflib.4
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ controllers.
Requests that RX and TX queues not be paired on the same core.
If this is zero or not set, an RX and TX queue pair will be assigned to each
core.
When set to a non-zero value, TX queues are assigned to cores following the
When set to a nonzero value, TX queues are assigned to cores following the
last RX queue.
.El
.Pp
Expand All @@ -78,7 +78,7 @@ task servicing the TX ring.
This ensures that whenever there is a pending transmission,
the transmit ring is being serviced.
This results in higher transmit throughput.
If set to a non-zero value, task returns immediately and the transmit
If set to a nonzero value, task returns immediately and the transmit
ring is serviced by a different task.
This returns control to the caller faster and under high receive load,
may result in fewer dropped RX frames.
Expand All @@ -91,15 +91,15 @@ There are also some global sysctls which can change behaviour for all drivers,
and may be changed at any time.
.Bl -tag -width indent
.It Va net.iflib.min_tx_latency
If this is set to a non-zero value, iflib will avoid any attempt to combine
If this is set to a nonzero value, iflib will avoid any attempt to combine
multiple transmits, and notify the hardware as quickly as possible of
new descriptors.
This will lower the maximum throughput, but will also lower transmit latency.
.It Va net.iflib.no_tx_batch
Some NICs allow processing completed transmit descriptors in batches.
Doing so usually increases the transmit throughput by reducing the number of
transmit interrupts.
Setting this to a non-zero value will disable the use of this feature.
Setting this to a nonzero value will disable the use of this feature.
.El
.Pp
These
Expand Down
Loading

0 comments on commit 99cab21

Please sign in to comment.