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:
Jérôme Duval
2020-11-12 10:41:21 +00:00
parent 1f7ac2962b
commit fe357eb9c9
7 changed files with 72 additions and 0 deletions
+1
View File
@@ -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);