O_EXLOCK
(O_CREAT | O_EXCL | O_EXLOCK | O_NONBLOCK | O_RDONLY | \
#ifndef O_EXLOCK /* 4.4BSD extension. */
#ifndef O_EXLOCK
(O_CREAT | O_EXCL | O_EXLOCK | O_NOFOLLOW | O_NONBLOCK | \
fd = _open(file, O_CREAT|O_RDWR|O_EXLOCK|O_CLOEXEC, 0644);
O_EXLOCK, mode);
fd = _open(path, flags | O_RDWR | O_CLOEXEC | O_EXLOCK, mode);
(oflags & ~(O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC |
#define MISCFLAGS (O_APPEND | O_DIRECT | O_SHLOCK | O_EXLOCK | O_SYNC)
fd[i] = open(fn, O_CREAT|O_EXCL|O_EXLOCK|O_CLOEXEC, 0644);
{ O_EXLOCK, PS_FST_FFLAG_EXLOCK },
#ifdef O_EXLOCK
flags &= ~O_EXLOCK;
#define FLAGS O_RDWR|O_EXLOCK|O_EXCL|O_CREAT
if ((fd = open(path_dhclient_db, O_RDONLY|O_EXLOCK|O_CREAT, 0)) == -1)
if ((mode & O_SHLOCK) || (mode & O_EXLOCK))
{ O_EXLOCK, KF_FLAG_EXLOCK },
if (flags & (O_EXLOCK | O_SHLOCK))
(fmode & (O_EXLOCK | O_SHLOCK)) != 0) {
if ((fmode & (O_EXLOCK | O_SHLOCK)) == 0)
lf.l_type = (fmode & O_EXLOCK) != 0 ? F_WRLCK : F_RDLCK;
pathfd = open(path, O_PATH | O_EXLOCK);
} else if ((fd = open(subj->subj_name, O_EXLOCK|flags, 0666)) == -1) {
if ((fd = open(name, O_RDONLY|O_EXLOCK, 0666)) == -1) {
fd = open(statfile, O_WRONLY|O_CREAT|O_EXLOCK, STAT_FILE_MODE);
lfd = open(_PATH_MASTERLOCK, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK,
lfd = open(pp->lock_file, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK,
fd = open(pp->status_file, O_WRONLY|O_CREAT|O_EXLOCK, STAT_FILE_MODE);
if ((fd = open(file, O_CREAT|O_RDWR|O_TRUNC|O_EXLOCK, 0644)) == -1)
if ((dbp = open_db(map, O_RDWR|O_EXLOCK|O_EXCL|O_CREAT)) == NULL)