diff --git a/man2/bind.2 b/man2/bind.2 index 65fda214f..17e11da74 100644 --- a/man2/bind.2 +++ b/man2/bind.2 @@ -241,10 +241,17 @@ also used by glibc. See also .BR accept (2). .SH EXAMPLE -.\" unix.7 refers to this example. +An example of the use of +.BR bind () +with Internet domain sockets can be found in +.BR getaddrinfo (3). + The following example shows how to bind a stream socket in the Unix .RB ( AF_UNIX ) domain, and accept connections: +.\" listen.7 refers to this example. +.\" accept.7 refers to this example. +.\" unix.7 refers to this example. .in +0.25in .nf diff --git a/man2/connect.2 b/man2/connect.2 index 6d08f8d31..634231e83 100644 --- a/man2/connect.2 +++ b/man2/connect.2 @@ -252,6 +252,11 @@ Unconnecting a socket by calling with a .B AF_UNSPEC address is not yet implemented. +.SH EXAMPLE +An example of the use of +.BR connect () +is shown in +.BR getaddrinfo (3). .SH "SEE ALSO" .BR accept (2), .BR bind (2), diff --git a/man2/recv.2 b/man2/recv.2 index 2e4443424..e09a4d56a 100644 --- a/man2/recv.2 +++ b/man2/recv.2 @@ -438,6 +438,11 @@ but glibc currently (2.4) types it as .\" The problem is an underlying kernel issue: the size of the .\" __kernel_size_t type used to type this field varies .\" across architectures, but socklen_t is always 32 bits. +.SH EXAMPLE +An example of the use of +.BR recvfrom () +is shown in +.BR getaddrinfo (3). .SH "SEE ALSO" .BR fcntl (2), .BR getsockopt (2), diff --git a/man2/send.2 b/man2/send.2 index f5489c837..0ad2b3435 100644 --- a/man2/send.2 +++ b/man2/send.2 @@ -382,6 +382,11 @@ but glibc currently (2.4) types it as .\" across architectures, but socklen_t is always 32 bits. .SH BUGS Linux may return EPIPE instead of ENOTCONN. +.SH EXAMPLE +An example of the use of +.BR sendto () +is shown in +.BR getaddrinfo (3). .SH "SEE ALSO" .BR fcntl (2), .BR getsockopt (2), diff --git a/man2/socket.2 b/man2/socket.2 index c76491813..64950c21c 100644 --- a/man2/socket.2 +++ b/man2/socket.2 @@ -333,6 +333,11 @@ standards use AF_* everywhere. .SH BUGS .B SOCK_UUCP is not implemented yet. +.SH EXAMPLE +An example of the use of +.BR socket () +is shown in +.BR getaddrinfo (3). .SH "SEE ALSO" .BR accept (2), .BR bind (2),