From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1014db,a8c6b03ff0f3bde6 X-Google-Attributes: gid1014db,public X-Google-Thread: f678f,a8c6b03ff0f3bde6 X-Google-Attributes: gidf678f,public X-Google-Thread: fee84,a8c6b03ff0f3bde6 X-Google-Attributes: gidfee84,public X-Google-Thread: 10b612,a8c6b03ff0f3bde6 X-Google-Attributes: gid10b612,public From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku) Subject: Re: File descriptor equivalent of fflush? Date: 1996/01/29 Message-ID: <4ejceeINN5v3@keats.ugrad.cs.ubc.ca>#1/1 X-Deja-AN: 137191513 references: organization: Computer Science, University of B.C., Vancouver, B.C., Canada newsgroups: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix In article , Anthony Lee wrote: >Dear all, > >I am trying to find an equivalent of fflush for file descriptors >in ULTRIX and OSF. All you can do is open the file with the O_SYNC flag. If the underlying file system supports it, the write() calls will exit only when the blocks affected by write() have been committed to disk. You can also call fsync() on the file descriptor, which will cause all the unwritten cache blocks belonging to that file to be queued for writing, though I'm not sure whether fsync() will wait for the writing to take place. >-- >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 > --