[PATCH] exit.3: Use hex for the status mask.

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

 



Admittedly, the POSIX specification for exit() also uses octal. However, 0xFF
immediately indicates the lowest 8 bits to me whereas I had to think a bit about
the octal mask.
---
 man3/exit.3 | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/man3/exit.3 b/man3/exit.3
index 4a30fc39f..b47ba17a1 100644
--- a/man3/exit.3
+++ b/man3/exit.3
@@ -38,9 +38,8 @@ exit \- cause normal process termination
 .SH DESCRIPTION
 The
 .BR exit ()
-function causes normal process termination and the
-value of \fIstatus & 0377\fP is returned to the parent
-(see
+function causes normal process termination and the value of \fIstatus &
+0xFF\fP is returned to the parent (see
 .BR wait (2)).
 .PP
 All functions registered with
-- 
2.17.1




[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