Home
last modified time | relevance | path

Searched refs:O_EXLOCK (Results 1 – 25 of 38) 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/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/usr.bin/lockf/
H A Dlockf.c277 } else if ((fd = open(subj->subj_name, O_EXLOCK|flags, 0666)) == -1) { in acquire_lock()
346 if ((fd = open(name, O_RDONLY|O_EXLOCK, 0666)) == -1) { in wait_for_lock()
/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/libexec/ypxfr/
H A Dyp_dbwrite.c68 #define FLAGS O_RDWR|O_EXLOCK|O_EXCL|O_CREAT in yp_open_db_rw()
/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/tests/stdio/
H A Dmkostemp_test.c46 #define MISCFLAGS (O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC)
/freebsd/lib/libc/stdio/
H A Dmktemp.c123 (oflags & ~(O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC | in _gettemp()
/freebsd/sys/sys/
H A Dfcntl.h93 #define O_EXLOCK 0x0020 /* open with exclusive file lock */ macro
/freebsd/contrib/blocklist/bin/
H A Dstate.c80 flags &= O_CREAT|O_EXCL|O_EXLOCK|O_NONBLOCK|O_RDONLY| in state_open()
/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()
/freebsd/contrib/pjdfstest/
H A Dpjdfstest.c308 #ifdef O_EXLOCK
309 { O_EXLOCK, "O_EXLOCK" },
/freebsd/usr.sbin/lpr/lpd/
H A Dlpd.c279 lfd = open(_PATH_MASTERLOCK, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK, in main()
H A Dprintjob.c193 lfd = open(pp->lock_file, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK, in printjob()
1989 fd = open(pp->status_file, O_WRONLY|O_CREAT|O_EXLOCK, STAT_FILE_MODE); in pstatus()

12