Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/sys mention EINVAL.



details:   https://anonhg.NetBSD.org/src/rev/4a92081405a3
branches:  trunk
changeset: 767327:4a92081405a3
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jul 15 14:59:33 2011 +0000

description:
mention EINVAL.

diffstat:

 lib/libc/sys/dup.2  |  13 ++++++++++++-
 lib/libc/sys/pipe.2 |  13 ++++++++++++-
 2 files changed, 24 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r 6f75843bdce5 -r 4a92081405a3 lib/libc/sys/dup.2
--- a/lib/libc/sys/dup.2        Fri Jul 15 14:50:19 2011 +0000
+++ b/lib/libc/sys/dup.2        Fri Jul 15 14:59:33 2011 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: dup.2,v 1.24 2011/07/15 08:17:36 jruoho Exp $
+.\"    $NetBSD: dup.2,v 1.25 2011/07/15 14:59:33 christos Exp $
 .\"
 .\" Copyright (c) 1980, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -140,6 +140,17 @@
 .It Bq Er EMFILE
 Too many descriptors are active.
 .El
+.Pp
+.Fn dup3
+will also fail if:
+.Bl -tag -width Er
+.It Bq Er EINVAL
+.Fa flags
+is other than
+.Va O_NONBLOCK
+or
+.Va O_CLOEXEC .
+.El
 .Sh SEE ALSO
 .Xr accept 2 ,
 .Xr close 2 ,
diff -r 6f75843bdce5 -r 4a92081405a3 lib/libc/sys/pipe.2
--- a/lib/libc/sys/pipe.2       Fri Jul 15 14:50:19 2011 +0000
+++ b/lib/libc/sys/pipe.2       Fri Jul 15 14:59:33 2011 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: pipe.2,v 1.25 2011/07/15 09:44:14 jruoho Exp $
+.\"    $NetBSD: pipe.2,v 1.26 2011/07/15 14:59:33 christos Exp $
 .\"
 .\" Copyright (c) 1980, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -123,6 +123,17 @@
 .It Bq Er ENFILE
 The system file table is full.
 .El
+.Pp
+.Fn pipe2
+will also fail if:
+.Bl -tag -width Er
+.It Bq Er EINVAL
+.Fa flags
+is other than
+.Va O_NONBLOCK
+or
+.Va O_CLOEXEC .
+.El
 .Sh SEE ALSO
 .Xr sh 1 ,
 .Xr fork 2 ,



Home | Main Index | Thread Index | Old Index