Deleted Added
full compact
sendfile.2 (201760) sendfile.2 (233648)
1.\" Copyright (c) 2003, David G. Lawrence
2.\" 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 unmodified, this list of conditions, and the following

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

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
1.\" Copyright (c) 2003, David G. Lawrence
2.\" 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 unmodified, this list of conditions, and the following

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

18.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24.\" SUCH DAMAGE.
25.\"
26.\" $FreeBSD: head/lib/libc/sys/sendfile.2 201760 2010-01-07 21:14:46Z kib $
26.\" $FreeBSD: head/lib/libc/sys/sendfile.2 233648 2012-03-29 05:02:12Z eadler $
27.\"
28.Dd January 7, 2010
29.Dt SENDFILE 2
30.Os
31.Sh NAME
32.Nm sendfile
33.Nd send a file to a socket
34.Sh LIBRARY

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

99.Pf non- Dv NULL ,
100the system will write the total number of bytes sent on the socket to the
101variable pointed to by
102.Fa sbytes .
103.Pp
104The
105.Fa flags
106argument is a bitmap of these values:
27.\"
28.Dd January 7, 2010
29.Dt SENDFILE 2
30.Os
31.Sh NAME
32.Nm sendfile
33.Nd send a file to a socket
34.Sh LIBRARY

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

99.Pf non- Dv NULL ,
100the system will write the total number of bytes sent on the socket to the
101variable pointed to by
102.Fa sbytes .
103.Pp
104The
105.Fa flags
106argument is a bitmap of these values:
107.Bl -item -offset indent
107.Bl -item -offset indent
108.It
109.Dv SF_NODISKIO .
110This flag causes any
111.Fn sendfile
112call which would block on disk I/O to instead
113return
114.Er EBUSY .
115Busy servers may benefit by transferring requests that would

--- 201 unchanged lines hidden ---
108.It
109.Dv SF_NODISKIO .
110This flag causes any
111.Fn sendfile
112call which would block on disk I/O to instead
113return
114.Er EBUSY .
115Busy servers may benefit by transferring requests that would

--- 201 unchanged lines hidden ---