[haiku-bugs] Re: [Haiku] #6705: O_BINARY and O_TEXT have no effect and no value, should be removed from <fcntl.h> header
- From: "bonefish" <trac@xxxxxxxxxxxx>
- Date: Tue, 12 Oct 2010 19:16:22 -0000
#6705: O_BINARY and O_TEXT have no effect and no value, should be removed from
<fcntl.h> header
------------------------+---------------------------------------------------
Reporter: scottmc | Owner: scottmc
Type: bug | Status: new
Priority: normal | Milestone: R1
Component: - General | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Has a Patch: 1
Platform: All | Blocking:
------------------------+---------------------------------------------------
Comment (by bonefish):
Replying to [comment:7 scottmc]:
> At least in gnulib lib if O_BINARY isn't defined they define it to be 0
and then create an inline function handle cases where they are trying to
make use of it:
> http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/binary-
io.h;h=5451fd48f4d61be96319d87655a9213b85a7d3b6;hb=HEAD
GNU/Linux (at least OpenSuse) doesn't define `O_BINARY`, not even with
`_GNU_SOURCE` defined, so I've no clue why gnulib would define it (after
all their mission is to make other systems more GNUish). At any rate,
since it's neither in POSIX nor in GNU/Linux, from a porting point of view
it should be totally safe to omit it.
--
Ticket URL: <http://dev.haiku-os.org/ticket/6705#comment:8>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.
Other related posts:
- » [haiku-bugs] [Haiku] #6705: O_BINARY and O_TEXT have no effect and no value, should be removed from <fcntl.h> header- scottmc
- » [haiku-bugs] [Haiku] #6705: O_BINARY and O_TEXT have no effect and no value, should be removed from <fcntl.h> header- scottmc
- » [haiku-bugs] Re: [Haiku] #6705: O_BINARY and O_TEXT have no effect and no value, should be removed from <fcntl.h> header- scottmc
- » [haiku-bugs] Re: [Haiku] #6705: O_BINARY and O_TEXT have no effect and no value, should be removed from <fcntl.h> header- stippi
- » [haiku-bugs] Re: [Haiku] #6705: O_BINARY and O_TEXT have no effect and no value, should be removed from <fcntl.h> header- scottmc
- » [haiku-bugs] Re: [Haiku] #6705: O_BINARY and O_TEXT have no effect and no value, should be removed from <fcntl.h> header- korli
- » [haiku-bugs] Re: [Haiku] #6705: O_BINARY and O_TEXT have no effect and no value, should be removed from <fcntl.h> header- axeld
- » [haiku-bugs] Re: [Haiku] #6705: O_BINARY and O_TEXT have no effect and no value, should be removed from <fcntl.h> header- scottmc
- » [haiku-bugs] Re: [Haiku] #6705: O_BINARY and O_TEXT have no effect and no value, should be removed from <fcntl.h> header - bonefish
- » [haiku-bugs] Re: [Haiku] #6705: O_BINARY and O_TEXT have no effect and no value, should be removed from <fcntl.h> header- korli
- » [haiku-bugs] Re: [Haiku] #6705: O_BINARY and O_TEXT have no effect and no value, should be removed from <fcntl.h> header- scottmc