2022-09-21 13:13:15 +03:00
|
|
|
#include <io.h>
|
2020-05-19 14:11:07 +03:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
int win_fpoll(FILE *h);
|
|
|
|
FILE *win32_u8fopen(const char *path, const char *mode);
|
|
|
|
FILE *win32_u8popen(const char *path, const char *mode);
|
2022-09-21 13:13:15 +03:00
|
|
|
void win32_gettime(int64_t *sec, int64_t *nsec);
|
2020-05-24 20:54:41 +03:00
|
|
|
void win32_sleep(int ms);
|
2022-09-21 13:13:15 +03:00
|
|
|
int win32_modenv(const char *name, const char *value, int overwrite);
|
2021-03-26 21:27:25 +03:00
|
|
|
|
|
|
|
int win32_getErrno();
|
2021-05-25 18:45:46 +03:00
|
|
|
int win32_getPID();
|
2021-03-26 21:27:25 +03:00
|
|
|
long win32_getNProcessors();
|
|
|
|
|
2022-09-21 13:13:15 +03:00
|
|
|
int win32_getFileNo(FILE *);
|
2023-08-31 13:55:57 +03:00
|
|
|
int win32_getFileTime(FILE *f, int *atime_sec, int *atime_nsec, int *mtime_sec,
|
|
|
|
int *mtime_nsec, int *ctime_sec, int *ctime_nsec);
|
2021-09-10 10:05:21 +03:00
|
|
|
int win32_isTTY(int fd);
|