add cg_ctot to summarize cg_b
[unix-history] / .ref-BSD-3 / usr / man / man2 / vwrite.2
CommitLineData
55641529
BJ
1.UC
2.TH VWRITE 2
3.SH NAME
4vwrite \- write (virtually) to file
5.SH SYNOPSIS
6\fBvwrite(filedes, buffer, nbytes)\fR
7.br
8\fBchar *buffer;\fR
9.SH DESCRIPTION
10The
11.I vwrite
12system call is used in conjunction with
13.I vread
14to perform efficient updating of large files.
15After a call to
16.I vread
17and updating of the data in the buffer which was given to
18.I vread,
19a
20.I vwrite
21of the same buffer to the same
22.I filedes
23at the same offset in the file
24will cause data which has been modified since it was
25.I vread
26from (or
27.I vwritten
28to) the file to be returned to the file.
29.SH SEE ALSO
30vread(2)
31.SH DIAGNOSTICS
32Returns \-1 on error: bad descriptor, buffer address, count or alignment
33as well as on physical I/O errors.
34.SH BUGS
35The result of
36.I vwrite
37is defined only when no other
38.I vread's
39have occured on
40.I buffer
41since the one matching the
42.I vwrite.