| /freebsd/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/lib/libc/stdio/ |
| H A D | flags.c | 90 o |= O_EXCL; in __sflags() 106 if ((o & O_EXCL) != 0 && m == O_RDONLY) { in __sflags()
|
| /freebsd/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/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/usr.sbin/pwd_mkdb/ |
| H A D | pwd_mkdb.c | 210 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 D | extattrctl.c | 97 flags = O_CREAT | O_WRONLY | O_TRUNC | O_EXCL; in initattr() 102 flags &= ~O_EXCL; in initattr()
|
| /freebsd/crypto/krb5/src/plugins/kdb/db2/ |
| H A D | adb_openclose.c | 36 db = dbopen(filename, O_RDWR | O_CREAT | O_EXCL, 0600, DB_BTREE, &btinfo); in osa_adb_create_db() 43 lf = THREEPARAMOPEN(lockfilename, O_RDWR | O_CREAT | O_EXCL, 0600); in osa_adb_create_db() 301 fd = THREEPARAMOPEN(db->lock->filename,O_RDWR | O_CREAT | O_EXCL, in osa_adb_release_lock()
|
| /freebsd/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/sys/sys/ |
| H A D | fcntl.h | 103 #define O_EXCL 0x0800 /* error if already exists */ macro 184 O_EXCL | O_NOCTTY | O_DIRECT | O_DIRECTORY | O_EXEC | O_TTY_INIT | \
|
| /freebsd/sys/contrib/zlib/ |
| H A D | gzlib.c | 93 #ifdef O_EXCL in gz_open() 141 #ifdef O_EXCL in gz_open() 241 #ifdef O_EXCL in gz_open() 242 (exclusive ? O_EXCL : 0) | in gz_open()
|
| /freebsd/contrib/pjdfstest/tests/open/ |
| H A D | 22.t | 16 expect EEXIST open ${n0} O_CREAT,O_EXCL 0644
|
| /freebsd/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/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/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/sys/contrib/zstd/zlibWrapper/ |
| H A D | gzlib.c | 97 #ifdef O_EXCL in gz_open() 144 #ifdef O_EXCL in gz_open() 228 #ifdef O_EXCL in gz_open() 229 (exclusive ? O_EXCL : 0) | in gz_open()
|
| /freebsd/share/examples/sound/ |
| H A D | mmap.c | 178 .mode = O_RDONLY | O_EXCL | O_NONBLOCK, in main() 185 .mode = O_WRONLY | O_EXCL | O_NONBLOCK, in main()
|
| /freebsd/crypto/heimdal/lib/roken/ |
| H A D | mkstemp.c | 64 fd = open(template, O_RDWR | O_CREAT | O_EXCL, 0600); in mkstemp()
|
| /freebsd/crypto/krb5/src/lib/krb5/os/ |
| H A D | krbfileio.c | 59 fd = THREEPARAMOPEN(pathname, O_RDWR | O_CREAT | O_EXCL | O_BINARY, 0600); in k5_create_secure_file()
|
| /freebsd/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/contrib/ntp/libntp/lib/isc/win32/include/isc/ |
| H A D | stat.h | 66 #define O_EXCL _O_EXCL macro
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
| H A D | mkfiles.c | 53 if ((fd = open(buf, O_CREAT | O_EXCL, O_RDWR)) == -1) { in main()
|
| /freebsd/contrib/llvm-project/libc/include/llvm-libc-macros/linux/ |
| H A D | fcntl-macros.h | 23 #define O_EXCL 00000200 macro
|
| /freebsd/lib/libc/tests/db/ |
| H A D | dbm_open_test.c | 35 ATF_CHECK(dbm_open(path, O_RDONLY | O_CREAT | O_EXCL, 0755) == NULL); in ATF_TC_BODY()
|
| /freebsd/libexec/ypxfr/ |
| H A D | yp_dbwrite.c | 68 #define FLAGS O_RDWR|O_EXLOCK|O_EXCL|O_CREAT in yp_open_db_rw()
|