/darwin-on-arm/xnu/tools/tests/libMicro/ |
H A D | file_lock.c | 49 struct flock fl; 61 struct flock fl;
|
H A D | cascade_flock.c | 54 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 D | cascade_fcntl.c | 133 struct flock fl; 145 struct flock fl;
|
/darwin-on-arm/xnu/bsd/nfs/ |
H A D | nfs_lock.h | 81 struct flock lm_fl; /* The lock request. */
|
H A D | nfsmount.h | 231 int (*nf_getlock_rpc)(nfsnode_t, struct nfs_lock_owner *, struct flock *, uint64_t, uint64_t, vfs_context_t);
|
H A D | nfs.h | 1279 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 D | nfs_lock.c | 834 struct flock *fl,
|
H A D | nfs_syscalls.c | 517 struct flock lf;
|
H A D | nfs4_vnops.c | 3098 * (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 D | specdev.h | 128 struct flock;
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | fcntl.h | 331 #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 D | vnode_if.h | 1051 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 D | Makefile | 52 flock.2 \
|
/darwin-on-arm/xnu/security/ |
H A D | mac_file.c | 188 struct flock *fl)
|
H A D | mac_framework.h | 87 struct flock; 199 struct flock *fl);
|
H A D | mac_policy.h | 815 @param fl The flock structure 829 struct flock *fl
|
/darwin-on-arm/xnu/bsd/vfs/ |
H A D | vfs_journal.h | 140 lck_mtx_t flock; // serializes flushing of journal member in struct:journal
|
H A D | vfs_journal.c | 294 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 D | vfs_xattr.c | 3280 struct flock lf; 3295 struct flock lf;
|
H A D | vfs_vnops.c | 1412 struct flock lf;
|
H A D | kpi_vfs.c | 5680 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 D | vfs_syscalls.c | 2974 struct flock lf;
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | kern_lockf.c | 131 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 D | kern_descrip.c | 680 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 D | tests.c | 3800 /* 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) );
|