[PATCH] _exit.2/exit.3: change 0377 octal to 0xff hex

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

 



From: Mike Frysinger <vapier@xxxxxxxxxxxx>

On the assumption that most readers encounter hex numbers much more
frequently than octal numbers, and thus find them easier to read &
process, change the two uses here to hex.

Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
 man2/_exit.2 | 2 +-
 man3/exit.3  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/man2/_exit.2 b/man2/_exit.2
index c55d2a612c1e..5ed054aeeca3 100644
--- a/man2/_exit.2
+++ b/man2/_exit.2
@@ -65,7 +65,7 @@ The process's parent is sent a
 signal.
 .PP
 The value
-.I "status & 0377"
+.I "status & 0xff"
 is returned to the parent process as the process's exit status, and
 can be collected using one of the
 .BR wait (2)
diff --git a/man3/exit.3 b/man3/exit.3
index 4a30fc39f0f5..83f9ac580bd8 100644
--- a/man3/exit.3
+++ b/man3/exit.3
@@ -39,7 +39,7 @@ exit \- cause normal process termination
 The
 .BR exit ()
 function causes normal process termination and the
-value of \fIstatus & 0377\fP is returned to the parent
+value of \fIstatus & 0xff\fP is returned to the parent
 (see
 .BR wait (2)).
 .PP
-- 
2.16.1

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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