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

1234

/haiku-fatelf/src/bin/findutils/gnulib/lib/
H A Dbinary-io.h21 O_BINARY is usually declared in <fcntl.h>. */
28 #if !defined O_BINARY && defined _O_BINARY
30 # define O_BINARY _O_BINARY macro
34 /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
35 # undef O_BINARY macro
38 #if O_BINARY
52 # define SET_BINARY(fd) (!isatty (fd) ? (setmode (fd, O_BINARY), 0) : 0)
54 # define SET_BINARY(fd) setmode (fd, O_BINARY)
58 # undef O_BINARY macro
59 # define O_BINARY macro
[all...]
H A Dfcntl.h101 O_BINARY is usually declared in fcntl.h */
102 #if !defined O_BINARY && defined _O_BINARY
104 # define O_BINARY _O_BINARY macro
109 /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
110 # undef O_BINARY macro
114 #ifndef O_BINARY
115 # define O_BINARY 0 macro
H A Dfcntl.in.h100 O_BINARY is usually declared in fcntl.h */
101 #if !defined O_BINARY && defined _O_BINARY
103 # define O_BINARY _O_BINARY macro
108 /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */
109 # undef O_BINARY macro
113 #ifndef O_BINARY
114 # define O_BINARY 0 macro
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dcompat.h63 #ifndef O_BINARY
64 #define O_BINARY 0 /* unix is binary by default */ macro
/haiku-fatelf/src/bin/diffutils/lib/
H A Dsetmode.c58 return setmode (fd, mode ? O_BINARY : O_TEXT) != O_TEXT;
/haiku-fatelf/src/libs/expat/xmlwf/
H A Dreadfilemap.c25 #ifndef O_BINARY
27 #define O_BINARY _O_BINARY macro
29 #define O_BINARY 0 macro
46 fd = open(name, O_RDONLY|O_BINARY);
H A Dxmlfile.c30 #ifndef O_BINARY
32 #define O_BINARY _O_BINARY macro
34 #define O_BINARY 0 macro
149 fd = topen(filename, O_BINARY|O_RDONLY);
/haiku-fatelf/src/bin/coreutils/lib/
H A Dfcntl.in.h200 O_BINARY is usually declared in fcntl.h */
201 #if !defined O_BINARY && defined _O_BINARY
203 # define O_BINARY _O_BINARY
208 /* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */
209 # undef O_BINARY
213 #ifndef O_BINARY
214 # define O_BINARY 0
H A Dfcntl.h239 O_BINARY is usually declared in fcntl.h */
240 #if !defined O_BINARY && defined _O_BINARY
242 # define O_BINARY _O_BINARY macro
247 /* BeOS 5 and Haiku have O_BINARY and O_TEXT, but they have no effect. */
248 # undef O_BINARY macro
252 #ifndef O_BINARY
253 # define O_BINARY 0 macro
H A Dw32sock.h22 /* Get O_RDWR and O_BINARY. */
29 #define SOCKET_TO_FD(fh) (_open_osfhandle ((long) (fh), O_RDWR | O_BINARY))
/haiku-fatelf/src/bin/bash/lib/readline/
H A Dhistfile.c79 on win 95/98/nt), we want to open files with O_BINARY mode so that there
81 mess around with O_BINARY at all, so we ensure that it's defined to 0. */
83 # ifndef O_BINARY
84 # define O_BINARY 0 macro
87 # undef O_BINARY macro
88 # define O_BINARY 0 macro
182 file = open (input, O_RDONLY|O_BINARY, 0666);
317 file = open (filename, O_RDONLY|O_BINARY, 0666);
400 if (bp > buffer && ((file = open (filename, O_WRONLY|O_TRUNC|O_BINARY, 0600)) != -1))
428 mode = overwrite ? O_RDWR|O_CREAT|O_TRUNC|O_BINARY
[all...]
/haiku-fatelf/src/bin/gdb/readline/
H A Dhistfile.c73 on win 95/98/nt), we want to open files with O_BINARY mode so that there
75 mess around with O_BINARY at all, so we ensure that it's defined to 0. */
77 # ifndef O_BINARY
78 # define O_BINARY 0 macro
81 # undef O_BINARY macro
82 # define O_BINARY 0 macro
162 file = open (input, O_RDONLY|O_BINARY, 0666);
269 file = open (filename, O_RDONLY|O_BINARY, 0666);
346 if (bp > buffer && ((file = open (filename, O_WRONLY|O_TRUNC|O_BINARY, 0600)) != -1))
380 mode = overwrite ? O_RDWR|O_CREAT|O_TRUNC|O_BINARY
[all...]
/haiku-fatelf/src/add-ons/media/plugins/ape_reader/MAClib/
H A DStdLibFileIO.cpp31 #ifndef O_BINARY
33 # define O_BINARY _O_BINARY macro
35 # define O_BINARY 0 macro
62 // additional "b" or a O_BINARY within the (f)open function to get a
78 # define SETBINARY_IN(__fp) (setmode ( FILENO ((__fp)), O_BINARY ), (__fp))
79 # define SETBINARY_OUT(__fp) (setmode ( FILENO ((__fp)), O_BINARY ), (__fp))
87 # define SETBINARY_IN(__fp) (setmode ( FILENO ((__fp)), O_BINARY ), (__fp))
88 # define SETBINARY_OUT(__fp) (setmode ( FILENO ((__fp)), O_BINARY ), (__fp))
/haiku-fatelf/src/bin/coreutils/src/
H A Dsum.c100 if (O_BINARY && ! isatty (STDIN_FILENO))
105 fp = fopen (file, (O_BINARY ? "rb" : "r"));
168 if (O_BINARY && ! isatty (STDIN_FILENO))
173 fd = open (file, O_RDONLY | O_BINARY);
H A Dtee.c144 (O_BINARY
155 if (O_BINARY && ! isatty (STDIN_FILENO))
157 if (O_BINARY && ! isatty (STDOUT_FILENO))
H A Dmd5sum.c162 if (O_BINARY)
173 if (O_BINARY)
391 if (O_BINARY && *binary)
401 fp = fopen (filename, (O_BINARY && *binary ? "rb" : "r"));
688 if (!O_BINARY && binary < 0)
H A Dcat.c662 file_open_mode |= O_BINARY;
663 if (O_BINARY && ! isatty (STDOUT_FILENO))
683 if ((file_open_mode & O_BINARY) && ! isatty (STDIN_FILENO))
/haiku-fatelf/src/libs/ncurses/ncurses/tinfo/
H A Dsetbuf.c114 setmode(ofp, O_BINARY);
H A Dlib_raw.c90 _nc_setmode(O_BINARY);
122 _nc_setmode(O_BINARY);
/haiku-fatelf/src/bin/gzip/
H A Dtailor.h61 # define SET_BINARY_MODE(fd) setmode(fd, O_BINARY)
84 # define SET_BINARY_MODE(fd) setmode(fd, O_BINARY)
120 # define SET_BINARY_MODE(fd) setmode(fd, O_BINARY)
191 # undef O_BINARY /* disable useless --ascii option */ macro
/haiku-fatelf/src/libs/tiff/
H A Dtif_unix.c164 #ifdef O_BINARY
165 m |= O_BINARY;
203 #ifdef O_BINARY
204 m |= O_BINARY;
/haiku-fatelf/src/bin/gdb/gdb/
H A Dexec.c44 #ifndef O_BINARY
45 #define O_BINARY 0 macro
194 write_files ? O_RDWR | O_BINARY : O_RDONLY | O_BINARY, 0,
202 write_files ? O_RDWR | O_BINARY : O_RDONLY | O_BINARY, 0,
H A Dcorelow.c49 #ifndef O_BINARY
50 #define O_BINARY 0 macro
307 flags = O_BINARY | O_LARGEFILE;
H A Dinflow.c484 #if defined (O_BINARY)
485 if (flags & O_BINARY)
486 printf_filtered (" | O_BINARY");
487 flags &= ~O_BINARY;
/haiku-fatelf/src/libs/stdc++/legacy/
H A Dfilebuf.cc101 #ifdef O_BINARY
103 posix_mode |= O_BINARY;

Completed in 495 milliseconds

1234