/ast/src/lib/libvcodex/ |
H A D | vchdr.h | 60 #ifndef O_BINARY 61 #define O_BINARY _O_BINARY macro
|
/ast/src/lib/libast/sfio/ |
H A D | _sfopen.c | 78 { if ((oflags &= (O_TEXT|O_BINARY|O_APPEND)) != 0 ) 81 ctl = (ctl & ~(O_TEXT|O_BINARY|O_APPEND)) | oflags; 169 oflags |= O_BINARY; 217 if(!(oflags&(O_BINARY|O_TEXT))) 218 oflags |= O_BINARY;
|
H A D | sfhdr.h | 999 #ifndef O_BINARY 1000 #define O_BINARY 000 macro
|
/ast/src/lib/libardir/ |
H A D | ardir.c | 42 if (((ar->fd = open(file, (flags & ARDIR_CREATE) ? (O_CREAT|O_TRUNC|O_RDWR|O_BINARY|O_cloexec) : (flags & ARDIR_UPDATE) ? (O_RDWR|O_BINARY|O_cloexec) : (O_RDONLY|O_BINARY|O_cloexec))) < 0 || fstat(ar->fd, &ar->st) || !S_ISREG(ar->st.st_mode)) && (!meth || !(flags & ARDIR_FORCE)))
|
/ast/src/cmd/std/ |
H A D | pss-procfs.c | 116 if ((fd = open(pss->buf, O_RDONLY|O_BINARY)) < 0) 175 if ((fd = open(pss->buf, O_RDONLY|O_BINARY)) < 0) 303 if ((i = open(pss->buf, O_RDONLY|O_BINARY)) >= 0)
|
/ast/src/cmd/ksh93/edit/ |
H A D | history.c | 104 #ifndef O_BINARY 105 # define O_BINARY 0 macro 106 #endif /* O_BINARY */ 150 O_BINARY|O_WRONLY|O_APPEND|O_CREAT,S_IRUSR|S_IWUSR))>=0 && 266 if((fd=open(cp,O_BINARY|O_APPEND|O_RDWR|O_CREAT,histmode))>=0) 297 fd = open(fname,O_BINARY|O_APPEND|O_CREAT|O_RDWR,S_IRUSR|S_IWUSR); 386 if((fd=sh_open(buff,O_BINARY|O_WRONLY|O_APPEND|O_CREAT,S_IRUSR|S_IWUSR))>=0 && fd < 10) 1199 if((newfd=open(hp->histname,O_BINARY|O_APPEND|O_CREAT|O_RDWR,S_IRUSR|S_IWUSR)) >= 0)
|
/ast/src/lib/libast/features/ |
H A D | fcntl.c | 320 #ifndef O_BINARY 321 printf("#define O_BINARY 0\n");
|
/ast/src/lib/libcmd/ |
H A D | tee.c | 113 register int oflag = O_WRONLY|O_TRUNC|O_CREAT|O_BINARY|O_cloexec;
|
H A D | cp.c | 453 if (S_ISLNK(st.st_mode) && (n = -1) || (n = open(state->path, O_RDWR|O_BINARY|O_cloexec)) >= 0) 593 if (ent->fts_statp->st_size > 0 && (rfd = open(ent->fts_path, O_RDONLY|O_BINARY|O_cloexec)) < 0) 710 state->wflags = O_WRONLY|O_CREAT|O_TRUNC|O_BINARY;
|
/ast/src/cmd/pack/ |
H A D | pack.c | 154 else if(((out=open(outfile,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,PERM(statb.st_mode))) < 0) ||
|
H A D | unpack.c | 165 else if(((out=open(outfile,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,PERM(statb.st_mode))) < 0) ||
|
/ast/src/cmd/cs/ |
H A D | cat.c | 107 if (!s || (ad = csopen(s, 0)) < 0 && (ad = open(s, O_CREAT|O_APPEND|O_WRONLY|O_BINARY, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0)
|
/ast/src/cmd/kshlib/open/ |
H A D | open.c | 471 #ifdef O_BINARY 472 oflag |= O_BINARY;
|
/ast/src/cmd/mailx/ |
H A D | local.c | 139 close(open(state.path.mail, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY|O_cloexec, MAILMODE)); 840 if (!force || close(open(file, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY|O_cloexec, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)))
|
H A D | mailx.h | 106 #ifndef O_BINARY 107 #define O_BINARY 0 macro
|
H A D | lex.c | 93 else if ((fd = open(name, O_WRONLY|O_BINARY|O_cloexec)) < 0)
|
H A D | quit.c | 527 close(open(mbox, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY|O_cloexec, MAILMODE));
|
H A D | vars.c | 513 if (value && *value && close(open(state.var.news, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY|O_cloexec, MAILMODE)))
|
/ast/src/lib/libz/ |
H A D | minigzip.c | 35 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
|
/ast/src/cmd/pax/ |
H A D | file.c | 59 if ((rfd = open(f->st->st_size ? f->path : "/dev/null", O_RDONLY|O_BINARY)) < 0) 64 if ((wfd = open(state.tmp.file, O_CREAT|O_TRUNC|O_WRONLY|O_BINARY, S_IRUSR)) < 0) 69 if ((rfd = open(state.tmp.file, O_RDONLY|O_BINARY)) < 0) 159 else if ((rfd = open(f->st->st_size ? f->path : "/dev/null", O_RDONLY|O_BINARY)) < 0) 644 while ((fd = open(f->name, O_CREAT|O_TRUNC|O_WRONLY|O_BINARY, perm)) < 0) 1395 if ((wfd = open(state.tmp.file, O_CREAT|O_TRUNC|O_WRONLY|O_BINARY, S_IRUSR)) < 0) 1397 if ((rfd = open(state.tmp.file, O_RDONLY|O_BINARY)) < 0)
|
H A D | bio.c | 1116 if ((ap->io->fd = open(ap->name, ap->io->mode|O_BINARY, st.st_mode & (S_IRWXU|S_IRWXG|S_IRWXO))) >= 0) 1138 if ((ap->io->fd = open(s, ap->io->mode|O_BINARY, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) >= 0) 1191 if ((ap->io->fd = open(file, ap->io->mode|O_BINARY, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) >= 0) 1197 if (!*t && (ap->io->fd = open(file, ap->io->mode|O_BINARY, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) >= 0)
|
H A D | delta.c | 322 if ((bp->io->fd = open(bp->name, bp->io->mode|O_BINARY)) < 0 || fstat(bp->io->fd, &st)) 684 if ((wfd = open(tmp, O_CREAT|O_TRUNC|O_WRONLY|O_BINARY, S_IRUSR)) < 0) 1042 if ((dp->fd = open(state.tmp.file, O_CREAT|O_TRUNC|O_WRONLY|O_BINARY, S_IRUSR)) < 0) 1214 else if ((gen->fd = open(state.tmp.file, O_CREAT|O_TRUNC|O_WRONLY|O_BINARY, S_IRUSR)) < 0) 1299 if ((data[op].fd = open(tmp, O_CREAT|O_TRUNC|O_WRONLY|O_BINARY, S_IRUSR)) < 0) 1304 if ((data[op].fd = open(tmp, O_RDONLY|O_BINARY)) < 0) 1395 if ((*gen->pfd = open(state.tmp.file, O_RDONLY|O_BINARY)) < 0)
|
/ast/src/cmd/vczip/ |
H A D | vczip.c | 695 setmode(0, O_BINARY); 696 setmode(1, O_BINARY);
|
/ast/src/cmd/nmake/ |
H A D | misc.c | 45 while ((internal.openfd = open(name, O_RDONLY|O_BINARY|O_cloexec)) < 0)
|
/ast/src/cmd/ss/ |
H A D | ssd.c | 369 if ((n = open(data, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0)) < 0)
|