Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!agate!ziploc!eps From: eps@toaster.SFSU.EDU (Eric P. Scott) Newsgroups: comp.sys.next Subject: Re: Immediate write to disk Message-ID: <1672@toaster.SFSU.EDU> Date: 7 Jun 91 00:05:02 GMT References: <35269@mimsy.umd.edu> Reply-To: eps@cs.SFSU.EDU (Eric P. Scott) Organization: San Francisco State University Lines: 13 In article <35269@mimsy.umd.edu> helene@umiacs.umd.edu (Helene Young-Myers) writes: > In Mach, how do I force an immediate write to disk? I am looking for >the equivalent to the O_SYNC option in open() on Unix System V. When this >option is set, each write() will wait for both the file data and file >status to be physically updated. This isn't really a Mach question. :-) NeXT added O_SYNC with Software Release 2.0. You might also look at the fsync(2) call. -=EPS=-