dup.2: Add reference to RLIMIT_NOFILE for EBADF error on 'newfd'.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-01-13 10:15:45 +01:00
parent 947a6f390d
commit aeee07f774
1 changed files with 7 additions and 2 deletions

View File

@ -155,9 +155,14 @@ is set appropriately.
.TP
.B EBADF
.I oldfd
isn't an open file descriptor, or
isn't an open file descriptor.
.TP
.B EBADF
.I newfd
is out of the allowed range for file descriptors.
is out of the allowed range for file descriptors (see the discussion of
.BR RLIMIT_NOFILE
in
.BR getrlimit (2)).
.TP
.B EBUSY
(Linux only) This may be returned by