13
typedef long suseconds_t;
14
#define hstrerror strerror
24
static inline int mingw_mkdir(const char *path, int mode)
28
#define mkdir mingw_mkdir
30
static inline int mingw_unlink(const char *pathname)
32
/* read-only files cannot be removed */
33
chmod(pathname, 0666);
34
return unlink(pathname);
36
#define unlink mingw_unlink
39
* implementations of missing functions
42
unsigned int sleep (unsigned int seconds);
43
char *mingw_getcwd(char *pointer, int len);
44
#define getcwd mingw_getcwd
45
char *mingw_getenv(const char *name);
46
#define getenv mingw_getenv
47
int mingw_rename(const char*, const char*);
48
#define rename mingw_rename
51
# define SHUT_WR SD_SEND
54
# define SHUT_RD SD_RECEIVE
57
# define SHUT_RDWR SD_BOTH
60
# define EADDRINUSE WSAEADDRINUSE
63
int nanosleep (const struct timespec *req, struct timespec *rem);
64
int socketpair(int family, int type, int protocol, int *sv);
67
#define UTSNAME_MAX_ 257
70
char sysname[UTSNAME_MAX_];
71
char nodename[UTSNAME_MAX_];
72
char release[UTSNAME_MAX_];
73
char version[UTSNAME_MAX_];
74
char machine[UTSNAME_MAX_];
76
int uname(struct utsname *name);
80
#define RUSAGE_CHILDREN (-1)
83
struct timeval ru_utime;
84
struct timeval ru_stime;
86
int getrusage(int who, struct rusage *usage);
88
/* fsync, fdatasync */
91
#define fdatasync fsync