Deleted Added
full compact
send.2 (131365) send.2 (131504)
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" From: @(#)send.2 8.2 (Berkeley) 2/21/94
1.\" Copyright (c) 1983, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 16 unchanged lines hidden (view full) ---

25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" From: @(#)send.2 8.2 (Berkeley) 2/21/94
33.\" $FreeBSD: head/lib/libc/sys/send.2 131365 2004-06-30 20:09:10Z ru $
33.\" $FreeBSD: head/lib/libc/sys/send.2 131504 2004-07-02 23:52:20Z ru $
34.\"
35.Dd February 15, 1995
36.Dt SEND 2
37.Os
38.Sh NAME
39.Nm send ,
40.Nm sendto ,
41.Nm sendmsg

--- 136 unchanged lines hidden (view full) ---

178.It Bq Er ENOBUFS
179The output queue for a network interface was full.
180This generally indicates that the interface has stopped sending,
181but may be caused by transient congestion.
182.It Bq Er EHOSTUNREACH
183The remote host was unreachable.
184.It Bq Er ECONNREFUSED
185The socket received an ICMP destination unreachable message
34.\"
35.Dd February 15, 1995
36.Dt SEND 2
37.Os
38.Sh NAME
39.Nm send ,
40.Nm sendto ,
41.Nm sendmsg

--- 136 unchanged lines hidden (view full) ---

178.It Bq Er ENOBUFS
179The output queue for a network interface was full.
180This generally indicates that the interface has stopped sending,
181but may be caused by transient congestion.
182.It Bq Er EHOSTUNREACH
183The remote host was unreachable.
184.It Bq Er ECONNREFUSED
185The socket received an ICMP destination unreachable message
186from the last message sent. This typically means that the
186from the last message sent.
187This typically means that the
187receiver is not listening on the remote port.
188.It Bq Er EHOSTDOWN
189The remote host was down.
190.It Bq Er ENETDOWN
191The remote network was down.
192.It Bq Er EPERM
193The process using a
194.Dv SOCK_RAW

--- 14 unchanged lines hidden (view full) ---

209is possible to transfer an open file descriptor across an
210.Dv AF_UNIX
211domain socket
212(see
213.Xr recv 2 ) ,
214then
215.Fn close
216it before it has actually been sent, the result being that the receiver
188receiver is not listening on the remote port.
189.It Bq Er EHOSTDOWN
190The remote host was down.
191.It Bq Er ENETDOWN
192The remote network was down.
193.It Bq Er EPERM
194The process using a
195.Dv SOCK_RAW

--- 14 unchanged lines hidden (view full) ---

210is possible to transfer an open file descriptor across an
211.Dv AF_UNIX
212domain socket
213(see
214.Xr recv 2 ) ,
215then
216.Fn close
217it before it has actually been sent, the result being that the receiver
217gets a closed file descriptor. It is left to the application to
218gets a closed file descriptor.
219It is left to the application to
218implement an acknowledgment mechanism to prevent this from happening.
219.Sh SEE ALSO
220.Xr fcntl 2 ,
221.Xr getsockopt 2 ,
222.Xr recv 2 ,
223.Xr select 2 ,
224.Xr socket 2 ,
225.Xr write 2
226.Sh HISTORY
227The
228.Fn send
229function appeared in
230.Bx 4.2 .
220implement an acknowledgment mechanism to prevent this from happening.
221.Sh SEE ALSO
222.Xr fcntl 2 ,
223.Xr getsockopt 2 ,
224.Xr recv 2 ,
225.Xr select 2 ,
226.Xr socket 2 ,
227.Xr write 2
228.Sh HISTORY
229The
230.Fn send
231function appeared in
232.Bx 4.2 .