1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#pragma once #include <sys/types.h> #include <errno.h> // only for ENOSYS #define S_ISFIFO(x) 0 struct stat {}; static inline int fstat(int fd, struct stat *sb) { (void)fd; (void)sb; errno = ENOSYS; return -1; } static inline int mkdir(const char *path, mode_t mode) { // TODO (void)path; (void)mode; errno = ENOSYS; return -1; }