Home
last modified time | relevance | path

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

12

/haiku/src/tests/system/libroot/posix/
H A Dflock_test.cpp25 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 Dadvisory_locking_test.cpp33 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 Dfcntl.cpp63 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 DTypeHandler.h137 struct flock;
153 DEFINE_FACTORY(flock_ptr, flock *);
H A DNetworkTypes.cpp146 format_pointer(Context &context, flock *lock) in format_pointer()
596 POINTER_TYPE(flock_ptr, flock);
/haiku/headers/posix/sys/
H A Dfile.h23 extern int flock(int fd, int op);
/haiku/src/system/libroot/posix/sys/
H A Dflock.c17 flock(int fd, int op) in flock() function
H A DJamfile14 flock.c
/haiku/src/system/kernel/fs/
H A Dvfs.cpp1587 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 DInode.h103 struct flock* lock);
105 const struct flock* lock, bool wait);
107 const struct flock* lock);
H A DCookie.h53 bool operator==(const struct flock& lock) const;
H A DCookie.cpp51 LockInfo::operator==(const struct flock& lock) const in operator ==()
H A DInode.cpp691 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 Dkernel_interface.cpp1332 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 Dlockf.cpp16 struct flock fileLock; in lockf()
/haiku/src/libs/util/
H A Dpidfile.c118 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 Dfuse_lowlevel.h819 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 Dfuse.h432 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 Dfcntl.h80 struct flock { struct
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dunix_io.c119 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 Dfs_interface.h249 struct flock* lock);
251 const struct flock* lock, bool wait);
253 const struct flock* lock);
/haiku/src/libs/uuid/
H A Dgen_uuid.c236 struct flock fl; in get_clock()
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/
H A Dfuse_fs.cpp197 int cmd, struct flock* lock) in fuse_fs_lock()
/haiku/src/system/libroot/stubbed/
H A Dlibroot_stubs_legacy.c1678 void flock() {} in flock() function
H A Dlibroot_stubs.c1731 void flock() {} in flock() function

12