Mail Archives: djgpp-workers/1996/09/09/12:30:00
Since `sync' in our libc only flushes the files open by the calling
program, the program named `sync' from GNU Fileutils is essentially a
no-op. If there is a simple enough way to cause disk cache to flush its
buffers, I'd like to do that in the DJGPP port of `sync' (if it's
complicated, it probably isn't worth the hassle).
So: does anybody know a simple way to cause *any* cache to flush itself?
Here is what I know:
1) Windows 95 has a function (710Dh) to do that.
2) SmartDrv has also such a function.
3) Any other cache has such function also, but it's impossible to
call them all.
I suspect that making an Int 13h call (e.g., seek to track 0, or disk
reset) will also flush the cache, but does anybody know for sure?
Any other piece of info is welcome. Thanks.
- Raw text -