]> git.proxmox.com Git - wasi-libc.git/blob - libc-bottom-half/headers/public/__header_unistd.h
__wasi_thread_spawn: stop truncating the return value (#353)
[wasi-libc.git] / libc-bottom-half / headers / public / __header_unistd.h
1 #ifndef __wasilibc___header_unistd_h
2 #define __wasilibc___header_unistd_h
3
4 struct stat;
5
6 #include <__seek.h>
7
8 #define F_OK (0)
9 #define X_OK (1)
10 #define W_OK (2)
11 #define R_OK (4)
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 int close(int fd);
18 int faccessat(int, const char *, int, int);
19 int fstatat(int, const char *__restrict, struct stat *__restrict, int);
20 int renameat(int, const char *, int, const char *);
21 int openat(int, const char *, int, ...);
22 void *sbrk(intptr_t increment);
23
24 #ifdef __cplusplus
25 }
26 #endif
27
28 #endif