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
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -29,7 +29,7 @@
|
|||
.\"
|
||||
.\" @(#)accept.2 8.2 (Berkeley) 12/11/93
|
||||
.\"
|
||||
.Dd October 22, 2001
|
||||
.Dd November 18, 2006
|
||||
.Dt ACCEPT 2
|
||||
.Os
|
||||
.Sh NAME
|
||||
|
@ -140,32 +140,36 @@ The
|
|||
.Fn accept
|
||||
will fail if:
|
||||
.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
|
||||
The descriptor is invalid.
|
||||
.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 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 ECONNABORTED
|
||||
A connection has been aborted.
|
||||
.It Bq Er EFAULT
|
||||
The
|
||||
.Fa addr
|
||||
parameter is not in a writable part of the
|
||||
user address space.
|
||||
.It Bq Er EAGAIN
|
||||
The socket is marked non-blocking and no connections
|
||||
are present to be accepted.
|
||||
.It Bq Er EINTR
|
||||
The
|
||||
.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
|
||||
The per-process descriptor table is full.
|
||||
.It Bq Er ENFILE
|
||||
The system file table is full.
|
||||
.It Bq Er ECONNABORTED
|
||||
A connection has been aborted.
|
||||
.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 .
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr bind 2 ,
|
||||
|
|
Loading…
Reference in New Issue