summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/accept.2
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-03-31 08:34:27 +0000
committerguenther <guenther@openbsd.org>2013-03-31 08:34:27 +0000
commitd38222df7be226a2291431f4c21ea09b6b5ed074 (patch)
treec94f1fea2f67c54b3cac66c9a2d626af4965ac1d /lib/libc/sys/accept.2
parentLet the DDC "proxy" functions call the high-level I2C functions instead (diff)
downloadwireguard-openbsd-d38222df7be226a2291431f4c21ea09b6b5ed074.tar.xz
wireguard-openbsd-d38222df7be226a2291431f4c21ea09b6b5ed074.zip
Updates to SYNOPSIS, ERRORS, and STANDARDS
ok jmc@
Diffstat (limited to 'lib/libc/sys/accept.2')
-rw-r--r--lib/libc/sys/accept.212
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