svn commit: r235127 - stable/7/lib/libc/sys

Eitan Adler eadler at FreeBSD.org
Mon May 7 12:33:18 UTC 2012


Author: eadler
Date: Mon May  7 12:33:17 2012
New Revision: 235127
URL: http://svn.freebsd.org/changeset/base/235127

Log:
  Undo MFC r234131:
  	The kernel change can't be MFCed so undo the documentation MFC.
  
  PR:		kern/164970
  Approved by:	cperciva (implicit)

Modified:
  stable/7/lib/libc/sys/dup.2
  stable/7/lib/libc/sys/fcntl.2
Directory Properties:
  stable/7/lib/libc/   (props changed)

Modified: stable/7/lib/libc/sys/dup.2
==============================================================================
--- stable/7/lib/libc/sys/dup.2	Mon May  7 12:20:26 2012	(r235126)
+++ stable/7/lib/libc/sys/dup.2	Mon May  7 12:33:17 2012	(r235127)
@@ -123,27 +123,20 @@ indicates the cause of the error.
 .Sh ERRORS
 The
 .Fn dup
-system call fails if:
+and
+.Fn dup2
+system calls fail if:
 .Bl -tag -width Er
 .It Bq Er EBADF
 The
 .Fa oldd
+or
+.Fa newd
 argument
 is not a valid active descriptor
 .It Bq Er EMFILE
 Too many descriptors are active.
 .El
-The
-.Fn dup2
-system call fails if:
-.Bl -tag -width Er
-.It Bq Er EBADF
-The
-.Fa oldd
-argument is not a valid active descriptor or the
-.Fa newd
-argument is negative or exceeds the maximum allowable descriptor number
-.El
 .Sh SEE ALSO
 .Xr accept 2 ,
 .Xr close 2 ,

Modified: stable/7/lib/libc/sys/fcntl.2
==============================================================================
--- stable/7/lib/libc/sys/fcntl.2	Mon May  7 12:20:26 2012	(r235126)
+++ stable/7/lib/libc/sys/fcntl.2	Mon May  7 12:33:17 2012	(r235127)
@@ -523,6 +523,8 @@ The argument
 .Fa cmd
 is
 .Dv F_DUPFD
+or
+.Dv F_DUP2FD
 and the maximum number of file descriptors permitted for the
 process are already in use,
 or no file descriptors greater than or equal to


More information about the svn-src-stable mailing list