diff options
Diffstat (limited to 'lib/libc/sys/accept.2')
-rw-r--r-- | lib/libc/sys/accept.2 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/sys/accept.2 b/lib/libc/sys/accept.2 index 30b9c874c42..67efb930373 100644 --- a/lib/libc/sys/accept.2 +++ b/lib/libc/sys/accept.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: accept.2,v 1.23 2012/04/24 12:20:59 jmc Exp $ +.\" $OpenBSD: accept.2,v 1.24 2013/03/31 08:34:27 guenther Exp $ .\" $NetBSD: accept.2,v 1.7 1996/01/31 20:14:42 mycroft Exp $ .\" .\" Copyright (c) 1983, 1990, 1991, 1993 @@ -30,14 +30,13 @@ .\" .\" @(#)accept.2 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: April 24 2012 $ +.Dd $Mdocdate: March 31 2013 $ .Dt ACCEPT 2 .Os .Sh NAME .Nm accept .Nd accept a connection on a socket .Sh SYNOPSIS -.Fd #include <sys/types.h> .Fd #include <sys/socket.h> .Ft int .Fn accept "int s" "struct sockaddr *addr" "socklen_t *addrlen" @@ -158,7 +157,7 @@ will fail if: .It Bq Er EBADF The descriptor is invalid. .It Bq Er ENOTSOCK -The descriptor references a file, not a socket. +The descriptor doesn't reference a socket. .It Bq Er EOPNOTSUPP The referenced socket is not of type .Dv SOCK_STREAM . @@ -191,6 +190,11 @@ A connection has been aborted. .Xr poll 2 , .Xr select 2 , .Xr socket 2 +.Sh STANDARDS +The +.Fn accept +function conforms to +.St -p1003.1-2008 . .Sh HISTORY The .Fn accept |