Home
last modified time | relevance | path

Searched refs:O_WRONLY (Results 1 – 25 of 345) sorted by relevance

12345678910>>...14

/titanic_41/usr/src/lib/libc/port/stdio/
H A D_endopen.c72 oflag = O_WRONLY | O_TRUNC | O_CREAT; in _endopen()
76 oflag = O_WRONLY | O_APPEND | O_CREAT; in _endopen()
105 oflag = (oflag & ~(O_RDONLY | O_WRONLY)) | O_RDWR; in _endopen()
136 if (oflag == (O_WRONLY | O_APPEND | O_CREAT)) { /* type == "a" */ in _endopen()
/titanic_41/usr/src/cmd/listen/
H A Dlsfiles.h37 #define LOGOFLAG (O_WRONLY | O_APPEND | O_CREAT)
40 #define PIDOFLAG (O_WRONLY | O_CREAT)
/titanic_41/usr/src/lib/libnsctl/common/
H A Dcache.c70 if ((mode & O_ACCMODE) == O_WRONLY) {
128 if ((mode & O_ACCMODE) != O_WRONLY) {
129 if ((i & O_ACCMODE) == O_WRONLY) {
212 (void) open(_NSC_CKDCHK_LOG, O_WRONLY|O_CREAT|O_APPEND, 0666);
213 (void) open(_NSC_CKDCHK_LOG, O_WRONLY|O_CREAT|O_APPEND, 0666);
/titanic_41/usr/src/cmd/sendmail/libsm/
H A Dstdio.c83 oflags = O_WRONLY | O_CREAT | O_TRUNC;
86 oflags = O_APPEND | O_WRONLY | O_CREAT;
423 oflags = O_WRONLY | O_CREAT | O_TRUNC;
426 oflags = O_APPEND | O_WRONLY | O_CREAT;
502 case O_WRONLY:
/titanic_41/usr/src/lib/libbc/libc/stdio/4.2/
H A Dfopen.c64 oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT; in _endopen()
67 oflag = (plus ? O_RDWR : O_WRONLY) | O_CREAT; in _endopen()
/titanic_41/usr/src/lib/libbc/libc/stdio/sys5/
H A Dfopen.c58 oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT; in _endopen()
61 oflag = (plus ? O_RDWR : O_WRONLY) | O_APPEND | O_CREAT; in _endopen()
/titanic_41/usr/src/cmd/mail/
H A Dcreatemf.c76 O_APPEND|O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP);
103 mbfd = open(path, O_APPEND|O_WRONLY, 0);
/titanic_41/usr/src/lib/libast/common/sfio/
H A D_sfopen.c118 if((oflags&O_ACCMODE) != O_WRONLY)
159 oflags |= O_WRONLY | O_APPEND | O_CREAT;
184 oflags |= O_WRONLY | O_CREAT;
/titanic_41/usr/src/lib/libbc/inc/include/sys/
H A Dfcntlcom.h61 #define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR)
69 #define O_WRONLY 1 /* +1 == FWRITE */ macro
/titanic_41/usr/src/lib/libc/port/gen/
H A Dlfmt_log.c94 ((fd = open(LOGNAME, O_WRONLY)) == -1 || in __lfmt_log()
115 fdd = open(LOG_CONSOLE, O_WRONLY); in __lfmt_log()
H A Dsyslog.c372 if (((fd = open(sysmsg, O_WRONLY)) >= 0) || in vsyslog()
373 (fd = open(ctty, O_WRONLY)) >= 0) { in vsyslog()
450 LogFile = open(logname, O_WRONLY); in openlog()
/titanic_41/usr/src/cmd/lp/lib/lp/
H A Dfiles.c139 oflag = plus? O_RDWR : O_WRONLY; in open_locked()
144 oflag = (plus? O_RDWR : O_WRONLY) | O_APPEND; in open_locked()
177 l.l_type = (oflag & (O_WRONLY|O_RDWR)? F_WRLCK : F_RDLCK); in open_locked()
/titanic_41/usr/src/cmd/ttymon/
H A Dtmlog.c73 if ((fd = open(logfile, O_WRONLY|O_CREAT|O_APPEND,0444)) != -1) in openttymonlog()
173 } else if ((fd = open(CONSOLE, O_WRONLY|O_NOCTTY)) != -1) { in vlog()
242 if ((fd = open(EX_DBG, O_WRONLY|O_APPEND|O_CREAT)) < 0) in opendebug()
H A Dtmsac.c66 if ((Lckfd = open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC, 0644 )) != 0) in openpid()
89 Sfd = open(SACPIPE, O_WRONLY); in openpipes()
/titanic_41/usr/src/lib/sun_fc/common/
H A DTrace.cc76 fd = open(DEBUG_FILE, O_WRONLY|O_APPEND); /* will only open if exists */ in message()
82 fd = open(LOG_FILE, O_WRONLY|O_APPEND); in message()
/titanic_41/usr/src/ucblib/libucb/port/stdio/
H A Dfopen.c64 oflag = (plus ? O_RDWR : O_WRONLY) | O_TRUNC | O_CREAT; in _endopen()
67 oflag = (plus ? O_RDWR : O_WRONLY) | O_CREAT; in _endopen()
/titanic_41/usr/src/lib/libshell/common/sh/
H A Dsuid_exec.c381 if((n = open(tmpname, O_WRONLY | O_CREAT | O_EXCL, SPECIAL)) < 0 || in setids()
384 if((n = open(tmpname, O_WRONLY | O_CREAT ,SPECIAL)) < 0 || unlink(tmpname) < 0) in setids()
429 if((n = open(tmpname,O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, mode)) < 0) in setids()
432 if((n = open(tmpname,O_WRONLY|O_CREAT|O_TRUNC, mode)) < 0) in setids()
/titanic_41/usr/src/lib/pam_modules/authtok_check/
H A Ddict.c69 if ((lockfd = open(dblock, O_WRONLY|O_CREAT|O_EXCL, 0400)) == -1) { in lock_db()
71 lockfd = open(dblock, O_WRONLY); in lock_db()
/titanic_41/usr/src/lib/libdtrace/common/
H A Dio.d.in143 * flags behave as a bit-field *except* for O_RDONLY, O_WRONLY, and O_RDWR.
145 * F_GET[X]FL command, such as: if ((fi_oflags & O_ACCMODE) == O_WRONLY).
152 inline int O_WRONLY = @O_WRONLY@; variable
153 #pragma D binding "1.1" O_WRONLY
/titanic_41/usr/src/lib/libast/common/comp/
H A Dcreat64.c35 return open64(path, O_WRONLY|O_CREAT|O_TRUNC, mode);
/titanic_41/usr/src/lib/libpkg/common/
H A Dpkgexecv.c389 n = open(fileout, O_WRONLY); in pkgexecv()
409 n = open(fileout, O_WRONLY|O_CREAT|O_APPEND, 0666); in pkgexecv()
/titanic_41/usr/src/lib/libbc/libc/sys/sys5/
H A Dtruncate.c44 if ((fd = open(path, O_WRONLY)) == -1) { in truncate()
/titanic_41/usr/src/lib/libbc/libc/sys/4.2/
H A Dtruncate.c47 if ((fd = open(path, O_WRONLY)) == -1) { in truncate()
/titanic_41/usr/src/lib/libast/common/features/
H A Dfcntl.c263 #ifndef O_WRONLY in main()
273 #ifndef O_WRONLY in main()
/titanic_41/usr/src/cmd/svr4pkg/pkginstall/
H A Dcppath.c364 fd = open(a_file, O_WRONLY | O_CREAT | O_TRUNC, a_mode); in write_file()
367 fd = open(a_file, O_WRONLY | O_CREAT | O_TRUNC, a_mode); in write_file()

12345678910>>...14