flock
struct flock stdout_lock;
(void) flock(histfd, LOCK_EX);
(void) flock(histfd, LOCK_UN);
(void) flock(histfd, LOCK_UN);
(void) flock(histfd, LOCK_EX);
(void) flock(histfd, LOCK_UN);
if (flock(fileno(pidfp), LOCK_EX|LOCK_NB) == 0)
if (flock(fileno(score_fp), LOCK_EX) < 0)
(void)flock(fileno(score_fp), LOCK_UN);
if (!flock(fileno(lp), LOCK_EX))
(void)flock(fileno(lp), LOCK_UN);
(void) flock(fd, LOCK_EX);
(void) flock(fd, LOCK_UN);
if (!flock(fd, LOCK_EX|LOCK_NB))
(void)flock(fd, LOCK_UN|LOCK_NB);
if (flock(fileno(fp), LOCK_EX) < 0)
flock(fileno(fp), LOCK_UN);
if (flock(fileno(sync_fp), LOCK_EX|LOCK_NB) >= 0)
flock(fileno(sync_fp), LOCK_UN);
if (flock(sd, lck))
flock(sd, LOCK_UN);
struct flock fl;
if (!(flock(fd, LOCK_EX | LOCK_NB) == -1 && errno == EWOULDBLOCK)) {
if (flock(fd, LOCK_EX | LOCK_NB) == -1 &&
void *id, int op, struct flock *fl, int flags)
puffs_cookie_t, void *, int, struct flock *, int);
puffs_cookie_t, void *, int, struct flock *, int);
puffs_cookie_t, void *, int, struct flock *, int); \
int cmd, struct flock* lock) {
if (((const struct __CONCAT(fuse_operations_v,VER)*)fs->op)->flock) \
return ((const struct __CONCAT(fuse_operations_v,VER)*)fs->op)->flock(path, fi, op); \
int fuse_fs_lock(struct fuse_fs* fs, const char* path, struct fuse_file_info* fi, int cmd, struct flock* lock);
int (*lock) (const char *, struct fuse_file_info *, int, struct flock *);
int (*lock) (const char *, struct fuse_file_info *, int, struct flock *);
int (*lock) (const char *, struct fuse_file_info *, int, struct flock *);
int (*flock) (const char *, struct fuse_file_info *, int);
int (*lock) (const char *, struct fuse_file_info *, int, struct flock *);
int (*flock) (const char *, struct fuse_file_info *, int);
int (*lock) (const char *, struct fuse_file_info *, int, struct flock *);
int (*flock) (const char *, struct fuse_file_info *, int);
int (*lock) (const char *, struct fuse_file_info *, int, struct flock *);
int (*flock) (const char *, struct fuse_file_info *, int);
int (*lock) (const char *, struct fuse_file_info *, int, struct flock *);
int (*flock) (const char *, struct fuse_file_info *, int);
if ((rval = flock(fileno(mp->keyfile), LOCK_EX|LOCK_NB)) == 0 ||
struct flock flarg;
struct flock flarg;
if (flock(fd, LOCK_EX | LOCK_NB) == -1) {
struct flock fl;
(void) flock(fd, LOCK_EX);
(void) flock(fileno(df), LOCK_SH);
if (flock(diskfd, LOCK_EX)) {
if (flock(diskfd, LOCK_UN))
bsd_to_##LINUX##_##FLOCK(struct LINUX##_##FLOCK *lfp, const struct flock *bfp) \
LINUX##_to_bsd_##FLOCK(struct flock *bfp, const struct LINUX##_##FLOCK *lfp) \
struct flock bfl; \
struct flock bfl; \
do_linux_getlk(fd, cmd, arg, linux, flock);
do_linux_setlk(fd, cmd, arg, linux, flock, LINUX_F_SETLK);
conv_linux_flock(linux, flock)
linux32, flock);
linux32, flock, LINUX_F_SETLK);
conv_linux_flock(linux32, flock)
struct flock fl;
static void bsd_to_sunos_flock(struct flock *, struct sunos_flock *);
static void sunos_to_bsd_flock(struct sunos_flock *, struct flock *);
bsd_to_sunos_flock(struct flock *iflp, struct sunos_flock *oflp)
sunos_to_bsd_flock(struct sunos_flock *iflp, struct flock *oflp)
sunos_to_bsd_flock(struct sunos_flock *iflp, struct flock *oflp)
struct flock fl;
static void bsd_to_sunos_flock(struct flock *, struct sunos_flock *);
static void sunos_to_bsd_flock(struct sunos_flock *, struct flock *);
bsd_to_sunos_flock(struct flock *iflp, struct sunos_flock *oflp)
static int ultrix_to_bsd_flock(struct ultrix_flock *, struct flock *);
static void bsd_to_ultrix_flock(struct flock *, struct ultrix_flock *);
ultrix_to_bsd_flock(struct ultrix_flock *ufl, struct flock *fl)
bsd_to_ultrix_flock(struct flock *fl, struct ultrix_flock *ufl)
struct flock fl;
struct flock *a_fl;
struct flock *a_fl;
nfsrpc_advlock(vnode_t vp, off_t size, int op, struct flock *fl,
struct nfsclclient *clp, u_int64_t off, u_int64_t len, struct flock *fl,
nfscl_checkwritelocked(vnode_t vp, struct flock *fl,
u_int64_t len, struct flock *fl, NFSPROC_T *p, void *id, int flags)
struct flock *fl;
struct flock lm_fl; /* The lock request. */
int nfsrpc_advlock(vnode_t, off_t, int, struct flock *, int,
struct nfsclclient *, u_int64_t, u_int64_t, struct flock *,
int nfscl_checkwritelocked(vnode_t, struct flock *,
u_int64_t, struct flock *, NFSPROC_T *, void *, int);
struct vnode *vp, int op, struct flock *fl, int flags,
nlm_init_lock(struct flock *fl, int flags, int svid,
nlm_advlock_internal(struct vnode *vp, void *id, int op, struct flock *fl,
nlm_set_creds_for_lock(struct thread *td, struct flock *fl)
nlm_reclaim_free_lock(struct vnode *vp, struct flock *fl, void *arg)
struct flock newfl;
nlm_client_recover_lock(struct vnode *vp, struct flock *fl, void *arg)
nlm_record_lock(struct vnode *vp, int op, struct flock *fl,
struct flock newfl;
struct vnode *vp, int op, struct flock *fl, int flags,
struct vnode *vp, int op, struct flock *fl, int flags,
struct vnode *vp, int op, struct flock *fl, int flags,
struct vnode *vp, int op, struct flock *fl, int flags,
static int nlm_init_lock(struct flock *fl, int flags, int svid,
struct vnode *vp, int op, struct flock *fl, int flags,
struct flock fl;
struct flock fl;
struct flock fl;
struct flock af_fl; /* (c) lock details */
struct flock fl;
struct flock fl;
struct flock *a_fl;
struct flock pvnr_fl; /* OUT */
struct flock *a_fl;
struct flock *a_fl;
struct flock *a_fl;
struct flock *a_fl;
struct flock *a_fl;
struct flock *a_fl;
struct flock lf;
struct flock lf;
do_fcntl_lock(int fd, int cmd, struct flock *fl)
int (*fo_advlock)(struct file *, void *, int, struct flock *, int);
struct flock fl;
int (*fo_advlock)(struct file *, void *, int, struct flock *, int);
struct flock lf;
lf_getlock(struct lockf *lock, struct flock *fl)
struct flock *fl = ap->a_fl;
struct flock lf;
vn_advlock(struct file *fp, void *id, int op, struct flock *fl, int flags)
static int vn_advlock(struct file *, void *, int, struct flock *, int);
struct flock *fl,
struct flock *a_fl;
struct flock;
struct flock *a_fl;
int RUMP_VOP_ADVLOCK(struct vnode *, void *, int, struct flock *, int);
struct flock;
__weak_alias(flock,rump___sysimpl_flock);
struct flock *a_fl;
struct flock *fl,
int flock(int, int);
int (*fo_advlock) (struct file *, void *, int, struct flock *,
struct flock;
struct flock;
int do_fcntl_lock(int, int, struct flock *);
struct flock *a_fl;
int VOP_ADVLOCK(struct vnode *, void *, int, struct flock *, int);
struct flock *a_fl;
struct flock;
struct flock *a_fl;
struct flock;
struct flock *a_fl;
struct flock l;
int a = ((const struct flock *)p)->l_start;
int b = ((const struct flock *)q)->l_start;
struct flock *lock, struct flock *end)
const struct flock l = { start, len, 0, F_RDLCK, SEEK_SET };
struct flock expect[4];
const struct flock lock[4] = {
struct flock result[5];
struct flock fl;
struct flock fl = {
struct flock fl = {
int flock(int, int);
struct flock fl = {0};
struct flock lock;
while (flock(fd, lock) == -1) {
if (flock(fileno(fbuf), LOCK_EX) == -1) {
if (flock(fileno(fh), LOCK_EX | LOCK_NB) == 0) {
if ((rval = flock(fileno(skey.keyfile), LOCK_EX|LOCK_NB)) == 0
if (flock(FD, (LOCK_EX|LOCK_NB)) != 0) {
struct flock metalog_lock;
(void)flock(fd, LOCK_SH);
(void)flock(fd, LOCK_SH);
if (!get_line(fp) || flock(fileno(fp), LOCK_SH|LOCK_NB) == 0) {
if (fd < 0 || flock(fd, LOCK_EX) < 0) {
if (fd < 0 || flock(fd, LOCK_EX) < 0) {
if (fd < 0 || flock(fd, LOCK_SH|LOCK_NB) == 0) {
(void)flock(fd, LOCK_SH);
if (flock(lfd, LOCK_EX|LOCK_NB) < 0) {
if (fd < 0 || flock(fd, LOCK_EX) < 0) {
if (flock(lfd, LOCK_EX|LOCK_NB) < 0) {
if (flock(fd, LOCK_EX))
error = flock(fl->fd, lflags);
if(flock(fl->fd, lflags) != 0) {
if (flock(rpcbindlockfd, LOCK_EX|LOCK_NB) == -1 && errno == EWOULDBLOCK)
if (flock(masterfd, LOCK_EX | LOCK_NB) < 0) {
if (flock(fileno(from), LOCK_EX | LOCK_NB) < 0) {
if (flock(masterfd, LOCK_EX | LOCK_NB) < 0) {
if (flock(fileno(from), LOCK_EX | LOCK_NB) < 0) {
if (flock(fileno(from), LOCK_EX | LOCK_NB) < 0) {
if (flock(fileno(from), LOCK_EX | LOCK_NB) < 0) {
(void)flock(fd, LOCK_SH);