Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/stdlib note only 8 bits of exit-status is passed.



details:   https://anonhg.NetBSD.org/src/rev/302fede165ec
branches:  trunk
changeset: 535115:302fede165ec
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sat Aug 10 17:09:27 2002 +0000

description:
note only 8 bits of exit-status is passed.
from OpenBSD.

diffstat:

 lib/libc/stdlib/exit.3 |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 4f919fd8db13 -r 302fede165ec lib/libc/stdlib/exit.3
--- a/lib/libc/stdlib/exit.3    Sat Aug 10 16:55:18 2002 +0000
+++ b/lib/libc/stdlib/exit.3    Sat Aug 10 17:09:27 2002 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: exit.3,v 1.8 2002/02/07 07:00:28 ross Exp $
+.\" $NetBSD: exit.3,v 1.9 2002/08/10 17:09:27 yamt Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -76,6 +76,15 @@
 .Xr tmpfile 3
 function.
 .El
+Following this,
+.Fn exit
+calls
+.Xr _exit 2 .
+Note that typically
+.Xr _exit 2
+only passes the lower 8 bits of
+.Fa status
+on to the parent, thus negative values have less meaning.
 .Sh RETURN VALUES
 The
 .Fn exit



Home | Main Index | Thread Index | Old Index