mirror of
https://github.com/ziglang/zig.git
synced 2025-12-11 16:53:06 +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.
40 lines
967 B
C
Vendored
40 lines
967 B
C
Vendored
#ifndef __wasilibc___header_dirent_h
|
|
#define __wasilibc___header_dirent_h
|
|
|
|
#include <wasi/api.h>
|
|
|
|
#define DT_BLK __WASI_FILETYPE_BLOCK_DEVICE
|
|
#define DT_CHR __WASI_FILETYPE_CHARACTER_DEVICE
|
|
#define DT_DIR __WASI_FILETYPE_DIRECTORY
|
|
#define DT_FIFO __WASI_FILETYPE_SOCKET_STREAM
|
|
#define DT_LNK __WASI_FILETYPE_SYMBOLIC_LINK
|
|
#define DT_REG __WASI_FILETYPE_REGULAR_FILE
|
|
#define DT_UNKNOWN __WASI_FILETYPE_UNKNOWN
|
|
|
|
#include <__struct_dirent.h>
|
|
#include <__typedef_DIR.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int closedir(DIR *);
|
|
DIR *opendir(const char *);
|
|
DIR *fdopendir(int);
|
|
int fdclosedir(DIR *);
|
|
struct dirent *readdir(DIR *);
|
|
void rewinddir(DIR *);
|
|
void seekdir(DIR *, long);
|
|
long telldir(DIR *);
|
|
DIR *opendirat(int, const char *);
|
|
void rewinddir(DIR *);
|
|
int scandirat(int, const char *, struct dirent ***,
|
|
int (*)(const struct dirent *),
|
|
int (*)(const struct dirent **, const struct dirent **));
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|