diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 13:54:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 13:54:38 +0000 |
commit | 8c1ab65c0f548d20b7f177bdb736daaf603340e1 (patch) | |
tree | df55b7e75bf43f2bf500845b105afe3ac3a5157e /libc-bottom-half/headers/public/__header_unistd.h | |
parent | Initial commit. (diff) | |
download | wasi-libc-upstream/0.0_git20221206.8b7148f.tar.xz wasi-libc-upstream/0.0_git20221206.8b7148f.zip |
Adding upstream version 0.0~git20221206.8b7148f.upstream/0.0_git20221206.8b7148f
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'libc-bottom-half/headers/public/__header_unistd.h')
-rw-r--r-- | libc-bottom-half/headers/public/__header_unistd.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libc-bottom-half/headers/public/__header_unistd.h b/libc-bottom-half/headers/public/__header_unistd.h new file mode 100644 index 0000000..6b80d63 --- /dev/null +++ b/libc-bottom-half/headers/public/__header_unistd.h @@ -0,0 +1,28 @@ +#ifndef __wasilibc___header_unistd_h +#define __wasilibc___header_unistd_h + +struct stat; + +#include <__seek.h> + +#define F_OK (0) +#define X_OK (1) +#define W_OK (2) +#define R_OK (4) + +#ifdef __cplusplus +extern "C" { +#endif + +int close(int fd); +int faccessat(int, const char *, int, int); +int fstatat(int, const char *__restrict, struct stat *__restrict, int); +int renameat(int, const char *, int, const char *); +int openat(int, const char *, int, ...); +void *sbrk(intptr_t increment); + +#ifdef __cplusplus +} +#endif + +#endif |