From aeee07f7741851e148e07ba3c11fca89dada7258 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 13 Jan 2015 10:15:45 +0100 Subject: [PATCH] dup.2: Add reference to RLIMIT_NOFILE for EBADF error on 'newfd'. Signed-off-by: Michael Kerrisk --- man2/dup.2 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/man2/dup.2 b/man2/dup.2 index 413183bc8..ff2ed2efc 100644 --- a/man2/dup.2 +++ b/man2/dup.2 @@ -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