FSYNC(2) HP Integral PC FSYNC(2) FSYNC(2) HP Integral PC FSYNC(2) FSYNC(2) HP Integral PC FSYNC(2) FSYNC(2) HP Integral PC FSYNC(2) NAME NAME NAME NAME fsync - synchronize a file's in-core state with that on disc SYNOPSIS SYNOPSIS SYNOPSIS SYNOPSIS fsync (fd) int fd; HP-UX COMPATABILITY HP-UX COMPATABILITY HP-UX COMPATABILITY HP-UX COMPATABILITY Level: HP-UX/RT Origin: UCB DESCRIPTION DESCRIPTION DESCRIPTION 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 disc. Fsync should be used by programs which require a file to be in a known state; for example in building a simple transaction facility. RETURN VALUE RETURN VALUE RETURN VALUE RETURN VALUE A 0 value is returned on success. A -1 value indicates an error. ERRORS ERRORS ERRORS ERRORS The fsync returns -1 and errno is set if: fd is not a valid descriptor. [EBADF] SEE ALSO SEE ALSO SEE ALSO SEE ALSO sync(2), sync(8) Hewlett-Packard - 1 - (printed 12/12/84)