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

12

/ast/src/lib/libvcodex/
H A Dvchdr.h60 #ifndef O_BINARY
61 #define O_BINARY _O_BINARY macro
/ast/src/lib/libast/sfio/
H A D_sfopen.c78 { 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 Dsfhdr.h999 #ifndef O_BINARY
1000 #define O_BINARY 000 macro
/ast/src/lib/libardir/
H A Dardir.c42 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 Dpss-procfs.c116 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 Dhistory.c104 #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 Dfcntl.c320 #ifndef O_BINARY
321 printf("#define O_BINARY 0\n");
/ast/src/lib/libcmd/
H A Dtee.c113 register int oflag = O_WRONLY|O_TRUNC|O_CREAT|O_BINARY|O_cloexec;
H A Dcp.c453 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 Dpack.c154 else if(((out=open(outfile,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,PERM(statb.st_mode))) < 0) ||
H A Dunpack.c165 else if(((out=open(outfile,O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,PERM(statb.st_mode))) < 0) ||
/ast/src/cmd/cs/
H A Dcat.c107 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 Dopen.c471 #ifdef O_BINARY
472 oflag |= O_BINARY;
/ast/src/cmd/mailx/
H A Dlocal.c139 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 Dmailx.h106 #ifndef O_BINARY
107 #define O_BINARY 0 macro
H A Dlex.c93 else if ((fd = open(name, O_WRONLY|O_BINARY|O_cloexec)) < 0)
H A Dquit.c527 close(open(mbox, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY|O_cloexec, MAILMODE));
H A Dvars.c513 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 Dminigzip.c35 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
/ast/src/cmd/pax/
H A Dfile.c59 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 Dbio.c1116 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 Ddelta.c322 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 Dvczip.c695 setmode(0, O_BINARY);
696 setmode(1, O_BINARY);
/ast/src/cmd/nmake/
H A Dmisc.c45 while ((internal.openfd = open(name, O_RDONLY|O_BINARY|O_cloexec)) < 0)
/ast/src/cmd/ss/
H A Dssd.c369 if ((n = open(data, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0)) < 0)

Completed in 62 milliseconds

12