delorie.com/djgpp/doc/libc/libc_798.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <unistd.h> int sync(void); |
Intended to assist porting Unix programs. Under Unix, sync
flushes all caches of previously written data. In this implementation,
sync
calls fsync
on every open file. See section fsync. It
also calls _flush_disk_cache
(see section _flush_disk_cache) to try
to force cached data to the disk.
Always returns 0.
ANSI/ISO C | No |
POSIX | No |
sync(); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |