Home
last modified time | relevance | path

Searched refs:O_EXCL (Results 1 – 25 of 170) sorted by relevance

1234567

/freebsd/tests/sys/fs/fusefs/
H A Dcreate.cc143 fd = open(FULLPATH, O_CREAT | O_EXCL, mode); in TEST_F()
184 fd = open(FULLPATH, O_CREAT | O_EXCL, mode); in TEST_F()
205 EXPECT_EQ(-1, open(FULLPATH, O_CREAT | O_EXCL, mode)); in TEST_F()
254 fd = open(FULLPATH, O_CREAT | O_EXCL, mode); in TEST_F()
288 fd = open(FULLPATH, O_CREAT | O_EXCL, mode); in TEST_F()
319 fd = open(FULLPATH, O_CREAT | O_EXCL, mode); in TEST_F()
343 EXPECT_EQ(-1, open(FULLPATH, O_CREAT | O_EXCL, mode)); in TEST_F()
366 fd = open(FULLPATH, O_CREAT | O_EXCL, mode); in TEST_F()
407 fd = open(FULLPATH, O_CREAT | O_EXCL, mode); in TEST_F()
466 fd = open(FULLPATH, O_CREAT | O_EXCL, mode); in TEST_F()
[all …]
/freebsd/lib/libc/stdio/
H A Dflags.c90 o |= O_EXCL; in __sflags()
106 if ((o & O_EXCL) != 0 && m == O_RDONLY) { in __sflags()
/freebsd/contrib/netbsd-tests/fs/ffs/
H A Dh_quota2_tests.c187 fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644); in quota_test3()
197 fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644); in quota_test3()
263 fd = rump_sys_open(buf, O_EXCL| O_CREAT | O_RDWR, 0644); in quota_test4()
317 O_EXCL| O_CREAT | O_RDWR, 0644); in quota_test5()
/freebsd/tools/regression/posixsem2/
H A Dsemtest.c104 s = sem_open(SEM_NAME, O_CREAT | O_EXCL, 0777, 0); in test_named2()
107 s2 = sem_open(SEM_NAME, O_CREAT | O_EXCL, 0777, 0); in test_named2()
/freebsd/usr.sbin/pwd_mkdb/
H A Dpwd_mkdb.c210 O_RDWR|O_EXCL, PERM_INSECURE, DB_HASH, &openinfo); in main()
217 O_RDWR|O_EXCL, PERM_SECURE, DB_HASH, &openinfo); in main()
274 O_RDWR|O_CREAT|O_EXCL, PERM_INSECURE, DB_HASH, &openinfo); in main()
280 O_RDWR|O_CREAT|O_EXCL, PERM_SECURE, DB_HASH, &openinfo); in main()
299 O_WRONLY|O_CREAT|O_EXCL, PERM_INSECURE)) < 0) in main()
581 if ((to_fd = open(to, O_WRONLY|O_CREAT|O_EXCL, mode)) < 0) in cp()
/freebsd/usr.sbin/extattrctl/
H A Dextattrctl.c97 flags = O_CREAT | O_WRONLY | O_TRUNC | O_EXCL; in initattr()
102 flags &= ~O_EXCL; in initattr()
/freebsd/sys/contrib/zlib/
H A Dgzlib.c94 #ifdef O_EXCL in gz_open()
141 #ifdef O_EXCL in gz_open()
225 #ifdef O_EXCL in gz_open()
226 (exclusive ? O_EXCL : 0) | in gz_open()
/freebsd/contrib/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()
H A Dcompat_mkstemps.c53 fd = open(path, O_CREAT | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR); in mkstemps()
/freebsd/lib/libc/gen/
H A Dsem_new.c163 if (flags & ~(O_CREAT|O_EXCL)) { in _sem_open()
185 if ((flags & (O_CREAT | O_EXCL)) == (O_CREAT | in _sem_open()
186 O_EXCL) || ni->dev != sb.st_dev || in _sem_open()
/freebsd/contrib/netbsd-tests/kernel/
H A Dt_lockf.c133 fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666); in ATF_TC_BODY()
228 fd = open (lockfile, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0666); in ATF_TC_BODY()
/freebsd/tests/sys/fs/tarfs/
H A Dmktar.c73 if ((fd = open(filename, O_RDWR|O_CREAT|O_EXCL, mode)) < 0) in mknormalfile()
92 if ((fd = open(filename, O_RDWR|O_CREAT|O_EXCL, mode)) < 0) in mksparsefile()
/freebsd/contrib/pjdfstest/tests/open/
H A D22.t16 expect EEXIST open ${n0} O_CREAT,O_EXCL 0644
/freebsd/sys/contrib/zstd/zlibWrapper/
H A Dgzlib.c105 #ifdef O_EXCL
152 #ifdef O_EXCL
236 #ifdef O_EXCL
237 (exclusive ? O_EXCL : 0) |
/freebsd/crypto/heimdal/lib/roken/
H A Dmkstemp.c64 fd = open(template, O_RDWR | O_CREAT | O_EXCL, 0600); in mkstemp()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/
H A Dtmpfile_003_pos.c44 fd = open(penv[0], O_RDWR|O_TMPFILE|O_EXCL, 0666); in main()
/freebsd/contrib/ntp/libntp/lib/isc/win32/include/isc/
H A Dstat.h66 #define O_EXCL _O_EXCL macro
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmkfiles.c52 if ((fd = open(buf, O_CREAT | O_EXCL, O_RDWR)) == -1) { in main()
/freebsd/cddl/lib/libdtrace/
H A Dio.d100 inline int O_EXCL = 0x0800; variable
101 #pragma D binding "1.1" O_EXCL
/freebsd/libexec/ypxfr/
H A Dyp_dbwrite.c68 #define FLAGS O_RDWR|O_EXLOCK|O_EXCL|O_CREAT in yp_open_db_rw()
/freebsd/tools/test/stress2/misc/
H A Dopen.sh79 fd = open("broken2", O_CREAT | O_DIRECTORY | O_EXCL, 0600);
/freebsd/contrib/sendmail/test/
H A Dt_exclopen.c90 if (open(Attacker, O_WRONLY|O_CREAT|O_EXCL, 0644) < 0)
/freebsd/tests/sys/mqueue/
H A Dmqtest1.c25 mq = mq_open(MQNAME, O_CREAT | O_RDWR | O_EXCL, 0666, &attr); in main()
/freebsd/contrib/ntp/sntp/libopts/compat/
H A Dwindows-config.h103 #define O_EXCL _O_EXCL macro
/freebsd/usr.bin/tip/tip/
H A Duucplock.c62 fd = open(tbuf, O_RDWR|O_CREAT|O_EXCL, 0660); in uu_lock()

1234567