This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add O_FSYNC define to sparc just like other platforms.


On Fri, Feb 17, 2012 at 3:15 PM, David Miller <davem@davemloft.net> wrote:
> From: Christoph Hellwig <hch@lst.de>
> Date: Fri, 17 Feb 2012 20:38:26 +0100
>
>> On Wed, Feb 15, 2012 at 06:14:52PM -0500, David Miller wrote:
>>>
>>> /
>>>
>>> ? ? ?[BZ #11494]
>>> ? ? ?* sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
>>
>> What reason exists to add a non-standard alias for O_SYNC?
>
> Who knows, but since every other target provides it I'd be an
> idiot not to provide something consistent on sparc as well.
>
> FWIW I think it comes from BSD.

Correct, this is a BSD compatibility feature.

e.g.
http://www.gnu.org/software/libc/manual/html_node/Operating-Modes.html
~~~
— Macro: int O_FSYNC

    The bit that enables synchronous writing for the file. If set,
each write call will make sure the data is reliably stored on disk
before returning.

    Synchronous writing is a BSD feature.
~~~

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]