/xnu-2782.1.97/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;
|
/xnu-2782.1.97/bsd/nfs/ |
H A D | nfs_lock.h | 81 struct flock lm_fl; /* The lock request. */
|
H A D | nfs.h | 1304 int nfs_advlock_getlock(nfsnode_t, struct nfs_lock_owner *, struct flock *, uint64_t, uint64_t, vfs_context_t); 1387 int nfs3_getlock_rpc(nfsnode_t, struct nfs_lock_owner *, struct flock *, uint64_t, uint64_t, vfs_context_t); 1388 int nfs4_getlock_rpc(nfsnode_t, struct nfs_lock_owner *, struct flock *, uint64_t, uint64_t, vfs_context_t);
|
H A D | nfsmount.h | 232 int (*nf_getlock_rpc)(nfsnode_t, struct nfs_lock_owner *, struct flock *, uint64_t, uint64_t, vfs_context_t);
|
H A D | nfs_lock.c | 841 struct flock *fl,
|
H A D | nfs_syscalls.c | 596 struct flock lf;
|
H A D | nfs4_vnops.c | 3104 * (flock locks are always inserted at the head the list) 3411 struct flock *fl, 3498 struct flock *fl, 3605 * For exclusive flock-style locks, if we block waiting for the 3607 * flock-style lock. So, the first thing we do is check if we 3608 * have a shared flock-style lock. 4058 * If style is posix, don't send any unlock rpcs if flock is held. 4059 * If we unlock an flock, don't send unlock rpcs for any posix-style 4229 struct flock *a_fl; 4236 struct flock *f [all...] |
/xnu-2782.1.97/bsd/sys/ |
H A D | fcntl.h | 361 #define F_FLOCK 0x020 /* Use flock(2) semantics for lock */ 405 struct flock { struct 421 struct flock fl; /* flock passed for file locking */ 522 /* lock operations for flock(2) */ 693 int flock(int, int);
|
H A D | vnode_if.h | 1081 struct flock *a_fl; 1091 both flock() and POSIX advisory locking usage, though not all filesystems support both (or any). VFS 1100 @param flags F_FLOCK: use flock() semantics. F_POSIX: use POSIX semantics. F_WAIT: sleep if necessary. 1107 extern errno_t VNOP_ADVLOCK(vnode_t, caddr_t, int, struct flock *, int, vfs_context_t, struct timespec *);
|
/xnu-2782.1.97/bsd/miscfs/specfs/ |
H A D | specdev.h | 128 struct flock;
|
/xnu-2782.1.97/bsd/man/man2/ |
H A D | Makefile | 55 flock.2 \
|
/xnu-2782.1.97/security/ |
H A D | mac_file.c | 188 struct flock *fl)
|
H A D | mac_framework.h | 89 struct flock; 199 struct flock *fl);
|
H A D | mac_policy.h | 847 @param fl The flock structure 861 struct flock *fl
|
/xnu-2782.1.97/bsd/vfs/ |
H A D | vfs_journal.h | 141 lck_mtx_t flock; // serializes flushing of journal member in struct:journal
|
H A D | vfs_journal.c | 298 lck_mtx_lock(&jnl->flock); 304 lck_mtx_unlock(&jnl->flock); 1790 lck_mtx_init(&jnl->flock, jnl_mutex_group, jnl_lock_attr); 2063 lck_mtx_init(&jnl->flock, jnl_mutex_group, jnl_lock_attr); 2310 lck_mtx_destroy(&jnl->flock, jnl_mutex_group); 4328 msleep(condition, &jnl->flock, PRIBIO, condition_name, NULL); 4348 msleep(condition, &jnl->flock, PRIBIO, condition_name, NULL);
|
H A D | vfs_xattr.c | 3308 struct flock lf; 3323 struct flock lf;
|
H A D | vfs_vnops.c | 1481 struct flock lf;
|
H A D | kpi_vfs.c | 4867 struct flock *a_fl; 4873 VNOP_ADVLOCK(struct vnode *vp, caddr_t id, int op, struct flock *fl, int flags, vfs_context_t ctx, struct timespec *timeout)
|
H A D | vfs_syscalls.c | 3285 struct flock lf;
|
/xnu-2782.1.97/bsd/kern/ |
H A D | kern_lockf.c | 133 static int lf_getlock(struct lockf *, struct flock *, pid_t); 172 struct flock *fl = ap->a_fl; 194 * Convert the flock structure into a start and end. 312 * a flock(2) invoker sleeping on a blocked lock holds an iocount reference 492 * We are blocked. Since flock style locks cover 564 * For flock type locks, we must first remove 909 * fl Pointer to flock structure to receive 925 lf_getlock(struct lockf *lock, struct flock *fl, pid_t matchpid)
|
H A D | kern_descrip.c | 199 check_file_seek_range(struct flock *fl, off_t cur_file_offset) 758 struct flock fl; 4917 struct flock lf; 5080 * flock 5103 flock(proc_t p, struct flock_args *uap, __unused int32_t *retval) function 5109 struct flock lf;
|
/xnu-2782.1.97/tools/tests/xnu_quick_test/ |
H A D | tests.c | 3810 /* test flock */ 3817 my_err = flock( my_fd, LOCK_EX ); 3819 printf( "flock - LOCK_EX - failed with error %d - \"%s\" \n", errno, strerror( errno) ); 3845 my_err = flock( my_child_fd, (LOCK_EX | LOCK_NB) ); 3848 printf( "flock call failed with error %d - \"%s\" \n", errno, strerror( errno) ); 3854 printf( "flock call should have failed with EWOULDBLOCK err \n" ); 3878 my_err = flock( my_fd, LOCK_UN ); 3880 printf( "flock - LOCK_UN - failed with error %d - \"%s\" \n", errno, strerror( errno) );
|