Searched refs:O_BINARY (Results 26 - 50 of 87) sorted by relevance

1234

/haiku-fatelf/src/bin/network/tcpdump/
H A Dutil.c467 * On UNIX, that's not necessary. O_BINARY is defined on Windows;
470 #ifndef O_BINARY
471 #define O_BINARY 0 macro
481 fd = open(fname, O_RDONLY|O_BINARY);
/haiku-fatelf/src/bin/coreutils/src/
H A Dtac.c463 tmp = fdopen (fd, (O_BINARY ? "w+b" : "w+"));
536 if (O_BINARY && ! isatty (STDIN_FILENO))
541 fd = open (filename, O_RDONLY | O_BINARY);
652 if (O_BINARY && ! isatty (STDOUT_FILENO))
H A Dcksum.c196 if (O_BINARY && ! isatty (STDIN_FILENO))
201 fp = fopen (file, (O_BINARY ? "rb" : "r"));
H A Dsplit.c208 O_WRONLY | O_CREAT | O_TRUNC | O_BINARY,
544 if (O_BINARY && ! isatty (STDIN_FILENO))
H A Dhead.c841 if (O_BINARY && ! isatty (STDIN_FILENO))
846 fd = open (filename, O_RDONLY | O_BINARY);
1054 if (O_BINARY && ! isatty (STDOUT_FILENO))
H A Dwc.c494 if (O_BINARY && ! isatty (STDIN_FILENO))
500 int fd = open (file, O_RDONLY | O_BINARY);
/haiku-fatelf/src/add-ons/translators/jpeg2000/libjasper/jasper/
H A Djas_stream.h142 /* On most UNIX systems, we probably need to define O_BINARY ourselves. */
143 #ifndef O_BINARY
144 #define O_BINARY 0 macro
/haiku-fatelf/src/bin/gdb/gdb/
H A Dremote-rdp.c795 #ifndef O_BINARY macro
796 #define O_BINARY 0
802 O_RDONLY + O_BINARY, /* "rb" */
804 O_RDWR + O_BINARY, /* "r+b" */
806 O_WRONLY + O_BINARY + O_CREAT + O_TRUNC, /* "wb" */
808 O_RDWR + O_BINARY + O_CREAT + O_TRUNC, /* "w+b" */
810 O_WRONLY + O_BINARY + O_APPEND + O_CREAT, /* "ab" */
812 O_RDWR + O_BINARY + O_APPEND + O_CREAT /* "a+b" */
H A Dpa64solib.c59 #ifndef O_BINARY
60 #define O_BINARY 0 macro
161 O_RDONLY | O_BINARY, 0, &absolute_name);
H A Dsource.c49 #ifndef O_BINARY
50 #define O_BINARY 0 macro
59 #define OPEN_MODE (O_RDONLY | O_BINARY)
680 mode |= O_BINARY;
/haiku-fatelf/src/bin/gzip/
H A Dgzip.c143 #ifndef O_BINARY
144 # define O_BINARY 0 /* creation mode for open() */ macro
312 #if O_BINARY
329 #if O_BINARY
561 #if O_BINARY
764 ifd = OPEN(ifname, ascii && !decompress ? O_RDONLY : O_RDONLY | O_BINARY,
866 int flags = O_WRONLY | O_CREAT | O_EXCL | O_BINARY;
869 flags &= ~O_BINARY; /* force ascii text mode */
/haiku-fatelf/src/bin/patch/
H A Dcommon.h303 #ifndef O_BINARY
304 #define O_BINARY _O_BINARY macro
317 XTERN int binary_transput; /* O_BINARY if binary i/o is desired */
/haiku-fatelf/src/bin/rcs/
H A Dconf.h76 #if defined(O_BINARY) && !(defined(__BEOS__) || defined(__HAIKU__))
84 # define OPEN_O_BINARY O_BINARY
H A Dconf.heg76 #if defined (O_BINARY) && !(defined(__BEOS__) || defined(__HAIKU__))
84 # define OPEN_O_BINARY O_BINARY
/haiku-fatelf/src/bin/coreutils/lib/
H A Dfcntl.c65 || (mode = setmode (oldfd, O_BINARY)) == -1)
/haiku-fatelf/src/bin/gdb/libiberty/
H A Dpex-win32.c170 if (_pipe (pdes, 256, O_BINARY) < 0)
/haiku-fatelf/src/bin/gdb/bfd/
H A Dcoff-stgo32.c316 #ifdef O_BINARY
317 f = open (stub, O_RDONLY | O_BINARY);
/haiku-fatelf/src/bin/less/
H A Ddefines.ds383 #define O_BINARY _O_BINARY
H A Dless.h233 #define OPEN_READ (O_RDONLY|O_BINARY)
263 #define SET_BINARY(f) setmode(f, O_BINARY)
/haiku-fatelf/src/bin/bash/lib/intl/
H A Dloadmsgcat.c479 O_BINARY is usually declared in <fcntl.h>. */
480 #if !defined O_BINARY && defined _O_BINARY
482 # define O_BINARY _O_BINARY macro
486 /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
487 # undef O_BINARY macro
491 #ifndef O_BINARY
492 # define O_BINARY 0 macro
939 fd = open (domain_file->filename, O_RDONLY | O_BINARY);
/haiku-fatelf/src/bin/gawk/intl/
H A Dloadmsgcat.c477 O_BINARY is usually declared in <fcntl.h>. */
478 #if !defined O_BINARY && defined _O_BINARY
480 # define O_BINARY _O_BINARY macro
484 /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
485 # undef O_BINARY macro
489 #ifndef O_BINARY
490 # define O_BINARY 0 macro
937 fd = open (domain_file->filename, O_RDONLY | O_BINARY);
/haiku-fatelf/src/bin/gawk/
H A Dmain.c34 #ifndef O_BINARY
509 #ifdef O_BINARY
511 if (os_setbinmode(fileno(stdin), O_BINARY) == -1)
514 if (os_setbinmode(fileno(stdout), O_BINARY) == -1)
516 if (os_setbinmode(fileno(stderr), O_BINARY) == -1)
/haiku-fatelf/src/bin/unzip/
H A Dfunzip.c370 setmode(0, O_BINARY); /* some buggy C libraries require BOTH setmode() */
386 setmode(1, O_BINARY);
/haiku-fatelf/src/libs/zlib/
H A Dgzlib.c164 #ifdef O_BINARY
165 O_BINARY |
/haiku-fatelf/src/add-ons/translators/jpeg2000/libjasper/
H A Djas_stream.c312 openflags |= O_BINARY;
368 openflags |= O_BINARY;
410 if ((*obj = open(filename, O_CREAT | O_EXCL | O_RDWR | O_TRUNC | O_BINARY,
459 setmode(fd, O_BINARY);

Completed in 141 milliseconds

1234