Home
last modified time | relevance | path

Searched refs:O_EXLOCK (Results 1 – 25 of 41) sorted by relevance

12

/freebsd/contrib/pjdfstest/tests/open/
H A D18.t18 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK
19 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK
20 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open ${n0} O_RDONLY,O_SHLOCK,O_NONBLOCK
/freebsd/lib/libc/db/db/
H A Ddb.c46 #ifndef O_EXLOCK
47 #define O_EXLOCK 0 macro
59 (O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \ in dbopen()
/freebsd/contrib/openbsm/compat/
H A Dflopen.h44 #ifdef O_EXLOCK in flopen()
45 flags &= ~O_EXLOCK; in flopen()
/freebsd/lib/libutil/
H A Dflopen.c55 #ifdef O_EXLOCK in vflopenat()
56 flags &= ~O_EXLOCK; in vflopenat()
/freebsd/crypto/krb5/src/plugins/kdb/db2/libdb2/include/
H A Ddb-int.h233 #ifndef O_EXLOCK /* 4.4BSD extension. */
234 #define O_EXLOCK 0 macro
/freebsd/tools/test/stress2/misc/
H A Dadvlock.sh144 if ((fd = open(cmdline[0], O_WRONLY | O_EXLOCK)) == -1) {
188 if ((fd = open(cmdline[0], O_RDONLY | O_EXLOCK)) == -1)
H A Dpts2.sh75 if ((fd2 = open(sl, O_RDONLY | O_EXLOCK)) == -1)
H A Dfifo.sh81 (void)open("fifo", O_RDWR | O_SHLOCK | O_EXLOCK);
H A Dopenlock.sh81 fd = open(argv[i], O_RDONLY | O_EXLOCK);
H A Dexlock.sh80 if ((fd = open(file, O_RDWR | O_CREAT | O_APPEND | O_EXLOCK,
H A Dflock_open_close.sh107 fd = open(binary, O_RDWR | O_EXLOCK);
H A Dexlock2.sh95 if ((fd = open(file, O_RDWR|O_CREAT|O_EXCL|O_EXLOCK,
/freebsd/sys/sys/
H A Dfcntl.h93 #define O_EXLOCK 0x0020 /* open with exclusive file lock */ macro
183 O_EXLOCK | O_ASYNC | O_SYNC | O_NOFOLLOW | O_CREAT | O_TRUNC | \
/freebsd/libexec/ypxfr/
H A Dyp_dbwrite.c68 #define FLAGS O_RDWR|O_EXLOCK|O_EXCL|O_CREAT in yp_open_db_rw()
/freebsd/contrib/dma/
H A Dutil.c311 #ifndef O_EXLOCK in open_locked()
325 return(open(fname, flags|O_EXLOCK, mode)); in open_locked()
/freebsd/usr.bin/lockf/
H A Dlockf.c335 } else if ((fd = open(subj->subj_name, O_EXLOCK|flags, 0666)) == -1) { in acquire_lock()
427 if ((fd = open(name, O_RDONLY|O_EXLOCK, 0666)) == -1) { in wait_for_lock()
/freebsd/crypto/krb5/src/plugins/kdb/db2/libdb2/db/
H A Ddb.c54 (O_CREAT | O_EXCL | O_EXLOCK | O_NONBLOCK | O_RDONLY | \ in kdb2_dbopen()
/freebsd/lib/libc/gen/
H A Dsem_new.c180 O_EXLOCK, mode); in _sem_open()
211 fd = _open(path, flags | O_RDWR | O_CLOEXEC | O_EXLOCK, mode); in _sem_open()
H A Dpututxline.c49 fd = _open(file, O_CREAT|O_RDWR|O_EXLOCK|O_CLOEXEC, 0644); in futx_open()
/freebsd/lib/libc/stdio/
H A Dmktemp.c123 (oflags & ~(O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC | in _gettemp()
/freebsd/lib/libc/tests/stdio/
H A Dmkostemp_test.c46 #define MISCFLAGS (O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC)
/freebsd/contrib/blocklist/bin/
H A Dstate.c82 flags &= O_CREAT|O_EXCL|O_EXLOCK|O_NONBLOCK|O_RDONLY| in state_open()
/freebsd/lib/libc/tests/stdlib/
H A Dsystem_test.c119 fd[i] = open(fn, O_CREAT|O_EXCL|O_EXLOCK|O_CLOEXEC, 0644); in ATF_TC_BODY()
/freebsd/usr.sbin/yp_mkdb/
H A Dyp_mkdb.c192 if ((dbp = open_db(map, O_RDWR|O_EXLOCK|O_EXCL|O_CREAT)) == NULL) in main()
/freebsd/usr.sbin/pw/
H A Dpw_conf.c421 if ((fd = open(file, O_CREAT|O_RDWR|O_TRUNC|O_EXLOCK, 0644)) == -1) in write_userconfig()

12