Searched refs:O_BINARY (Results 1 - 25 of 72) sorted by relevance

123

/external/bison/lib/
H A Dbinary-io.h21 O_BINARY is guaranteed by the gnulib <fcntl.h>. */
35 (must be O_BINARY or O_TEXT) and returns the previous mode. */
36 #if O_BINARY
54 return O_BINARY;
65 # define SET_BINARY(fd) ((void) (!isatty (fd) ? (set_binary_mode (fd, O_BINARY), 0) : 0))
67 # define SET_BINARY(fd) ((void) set_binary_mode (fd, O_BINARY))
H A Dpipe2.c70 if ((flags & ~(O_CLOEXEC | O_NONBLOCK | O_BINARY | O_TEXT)) != 0)
138 # if O_BINARY
139 if (flags & O_BINARY)
141 setmode (fd[1], O_BINARY);
142 setmode (fd[0], O_BINARY);
H A Dfcntl.in.h290 O_BINARY is usually declared in fcntl.h */
291 #if !defined O_BINARY && defined _O_BINARY
293 # define O_BINARY _O_BINARY
298 /* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */
299 # undef O_BINARY
303 #ifndef O_BINARY
304 # define O_BINARY 0
H A Dspawn-pipe.c139 if (pipe2_safer (ifd, O_BINARY | O_CLOEXEC) < 0)
142 if (pipe2_safer (ofd, O_BINARY | O_CLOEXEC) < 0)
H A Dfcntl.c68 || (mode = setmode (oldfd, O_BINARY)) == -1)
/external/nanopb-c/tests/common/
H A Dtest_helpers.h9 #define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
/external/lzma/CPP/Common/
H A DC_FileIO.cpp14 #ifdef O_BINARY
15 flags |= O_BINARY;
/external/protobuf/src/google/protobuf/testing/
H A Dgoogletest.cc59 #ifndef O_BINARY
61 #define O_BINARY _O_BINARY macro
63 #define O_BINARY 0 // If this isn't defined, the platform doesn't need it.
159 O_WRONLY | O_CREAT | O_EXCL | O_BINARY, 0777);
174 O_WRONLY | O_CREAT | O_EXCL | O_BINARY, 0777);
/external/libpcap/tests/
H A Dfiltertest.c64 * On UNIX, that's not necessary. O_BINARY is defined on Windows;
67 #ifndef O_BINARY
68 #define O_BINARY 0 macro
78 fd = open(fname, O_RDONLY|O_BINARY);
H A Dvalgrindtest.c97 * On UNIX, that's not necessary. O_BINARY is defined on Windows;
100 #ifndef O_BINARY
101 #define O_BINARY 0 macro
111 fd = open(fname, O_RDONLY|O_BINARY);
/external/jpeg/
H A Dcdjpeg.c154 setmode(fileno(stdin), O_BINARY); local
172 setmode(fileno(stdout), O_BINARY); local
H A Dwrjpgcom.c492 setmode(fileno(stdin), O_BINARY); local
524 setmode(fileno(stdout), O_BINARY); local
/external/openssh/openbsd-compat/
H A Dbsd-cygwin_util.c51 return (open(filename, flags | O_BINARY, mode));
/external/bison/darwin-lib/
H A Dfcntl.h602 O_BINARY is usually declared in fcntl.h */
603 #if !defined O_BINARY && defined _O_BINARY
605 # define O_BINARY _O_BINARY macro
610 /* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */
611 # undef O_BINARY macro
615 #ifndef O_BINARY
616 # define O_BINARY 0 macro
/external/bison/linux-lib/
H A Dfcntl.h602 O_BINARY is usually declared in fcntl.h */
603 #if !defined O_BINARY && defined _O_BINARY
605 # define O_BINARY _O_BINARY macro
610 /* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */
611 # undef O_BINARY macro
615 #ifndef O_BINARY
616 # define O_BINARY 0 macro
/external/libmtp/examples/
H A Dthumb.c88 if ( (fd = open(path, O_RDONLY|O_BINARY) == -1) ) {
H A Dalbumart.c108 if ( (fd = open(path, O_RDONLY|O_BINARY) == -1) ) {
/external/protobuf/src/google/protobuf/
H A Dmessage_unittest.cc62 #ifndef O_BINARY
64 #define O_BINARY _O_BINARY macro
66 #define O_BINARY 0 // If this isn't defined, the platform doesn't need it.
110 int file = open(filename.c_str(), O_RDONLY | O_BINARY);
123 int file = open(filename.c_str(), O_RDONLY | O_BINARY);
/external/boringssl/src/tool/
H A Ddigest.cc30 #if !defined(O_BINARY)
31 #define O_BINARY 0 macro
84 int fd = open(filename.c_str(), O_RDONLY | O_BINARY);
/external/zlib/src/contrib/puff/
H A Dpufftest.c26 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
/external/libpcap/
H A Dsavefile.c71 * Setting O_BINARY on DOS/Windows is a bit tricky
77 #define SET_BINMODE(f) setmode(f, O_BINARY)
79 #define SET_BINMODE(f) setmode(fileno(f), O_BINARY)
/external/pdfium/core/include/fxcrt/
H A Dfx_stream.h28 #ifndef O_BINARY
29 #define O_BINARY 0 macro
/external/tcpdump/
H A Dutil.c544 * On UNIX, that's not necessary. O_BINARY is defined on Windows;
547 #ifndef O_BINARY
548 #define O_BINARY 0 macro
558 fd = open(fname, O_RDONLY|O_BINARY);
/external/pdfium/core/src/fxcrt/
H A Dfxcrt_posix.cpp16 nFlags = O_BINARY | O_LARGEFILE;
/external/zlib/src/examples/
H A Dzpipe.c23 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)

Completed in 642 milliseconds

123