/ast/src/cmd/3d/ |
H A D | creat3d.c | 29 return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
|
H A D | open3d.c | 41 if (!state.vmap.size || !(flags & O_CREAT)) 149 mode = (oflag & O_CREAT) ? va_arg(ap, int) : 0; 167 if (!(sp = pathreal(path, (oflag & O_CREAT) ? P_NOOPAQUE : 0, &st))) 169 if (oflag & O_CREAT) 210 if ((oflag & O_CREAT) && (!sp || level || (oflag & O_EXCL)) || (sp || level) && ((oflag & O_TRUNC) || (oflag & O_ACCMODE) != O_RDONLY)) 226 if (!(sp = pathreal(path, (oflag & O_CREAT) ? (P_PATHONLY|P_SAFE) : 0, NiL))) 240 r = vcreate(sp, ((oflag & O_ACCMODE) == O_RDWR) ? (oflag|O_CREAT) : oflag, mode); 241 if (r < 0 && errno == ENOENT && ((oflag & (O_CREAT|O_TRUNC)) || (oflag & O_ACCMODE) != O_RDONLY)) 246 r = vcreate(sp, O_CREAT|oflag, mode); 260 else r = vcreate(sp, O_CREAT|ofla [all...] |
H A D | vcs_3d.h | 60 if (!(f & O_CREAT) && (f & O_ACCMODE != O_WRONLY) && state.vcs.fd)\
|
H A D | touch.c | 143 if ((fd = open(file, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, mode)) < 0) return(-1); 183 if ((fd = open(file, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, mode)) >= 0)
|
/ast/src/lib/libast/comp/ |
H A D | creat64.c | 35 return open64(path, O_WRONLY|O_CREAT|O_TRUNC, mode);
|
H A D | open.c | 58 mode = (op & O_CREAT) ? va_arg(ap, int) : S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH; 62 if (!(op & O_CREAT)) 93 op &= ~(O_CREAT|O_TRUNC); 99 if (op & O_CREAT)
|
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/features/ |
H A D | fcntl.c | 233 #ifndef O_CREAT 236 if (O_CREAT > o_local) o_local = O_CREAT; 287 #ifndef O_CREAT 288 printf("#define O_CREAT 0%o\n", o_local <<= 1);
|
/ast/src/lib/libast/sfio/ |
H A D | _sfopen.c | 109 { if((oflags&(O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) ) 121 else if(oflags&O_CREAT) 166 oflags |= O_WRONLY | O_APPEND | O_CREAT; 195 oflags |= O_WRONLY | O_CREAT; 214 if(!(oflags&O_CREAT) )
|
/ast/src/lib/libcoshell/ |
H A D | cosync.c | 70 if ((td = open(tmp, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, 0)) >= 0)
|
/ast/src/cmd/ksh93/sh/ |
H A D | suid_exec.c | 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) 429 if((n = open(tmpname,O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, mode)) < 0) 432 if((n = open(tmpname,O_WRONLY|O_CREAT|O_TRUNC, mode)) < 0)
|
/ast/src/cmd/ie/ |
H A D | io.h | 39 #ifndef O_CREAT 43 #endif /* O_CREAT */ 168 #ifndef O_CREAT 169 # define O_CREAT 0400 macro 172 #endif /* O_CREAT */
|
/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 ) 223 if( (fd = open( pDst, O_WRONLY|O_CREAT, 0644 )) > 0 ) { 356 fd = open( fname, O_WRONLY|O_CREAT|O_EXCL, 0600 );
|
H A D | ifs_rsh.c | 64 if( (fd = open( tmpfile, O_WRONLY|O_CREAT, 0644 )) < 0 ) {
|
/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) 274 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, mode)) < 0)
|
/ast/src/cmd/kshlib/dbm/ |
H A D | dbm.c | 112 flags = O_RDWR|O_CREAT; 115 flags = O_RDWR|O_CREAT|O_TRUNC;
|
/ast/src/lib/libtksh/tcl/ |
H A D | tclIOUtil.c | 224 mode = O_WRONLY|O_CREAT|O_TRUNC; 227 mode = O_WRONLY|O_CREAT; 253 * such as O_CREAT. 286 mode |= O_CREAT; 895 flags = O_WRONLY | O_CREAT | O_TRUNC; 900 flags = O_WRONLY | O_CREAT; 938 flags = O_WRONLY | O_CREAT | O_TRUNC; 942 flags = O_WRONLY | O_CREAT;
|
/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/lib/libcmd/ |
H A D | tee.c | 113 register int oflag = O_WRONLY|O_TRUNC|O_CREAT|O_BINARY|O_cloexec;
|
/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/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/cmd/ksh93/edit/ |
H A D | history.c | 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/cmd/kshlib/dbm_t/ |
H A D | dbm_t.c | 352 oflags |= O_CREAT|O_TRUNC|O_RDWR; 394 if(zflag && (oflags&O_CREAT))
|