diff options
author | 2013-03-31 08:34:27 +0000 | |
---|---|---|
committer | 2013-03-31 08:34:27 +0000 | |
commit | d38222df7be226a2291431f4c21ea09b6b5ed074 (patch) | |
tree | c94f1fea2f67c54b3cac66c9a2d626af4965ac1d /lib/libc/sys/dup.2 | |
parent | Let the DDC "proxy" functions call the high-level I2C functions instead (diff) | |
download | wireguard-openbsd-d38222df7be226a2291431f4c21ea09b6b5ed074.tar.xz wireguard-openbsd-d38222df7be226a2291431f4c21ea09b6b5ed074.zip |
Updates to SYNOPSIS, ERRORS, and STANDARDS
ok jmc@
Diffstat (limited to 'lib/libc/sys/dup.2')
-rw-r--r-- | lib/libc/sys/dup.2 | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/lib/libc/sys/dup.2 b/lib/libc/sys/dup.2 index 19ce34b511f..e0cb083b3f4 100644 --- a/lib/libc/sys/dup.2 +++ b/lib/libc/sys/dup.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: dup.2,v 1.14 2013/03/30 06:44:44 guenther Exp $ +.\" $OpenBSD: dup.2,v 1.15 2013/03/31 08:34:27 guenther 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: March 30 2013 $ +.Dd $Mdocdate: March 31 2013 $ .Dt DUP 2 .Os .Sh NAME @@ -104,22 +104,35 @@ The external variable indicates the cause of the error. .Sh ERRORS .Fn dup -and -.Fn dup2 -fail if: +will fail if: .Bl -tag -width Er .It Bq Er EBADF .Fa oldd -or -.Fa newd is not a valid active descriptor. .It Bq Er EMFILE Too many descriptors are active. .El +.Pp +.Fn dup2 +will fail if: +.Bl -tag -width Er +.It Bq Er EBADF +.Fa oldd +is not a valid active descriptor or +.Fa newd +is negative or greater than or equal to the process's +.Dv RLIMIT_NOFILE +limit. +.It Bq Er EINTR +An interrupt was received. +.It Bq Er EIO +An I/O error occurred while writing to the file system. +.El .Sh SEE ALSO .Xr accept 2 , .Xr close 2 , .Xr fcntl 2 , +.Xr getrlimit 2 , .Xr open 2 , .Xr pipe 2 , .Xr socket 2 , |