F_FLOCK
if ((ap->a_flags & F_FLOCK) == 0)
if (flags & F_FLOCK)
} else if ((flags & F_FLOCK) != 0) {
} else if ((ap->a_flags & (F_POSIX | F_FLOCK)) != 0) {
locked = (VOP_ADVLOCK(vp, (caddr_t)p, F_SETLK, &lf, F_FLOCK) == 0);
VOP_ADVLOCK(vp, (caddr_t)p, F_UNLCK, &lf, F_FLOCK);
error = VOP_ADVLOCK(vp, (caddr_t)fp, F_UNLCK, &lf, F_FLOCK);
(uap->how & LOCK_NB) ? F_FLOCK : F_FLOCK | F_WAIT);
if ((lock->lf_flags & F_FLOCK) &&
} else if (lo->lo_flags & F_FLOCK) {
} else if (flags & F_FLOCK) {
} else if (flags & F_FLOCK) {
(void) VOP_ADVLOCK(vp, fp, F_UNLCK, &lf, F_FLOCK);
type = F_FLOCK;
KASSERT(!(flags & F_FLOCK), ("unexpected F_FLOCK for F_GETLK"));
if (flags & F_FLOCK) {
if ((flags & (F_FLOCK|F_WAIT)) == (F_FLOCK|F_WAIT)