Xref: news2.mv.net comp.os.msdos.djgpp:7805 From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: interrupting with ctrl-C Date: Fri, 23 Aug 1996 07:42:14 -0700 Organization: Alcyone Systems Lines: 14 Message-ID: <321DC346.5FC7EEF4@alcyone.com> References: NNTP-Posting-Host: annex-p133.meer.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Eli Zaretskii wrote: > You don't need to close a file to make sure all the data is delivered to > disk. Just call `fsync' library function, and it will do the same much > quicker (`close' and `open' are very expensive). Calling `sync' will do > the same for all open files. Note that fsync and sync are not ANSI C. Programs which use them will not be portable. -- Erik Max Francis, &tSftDotIotE http://www.alcyone.com/max/ max AT alcyone DOT com San Jose, California ICBM 37 20 07 N 121 53 38 W R^4: the 4th R is respect War's a game which were their subjects wise/Kings would not play at. -- Cowper