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

/xnu-2782.1.97/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;
/xnu-2782.1.97/bsd/nfs/
H A Dnfs_lock.h81 struct flock lm_fl; /* The lock request. */
H A Dnfs.h1304 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 Dnfsmount.h232 int (*nf_getlock_rpc)(nfsnode_t, struct nfs_lock_owner *, struct flock *, uint64_t, uint64_t, vfs_context_t);
H A Dnfs_lock.c841 struct flock *fl,
H A Dnfs_syscalls.c596 struct flock lf;
H A Dnfs4_vnops.c3104 * (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 Dfcntl.h361 #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 Dvnode_if.h1081 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 Dspecdev.h128 struct flock;
/xnu-2782.1.97/bsd/man/man2/
H A DMakefile55 flock.2 \
/xnu-2782.1.97/security/
H A Dmac_file.c188 struct flock *fl)
H A Dmac_framework.h89 struct flock;
199 struct flock *fl);
H A Dmac_policy.h847 @param fl The flock structure
861 struct flock *fl
/xnu-2782.1.97/bsd/vfs/
H A Dvfs_journal.h141 lck_mtx_t flock; // serializes flushing of journal member in struct:journal
H A Dvfs_journal.c298 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 Dvfs_xattr.c3308 struct flock lf;
3323 struct flock lf;
H A Dvfs_vnops.c1481 struct flock lf;
H A Dkpi_vfs.c4867 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 Dvfs_syscalls.c3285 struct flock lf;
/xnu-2782.1.97/bsd/kern/
H A Dkern_lockf.c133 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 Dkern_descrip.c199 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 Dtests.c3810 /* 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) );

Completed in 274 milliseconds