From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit 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 X-Google-Thread: 1014db,a8c6b03ff0f3bde6 X-Google-Attributes: gid1014db,public From: curts@compgen.com (Curt Smith) Subject: Re: File descriptor equivalent of fflush? Date: 1996/01/30 Message-ID: <4el4vv$phb@nntp.atlanta.com>#1/1 X-Deja-AN: 137336174 references: followup-to: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix organization: Internet Atlanta newsgroups: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix Anthony Lee (al012@svtstu.seqeb.gov.au) wrote: : Dear all, : : I am trying to find an equivalent of fflush for file descriptors : in ULTRIX and OSF. To my knowledge, the only mechanism available to a task that opened an fd without O_SYNC, to assure the last bunch of write()s are on disk is: fsync(fd). See man 2 fsync. Or sync() if all writes to a file system are to be written. Curt Smith curts@compgen.com