delorie.com/djgpp/doc/libc/libc_331.html | search |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
#include <io.h> void _flush_disk_cache (void); |
Attempts to update the disk with the data cached in the write-behind
disk caches (such as SmartDrv
and the built-in Windows 95 disk
cache).
Note that this does not flush the DOS buffers. You need to
call fsync
(see section fsync) or close
(see section close) to
force DOS to commit the file data to the disk; sync
(see section sync) does that for all open files, and also calls
_flush_disk_cache
.
None.
ANSI/ISO C | No |
POSIX | No |
/* Make sure all cached data for a handle FD is actually written to disk. */ fsync (fd); _flush_disk_cache (); |
webmaster | delorie software privacy |
Copyright © 2004 | Updated Apr 2004 |