Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fsync(2) — A/UX 3.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sync(2)

sync(1)




fsync(2) fsync(2)
NAME fsync - synchronize a file's in-core state with that on disk SYNOPSIS int fsync(fd) int fd; DESCRIPTION fsync causes all modified data and attributes of 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. fsync should be used by programs which require a file to be in a known state; for example in building a simple transaction facility. STATUS MESSAGES AND VALUES A 0 value is returned on success. A -1 value indicates an error. The fsync command fails if: EBADF fd is not a valid descriptor. EINVAL fd refers to a socket, not to a file. LIMITATIONS The current implementation of this call is expensive for large files. SEE ALSO sync(2) sync(1) in A/UX Command Reference January 1992 1

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026