Searched refs:flock (Results 1 - 25 of 25) sorted by relevance

/darwin-on-arm/xnu/tools/tests/libMicro/
H A Dfile_lock.c49 struct flock fl;
61 struct flock fl;
H A Dcascade_flock.c54 extern int flock(int fd, int operation);
89 "notes: thread cascade using flock file locking\n",
141 return (flock(files[index], LOCK_EX) == -1);
147 return (flock(files[index], LOCK_UN) == -1);
H A Dcascade_fcntl.c133 struct flock fl;
145 struct flock fl;
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_lock.h81 struct flock lm_fl; /* The lock request. */
H A Dnfsmount.h231 int (*nf_getlock_rpc)(nfsnode_t, struct nfs_lock_owner *, struct flock *, uint64_t, uint64_t, vfs_context_t);
H A Dnfs.h1279 int nfs_advlock_getlock(nfsnode_t, struct nfs_lock_owner *, struct flock *, uint64_t, uint64_t, vfs_context_t);
1362 int nfs3_getlock_rpc(nfsnode_t, struct nfs_lock_owner *, struct flock *, uint64_t, uint64_t, vfs_context_t);
1363 int nfs4_getlock_rpc(nfsnode_t, struct nfs_lock_owner *, struct flock *, uint64_t, uint64_t, vfs_context_t);
H A Dnfs_lock.c834 struct flock *fl,
H A Dnfs_syscalls.c517 struct flock lf;
H A Dnfs4_vnops.c3098 * (flock locks are always inserted at the head the list)
3405 struct flock *fl,
3492 struct flock *fl,
3599 * For exclusive flock-style locks, if we block waiting for the
3601 * flock-style lock. So, the first thing we do is check if we
3602 * have a shared flock-style lock.
4052 * If style is posix, don't send any unlock rpcs if flock is held.
4053 * If we unlock an flock, don't send unlock rpcs for any posix-style
4223 struct flock *a_fl;
4230 struct flock *f
[all...]
/darwin-on-arm/xnu/bsd/miscfs/specfs/
H A Dspecdev.h128 struct flock;
/darwin-on-arm/xnu/bsd/sys/
H A Dfcntl.h331 #define F_FLOCK 0x020 /* Use flock(2) semantics for lock */
412 struct flock { struct
471 /* lock operations for flock(2) */
638 int flock(int, int);
H A Dvnode_if.h1051 struct flock *a_fl;
1060 both flock() and POSIX advisory locking usage, though not all filesystems support both (or any). VFS
1069 @param flags F_FLOCK: use flock() semantics. F_POSIX: use POSIX semantics. F_WAIT: sleep if necessary.
1075 extern errno_t VNOP_ADVLOCK(vnode_t, caddr_t, int, struct flock *, int, vfs_context_t);
/darwin-on-arm/xnu/bsd/man/man2/
H A DMakefile52 flock.2 \
/darwin-on-arm/xnu/security/
H A Dmac_file.c188 struct flock *fl)
H A Dmac_framework.h87 struct flock;
199 struct flock *fl);
H A Dmac_policy.h815 @param fl The flock structure
829 struct flock *fl
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_journal.h140 lck_mtx_t flock; // serializes flushing of journal member in struct:journal
H A Dvfs_journal.c294 lck_mtx_lock(&jnl->flock);
300 lck_mtx_unlock(&jnl->flock);
1780 lck_mtx_init(&jnl->flock, jnl_mutex_group, jnl_lock_attr);
2045 lck_mtx_init(&jnl->flock, jnl_mutex_group, jnl_lock_attr);
4150 msleep(condition, &jnl->flock, PRIBIO, condition_name, NULL);
4170 msleep(condition, &jnl->flock, PRIBIO, condition_name, NULL);
H A Dvfs_xattr.c3280 struct flock lf;
3295 struct flock lf;
H A Dvfs_vnops.c1412 struct flock lf;
H A Dkpi_vfs.c5680 struct flock *a_fl;
5686 VNOP_ADVLOCK(struct vnode *vp, caddr_t id, int op, struct flock *fl, int flags, vfs_context_t ctx)
H A Dvfs_syscalls.c2974 struct flock lf;
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_lockf.c131 static int lf_getlock(struct lockf *, struct flock *, pid_t);
164 struct flock *fl = ap->a_fl;
186 * Convert the flock structure into a start and end.
307 * a flock(2) invoker sleeping on a blocked lock holds an iocount reference
479 * We are blocked. Since flock style locks cover
551 * For flock type locks, we must first remove
856 * fl Pointer to flock structure to receive
872 lf_getlock(struct lockf *lock, struct flock *fl, pid_t matchpid)
H A Dkern_descrip.c680 struct flock fl;
4546 struct flock lf;
4702 * flock
4725 flock(proc_t p, struct flock_args *uap, __unused int32_t *retval) function
4731 struct flock lf;
/darwin-on-arm/xnu/tools/tests/xnu_quick_test/
H A Dtests.c3800 /* test flock */
3807 my_err = flock( my_fd, LOCK_EX );
3809 printf( "flock - LOCK_EX - failed with error %d - \"%s\" \n", errno, strerror( errno) );
3835 my_err = flock( my_child_fd, (LOCK_EX | LOCK_NB) );
3838 printf( "flock call failed with error %d - \"%s\" \n", errno, strerror( errno) );
3844 printf( "flock call should have failed with EWOULDBLOCK err \n" );
3868 my_err = flock( my_fd, LOCK_UN );
3870 printf( "flock - LOCK_UN - failed with error %d - \"%s\" \n", errno, strerror( errno) );

Completed in 249 milliseconds