diff options
Diffstat (limited to 'lib/libc/fcntl/posix_fallocate.c')
| -rw-r--r-- | lib/libc/fcntl/posix_fallocate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/fcntl/posix_fallocate.c b/lib/libc/fcntl/posix_fallocate.c new file mode 100644 index 00000000..221f2d38 --- /dev/null +++ b/lib/libc/fcntl/posix_fallocate.c @@ -0,0 +1,7 @@ +#include <fcntl.h> +#include <syscall.h> + +int posix_fallocate(int fd, off_t offset, off_t len) +{ + return syscall(fallocate, fd, 0, offset, len); +} |
