aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/connect.2
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2002-12-19 09:40:28 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2002-12-19 09:40:28 +0000
commit2efeeba554cbd7bdee9cfe17641c8bd335c7972f (patch)
treef0781cb8e5be3a35234a6d0c123d6ae11ba70e40 /lib/libc/sys/connect.2
parent3ca4c01eea0e54f4f560aff65f774d6bd0b0b87c (diff)
Notes
Diffstat (limited to 'lib/libc/sys/connect.2')
-rw-r--r--lib/libc/sys/connect.211
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/libc/sys/connect.2 b/lib/libc/sys/connect.2
index 79ab4f9418ff8..dc91aefbb8929 100644
--- a/lib/libc/sys/connect.2
+++ b/lib/libc/sys/connect.2
@@ -46,8 +46,9 @@
.Ft int
.Fn connect "int s" "const struct sockaddr *name" "socklen_t namelen"
.Sh DESCRIPTION
-The parameter
+The
.Fa s
+argument
is a socket.
If it is of type
.Dv SOCK_DGRAM ,
@@ -63,7 +64,7 @@ The other socket is specified by
which is an address in the communications space of the socket.
Each communications space interprets the
.Fa name
-parameter in its own way.
+argument in its own way.
Generally, stream sockets may successfully
.Fn connect
only once; datagram sockets may use
@@ -79,10 +80,14 @@ The
system call fails if:
.Bl -tag -width Er
.It Bq Er EBADF
+The
.Fa s
+argument
is not a valid descriptor.
.It Bq Er ENOTSOCK
+The
.Fa s
+argument
is a descriptor for a file, not a socket.
.It Bq Er EADDRNOTAVAIL
The specified address is not available on this machine.
@@ -101,7 +106,7 @@ The address is already in use.
.It Bq Er EFAULT
The
.Fa name
-parameter specifies an area outside
+argument specifies an area outside
the process address space.
.It Bq Er EINPROGRESS
The socket is non-blocking