/haiku/src/tests/system/libroot/posix/ |
H A D | flock_test.cpp | 25 struct flock flock = { in try_to_lock() local 33 if (fcntl(fd, F_SETLK, &flock) == 0) { in try_to_lock() 43 if (fcntl(fd, F_SETLKW, &flock) == -1) { in try_to_lock() 49 flock.l_type = F_UNLCK; in try_to_lock() 51 if (fcntl(fd, F_SETLK, &flock) == -1) { in try_to_lock() 70 struct flock flock = { in main() local 78 if (fcntl(fd, F_SETLK, &flock) == 0) { in main() 84 flock.l_type = F_RDLCK; in main() 87 if (fcntl(fd, F_SETLK, &flock) == -1) { in main() 101 flock.l_type = F_WRLCK; in main() [all …]
|
/haiku/src/tests/system/kernel/ |
H A D | advisory_locking_test.cpp | 33 struct flock flock; in do_lock() local 34 flock.l_type = type; in do_lock() 35 flock.l_whence = SEEK_SET; in do_lock() 36 flock.l_start = start; in do_lock() 37 flock.l_len = length; in do_lock() 38 if (fcntl(fd, F_SETLK, &flock) != 0) { in do_lock()
|
/haiku/src/bin/debug/strace/ |
H A D | fcntl.cpp | 63 FCNTL_INFO_ENTRY_TYPE(F_GETLK, struct flock*), 64 FCNTL_INFO_ENTRY_TYPE(F_SETLK, struct flock*), 65 FCNTL_INFO_ENTRY_TYPE(F_SETLKW, struct flock*),
|
H A D | TypeHandler.h | 137 struct flock; 153 DEFINE_FACTORY(flock_ptr, flock *);
|
H A D | NetworkTypes.cpp | 146 format_pointer(Context &context, flock *lock) in format_pointer() 596 POINTER_TYPE(flock_ptr, flock);
|
/haiku/headers/posix/sys/ |
H A D | file.h | 23 extern int flock(int fd, int op);
|
/haiku/src/system/libroot/posix/sys/ |
H A D | flock.c | 17 flock(int fd, int op) in flock() function
|
H A D | Jamfile | 14 flock.c
|
/haiku/src/system/kernel/fs/ |
H A D | vfs.cpp | 1587 advisory_lock_intersects(struct advisory_lock* lock, struct flock* flock) in advisory_lock_intersects() argument 1589 if (flock == NULL) in advisory_lock_intersects() 1592 return lock->start <= flock->l_start - 1 + flock->l_len in advisory_lock_intersects() 1593 && lock->end >= flock->l_start; in advisory_lock_intersects() 1600 test_advisory_lock(struct vnode* vnode, struct flock* flock) in test_advisory_lock() argument 1602 flock->l_type = F_UNLCK; in test_advisory_lock() 1614 if (lock->team != team && advisory_lock_intersects(lock, flock)) { in test_advisory_lock() 1616 if (flock->l_type != F_RDLCK || !lock->shared) { in test_advisory_lock() 1618 flock->l_type = lock->shared ? F_RDLCK : F_WRLCK; in test_advisory_lock() 1619 flock->l_whence = SEEK_SET; in test_advisory_lock() [all …]
|
/haiku/src/add-ons/kernel/file_systems/nfs4/ |
H A D | Inode.h | 103 struct flock* lock); 105 const struct flock* lock, bool wait); 107 const struct flock* lock);
|
H A D | Cookie.h | 53 bool operator==(const struct flock& lock) const;
|
H A D | Cookie.cpp | 51 LockInfo::operator==(const struct flock& lock) const in operator ==()
|
H A D | Inode.cpp | 691 Inode::TestLock(OpenFileCookie* cookie, struct flock* lock) in TestLock() 731 Inode::AcquireLock(OpenFileCookie* cookie, const struct flock* lock, in AcquireLock() 778 Inode::ReleaseLock(OpenFileCookie* cookie, const struct flock* lock) in ReleaseLock()
|
H A D | kernel_interface.cpp | 1332 struct flock* lock) in nfs4_test_lock() 1350 const struct flock* lock, bool wait) in nfs4_acquire_lock() 1370 const struct flock* lock) in nfs4_release_lock()
|
/haiku/src/system/libroot/posix/unistd/ |
H A D | lockf.cpp | 16 struct flock fileLock; in lockf()
|
/haiku/src/libs/util/ |
H A D | pidfile.c | 118 struct flock lock; in pidfile_open() 236 if (flock(pfh->pf_fd, LOCK_UN) == -1) { in _pidfile_remove()
|
/haiku/headers/private/userlandfs/fuse/ |
H A D | fuse_lowlevel.h | 819 struct fuse_file_info *fi, struct flock *lock); 847 struct flock *lock, int sleep); 1009 void (*flock) (fuse_req_t req, fuse_ino_t ino, member 1220 int fuse_reply_lock(fuse_req_t req, const struct flock *lock);
|
H A D | fuse.h | 432 struct flock *); 581 int (*flock) (const char *, struct fuse_file_info *, int op); member 859 struct fuse_file_info *fi, int cmd, struct flock *lock);
|
/haiku/headers/posix/ |
H A D | fcntl.h | 80 struct flock { struct
|
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | unix_io.c | 119 struct flock flk; in ntfs_device_unix_io_open() 205 struct flock flk; in ntfs_device_unix_io_close()
|
/haiku/headers/os/drivers/ |
H A D | fs_interface.h | 249 struct flock* lock); 251 const struct flock* lock, bool wait); 253 const struct flock* lock);
|
/haiku/src/libs/uuid/ |
H A D | gen_uuid.c | 236 struct flock fl; in get_clock()
|
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/ |
H A D | fuse_fs.cpp | 197 int cmd, struct flock* lock) in fuse_fs_lock()
|
/haiku/src/system/libroot/stubbed/ |
H A D | libroot_stubs_legacy.c | 1678 void flock() {} in flock() function
|
H A D | libroot_stubs.c | 1731 void flock() {} in flock() function
|