Home
last modified time | relevance | path

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

12345678

/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/crypto/krb5/src/plugins/kdb/db2/
H A Dadb_openclose.c36 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 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/sys/sys/
H A Dfcntl.h103 #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 Dgzlib.c93 #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 D22.t16 expect EEXIST open ${n0} O_CREAT,O_EXCL 0644
/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/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/sys/contrib/zstd/zlibWrapper/
H A Dgzlib.c97 #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 Dmmap.c178 .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 Dmkstemp.c64 fd = open(template, O_RDWR | O_CREAT | O_EXCL, 0600); in mkstemp()
/freebsd/crypto/krb5/src/lib/krb5/os/
H A Dkrbfileio.c59 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 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.c53 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 Dfcntl-macros.h23 #define O_EXCL 00000200 macro
/freebsd/lib/libc/tests/db/
H A Ddbm_open_test.c35 ATF_CHECK(dbm_open(path, O_RDONLY | O_CREAT | O_EXCL, 0755) == NULL); in ATF_TC_BODY()
/freebsd/libexec/ypxfr/
H A Dyp_dbwrite.c68 #define FLAGS O_RDWR|O_EXLOCK|O_EXCL|O_CREAT in yp_open_db_rw()

12345678