Deleted Added
full compact
send.2 (108028) send.2 (108087)
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 108028 2002-12-18 09:22:32Z ru $
33.\" $FreeBSD: head/lib/libc/sys/send.2 108087 2002-12-19 09:40:28Z 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

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

96non-blocking I/O mode.
97The
98.Xr select 2
99system call may be used to determine when it is possible to
100send more data.
101.Pp
102The
103.Fa flags
34.\"
35.Dd February 15, 1995
36.Dt SEND 2
37.Os
38.Sh NAME
39.Nm send ,
40.Nm sendto ,
41.Nm sendmsg

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

96non-blocking I/O mode.
97The
98.Xr select 2
99system call may be used to determine when it is possible to
100send more data.
101.Pp
102The
103.Fa flags
104parameter may include one or more of the following:
104argument may include one or more of the following:
105.Bd -literal
106#define MSG_OOB 0x1 /* process out-of-band data */
107#define MSG_PEEK 0x2 /* peek at incoming message */
108#define MSG_DONTROUTE 0x4 /* bypass routing, use direct interface */
109#define MSG_EOR 0x8 /* data completes record */
110#define MSG_EOF 0x100 /* data completes transaction */
111.Ed
112.Pp

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

160The destination address is a broadcast address, and
161.Dv SO_BROADCAST
162has not been set on the socket.
163.It Bq Er ENOTSOCK
164The argument
165.Fa s
166is not a socket.
167.It Bq Er EFAULT
105.Bd -literal
106#define MSG_OOB 0x1 /* process out-of-band data */
107#define MSG_PEEK 0x2 /* peek at incoming message */
108#define MSG_DONTROUTE 0x4 /* bypass routing, use direct interface */
109#define MSG_EOR 0x8 /* data completes record */
110#define MSG_EOF 0x100 /* data completes transaction */
111.Ed
112.Pp

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

160The destination address is a broadcast address, and
161.Dv SO_BROADCAST
162has not been set on the socket.
163.It Bq Er ENOTSOCK
164The argument
165.Fa s
166is not a socket.
167.It Bq Er EFAULT
168An invalid user space address was specified for a parameter.
168An invalid user space address was specified for an argument.
169.It Bq Er EMSGSIZE
170The socket requires that message be sent atomically,
171and the size of the message to be sent made this impossible.
172.It Bq Er EAGAIN
173The socket is marked non-blocking and the requested operation
174would block.
175.It Bq Er ENOBUFS
176The system was unable to allocate an internal buffer.

--- 42 unchanged lines hidden ---
169.It Bq Er EMSGSIZE
170The socket requires that message be sent atomically,
171and the size of the message to be sent made this impossible.
172.It Bq Er EAGAIN
173The socket is marked non-blocking and the requested operation
174would block.
175.It Bq Er ENOBUFS
176The system was unable to allocate an internal buffer.

--- 42 unchanged lines hidden ---