POSIX: add posix_fallocate and a preallocate syscall
the preallocate syscall will call the preallocate filesystem hook, if available. fix #6285 Change-Id: Ifff4595548610c8e009d4e5ffb64c37e0884e62d Reviewed-on: https://review.haiku-os.org/c/haiku/+/3382 Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
@@ -338,6 +338,7 @@ extern status_t _kern_lock_node(int fd);
|
||||
extern status_t _kern_unlock_node(int fd);
|
||||
extern status_t _kern_get_next_fd_info(team_id team, uint32 *_cookie,
|
||||
struct fd_info *info, size_t infoSize);
|
||||
extern status_t _kern_preallocate(int fd, off_t offset, off_t length);
|
||||
|
||||
// socket functions
|
||||
extern int _kern_socket(int family, int type, int protocol);
|
||||
|
||||
Reference in New Issue
Block a user