Lines Matching refs:flock
4 use rustix::fs::{cwd, flock, openat, FlockOperation, Mode, OFlags}; in test_flock()
7 flock(&f, FlockOperation::LockExclusive).unwrap(); in test_flock()
8 flock(&f, FlockOperation::Unlock).unwrap(); in test_flock()
10 flock(&g, FlockOperation::LockExclusive).unwrap(); in test_flock()
11 flock(&g, FlockOperation::Unlock).unwrap(); in test_flock()
16 flock(&f, FlockOperation::LockShared).unwrap(); in test_flock()
18 flock(&g, FlockOperation::LockShared).unwrap(); in test_flock()
19 flock(&f, FlockOperation::Unlock).unwrap(); in test_flock()
20 flock(&g, FlockOperation::Unlock).unwrap(); in test_flock()
25 flock(&f, FlockOperation::LockShared).unwrap(); in test_flock()
26 flock(&f, FlockOperation::LockExclusive).unwrap(); in test_flock()
27 flock(&f, FlockOperation::Unlock).unwrap(); in test_flock()
29 flock(&g, FlockOperation::LockShared).unwrap(); in test_flock()
30 flock(&g, FlockOperation::LockExclusive).unwrap(); in test_flock()
31 flock(&g, FlockOperation::Unlock).unwrap(); in test_flock()