Date: Mon, 9 Sep 1996 19:27:56 +0200 (IST) From: Eli Zaretskii To: djgpp-workers AT delorie DOT com Subject: `sync' on MSDOS Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.