summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2014-12-10 19:46:48 +0000
committerschwarze <schwarze@openbsd.org>2014-12-10 19:46:48 +0000
commit8ce042c7de6ad9cbed1e6f7d2704cc3706ba59c7 (patch)
tree48236f47e828bbe42f44beb08670d1fabc957957 /lib/libc/sys
parentsync (diff)
downloadwireguard-openbsd-8ce042c7de6ad9cbed1e6f7d2704cc3706ba59c7.tar.xz
wireguard-openbsd-8ce042c7de6ad9cbed1e6f7d2704cc3706ba59c7.zip
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