/illumos-gate/usr/src/test/smbclient-tests/cmd/prot_mmap/ |
H A D | prot_mmap.c | 75 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.c | 62 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 D | stdio.c | 81 oflags = O_WRONLY | O_CREAT | O_TRUNC; 84 oflags = O_APPEND | O_WRONLY | O_CREAT; 421 oflags = O_WRONLY | O_CREAT | O_TRUNC; 424 oflags = O_APPEND | O_WRONLY | O_CREAT; 500 case O_WRONLY:
|
/illumos-gate/usr/src/cmd/listen/ |
H A D | lsfiles.h | 37 #define LOGOFLAG (O_WRONLY | O_APPEND | O_CREAT) 40 #define PIDOFLAG (O_WRONLY | O_CREAT)
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | createmf.c | 74 O_APPEND|O_CREAT|O_EXCL|O_WRONLY, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP); 101 mbfd = open(path, O_APPEND|O_WRONLY, 0);
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmlog.c | 65 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 D | tmsac.c | 61 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/contrib/ast/src/lib/libast/sfio/ |
H A D | _sfopen.c | 124 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/lp/lib/lp/ |
H A D | files.c | 138 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/lib/libc/port/gen/ |
H A D | lfmt_log.c | 92 ((fd = open(LOGNAME, O_WRONLY)) == -1 || in __lfmt_log() 113 fdd = open(LOG_CONSOLE, O_WRONLY); in __lfmt_log()
|
H A D | syslog.c | 372 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/contrib/ast/src/cmd/ksh93/sh/ |
H A D | suid_exec.c | 381 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/lib/sun_fc/common/ |
H A D | Trace.cc | 76 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/ucblib/libucb/port/stdio/ |
H A D | fopen.c | 64 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/test/os-tests/tests/oclo/ |
H A D | oclo_errors.c | 138 if (!oclo_dup3("dup3(): O_CLOFORK|O_WRONLY", O_CLOFORK | O_WRONLY)) { in main() 164 if (!oclo_pipe2("pipe2(): O_CLOFORK|O_WRONLY", O_CLOFORK | O_WRONLY)) { in main()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | io.d.in | 143 * 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 D | dict.c | 69 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 D | pkgexecv.c | 389 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/features/ |
H A D | fcntl.c | 268 #ifndef O_WRONLY in main() 278 #ifndef O_WRONLY in main()
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | term_tag.c | 100 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/cmd/svr4pkg/pkginstall/ |
H A D | cppath.c | 364 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 D | reqexec.c | 272 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/cmd/hotplugd/ |
H A D | hotplugd.c | 265 (void) open("/dev/null", O_WRONLY); in daemonize() 266 (void) open("/dev/null", O_WRONLY); in daemonize()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | creat64.c | 35 return open64(path, O_WRONLY|O_CREAT|O_TRUNC, mode);
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/ctime/ |
H A D | ctime_001_pos.c | 134 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()
|