source: trunk/minix/man/man2/sync.2@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 805 bytes
RevLine 
[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
10sync, fsync \- update dirty buffers and super-block
11.SH SYNOPSIS
12.nf
13.ft B
14#include <unistd.h>
15
16int sync(void)
17int fsync(fd)
18.ft R
19.fi
20.SH DESCRIPTION
21.B Sync
22causes all information in the file system
23buffers that should be on disk to be written out.
24This includes modified super blocks,
25modified i-nodes, and delayed block I/O.
26.B
27Fsync
28does the same thing, but only for the blocks associated with a specific
29file 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.