Searched defs:oflag (Results 1 - 6 of 6) sorted by relevance
/ast/src/lib/libcmd/ |
H A D | tee.c | 113 register int oflag = O_WRONLY|O_TRUNC|O_CREAT|O_BINARY|O_cloexec; local 134 oflag &= ~O_TRUNC; 135 oflag |= O_APPEND; 180 while ((*hp = open(cp, oflag, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0 && errno == EINTR)
|
/ast/src/cmd/3d/ |
H A D | open3d.c | 134 open3d(const char* path, int oflag, ...) argument 148 va_start(ap, oflag); 149 mode = (oflag & O_CREAT) ? va_arg(ap, int) : 0; 152 if (!fscall(NiL, MSG_open, 0, path, oflag, mode, 0)) 161 if ((r = OPEN((!path || *path) ? path : state.dot, oflag, mode)) < 0 || !state.call.monitor || state.in_2d == 1 || FSTAT(r, &st)) 167 if (!(sp = pathreal(path, (oflag & O_CREAT) ? P_NOOPAQUE : 0, &st))) 169 if (oflag & O_CREAT) 200 r = OPEN(path, oflag, mode); 208 VCS_OPEN(path, oflag, mode, &state.path.st); 210 if ((oflag 330 fs3d_open(const char* path, int oflag, mode_t mode) argument 344 open643d(const char* path, int oflag, ...) argument [all...] |
H A D | fs.c | 93 fscall(mp, MSG_open, fd, buf, fp->oflag, 0, 0); 286 int oflag; local 293 oflag = va_arg(ap, int); 302 if ((fd = OPEN(sp, oflag, mode)) >= 0) 319 oflag &= O_ACCMODE; 320 if (n == O_RDONLY && oflag == O_WRONLY || n == O_WRONLY && oflag == O_RDONLY) 357 else if ((fd = fs3d_open(sp, oflag, mode)) == -1)
|
H A D | 3d.h | 220 unsigned char oflag; member in struct:__anon2
|
/ast/src/cmd/ksh93/sh/ |
H A D | bash.c | 196 int setflag=0, quietflag=0, oflag=0; local 221 oflag=1; 258 ||(oflag&&(n&SH_BASHOPT)))
|
/ast/src/cmd/kshlib/open/ |
H A D | open.c | 456 register int n,oflag=0; local 472 oflag |= O_BINARY; 477 oflag |= O_TEXT; 481 oflag |= O_EXCL; 484 oflag |= O_CREAT; 487 oflag |= O_APPEND; 512 oflag |= O_RDWR; 514 oflag |= O_RDONLY; 517 oflag |= O_WRONLY; 518 fd = open(argv[1],oflag,mod [all...] |
Completed in 22 milliseconds