1 2 3#pragma once 4 5#include <stdlib.h> 6#include <process.h> 7#include <io.h> 8 9#define EOPNOTSUPP 95 10 11#define O_NONBLOCK 0 12#define O_RDONLY _O_RDONLY 13#define O_RDWR _O_RDWR 14 15#define popen _popen 16#define pclose _pclose 17#define sleep _sleep 18#define stat _stat 19#define open _open 20#define close _close 21#define fstat _fstat 22#define read _read 23#define write _write 24#define off_t _off_t 25#define lseek _lseek 26#define putenv _putenv 27#define getpid _getpid 28#define utimbuf _utimbuf 29#define sys_nerr _sys_nerr 30#define sys_errlist _sys_errlist 31#define isatty _isatty 32#define getch _getch 33 34#include <grp.h> 35#include <pwd.h> 36 37 38// no-oped sync 39__inline void sync(void){}; 40 41 42 43#define gettimeofday(p, v) ((p)->tv_sec = (p)->tv_usec = 0) 44 45 46#define strcasecmp _stricmp 47 48 49 50