forked from Stichting-MINIX-Research-Foundation/minix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsync.2
More file actions
32 lines (31 loc) · 805 Bytes
/
Copy pathsync.2
File metadata and controls
32 lines (31 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.\" Copyright (c) 1980 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\"
.\" @(#)sync.2 6.2 (Berkeley) 6/30/85
.\"
.TH SYNC 2 "June 30, 1985"
.UC 4
.SH NAME
sync, fsync \- update dirty buffers and super-block
.SH SYNOPSIS
.nf
.ft B
#include <unistd.h>
int sync(void)
int fsync(fd)
.ft R
.fi
.SH DESCRIPTION
.B Sync
causes all information in the file system
buffers that should be on disk to be written out.
This includes modified super blocks,
modified i-nodes, and delayed block I/O.
.B
Fsync
does the same thing, but only for the blocks associated with a specific
file descriptor. Under minix, currently the two calls do the same thing.
.SH "SEE ALSO"
.BR reboot (2),
.BR sync (8).