delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/27/20:14:40

Date: Mon, 27 Oct 1997 17:12:58 -0800 (PST)
Message-Id: <199710280112.RAA17389@adit.ap.net>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Stuff about sync()

1. sync() seems to be poorly documented. The docs just say it's to assist
porting Unix programs and always returns zero. It doesn't say that it calls
fsync() for every open file, which it does.
2. IMHO, sync() should call _flush_disk_cache() in order to be closer to its
Unix behavior.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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