| /freebsd-14.2/tests/sys/fs/fusefs/ |
| H A D | create.cc | 143 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-14.2/lib/libc/stdio/ |
| H A D | flags.c | 93 o |= O_EXCL; in __sflags() 109 if ((o & O_EXCL) != 0 && m == O_RDONLY) { in __sflags()
|
| /freebsd-14.2/tools/regression/posixsem2/ |
| H A D | semtest.c | 104 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-14.2/contrib/netbsd-tests/fs/ffs/ |
| H A D | h_quota2_tests.c | 187 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-14.2/usr.sbin/pwd_mkdb/ |
| H A D | pwd_mkdb.c | 222 O_RDWR|O_EXCL, PERM_INSECURE, DB_HASH, &openinfo); in main() 229 O_RDWR|O_EXCL, PERM_SECURE, DB_HASH, &openinfo); in main() 286 O_RDWR|O_CREAT|O_EXCL, PERM_INSECURE, DB_HASH, &openinfo); in main() 292 O_RDWR|O_CREAT|O_EXCL, PERM_SECURE, DB_HASH, &openinfo); in main() 311 O_WRONLY|O_CREAT|O_EXCL, PERM_INSECURE)) < 0) in main() 593 if ((to_fd = open(to, O_WRONLY|O_CREAT|O_EXCL, mode)) < 0) in cp()
|
| /freebsd-14.2/usr.sbin/extattrctl/ |
| H A D | extattrctl.c | 97 flags = O_CREAT | O_WRONLY | O_TRUNC | O_EXCL; in initattr() 102 flags &= ~O_EXCL; in initattr()
|
| /freebsd-14.2/sys/contrib/zlib/ |
| H A D | gzlib.c | 94 #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-14.2/contrib/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()
|
| H A D | compat_mkstemps.c | 53 fd = open(path, O_CREAT | O_EXCL | O_RDWR, S_IRUSR | S_IWUSR); in mkstemps()
|
| /freebsd-14.2/contrib/pjdfstest/tests/open/ |
| H A D | 22.t | 16 expect EEXIST open ${n0} O_CREAT,O_EXCL 0644
|
| /freebsd-14.2/contrib/netbsd-tests/kernel/ |
| H A D | t_lockf.c | 133 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-14.2/tests/sys/fs/tarfs/ |
| H A D | mktar.c | 73 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-14.2/lib/libc/gen/ |
| H A D | sem_new.c | 163 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-14.2/crypto/heimdal/lib/roken/ |
| H A D | mkstemp.c | 64 fd = open(template, O_RDWR | O_CREAT | O_EXCL, 0600); in mkstemp()
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/tmpfile/ |
| H A D | tmpfile_003_pos.c | 44 fd = open(penv[0], O_RDWR|O_TMPFILE|O_EXCL, 0666); in main()
|
| /freebsd-14.2/contrib/ntp/libntp/lib/isc/win32/include/isc/ |
| H A D | stat.h | 66 #define O_EXCL _O_EXCL macro
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | mkfiles.c | 52 if ((fd = open(buf, O_CREAT | O_EXCL, O_RDWR)) == -1) { in main()
|
| /freebsd-14.2/sys/contrib/zstd/zlibWrapper/ |
| H A D | gzlib.c | 105 #ifdef O_EXCL 152 #ifdef O_EXCL 236 #ifdef O_EXCL 237 (exclusive ? O_EXCL : 0) |
|
| /freebsd-14.2/tools/test/stress2/misc/ |
| H A D | open.sh | 79 fd = open("broken2", O_CREAT | O_DIRECTORY | O_EXCL, 0600);
|
| /freebsd-14.2/contrib/sendmail/test/ |
| H A D | t_exclopen.c | 90 if (open(Attacker, O_WRONLY|O_CREAT|O_EXCL, 0644) < 0)
|
| /freebsd-14.2/libexec/ypxfr/ |
| H A D | yp_dbwrite.c | 68 #define FLAGS O_RDWR|O_EXLOCK|O_EXCL|O_CREAT in yp_open_db_rw()
|
| /freebsd-14.2/tests/sys/mqueue/ |
| H A D | mqtest1.c | 25 mq = mq_open(MQNAME, O_CREAT | O_RDWR | O_EXCL, 0666, &attr); in main()
|
| /freebsd-14.2/cddl/lib/libdtrace/ |
| H A D | io.d | 100 inline int O_EXCL = 0x0800; variable 101 #pragma D binding "1.1" O_EXCL
|
| /freebsd-14.2/contrib/ntp/sntp/libopts/compat/ |
| H A D | windows-config.h | 103 #define O_EXCL _O_EXCL macro
|
| /freebsd-14.2/usr.bin/tip/tip/ |
| H A D | uucplock.c | 70 fd = open(tbuf, O_RDWR|O_CREAT|O_EXCL, 0660); in uu_lock()
|