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
This commit is contained in:
parent
6eeab38939
commit
2cd19a510a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249739
@ -28,7 +28,7 @@
|
|||||||
.\" @(#)dup.2 8.1 (Berkeley) 6/4/93
|
.\" @(#)dup.2 8.1 (Berkeley) 6/4/93
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd August 14, 2011
|
.Dd April 21, 2013
|
||||||
.Dt DUP 2
|
.Dt DUP 2
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -56,9 +56,6 @@ The argument
|
|||||||
.Fa oldd
|
.Fa oldd
|
||||||
is a small non-negative integer index in
|
is a small non-negative integer index in
|
||||||
the per-process descriptor table.
|
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
|
The new descriptor returned by the call
|
||||||
is the lowest numbered descriptor
|
is the lowest numbered descriptor
|
||||||
currently not in use by the process.
|
currently not in use by the process.
|
||||||
|
Loading…
Reference in New Issue
Block a user