Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: al012@svtstu.seqeb.gov.au (Anthony Lee)
Subject: (Summary of response) Re: File descriptor equivalent of fflush?
Date: 1996/01/29	[thread overview]
Message-ID: <DLytFp.Dp5@un.seqeb.gov.au> (raw)
In-Reply-To: DLxHsx.7Ko@un.seqeb.gov.au

In article <DLxHsx.7Ko@un.seqeb.gov.au>, al012@svtstu.seqeb.gov.au says...
>
>Dear all,
>
>I am trying to find an equivalent of fflush for file descriptors
>in ULTRIX and OSF.  
>

Many thanks to all those people who send me replies.
Two people told me that I don't need to flush because
read and write are not buffered.

But then the man pages for write on ULTRIX had this

>By default, write does asynchronous writes.  That is, after the data is
>written to a buffer cache, control returns to the program.  The actual
>write to a device takes place after control returns.  However, if you
>use an open or fcntl call to open a file for synchronous writes, control
>does not return to the program until after the buffer cache has been
>written to the device.

Several people suggested that I use fsync but be aware that on
ULTRIX fsync will flush all buffers.

-- 
Anthony Lee        These are my opinions and not SEQEB.
SEQEB                                            
150 Charlotte Street                   ..--  __o 
Brisbane                          ....--   _ \<,_               
Qld 4000                         ____     (_)/ (_)                         
Australia
voice:+61 7 3407 4541            Death to the Daleks!!!!
fax:  +61 7 3407 4607
email: AL012@svtstu.seqeb.gov.au




  reply	other threads:[~1996-01-29  5:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-01-29  5:00 File descriptor equivalent of fflush? Anthony Lee
1996-01-29  5:00 ` Anthony Lee [this message]
1996-01-29  5:00 ` Kazimir Kylheku
1996-01-29  5:00 ` ua302aa
1996-01-30  5:00   ` John Hascall
1996-01-30  5:00 ` Curt Smith
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox