Source-Changes-HG archive

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

[src/netbsd-1-4]: src/lib/libc/sys Pull up revisions 1.20-1.21 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/dd1804724323
branches:  netbsd-1-4
changeset: 470488:dd1804724323
user:      he <he%NetBSD.org@localhost>
date:      Wed Mar 29 23:09:00 2000 +0000

description:
Pull up revisions 1.20-1.21 (requested by kleink):
  Note that EFAULT can't be guaranteed in e.g. pipe(2); fixes PR#7720.
  Update the description of errno.  Fixes PR#9496.

diffstat:

 lib/libc/sys/intro.2 |  15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diffs (43 lines):

diff -r cee3395dffe5 -r dd1804724323 lib/libc/sys/intro.2
--- a/lib/libc/sys/intro.2      Wed Mar 29 22:49:17 2000 +0000
+++ b/lib/libc/sys/intro.2      Wed Mar 29 23:09:00 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: intro.2,v 1.19 1999/03/24 16:36:10 mycroft Exp $
+.\"    $NetBSD: intro.2,v 1.19.2.1 2000/03/29 23:09:00 he Exp $
 .\"
 .\" Copyright (c) 1980, 1983, 1986, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -33,7 +33,7 @@
 .\"
 .\"     @(#)intro.2    8.5 (Berkeley) 2/27/95
 .\"
-.Dd March 22, 1999
+.Dd March 14, 2000
 .Dt INTRO 2
 .Os
 .Sh NAME
@@ -52,10 +52,10 @@
 .Sh DIAGNOSTICS
 Nearly all of the system calls provide an error number in the external
 variable
-.Va errno ,
-which is defined as:
-.Pp
-.Dl extern int errno;
+.Va errno .
+.Va errno
+is implemented as a macro which expands to a modifiable lvalue of type
+.Fa int .
 .Pp
 When a system call detects an error,
 it returns an integer value
@@ -154,6 +154,9 @@
 .It Er 14 EFAULT Em "Bad address" .
 The system detected an invalid address in attempting to
 use an argument of a call.
+The reliable detection of this error cannot be guaranteed and when not detected
+may result in the generation of a signal, indicating an address violation,
+which is sent to the process.
 .It Er 15 ENOTBLK Em "Not a block device" .
 A block device operation was attempted on a non-block device or file.
 .It Er 16 EBUSY Em "Resource busy" .



Home | Main Index | Thread Index | Old Index