Rev | Line | |
---|
[9] | 1 | .\" Copyright (c) 1980 Regents of the University of California.
|
---|
| 2 | .\" All rights reserved. The Berkeley software License Agreement
|
---|
| 3 | .\" specifies the terms and conditions for redistribution.
|
---|
| 4 | .\"
|
---|
| 5 | .\" @(#)sync.2 6.2 (Berkeley) 6/30/85
|
---|
| 6 | .\"
|
---|
| 7 | .TH SYNC 2 "June 30, 1985"
|
---|
| 8 | .UC 4
|
---|
| 9 | .SH NAME
|
---|
| 10 | sync, fsync \- update dirty buffers and super-block
|
---|
| 11 | .SH SYNOPSIS
|
---|
| 12 | .nf
|
---|
| 13 | .ft B
|
---|
| 14 | #include <unistd.h>
|
---|
| 15 |
|
---|
| 16 | int sync(void)
|
---|
| 17 | int fsync(fd)
|
---|
| 18 | .ft R
|
---|
| 19 | .fi
|
---|
| 20 | .SH DESCRIPTION
|
---|
| 21 | .B Sync
|
---|
| 22 | causes all information in the file system
|
---|
| 23 | buffers that should be on disk to be written out.
|
---|
| 24 | This includes modified super blocks,
|
---|
| 25 | modified i-nodes, and delayed block I/O.
|
---|
| 26 | .B
|
---|
| 27 | Fsync
|
---|
| 28 | does the same thing, but only for the blocks associated with a specific
|
---|
| 29 | file descriptor. Under minix, currently the two calls do the same thing.
|
---|
| 30 | .SH "SEE ALSO"
|
---|
| 31 | .BR reboot (2),
|
---|
| 32 | .BR sync (8).
|
---|
Note:
See
TracBrowser
for help on using the repository browser.