mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Rename include dir to match the convention: from `wasm32-wasi` to `wasm-wasi-musl` Add building stubs which will be used to build and cache WASI libc sysroot.
28 lines
516 B
C
Vendored
28 lines
516 B
C
Vendored
#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
|