/ast/src/cmd/kshlib/open/ |
H A D | Makefile | 5 open plugin=ksh :LIBRARY: open.c -lshell
|
/ast/src/cmd/3d/ |
H A D | creat3d.c | 29 return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
|
H A D | touch.c | 143 if ((fd = open(file, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, mode)) < 0) return(-1); 162 if (atime == now && mtime == now && (fd = open(file, O_RDWR|O_cloexec)) >= 0) 164 if ((fd = open(file, O_RDWR|O_cloexec)) >= 0) 183 if ((fd = open(file, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, mode)) >= 0)
|
H A D | dup3d.c | 44 if (nfd > state.open) 45 state.open = nfd;
|
/ast/src/lib/libast/comp/ |
H A D | open.c | 25 * -last 3 arg open 30 #if !defined(open) || !defined(_ast_O_LOCAL) 32 NoN(open) 36 #undef open 38 extern int open(const char*, int, ...); 97 else if ((fd = open(path, op & (_ast_O_LOCAL-1), mode)) < 0) 115 else fd = open(path, op, mode);
|
H A D | setsid.c | 63 if ((fd = open("/dev/tty", O_RDONLY|O_cloexec)) >= 0)
|
H A D | readlink.c | 48 if ((fd = open(path, O_RDONLY|O_cloexec)) < 0)
|
H A D | symlink.c | 48 if ((fd = open(b, O_CREAT|O_TRUNC|O_WRONLY|O_cloexec, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)) < 0)
|
/ast/src/lib/libast/preroot/ |
H A D | realopen.c | 25 * disable preroot and open path relative to the real root 40 return(open(buf, mode, perm));
|
/ast/src/lib/libcoshell/ |
H A D | cosync.c | 70 if ((td = open(tmp, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, 0)) >= 0) 75 if ((td = open(file, mode|O_cloexec)) < 0) 90 if (!file || mode < 0 || (fd = open(file, O_RDONLY|O_cloexec)) < 0) return(-1);
|
/ast/src/lib/libast/vec/ |
H A D | vecfile.c | 48 if ((fd = open(file, O_RDONLY|O_cloexec)) >= 0)
|
/ast/src/lib/libjcl/ |
H A D | Makefile | 9 jcl :LIBRARY: open.c parse.c run.c sym.c path.c find.c lib.c uniq.c \
|
/ast/src/lib/libvcodex/Vcmisc/ |
H A D | vctranspose.c | 32 { ssize_t open; /* next open record */ member in struct:_transflip_s 86 { fl[r].open = r; /* all slot starting out open */ 94 while(fl[r = 0].open < nrows) 96 { if((p = fl[r].open) > r) /* a done record */ 97 { fl[r].open = p < nrows ? fl[p].open : nrows; 103 fl[r].open = r+1; 139 fl[r].open [all...] |
/ast/src/lib/libast/misc/ |
H A D | systrace.c | 59 ov[0] = PROC_FD_DUP(open("/dev/null", O_WRONLY), 2, PROC_FD_PARENT|PROC_FD_CHILD);
|
H A D | setenviron.c | 84 close(open(".", O_RDONLY|O_cloexec));
|
/ast/src/lib/libast/dir/ |
H A D | opendir.c | 26 * open|close directory stream 55 if ((fd = open(path, O_RDONLY|O_cloexec)) < 0) return(0);
|
/ast/src/cmd/cs/vcs_src/ |
H A D | ifs_func.c | 73 if( (FileNum = open( fname, O_RDWR|O_CREAT|O_TRUNC, 0600 )) < 0 ) 221 if( (fs = open( pSrc, O_RDONLY, 0 )) < 0 ) 223 if( (fd = open( pDst, O_WRONLY|O_CREAT, 0644 )) > 0 ) { 305 flog = open( logfile, O_WRONLY|O_APPEND, 0600 ); 356 fd = open( fname, O_WRONLY|O_CREAT|O_EXCL, 0600 );
|
/ast/src/cmd/ksh93/sh/ |
H A D | suid_exec.c | 34 * The basic idea is to open the script as standard input, set the effective 38 * may pass file descriptor FDIN as an open file with mode SPECIAL if 41 * open file. On systems without the setreuid() call, e[ug]id is set 83 static const char badopen[] = "cannot open"; 156 n = open(p,0); 381 if((n = open(tmpname, O_WRONLY | O_CREAT | O_EXCL, SPECIAL)) < 0 || 384 if((n = open(tmpname, O_WRONLY | O_CREAT ,SPECIAL)) < 0 || unlink(tmpname) < 0) 422 if((m = open(THISPROG, O_RDONLY)) < 0) 429 if((n = open(tmpname,O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, mode)) < 0) 432 if((n = open(tmpnam [all...] |
/ast/src/lib/libcs/ |
H A D | csdaemon.c | 99 if ((fds & ((1<<0)|(1<<1)|(1<<2))) != ((1<<0)|(1<<1)|(1<<2)) && (fd = open("/dev/null", O_RDWR)) >= 0)
|
/ast/src/cmd/ncsl/ |
H A D | ncsl.c | 231 error(2, "%s: cannot open for reading", s);
|
/ast/src/lib/libast/aso/ |
H A D | aso-fcntl.c | 120 if (fd >= 0 || (fd = open(path, O_RDWR|O_cloexec)) < 0 && (fd = open(path, O_CREAT|O_RDWR|O_cloexec, perm)) >= 0)
|
/ast/src/lib/libast/port/ |
H A D | astwinsize.c | 132 if ((fd = open("/dev/tty", O_RDONLY|O_cloexec)) >= 0)
|
/ast/src/cmd/tests/aso/ |
H A D | tproc.c | 70 if((zerof = open("/dev/zero", O_RDWR)) < 0) 71 terror("Can't open /dev/zero");
|
/ast/src/lib/libast/tm/ |
H A D | tvtouch.c | 150 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, mode)) < 0) 254 if ((fd = open(path, O_RDWR|O_cloexec)) >= 0) 274 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, mode)) < 0)
|
/ast/src/cmd/std/ |
H A D | pss-procfs.c | 116 if ((fd = open(pss->buf, O_RDONLY|O_BINARY)) < 0) 128 (*pss->disc->errorf)(pss, pss->disc, ERROR_SYSTEM|1, "%s: cannot open", _PS_dir); 175 if ((fd = open(pss->buf, O_RDONLY|O_BINARY)) < 0) 303 if ((i = open(pss->buf, O_RDONLY|O_BINARY)) >= 0)
|