Added EINTR and sorted the error names alphabetically.
This commit is contained in:
parent
e3a0fc1942
commit
121d2aa3a7
|
@ -1,4 +1,4 @@
|
||||||
.\" $NetBSD: accept.2,v 1.24 2003/08/07 16:43:54 agc Exp $
|
.\" $NetBSD: accept.2,v 1.25 2006/11/17 23:59:33 rillig Exp $
|
||||||
.\"
|
.\"
|
||||||
.\" Copyright (c) 1983, 1990, 1991, 1993
|
.\" Copyright (c) 1983, 1990, 1991, 1993
|
||||||
.\" The Regents of the University of California. All rights reserved.
|
.\" The Regents of the University of California. All rights reserved.
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
.\"
|
.\"
|
||||||
.\" @(#)accept.2 8.2 (Berkeley) 12/11/93
|
.\" @(#)accept.2 8.2 (Berkeley) 12/11/93
|
||||||
.\"
|
.\"
|
||||||
.Dd October 22, 2001
|
.Dd November 18, 2006
|
||||||
.Dt ACCEPT 2
|
.Dt ACCEPT 2
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
@ -140,32 +140,36 @@ The
|
||||||
.Fn accept
|
.Fn accept
|
||||||
will fail if:
|
will fail if:
|
||||||
.Bl -tag -width Er
|
.Bl -tag -width Er
|
||||||
|
.It Bq Er EAGAIN
|
||||||
|
The socket is marked non-blocking and no connections
|
||||||
|
are present to be accepted.
|
||||||
.It Bq Er EBADF
|
.It Bq Er EBADF
|
||||||
The descriptor is invalid.
|
The descriptor is invalid.
|
||||||
.It Bq Er EINVAL
|
.It Bq Er ECONNABORTED
|
||||||
The socket has not been set up to accept connections (using
|
A connection has been aborted.
|
||||||
.Xr bind 2
|
|
||||||
and
|
|
||||||
.Xr listen 2 ) .
|
|
||||||
.It Bq Er ENOTSOCK
|
|
||||||
The descriptor references a file, not a socket.
|
|
||||||
.It Bq Er EOPNOTSUPP
|
|
||||||
The referenced socket is not of type
|
|
||||||
.Dv SOCK_STREAM .
|
|
||||||
.It Bq Er EFAULT
|
.It Bq Er EFAULT
|
||||||
The
|
The
|
||||||
.Fa addr
|
.Fa addr
|
||||||
parameter is not in a writable part of the
|
parameter is not in a writable part of the
|
||||||
user address space.
|
user address space.
|
||||||
.It Bq Er EAGAIN
|
.It Bq Er EINTR
|
||||||
The socket is marked non-blocking and no connections
|
The
|
||||||
are present to be accepted.
|
.Fn accept
|
||||||
|
call has been interrupted by a signal.
|
||||||
|
.It Bq Er EINVAL
|
||||||
|
The socket has not been set up to accept connections (using
|
||||||
|
.Xr bind 2
|
||||||
|
and
|
||||||
|
.Xr listen 2 ) .
|
||||||
.It Bq Er EMFILE
|
.It Bq Er EMFILE
|
||||||
The per-process descriptor table is full.
|
The per-process descriptor table is full.
|
||||||
.It Bq Er ENFILE
|
.It Bq Er ENFILE
|
||||||
The system file table is full.
|
The system file table is full.
|
||||||
.It Bq Er ECONNABORTED
|
.It Bq Er ENOTSOCK
|
||||||
A connection has been aborted.
|
The descriptor references a file, not a socket.
|
||||||
|
.It Bq Er EOPNOTSUPP
|
||||||
|
The referenced socket is not of type
|
||||||
|
.Dv SOCK_STREAM .
|
||||||
.El
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr bind 2 ,
|
.Xr bind 2 ,
|
||||||
|
|
Loading…
Reference in New Issue