Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/sys Sync the description of errno with reality; fix...



details:   https://anonhg.NetBSD.org/src/rev/0c8ed916d585
branches:  trunk
changeset: 483634:0c8ed916d585
user:      kleink <kleink%NetBSD.org@localhost>
date:      Tue Mar 14 19:11:24 2000 +0000

description:
Sync the description of errno with reality; fixes PR lib/9496.

diffstat:

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

diffs (33 lines):

diff -r 068ca8692021 -r 0c8ed916d585 lib/libc/sys/intro.2
--- a/lib/libc/sys/intro.2      Tue Mar 14 16:36:05 2000 +0000
+++ b/lib/libc/sys/intro.2      Tue Mar 14 19:11:24 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: intro.2,v 1.20 1999/06/06 22:50:26 kleink Exp $
+.\"    $NetBSD: intro.2,v 1.21 2000/03/14 19:11:24 kleink 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 June 7, 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



Home | Main Index | Thread Index | Old Index