Deleted Added
full compact
write.2 (50476) write.2 (57686)
1.\" Copyright (c) 1980, 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.\" @(#)write.2 8.5 (Berkeley) 4/2/94
1.\" Copyright (c) 1980, 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.\" @(#)write.2 8.5 (Berkeley) 4/2/94
33.\" $FreeBSD: head/lib/libc/sys/write.2 50476 1999-08-28 00:22:10Z peter $
33.\" $FreeBSD: head/lib/libc/sys/write.2 57686 2000-03-02 09:14:21Z sheldonh $
34.\"
35.Dd April 2, 1994
36.Dt WRITE 2
37.Os BSD 4
38.Sh NAME
39.Nm write ,
40.Nm writev ,
41.Nm pwrite

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

137and
138.Fn write
139is implemented as a function which locks
140.Va d
141for read and write, then calls
142.Fn _thread_sys_write .
143If the call to
144.Fn _thread_sys_write
34.\"
35.Dd April 2, 1994
36.Dt WRITE 2
37.Os BSD 4
38.Sh NAME
39.Nm write ,
40.Nm writev ,
41.Nm pwrite

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

137and
138.Fn write
139is implemented as a function which locks
140.Va d
141for read and write, then calls
142.Fn _thread_sys_write .
143If the call to
144.Fn _thread_sys_write
145would block, a context switch is performed. Before returning,
145would block, a context switch is performed.
146Before returning,
146.Fn write
147unlocks
148.Va d .
149.Pp
150In the non-threaded library
151.Fn writev
152is implemented as the
153.Va writev

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

160and
161.Fn writev
162is implemented as a function which locks
163.Va d
164for read and write, then calls
165.Fn _thread_sys_writev .
166If the call to
167.Fn _thread_sys_writev
147.Fn write
148unlocks
149.Va d .
150.Pp
151In the non-threaded library
152.Fn writev
153is implemented as the
154.Va writev

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

161and
162.Fn writev
163is implemented as a function which locks
164.Va d
165for read and write, then calls
166.Fn _thread_sys_writev .
167If the call to
168.Fn _thread_sys_writev
168would block, a context switch is performed. Before returning,
169would block, a context switch is performed.
170Before returning,
169.Fn writev
170unlocks
171.Va d .
172.Sh RETURN VALUES
173Upon successful completion the number of bytes which were written
174is returned. Otherwise a -1 is returned and the global variable
175.Va errno
176is set to indicate the error.

--- 113 unchanged lines hidden ---
171.Fn writev
172unlocks
173.Va d .
174.Sh RETURN VALUES
175Upon successful completion the number of bytes which were written
176is returned. Otherwise a -1 is returned and the global variable
177.Va errno
178is set to indicate the error.

--- 113 unchanged lines hidden ---