Searched refs:O_TRUNC (Results 1 - 25 of 46) sorted by relevance

12

/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);
183 if ((fd = open(file, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, mode)) >= 0)
H A Dopen3d.c210 if ((oflag & O_CREAT) && (!sp || level || (oflag & O_EXCL)) || (sp || level) && ((oflag & O_TRUNC) || (oflag & O_ACCMODE) != O_RDONLY))
221 if (!(oflag & O_TRUNC) && (fd = OPEN(sp, O_RDONLY, 0)) < 0)
241 if (r < 0 && errno == ENOENT && ((oflag & (O_CREAT|O_TRUNC)) || (oflag & O_ACCMODE) != O_RDONLY))
/ast/src/lib/libast/comp/
H A Dcreat64.c35 return open64(path, O_WRONLY|O_CREAT|O_TRUNC, mode);
H A Dopen.c66 if (op & O_TRUNC)
93 op &= ~(O_CREAT|O_TRUNC);
101 op |= O_TRUNC;
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.c263 #ifndef O_TRUNC
266 if (O_TRUNC > o_local) o_local = O_TRUNC;
303 #ifndef O_TRUNC
304 printf("#define O_TRUNC 0%o\n", o_local <<= 1);
/ast/src/lib/libcoshell/
H A Dcosync.c70 if ((td = open(tmp, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, 0)) >= 0)
/ast/src/lib/libcmd/
H A Dtee.c113 register int oflag = O_WRONLY|O_TRUNC|O_CREAT|O_BINARY|O_cloexec;
134 oflag &= ~O_TRUNC;
/ast/src/lib/libast/sfio/
H A D_sfopen.c113 if(oflags&O_TRUNC ) /* truncate file */
197 oflags |= O_TRUNC;
/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/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/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/ksh93/sh/
H A Dsuid_exec.c429 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/mailx/
H A Dlocal.c139 close(open(state.path.mail, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY|O_cloexec, MAILMODE));
840 if (!force || close(open(file, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY|O_cloexec, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)))
/ast/src/lib/libcs/
H A Dcsauth.c160 if ((stat(tmp, &st) || t1 <= (unsigned long)st.st_ctime && !remove(tmp)) && !close(open(tmp, O_CREAT|O_TRUNC|O_cloexec, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH))) break;
H A Dcssend.c110 if ((i = open(s, O_WRONLY|O_CREAT|O_TRUNC, CS_AUTH_MODE)) < 0 || chmod(s, CS_AUTH_MODE) < 0)
H A Dcsopen.c251 close(open(state->mount, O_WRONLY|O_CREAT|O_TRUNC, 0));
380 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, mode)) < 0)
1176 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0)) < 0)
1194 if ((fd = open(path, O_WRONLY|O_CREAT|O_TRUNC, 0)) < 0)
/ast/src/cmd/ie/
H A Dio.h170 # define O_TRUNC 01000 macro
/ast/src/cmd/kshlib/dbm/
H A Ddbm.c115 flags = O_RDWR|O_CREAT|O_TRUNC;
/ast/src/cmd/cs/vcs_src/
H A Difs_func.c73 if( (FileNum = open( fname, O_RDWR|O_CREAT|O_TRUNC, 0600 )) < 0 )
/ast/src/lib/libtksh/tcl/
H A DtclIOUtil.c224 mode = O_WRONLY|O_CREAT|O_TRUNC;
316 mode |= O_TRUNC;
895 flags = O_WRONLY | O_CREAT | O_TRUNC;
938 flags = O_WRONLY | O_CREAT | O_TRUNC;
H A DtclUnixFile.c445 file = TclOpenFile(fileName, O_RDWR|O_CREAT|O_TRUNC);
/ast/src/cmd/ss/
H A Dssd.c270 if (remote && remove(flush)) close(open(flush, O_WRONLY|O_CREAT|O_TRUNC, 0));
369 if ((n = open(data, O_WRONLY|O_CREAT|O_TRUNC|O_BINARY, 0)) < 0)

Completed in 34 milliseconds

12