Searched refs:O_CREAT (Results 1 - 25 of 64) sorted by relevance

123

/ast/src/cmd/3d/
H A Dcreat3d.c29 return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
H A Dopen3d.c41 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 Dvcs_3d.h60 if (!(f & O_CREAT) && (f & O_ACCMODE != O_WRONLY) && state.vcs.fd)\
H A Dtouch.c143 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 Dcreat64.c35 return open64(path, O_WRONLY|O_CREAT|O_TRUNC, mode);
H A Dopen.c58 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 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/features/
H A Dfcntl.c233 #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.c109 { 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 Dcosync.c70 if ((td = open(tmp, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, 0)) >= 0)
/ast/src/cmd/ksh93/sh/
H A Dsuid_exec.c381 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 Dio.h39 #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 Difs_func.c73 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 Difs_rsh.c64 if( (fd = open( tmpfile, O_WRONLY|O_CREAT, 0644 )) < 0 ) {
/ast/src/lib/libast/tm/
H A Dtvtouch.c150 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 Ddbm.c112 flags = O_RDWR|O_CREAT;
115 flags = O_RDWR|O_CREAT|O_TRUNC;
/ast/src/lib/libtksh/tcl/
H A DtclIOUtil.c224 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 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/lib/libcmd/
H A Dtee.c113 register int oflag = O_WRONLY|O_TRUNC|O_CREAT|O_BINARY|O_cloexec;
/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/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/cmd/ksh93/edit/
H A Dhistory.c150 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 Ddbm_t.c352 oflags |= O_CREAT|O_TRUNC|O_RDWR;
394 if(zflag && (oflags&O_CREAT))

Completed in 85 milliseconds

123