use direct syscall rather than write function in posix_spawn child
[musl] / src / fcntl / posix_fallocate.c
1 #include <fcntl.h>
2 #include "syscall.h"
3 #include "libc.h"
4
5 int posix_fallocate(int fd, off_t base, off_t len)
6 {
7         return -__syscall(SYS_fallocate, fd, 0, __SYSCALL_LL_E(base),
8                 __SYSCALL_LL_E(len));
9 }
10
11 LFS64(posix_fallocate);