struct flock_info { uint32_t pid; uint32_t mode; uint64_t start; uint64_t length; uint64_t fs; uint64_t ino; } __attribute__((packed)); size_t listflocks(struct flock_info *addr, size_t len);
This syscall writes a list of all POSIX file locks currently in use set with
fcntl to addr, which contains len items.
The number of file locks is returned in success, and -1 in
failure, with the following errno:
EFAULT: The array pointed by addr is outside accessible memory.