Searched refs:open (Results 1 - 25 of 122) sorted by relevance

12345

/ast/src/cmd/kshlib/open/
H A DMakefile5 open plugin=ksh :LIBRARY: open.c -lshell
/ast/src/cmd/3d/
H A Dcreat3d.c29 return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
H A Dtouch.c143 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 Ddup3d.c44 if (nfd > state.open)
45 state.open = nfd;
/ast/src/lib/libast/comp/
H A Dopen.c25 * -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 Dsetsid.c63 if ((fd = open("/dev/tty", O_RDONLY|O_cloexec)) >= 0)
H A Dreadlink.c48 if ((fd = open(path, O_RDONLY|O_cloexec)) < 0)
H A Dsymlink.c48 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 Drealopen.c25 * disable preroot and open path relative to the real root
40 return(open(buf, mode, perm));
/ast/src/lib/libcoshell/
H A Dcosync.c70 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 Dvecfile.c48 if ((fd = open(file, O_RDONLY|O_cloexec)) >= 0)
/ast/src/lib/libjcl/
H A DMakefile9 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 Dvctranspose.c32 { 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 Dsystrace.c59 ov[0] = PROC_FD_DUP(open("/dev/null", O_WRONLY), 2, PROC_FD_PARENT|PROC_FD_CHILD);
H A Dsetenviron.c84 close(open(".", O_RDONLY|O_cloexec));
/ast/src/lib/libast/dir/
H A Dopendir.c26 * open|close directory stream
55 if ((fd = open(path, O_RDONLY|O_cloexec)) < 0) return(0);
/ast/src/cmd/cs/vcs_src/
H A Difs_func.c73 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 Dsuid_exec.c34 * 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 Dcsdaemon.c99 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 Dncsl.c231 error(2, "%s: cannot open for reading", s);
/ast/src/lib/libast/aso/
H A Daso-fcntl.c120 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 Dastwinsize.c132 if ((fd = open("/dev/tty", O_RDONLY|O_cloexec)) >= 0)
/ast/src/cmd/tests/aso/
H A Dtproc.c70 if((zerof = open("/dev/zero", O_RDWR)) < 0)
71 terror("Can't open /dev/zero");
/ast/src/lib/libast/tm/
H A Dtvtouch.c150 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 Dpss-procfs.c116 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)

Completed in 22 milliseconds

12345