| 1 |
#ifndef UNISTD_H |
| 2 |
#define UNISTD_H |
| 3 |
|
| 4 |
#include "../../include/unistd.h" |
| 5 |
|
| 6 |
#ifdef __wasilibc_unmodified_upstream // Lazy environment variable init. |
| 7 |
extern char **__environ; |
| 8 |
#else |
| 9 |
// To support lazy initialization of environment variables, `__environ` is |
| 10 |
// omitted, and a lazy `__wasilibc_environ` is used instead. Use |
| 11 |
// "wasi/libc-environ-compat.h" in functions that use `__environ`. |
| 12 |
#include "wasi/libc-environ.h" |
| 13 |
#endif |
| 14 |
|
| 15 |
hidden int __dup3(int, int, int); |
| 16 |
hidden int __mkostemps(char *, int, int); |
| 17 |
hidden int __execvpe(const char *, char *const *, char *const *); |
| 18 |
hidden off_t __lseek(int, off_t, int); |
| 19 |
|
| 20 |
#endif |