summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-12-10 19:46:49 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-12-10 19:46:49 +0000
commit4e69035faba777878bb63713a3f9377d76b09675 (patch)
tree88ee8f74e5acc53877627c8337a5e7d553254f43 /lib/libc/sys
parentef2fe1885b3e4cfb3754ee37052f1ef13eb51405 (diff)
add missing sentence to RETURN VALUES; from Kaspars at Bankovskis dot net
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/dup.25
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/sys/dup.2 b/lib/libc/sys/dup.2
index a0e24d19c15..92a83c362d3 100644
--- a/lib/libc/sys/dup.2
+++ b/lib/libc/sys/dup.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: dup.2,v 1.17 2014/08/31 01:42:36 guenther Exp $
+.\" $OpenBSD: dup.2,v 1.18 2014/12/10 19:46:48 schwarze Exp $
.\" $NetBSD: dup.2,v 1.4 1995/02/27 12:32:21 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)dup.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: August 31 2014 $
+.Dd $Mdocdate: December 10 2014 $
.Dt DUP 2
.Os
.Sh NAME
@@ -129,6 +129,7 @@ is zero then
is identical to a call to
.Fn dup2 .
.Sh RETURN VALUES
+Upon successful completion, the value of the new descriptor is returned.
The value \-1 is returned if an error occurs in either call.
The external variable
.Va errno