From owner-freebsd-current  Mon Nov  9 17:02:52 1998
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
Received: (from majordom@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id RAA17651
          for freebsd-current-outgoing; Mon, 9 Nov 1998 17:02:52 -0800 (PST)
          (envelope-from owner-freebsd-current@FreeBSD.ORG)
Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA17644
          for <current@FreeBSD.ORG>; Mon, 9 Nov 1998 17:02:48 -0800 (PST)
          (envelope-from dan@dan.emsphone.com)
Received: (from dan@localhost)
	by dan.emsphone.com (8.9.1/8.9.1) id TAA23189;
	Mon, 9 Nov 1998 19:02:26 -0600 (CST)
Date: Mon, 9 Nov 1998 19:02:25 -0600
From: Dan Nelson <dnelson@emsphone.com>
To: sthaug@nethelp.no, nathan@rtfm.net
Cc: current@FreeBSD.ORG
Subject: Re: O_SYNC
Message-ID: <19981109190225.A22989@emsphone.com>
References: <19981109185638.B8871@rtfm.net> <12424.910656226@verdi.nethelp.no>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.94.3i
In-Reply-To: <12424.910656226@verdi.nethelp.no>; from "sthaug@nethelp.no" on Tue Nov 10 01:03:46 GMT 1998
X-OS: FreeBSD 2.2.7-STABLE
Sender: owner-freebsd-current@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.ORG

In the last episode (Nov 10), sthaug@nethelp.no said:
> > > Yes, however every other OS defines it at "O_SYNC" why are we different?
> > > or, if there is a reason, why isn't there a compatibility #define?
> > > 
> > > can someone check this on netbsd/open bsd/os ? is it bsd or us?
> > 
> > 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 */

It's O_SYNC on Dec OSF/1, SCO Open Server, and SunOS too.

	-Dan Nelson
	dnelson@emsphone.com

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