[haiku-bugs] Re: [Haiku] #6705: O_BINARY and O_TEXT have no effect and no value, should be removed from <fcntl.h> header
- From: "scottmc" <trac@xxxxxxxxxxxx>
- Date: Tue, 12 Oct 2010 18:34:39 -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 scottmc):
Replying to [comment:5 korli]:
> What annoys me is: O_BINARY should be the default anyway, so why the
need for removing it? O_BINARY could be defined to zero.
>
> I would have expected O_TEXT use to be problematic.
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
--
Ticket URL: <http://dev.haiku-os.org/ticket/6705#comment:7>
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