www.delorie.com/djgpp//doc/libc-2.02/libc_322.html   search  
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.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1998     Updated Dec 1998