[Midnightbsd-cvs] src [9372] trunk/lib/libc/sys/dup.2: dup(2): Remove incorrect sentence about getdtablesize().

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Mar 4 15:23:00 EST 2017


Revision: 9372
          http://svnweb.midnightbsd.org/src/?rev=9372
Author:   laffer1
Date:     2017-03-04 15:22:59 -0500 (Sat, 04 Mar 2017)
Log Message:
-----------
dup(2): Remove incorrect sentence about getdtablesize().

There are no getdtablesize() bounds on the file descriptor to be duplicated;
it only has to be open. If the RLIMIT_NOFILE rlimit was decreased after
opening the file descriptor, it may be greater than or equal to
getdtablesize() but still valid.

Modified Paths:
--------------
    trunk/lib/libc/sys/dup.2

Modified: trunk/lib/libc/sys/dup.2
===================================================================
--- trunk/lib/libc/sys/dup.2	2017-03-04 20:22:25 UTC (rev 9371)
+++ trunk/lib/libc/sys/dup.2	2017-03-04 20:22:59 UTC (rev 9372)
@@ -28,7 +28,7 @@
 .\"     @(#)dup.2	8.1 (Berkeley) 6/4/93
 .\" $MidnightBSD$
 .\"
-.Dd August 14, 2011
+.Dd April 21, 2013
 .Dt DUP 2
 .Os
 .Sh NAME
@@ -56,9 +56,6 @@
 .Fa oldd
 is a small non-negative integer index in
 the per-process descriptor table.
-The value must be less
-than the size of the table, which is returned by
-.Xr getdtablesize 2 .
 The new descriptor returned by the call
 is the lowest numbered descriptor
 currently not in use by the process.



More information about the Midnightbsd-cvs mailing list