Annotated edit history of
sync(2) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
SYNC |
|
|
2 |
!!!SYNC |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
RETURN VALUE |
|
|
7 |
CONFORMING TO |
|
|
8 |
BUGS |
|
|
9 |
SEE ALSO |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
sync - commit buffer cache to disk. |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__#include __ |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
__int sync(void);__ |
|
|
22 |
!!DESCRIPTION |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
__sync__ first commits inodes to buffers, and then |
|
|
26 |
buffers to disk. |
|
|
27 |
!!RETURN VALUE |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
__sync__ always returns 0. |
|
|
31 |
!!CONFORMING TO |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
SVr4, SVID, X/OPEN, BSD 4.3 |
|
|
35 |
!!BUGS |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
According to the standard specification (e.g., SVID), |
|
|
39 |
__sync()__ schedules the writes, but may return before |
|
|
40 |
the actual writing is done. However, since version 1.3.20 |
|
|
41 |
Linux does actually wait. (This still does not guarantee |
|
|
42 |
data integrity: modern disks have large |
|
|
43 |
caches.) |
|
|
44 |
!!SEE ALSO |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
bdflush(2), fsync(2), fdatasync(2), |
|
|
48 |
update(8), sync(8) |
|
|
49 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.