diff options
Diffstat (limited to 'man2/dup.2')
| -rw-r--r-- | man2/dup.2 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/man2/dup.2 b/man2/dup.2 index de7f505e07..1f12c699cb 100644 --- a/man2/dup.2 +++ b/man2/dup.2 @@ -40,7 +40,9 @@ dup, dup2 \- duplicate a file descriptor .BI "int dup2(int " oldfd ", int " newfd ); .fi .SH DESCRIPTION -.BR dup "() and " dup2 () +.BR dup () +and +.BR dup2 () create a copy of the file descriptor .IR oldfd . @@ -68,7 +70,9 @@ uses the lowest-numbered unused descriptor for the new descriptor. .RI "makes " newfd " be the copy of " oldfd ", closing " newfd first if necessary. .SH "RETURN VALUE" -.BR dup "() and " dup2 () +.BR dup () +and +.BR dup2 () return the new descriptor, or \-1 if an error occurred (in which case, .I errno is set appropriately). |
