diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2002-12-18 09:22:32 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2002-12-18 09:22:32 +0000 |
| commit | 2faeeff4c9bb77cca44a977d96c1a9fc7af8d8a3 (patch) | |
| tree | cb18f664ed0ee63bee30f6af9b148510b6e9663b /lib/libc/sys/fsync.2 | |
| parent | a1096fe6dfb9dc2ec492a1421075a38d6d75bc02 (diff) | |
Notes
Diffstat (limited to 'lib/libc/sys/fsync.2')
| -rw-r--r-- | lib/libc/sys/fsync.2 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/sys/fsync.2 b/lib/libc/sys/fsync.2 index 821b09665d71..883177e00277 100644 --- a/lib/libc/sys/fsync.2 +++ b/lib/libc/sys/fsync.2 @@ -45,14 +45,18 @@ .Ft int .Fn fsync "int fd" .Sh DESCRIPTION -.Fn Fsync +The +.Fn fsync +system call causes all modified data and attributes of .Fa fd to be moved to a permanent storage device. This normally results in all in-core modified copies of buffers for the associated file to be written to a disk. .Pp -.Fn Fsync +The +.Fn fsync +system call should be used by programs that require a file to be in a known state, for example, in building a simple transaction facility. @@ -79,5 +83,5 @@ An I/O error occurred while reading from or writing to the file system. .Sh HISTORY The .Fn fsync -function call appeared in +system call appeared in .Bx 4.2 . |
