Module Name:    src
Committed By:   christos
Date:           Fri Jul 15 14:59:34 UTC 2011

Modified Files:
        src/lib/libc/sys: dup.2 pipe.2

Log Message:
mention EINVAL.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/lib/libc/sys/dup.2
cvs rdiff -u -r1.25 -r1.26 src/lib/libc/sys/pipe.2

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/sys/dup.2
diff -u src/lib/libc/sys/dup.2:1.24 src/lib/libc/sys/dup.2:1.25
--- src/lib/libc/sys/dup.2:1.24	Fri Jul 15 04:17:36 2011
+++ src/lib/libc/sys/dup.2	Fri Jul 15 10:59:33 2011
@@ -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 ,

Index: src/lib/libc/sys/pipe.2
diff -u src/lib/libc/sys/pipe.2:1.25 src/lib/libc/sys/pipe.2:1.26
--- src/lib/libc/sys/pipe.2:1.25	Fri Jul 15 05:44:14 2011
+++ src/lib/libc/sys/pipe.2	Fri Jul 15 10:59:33 2011
@@ -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 ,

Reply via email to