Idris2/support/c/windows/win_utils.h

22 lines
633 B
C
Raw Normal View History

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);
void win32_sleep(int ms);
2022-09-21 13:13:15 +03:00
int win32_modenv(const char *name, const char *value, int overwrite);
int win32_getErrno();
2021-05-25 18:45:46 +03:00
int win32_getPID();
long win32_getNProcessors();
2022-09-21 13:13:15 +03:00
int win32_getFileNo(FILE *);
int win32_getFileTime(FILE *f, int *atime_sec, int *atime_nsec, int *mtime_sec,
int *mtime_nsec, int *ctime_sec, int *ctime_nsec);
int win32_isTTY(int fd);