/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | open.c | 63 op &= ~O_EXCL; 68 if ((op & O_EXCL) && !access(path, F_OK)) 73 if ((fd = creat(path, (op & O_EXCL) ? 0 : mode)) < 0) 75 if (op & O_EXCL)
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | fcntl.c | 238 #ifndef O_EXCL in main() 241 if (O_EXCL > o_local) o_local = O_EXCL; in main() 290 #ifndef O_EXCL in main()
|
/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) ) 200 oflags |= O_EXCL; 215 oflags &= ~O_EXCL;
|
/illumos-gate/usr/src/test/os-tests/tests/ |
H A D | odirectory.c | 231 odir_fpath, O_CREAT | O_EXCL, EINVAL); in main() 236 odir_dpath, O_CREAT | O_EXCL, EINVAL); in main() 242 odir_enoent, O_CREAT | O_EXCL, EINVAL); in main()
|
/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/contrib/ast/src/cmd/ksh93/sh/ |
H A D | suid_exec.c | 380 #ifdef O_EXCL in setids() 381 if((n = open(tmpname, O_WRONLY | O_CREAT | O_EXCL, SPECIAL)) < 0 || in setids() 428 #ifdef O_EXCL in setids() 429 if((n = open(tmpname,O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, mode)) < 0) in setids()
|
/illumos-gate/usr/src/lib/libc/port/rt/ |
H A D | pos4obj.c | 323 if ((fd = __open_nc(dfile, (oflag | O_EXCL), mode)) == -1) { in __pos4obj_open() 324 if (errno == EEXIST && !(oflag & O_EXCL)) { in __pos4obj_open() 377 if ((fd = __open_nc(dfile, O_RDWR | O_CREAT | O_EXCL, 0666)) in __pos4obj_lock()
|
/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/test/bhyve-tests/tests/vmm/ |
H A D | check_iommu.c | 30 int ctl_fd = open(VMM_CTL_DEV, O_EXCL | O_RDWR); in main()
|
H A D | interface_version.c | 34 int ctl_fd = open(VMM_CTL_DEV, O_EXCL | O_RDWR); in main()
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
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/test/bhyve-tests/tests/viona/ |
H A D | interface_version.c | 31 int ctl_fd = open(VIONA_DEV, O_EXCL | O_RDWR); in main()
|
/illumos-gate/usr/src/lib/libuutil/common/ |
H A D | uu_open.c | 56 f = open(fname, O_CREAT | O_EXCL | O_RDWR, 0600); in uu_open_tmp()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | krbfileio.c | 22 open_flag = O_CREAT|O_EXCL|O_TRUNC|O_RDWR; in krb5_create_secure_file()
|
/illumos-gate/usr/src/test/zfs-tests/cmd/mkfiles/ |
H A D | mkfiles.c | 57 if ((fd = open(buf, O_CREAT | O_EXCL, O_RDWR)) == -1) { in main()
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | _stdio_flags.c | 102 oflag |= O_EXCL; in _stdio_flags()
|
/illumos-gate/usr/src/test/os-tests/tests/syscall/ |
H A D | open.c | 67 fd = open(path, O_WRONLY | O_CREAT | O_EXCL | O_DIRECT, 0644); in o_direct_test()
|
/illumos-gate/usr/src/lib/libresolv2/common/bsd/ |
H A D | mktemp.c | 123 open(path, O_CREAT|O_EXCL|O_RDWR, 0600)) >= 0) in gettemp()
|
/illumos-gate/usr/src/test/os-tests/tests/uccid/ |
H A D | txn-pollerr.c | 52 if ((fd = open(argv[1], O_RDWR | O_EXCL)) < 0) { in main()
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/db/ |
H A D | db.c | 57 (O_CREAT | O_EXCL | O_EXLOCK | O_NONBLOCK | O_RDONLY | \
|
/illumos-gate/usr/src/lib/libdevice/ |
H A D | devctl.c | 117 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR; in devctl_bus_acquire() 140 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL|O_RDWR : O_RDWR; in devctl_device_acquire() 166 oflags = ((flags & DC_EXCL) != 0) ? O_EXCL : 0; in devctl_ap_acquire() 192 oflags = ((flags & DC_EXCL) != 0) ? (O_EXCL | O_RDWR) : O_RDWR; in devctl_pm_bus_acquire() 216 oflags = ((flags & DC_EXCL) != 0) ? (O_EXCL | O_RDWR) : O_RDWR; in devctl_pm_dev_acquire()
|
/illumos-gate/usr/src/cmd/passmgmt/ |
H A D | passmgmt.c | 658 fd_ptemp = open(PASSTEMP, O_CREAT|O_EXCL|O_WRONLY, statbuf.st_mode); in main() 666 fd_ptemp = open(PASSTEMP, O_CREAT|O_EXCL|O_WRONLY, in main() 696 fd_stemp = open(SHADTEMP, O_CREAT|O_EXCL|O_WRONLY, in main() 706 O_CREAT|O_EXCL|O_WRONLY, statbuf.st_mode); in main() 736 fd_uatemp = open(USERATTR_TEMP, O_CREAT|O_EXCL|O_WRONLY, in main() 746 O_CREAT|O_EXCL|O_WRONLY, statbuf.st_mode); in main()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fssnap/ |
H A D | fssnap.c | 299 if ((ctlfd = open(SNAP_CTL_PATH, O_RDONLY | O_EXCL)) == -1) { in create_snap() 350 if ((ctlfd = open(SNAP_CTL_PATH, O_RDONLY | O_EXCL)) == -1) in delete_snap() 640 fd = open(wpath, O_RDWR | O_CREAT | O_EXCL, 0600); in open_multi_backfile()
|