summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2004-03-16 08:46:47 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2004-03-16 08:46:47 +0000
commitd9907f84621a8bd60d727ef329d89fd3c2bbb4cf (patch)
treed7efa15a4e7a4d1ad38045dab585132015855491
parent96ca5082ee797f1f27e46c88740344206c30ec9f (diff)
errno should only be gotten from <errno.h>. ok help jmc@
-rw-r--r--lib/libc/sys/intro.29
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/sys/intro.2 b/lib/libc/sys/intro.2
index 4eb8087aa3d..2b863949a04 100644
--- a/lib/libc/sys/intro.2
+++ b/lib/libc/sys/intro.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: intro.2,v 1.29 2003/12/04 14:32:09 otto Exp $
+.\" $OpenBSD: intro.2,v 1.30 2004/03/16 08:46:46 tedu Exp $
.\" $NetBSD: intro.2,v 1.6 1995/02/27 12:33:41 cgd Exp $
.\"
.\" Copyright (c) 1980, 1983, 1986, 1991, 1993
@@ -49,10 +49,15 @@ their error returns, and other common definitions and concepts.
Nearly all of the system calls provide an error number in the external
variable
.Va errno ,
-which is defined as:
+which is currently defined as:
.Pp
.Dl extern int errno;
.Pp
+Portable applications must not depend on this definition, and should only
+use
+.Va errno
+as defined in
+.Aq Pa errno.h .
When a system call detects an error, it returns an integer value
indicating failure (usually \-1) and sets the variable
.Va errno