dup.2 (108028) | dup.2 (108087) |
---|---|
1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)dup.2 8.1 (Berkeley) 6/4/93 | 1.\" Copyright (c) 1980, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 16 unchanged lines hidden (view full) --- 25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30.\" SUCH DAMAGE. 31.\" 32.\" @(#)dup.2 8.1 (Berkeley) 6/4/93 |
33.\" $FreeBSD: head/lib/libc/sys/dup.2 108028 2002-12-18 09:22:32Z ru $ | 33.\" $FreeBSD: head/lib/libc/sys/dup.2 108087 2002-12-19 09:40:28Z ru $ |
34.\" 35.Dd June 4, 1993 36.Dt DUP 2 37.Os 38.Sh NAME 39.Nm dup , 40.Nm dup2 41.Nd duplicate an existing file descriptor --- 83 unchanged lines hidden (view full) --- 125.Sh ERRORS 126The 127.Fn dup 128and 129.Fn dup2 130system calls fail if: 131.Bl -tag -width Er 132.It Bq Er EBADF | 34.\" 35.Dd June 4, 1993 36.Dt DUP 2 37.Os 38.Sh NAME 39.Nm dup , 40.Nm dup2 41.Nd duplicate an existing file descriptor --- 83 unchanged lines hidden (view full) --- 125.Sh ERRORS 126The 127.Fn dup 128and 129.Fn dup2 130system calls fail if: 131.Bl -tag -width Er 132.It Bq Er EBADF |
133.Fa Oldd | 133The 134.Fa oldd |
134or 135.Fa newd | 135or 136.Fa newd |
137argument |
|
136is not a valid active descriptor 137.It Bq Er EMFILE 138Too many descriptors are active. 139.El 140.Sh SEE ALSO 141.Xr accept 2 , 142.Xr close 2 , 143.Xr fcntl 2 , --- 19 unchanged lines hidden --- | 138is not a valid active descriptor 139.It Bq Er EMFILE 140Too many descriptors are active. 141.El 142.Sh SEE ALSO 143.Xr accept 2 , 144.Xr close 2 , 145.Xr fcntl 2 , --- 19 unchanged lines hidden --- |