Home
last modified time | relevance | path

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

12345678910>>...14

/illumos-gate/usr/src/test/smbclient-tests/cmd/prot_mmap/
H A Dprot_mmap.c75 flags0 |= O_WRONLY; in main()
77 if ((flags0 & (O_RDONLY | O_WRONLY)) == in main()
78 (O_RDONLY | O_WRONLY)) in main()
85 flags1 |= O_WRONLY; in main()
87 if ((flags1 & (O_RDONLY | O_WRONLY)) == in main()
88 (O_RDONLY | O_WRONLY)) in main()
/illumos-gate/usr/src/lib/libc/port/stdio/
H A D_stdio_flags.c62 oflag = O_WRONLY | O_TRUNC | O_CREAT; in _stdio_flags()
66 oflag = O_WRONLY | O_APPEND | O_CREAT; in _stdio_flags()
97 oflag = (oflag & ~(O_RDONLY | O_WRONLY)) | O_RDWR; in _stdio_flags()
/illumos-gate/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:
H A Dt-fopen.c29 out = sm_io_fopen("foo", O_WRONLY|O_APPEND|O_CREAT, 0666);
/illumos-gate/usr/src/cmd/listen/
H A Dlsfiles.h37 #define LOGOFLAG (O_WRONLY | O_APPEND | O_CREAT)
40 #define PIDOFLAG (O_WRONLY | O_CREAT)
/illumos-gate/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);
/illumos-gate/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()
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A Dfiles.c138 oflag = plus? O_RDWR : O_WRONLY; in open_locked()
143 oflag = (plus? O_RDWR : O_WRONLY) | O_APPEND; in open_locked()
176 l.l_type = (oflag & (O_WRONLY|O_RDWR)? F_WRLCK : F_RDLCK); in open_locked()
/illumos-gate/usr/src/contrib/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;
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmlog.c65 if ((fd = open(logfile, O_WRONLY | O_CREAT | O_APPEND, 0444)) != -1) in openttymonlog()
165 } else if ((fd = open(CONSOLE, O_WRONLY|O_NOCTTY)) != -1) { in vlog()
232 if ((fd = open(EX_DBG, O_WRONLY|O_APPEND|O_CREAT)) < 0) in opendebug()
H A Dtmsac.c61 if ((Lckfd = open(PIDFILE, O_WRONLY|O_CREAT|O_TRUNC, 0644)) != 0) in openpid()
82 Sfd = open(SACPIPE, O_WRONLY); in openpipes()
/illumos-gate/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()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/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()
/illumos-gate/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()
/illumos-gate/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
/illumos-gate/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()
/illumos-gate/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()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dcreat64.c35 return open64(path, O_WRONLY|O_CREAT|O_TRUNC, mode);
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd.c265 (void) open("/dev/null", O_WRONLY); in daemonize()
266 (void) open("/dev/null", O_WRONLY); in daemonize()
/illumos-gate/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()
H A Dreqexec.c272 if ((fd = open(resppath, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644)) < 0) { in reqexec()
310 fd = open(resppath, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644); in chkexec()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dfcntl.c268 #ifndef O_WRONLY in main()
278 #ifndef O_WRONLY in main()
/illumos-gate/usr/src/cmd/mandoc/
H A Dterm_tag.c100 ofd = open(outfilename, O_WRONLY | O_CREAT | O_EXCL, 0644); in term_tag_init()
119 tfd = open(tagfilename, O_WRONLY | O_CREAT | O_EXCL, 0644); in term_tag_init()
/illumos-gate/usr/src/test/zfs-tests/tests/functional/ctime/
H A Dctime_001_pos.c134 if ((fd = open(pfile, O_WRONLY, ALL_MODE)) == -1) { in do_write()
305 if ((fd = open(tfile, O_WRONLY | O_CREAT | O_TRUNC, ALL_MODE)) == -1) { in main()

12345678910>>...14