Searched refs:O_WRONLY (Results 1 - 25 of 60) sorted by relevance

123

/ast/src/cmd/3d/
H A Dcreat3d.c29 return(open(path, O_WRONLY|O_CREAT|O_TRUNC, mode));
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 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)
H A Dfmtmsglib.c274 mm.console = open("/dev/console", O_WRONLY|O_APPEND|O_NOCTTY);
H A Dsyslog.c271 if ((log.fd = open(s, O_WRONLY|O_APPEND|O_NOCTTY|O_cloexec)) < 0 && (log.fd = sockopen(s)) < 0)
/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);
/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/libast/features/
H A Dfcntl.c268 #ifndef O_WRONLY
278 #ifndef O_WRONLY
279 printf("#define O_WRONLY 1\n");
308 printf("#define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)\n");
/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/lib/libast/sfio/
H A D_sfopen.c124 if((oflags&O_ACCMODE) != O_WRONLY)
166 oflags |= O_WRONLY | O_APPEND | O_CREAT;
195 oflags |= O_WRONLY | O_CREAT;
/ast/src/cmd/cs/vcs_src/
H A Difs_func.c223 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 );
H A Difs_rsh.c64 if( (fd = open( tmpfile, O_WRONLY|O_CREAT, 0644 )) < 0 ) {
/ast/src/lib/libtksh/tcl/
H A DtclIOUtil.c100 int writing = (flags & O_ACCMODE) == O_WRONLY;
208 #define RW_MODES (O_RDONLY|O_WRONLY|O_RDWR)
224 mode = O_WRONLY|O_CREAT|O_TRUNC;
227 mode = O_WRONLY|O_CREAT;
277 mode = (mode & ~O_ACCMODE) | O_WRONLY;
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/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/libcmd/
H A Dfds.c234 switch (flags & (O_RDONLY|O_WRONLY|O_RDWR))
239 case O_WRONLY:
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/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 Dcssend.c110 if ((i = open(s, O_WRONLY|O_CREAT|O_TRUNC, CS_AUTH_MODE)) < 0 || chmod(s, CS_AUTH_MODE) < 0)
/ast/src/cmd/ie/
H A Dio.h175 # define O_WRONLY 01 macro
/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 168 milliseconds

123