Idris2/support/c/windows/win_utils.h
2022-09-21 12:12:34 +01:00

20 lines
480 B
C

#include <io.h>
#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);
void win32_gettime(int64_t *sec, int64_t *nsec);
void win32_sleep(int ms);
int win32_modenv(const char *name, const char *value, int overwrite);
int win32_getErrno();
int win32_getPID();
long win32_getNProcessors();
int win32_getFileNo(FILE *);
int win32_isTTY(int fd);