blob: 4b41c4b65c9a721555e09bb6435a77bbe95cba99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright (c) 2015-2016 Nuxi, https://nuxi.nl/
//
// SPDX-License-Identifier: BSD-2-Clause
#include <wasi/api.h>
#include <errno.h>
#include <fcntl.h>
int posix_fallocate(int fd, off_t offset, off_t len) {
if (offset < 0 || len < 0)
return EINVAL;
return __wasi_fd_allocate(fd, offset, len);
}
|