delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/09/09/12:30:00

Date: Mon, 9 Sep 1996 19:27:56 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: djgpp-workers AT delorie DOT com
Subject: `sync' on MSDOS
Message-Id: <Pine.SUN.3.91.960909192156.8698D-100000@is>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019