diff options
author | jilles <jilles@FreeBSD.org> | 2013-04-21 19:42:04 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2013-04-21 19:42:04 +0000 |
commit | 670f533a575498669a5cd2d2363498bee694b688 (patch) | |
tree | f7f0e54fbf9fa11615b4798f240cf03829b35a11 | |
parent | 9b6d25dacd9ddffbdba920cd0a33d956e289f6bd (diff) | |
download | FreeBSD-src-670f533a575498669a5cd2d2363498bee694b688.zip FreeBSD-src-670f533a575498669a5cd2d2363498bee694b688.tar.gz |
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.
MFC after: 1 week
-rw-r--r-- | lib/libc/sys/dup.2 | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/sys/dup.2 b/lib/libc/sys/dup.2 index 6e1de20..7b36d27 100644 --- a/lib/libc/sys/dup.2 +++ b/lib/libc/sys/dup.2 @@ -28,7 +28,7 @@ .\" @(#)dup.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd August 14, 2011 +.Dd April 21, 2013 .Dt DUP 2 .Os .Sh NAME @@ -56,9 +56,6 @@ The argument .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. |