Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Nov 1998 15:35:16 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        nathan@rtfm.net, sthaug@nethelp.no
Cc:        current@FreeBSD.ORG
Subject:   Re: O_SYNC
Message-ID:  <199811100435.PAA03024@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> NetBSD 1.3.2:
>> fcntl.h:92:#define      O_SYNC          0x0080          /* synchronous writes */
>> fcntl.h:127:#define     FFSYNC          O_SYNC          /* kernel */
>> fcntl.h:129:#define     O_FSYNC         O_SYNC          /* compat */
>
>BSD/OS 3.1 fcntl.h:
>
>#define O_FSYNC		0x0080		/* synchronous writes */
>#define FFSYNC		O_FSYNC		/* kernel */

O_SYNC is apparently a non-BSD thing.

POSIX.1b has optional features O_SYNC, O_DSYNC and O_RSYNC.  O_SYNC syncs
everything related to writes; O_DSYNC syncs written data; O_RSYNC syncs
everything related to reads (mainly inode access times).

Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811100435.PAA03024>