mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-10-04 13:41:55 +00:00

We've already started removing this; this just removes all remaining ones under the libc-bottom-half directory. These markers were originally intended to help track upstream changes, however in practice they created a lot of clutter and weren't that helpful. And now, upstream cloudlibc is no longer active.
14 lines
307 B
C
14 lines
307 B
C
// 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);
|
|
}
|