/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); 183 if ((fd = open(file, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, mode)) >= 0)
|
H A D | open3d.c | 210 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 D | creat64.c | 35 return open64(path, O_WRONLY|O_CREAT|O_TRUNC, mode);
|
H A D | open.c | 66 if (op & O_TRUNC) 93 op &= ~(O_CREAT|O_TRUNC); 101 op |= O_TRUNC;
|
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 | 263 #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 D | cosync.c | 70 if ((td = open(tmp, O_WRONLY|O_CREAT|O_TRUNC|O_cloexec, 0)) >= 0)
|
/ast/src/lib/libcmd/ |
H A D | tee.c | 113 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.c | 113 if(oflags&O_TRUNC ) /* truncate file */ 197 oflags |= O_TRUNC;
|
/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/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/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/ksh93/sh/ |
H A D | suid_exec.c | 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/mailx/ |
H A D | local.c | 139 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 D | csauth.c | 160 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 D | cssend.c | 110 if ((i = open(s, O_WRONLY|O_CREAT|O_TRUNC, CS_AUTH_MODE)) < 0 || chmod(s, CS_AUTH_MODE) < 0)
|
H A D | csopen.c | 251 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 D | io.h | 170 # define O_TRUNC 01000 macro
|
/ast/src/cmd/kshlib/dbm/ |
H A D | dbm.c | 115 flags = O_RDWR|O_CREAT|O_TRUNC;
|
/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 )
|
/ast/src/lib/libtksh/tcl/ |
H A D | tclIOUtil.c | 224 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 D | tclUnixFile.c | 445 file = TclOpenFile(fileName, O_RDWR|O_CREAT|O_TRUNC);
|
/ast/src/cmd/ss/ |
H A D | ssd.c | 270 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)
|