Go to the first, previous, next, last section, table of contents.


fsync

Syntax

#include <unistd.h>

int fsync(int file);

Description

Forces all information about the file with the given descriptor to be synchronized with the disk image. Works by calling DOS function 0x68. Warning: External disk caches are not flushed by this function.

Return Value

Zero on success, nonzero on failure.

Portability

not ANSI, not POSIX

Example

fsync(fileno(stdout));


Go to the first, previous, next, last section, table of contents.