[PATCH] Standarize on "nonzero".

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Patch inline and attached.  "Nonzero" is by far the preferred term in
the existing man pages, with roughly 180 occurrences compared to the
handful I have changed below.

Also add this term to the style guide in man-pages(7).

diff --git a/man1/iconv.1 b/man1/iconv.1
index 9e66f988c..f66477d7b 100644
--- a/man1/iconv.1
+++ b/man1/iconv.1
@@ -112,7 +112,7 @@ Print a short usage summary and exit.
 Print the version number, license, and disclaimer of warranty for
 .BR iconv .
 .SH EXIT STATUS
-Zero on success, non-zero on errors.
+Zero on success, nonzero on errors.
 .SH ENVIRONMENT
 Internally, the
 .B iconv
diff --git a/man3/pthread_rwlockattr_setkind_np.3 b/man3/pthread_rwlockattr_setkind_np.3
index 227e0af1c..defaf0d0b 100644
--- a/man3/pthread_rwlockattr_setkind_np.3
+++ b/man3/pthread_rwlockattr_setkind_np.3
@@ -100,7 +100,7 @@ Given valid pointer arguments,
 always succeeds.
 On error,
 .BR pthread_rwlockattr_setkind_np ()
-returns a non-zero error number.
+returns a nonzero error number.
 .SH ERRORS
 .TP
 .BR EINVAL
diff --git a/man7/man-pages.7 b/man7/man-pages.7
index cf6727af9..1e2ee61e5 100644
--- a/man7/man-pages.7
+++ b/man7/man-pages.7
@@ -682,6 +682,7 @@ filesystem	file system
 hostname	host name
 inode	i-node
 lowercase	lower case, lower-case
+nonzero	non-zero
 pathname	path name
 pseudoterminal	pseudo-terminal
 privileged port	T{
diff --git a/man7/socket.7 b/man7/socket.7
index 1a2cfe9cc..64696d3b1 100644
--- a/man7/socket.7
+++ b/man7/socket.7
@@ -319,7 +319,7 @@ or an extended BPF
 program to the socket for use as a filter of incoming packets.
 A packet will be dropped if the filter program returns zero.
 If the filter program returns a
-non-zero value which is less than the packet's data length,
+nonzero value which is less than the packet's data length,
 the packet will be truncated to the length returned.
 If the value returned by the filter is greater than or equal to the
 packet's data length, the packet is allowed to proceed unmodified.
diff --git a/man8/iconvconfig.8 b/man8/iconvconfig.8
index c5fdf3cfd..e94ad1e5a 100644
--- a/man8/iconvconfig.8
+++ b/man8/iconvconfig.8
@@ -87,7 +87,7 @@ Print a short usage summary and exit.
 Print the version number, license, and disclaimer of warranty for
 .BR iconv .
 .SH EXIT STATUS
-Zero on success, non-zero on errors.
+Zero on success, nonzero on errors.
 .SH FILES
 .TP
 .I /usr/lib/gconv

-- 
Regards,
Branden
diff --git a/man1/iconv.1 b/man1/iconv.1
index 9e66f988c..f66477d7b 100644
--- a/man1/iconv.1
+++ b/man1/iconv.1
@@ -112,7 +112,7 @@ Print a short usage summary and exit.
 Print the version number, license, and disclaimer of warranty for
 .BR iconv .
 .SH EXIT STATUS
-Zero on success, non-zero on errors.
+Zero on success, nonzero on errors.
 .SH ENVIRONMENT
 Internally, the
 .B iconv
diff --git a/man3/pthread_rwlockattr_setkind_np.3 b/man3/pthread_rwlockattr_setkind_np.3
index 227e0af1c..defaf0d0b 100644
--- a/man3/pthread_rwlockattr_setkind_np.3
+++ b/man3/pthread_rwlockattr_setkind_np.3
@@ -100,7 +100,7 @@ Given valid pointer arguments,
 always succeeds.
 On error,
 .BR pthread_rwlockattr_setkind_np ()
-returns a non-zero error number.
+returns a nonzero error number.
 .SH ERRORS
 .TP
 .BR EINVAL
diff --git a/man7/man-pages.7 b/man7/man-pages.7
index cf6727af9..1e2ee61e5 100644
--- a/man7/man-pages.7
+++ b/man7/man-pages.7
@@ -682,6 +682,7 @@ filesystem	file system
 hostname	host name
 inode	i-node
 lowercase	lower case, lower-case
+nonzero	non-zero
 pathname	path name
 pseudoterminal	pseudo-terminal
 privileged port	T{
diff --git a/man7/socket.7 b/man7/socket.7
index 1a2cfe9cc..64696d3b1 100644
--- a/man7/socket.7
+++ b/man7/socket.7
@@ -319,7 +319,7 @@ or an extended BPF
 program to the socket for use as a filter of incoming packets.
 A packet will be dropped if the filter program returns zero.
 If the filter program returns a
-non-zero value which is less than the packet's data length,
+nonzero value which is less than the packet's data length,
 the packet will be truncated to the length returned.
 If the value returned by the filter is greater than or equal to the
 packet's data length, the packet is allowed to proceed unmodified.
diff --git a/man8/iconvconfig.8 b/man8/iconvconfig.8
index c5fdf3cfd..e94ad1e5a 100644
--- a/man8/iconvconfig.8
+++ b/man8/iconvconfig.8
@@ -87,7 +87,7 @@ Print a short usage summary and exit.
 Print the version number, license, and disclaimer of warranty for
 .BR iconv .
 .SH EXIT STATUS
-Zero on success, non-zero on errors.
+Zero on success, nonzero on errors.
 .SH FILES
 .TP
 .I /usr/lib/gconv

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux