Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site hcrvx2.UUCP Path: utzoo!hcr!hcrvx2!jimr From: jimr@hcrvx2.UUCP (Jim Robinson) Newsgroups: comp.unix.wizards Subject: Re: BSD to SysV Message-ID: <3013@hcrvx2.UUCP> Date: Tue, 27-Oct-87 11:14:17 EST Article-I.D.: hcrvx2.3013 Posted: Tue Oct 27 11:14:17 1987 Date-Received: Fri, 30-Oct-87 21:39:17 EST References: <9940@brl-adm.ARPA> <31892@sun.uucp> Reply-To: jimr@hcr.UUCP (Jim Robinson) Organization: HCR Corporation, Toronto Lines: 18 Summary: In article <31892@sun.uucp> guy@gorodish.UUCP writes: >> Has anyone figured out how to perform the BSD functions ``fsync()'' >> and ``ftruncate()'' in System V? > >You can get the same general effect as "fsync" in some S5 implementations by >using "fcntl" to turn the O_SYNC flag on for a file descriptor; this flag >causes all writes to that descriptor to be done synchronously. This feature does not seem to be documented for SVR2 (or SVR2V2), however, the supporting kernel code does appear to be there. Is this another instance of AT&T forgetting to document a feature, or am I not looking in the right place, or is there another explanation? PS The documentation I am referring to is the standard AT&T "Programmer Reference Manual" and the "Version 2 Supplement" for VAX 11/780 - 11/750 Processors. J.B. Robinson