/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | stdio.c | 75 oflags = O_RDWR | O_CREAT | O_TRUNC; 81 oflags = O_WRONLY | O_CREAT | O_TRUNC; 84 oflags = O_APPEND | O_WRONLY | O_CREAT; 87 oflags = O_APPEND | O_RDWR | O_CREAT; 415 oflags = O_RDWR | O_CREAT; 421 oflags = O_WRONLY | O_CREAT | O_TRUNC; 424 oflags = O_APPEND | O_WRONLY | O_CREAT; 427 oflags = O_APPEND | O_RDWR | O_CREAT; 484 if (flags & O_CREAT)
|
/illumos-gate/usr/src/test/os-tests/tests/ |
H A D | odirectory.c | 229 O_CREAT, ENOTDIR); in main() 231 odir_fpath, O_CREAT | O_EXCL, EINVAL); in main() 234 O_CREAT, 0); in main() 236 odir_dpath, O_CREAT | O_EXCL, EINVAL); in main() 239 O_CREAT, ENOENT); in main() 242 odir_enoent, O_CREAT | O_EXCL, EINVAL); in main()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | open.c | 58 mode = (op & O_CREAT) ? va_arg(ap, int) : S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH; 62 if (!(op & O_CREAT)) 93 op &= ~(O_CREAT|O_TRUNC); 99 if (op & O_CREAT)
|
H A D | creat64.c | 35 return open64(path, O_WRONLY|O_CREAT|O_TRUNC, mode);
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/ |
H A D | _sfopen.c | 109 { if((oflags&(O_CREAT|O_EXCL)) == (O_CREAT|O_EXCL) ) 121 else if(oflags&O_CREAT) 166 oflags |= O_WRONLY | O_APPEND | O_CREAT; 195 oflags |= O_WRONLY | O_CREAT; 214 if(!(oflags&O_CREAT) )
|
/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/contrib/ast/src/lib/libast/features/ |
H A D | fcntl.c | 233 #ifndef O_CREAT in main() 236 if (O_CREAT > o_local) o_local = O_CREAT; in main() 287 #ifndef O_CREAT in main()
|
/illumos-gate/usr/src/lib/libnsl/common/ |
H A D | daemon_utils.c | 127 if (mode & O_CREAT) in open_daemon_lock() 149 if ((fd = open_daemon_lock(name, O_RDWR|O_CREAT)) == -1) in _enter_daemon_lock() 177 int fd = open_daemon_lock(name, O_CREAT); in _create_daemon_lock()
|
/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()
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | mkstemp.c | 96 if ((fd = open64(as, O_CREAT|O_EXCL|O_RDWR|flags, in libc_mkstemps() 101 if ((fd = open(as, O_CREAT|O_EXCL|O_RDWR|flags, in libc_mkstemps()
|
/illumos-gate/usr/src/test/zfs-tests/cmd/rm_lnkcnt_zero_file/ |
H A D | rm_lnkcnt_zero_file.c | 106 *fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); in writer() 127 fd = open(filebase, O_APPEND | O_RDWR | O_CREAT, 0644); in main()
|
/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/cmd/mailx/ |
H A D | quit.c | 172 if ((fd = open(tempQuit, O_RDWR|O_CREAT|O_EXCL, 0600)) < 0 || in quit() 197 if ((fd = open(mbox, O_RDWR|O_CREAT|O_TRUNC, MBOXPERM)) < 0 || in quit() 206 if ((fd = open(mbox, O_RDWR|O_CREAT, MBOXPERM)) < 0 || in quit() 299 fd = open(tempResid,O_RDWR|O_CREAT|O_EXCL, 0600); in writeback()
|
/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/lib/libc/port/rt/ |
H A D | pos4obj.c | 304 if (!(oflag & O_CREAT)) { in __pos4obj_open() 325 fd = __open_nc(dfile, oflag & ~O_CREAT, mode); in __pos4obj_open() 377 if ((fd = __open_nc(dfile, O_RDWR | O_CREAT | O_EXCL, 0666)) in __pos4obj_lock()
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | fcntl.h | 102 #define O_CREAT 0x0200 /* create if nonexistent */ macro 193 #define FRDAHEAD O_CREAT
|
/illumos-gate/usr/src/test/zfs-tests/cmd/mktree/ |
H A D | mktree.c | 172 if ((fd = open(pname, O_CREAT|O_RDWR, 0777)) < 0) { in crtfile() 185 if ((afd = openat(fd, "xattr", O_CREAT | O_RDWR | O_XATTR, 0777)) < 0) { in crtfile()
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_rep.c | 248 if ((fd = open(FAB_REPOSITORY, O_RDWR | O_CREAT)) == -1) { in update_fabric_wwn_list() 314 if ((copy_fd = open(copy_rep, O_RDWR | O_CREAT | O_TRUNC, in update_fabric_wwn_list() 442 if ((tmp_fd = open(tmp_rep, O_RDWR|O_CREAT|O_TRUNC, in update_fabric_wwn_list() 537 if ((tmp_fd = open(tmp_rep, O_RDWR|O_CREAT|O_TRUNC, in update_fabric_wwn_list()
|
/illumos-gate/usr/src/lib/pam_modules/authtok_check/ |
H A D | packlib.c | 65 if ((fd_d = open(dname, O_RDWR|O_CREAT, 0600)) == -1) in PWOpen() 68 if ((fd_i = open(iname, O_RDWR|O_CREAT, 0600)) == -1) in PWOpen() 71 if ((fd_w = open(wname, O_RDWR|O_CREAT, 0600)) == -1) in PWOpen()
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | ocfile.c | 176 n = open(tmpcf, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644); in set_cfdir() 569 lock_fd = open(lockpath, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0644); in pkgWlock() 681 fd = open(contents, O_WRONLY | O_CREAT | O_EXCL, 0644); in vcfile()
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | adb_openclose.c | 58 db = dbopen(filename, O_RDWR | O_CREAT | O_EXCL, 0600, DB_BTREE, &btinfo); in osa_adb_create_db() 65 lf = THREEPARAMOPEN(lockfilename, O_RDWR | O_CREAT | O_EXCL, 0600); in osa_adb_create_db() 373 fd = THREEPARAMOPEN(db->lock->filename,O_RDWR | O_CREAT | O_EXCL, in osa_adb_release_lock()
|
/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()
|
/illumos-gate/usr/src/lib/libdhcpagent/common/ |
H A D | dhcp_stable.c | 107 if ((fd = open(DUID_FILE, O_WRONLY | O_CREAT, 0644)) == -1) in write_stable_duid() 224 if ((fd = open(IAID_FILE, O_RDWR | O_CREAT, 0644)) == -1) in write_stable_iaid()
|
/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() 232 if ((fd = open(EX_DBG, O_WRONLY|O_APPEND|O_CREAT)) < 0) in opendebug()
|