diff options
author | polwex <polwex@sortug.com> | 2025-10-05 21:56:51 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-10-05 21:56:51 +0700 |
commit | fcedfddf00b3f994e4f4e40332ac7fc192c63244 (patch) | |
tree | 51d38e62c7bdfcc5f9a5e9435fe820c93cfc9a3d /vere/pkg/c3/platform/windows/compat.h |
claude is gud
Diffstat (limited to 'vere/pkg/c3/platform/windows/compat.h')
-rw-r--r-- | vere/pkg/c3/platform/windows/compat.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vere/pkg/c3/platform/windows/compat.h b/vere/pkg/c3/platform/windows/compat.h new file mode 100644 index 0000000..17338b8 --- /dev/null +++ b/vere/pkg/c3/platform/windows/compat.h @@ -0,0 +1,28 @@ +#ifndef _MINGW_IO_H +#define _MINGW_IO_H + +#define mkdir(A, B) mkdir(A) + +int link(const char *path1, const char *path2); +char *realpath(const char *path, char *resolved_path); +int fdatasync(int fd); +int utimes(const char *path, const struct timeval times[2]); +long sysconf(int name); + +int kill(pid_t pid, int signum); + +void *memmem(const void *h0, size_t k, const void *n0, size_t l); + +uint32_t getppid(); + +ssize_t pread(int fd, void *buf, size_t count, off_t offset); +ssize_t pwrite(int fd, const void *buf, size_t count, off_t offset); + +#define SIGUSR1 10 +#define SIGALRM 14 +#define SIGVTALRM 26 +#define SIGSTK 31 +#define SIG_COUNT 32 +#define _SC_PAGESIZE 29 + +#endif//_MINGW_IO_H |