| 1 |
#include <inttypes.h> |
| 2 |
|
| 3 |
#include <unistd.h> |
| 4 |
|
| 5 |
#include <dirent.h> |
| 6 |
#include <fcntl.h> |
| 7 |
#include <grp.h> |
| 8 |
#include <io.h> |
| 9 |
#include <netdb.h> |
| 10 |
#include <netinet/in.h> |
| 11 |
#include <netinet/tcp.h> |
| 12 |
#include <netinet/udp.h> |
| 13 |
#include <process.h> |
| 14 |
#include <pwd.h> |
| 15 |
#include <sys/cygwin.h> |
| 16 |
#include <sys/ioctl.h> |
| 17 |
#include <sys/mman.h> |
| 18 |
#include <sys/poll.h> |
| 19 |
#include <sys/resource.h> |
| 20 |
#include <sys/socket.h> |
| 21 |
#include <sys/stat.h> |
| 22 |
#include <sys/time.h> |
| 23 |
#include <sys/times.h> |
| 24 |
#include <sys/un.h> |
| 25 |
#include <sys/utsname.h> |
| 26 |
#include <sys/wait.h> |
| 27 |
#include <syslog.h> |
| 28 |
#include <termios.h> |
| 29 |
#include <utime.h> |
| 30 |
#include <windows.h> |
| 31 |
|
| 32 |
#include <cygwin/version.h> |
| 33 |
|
| 34 |
#define MLton_Platform_OS_host "cygwin" |
| 35 |
|
| 36 |
#define HAS_FEROUND FALSE |
| 37 |
#define HAS_REMAP TRUE |
| 38 |
#define HAS_SHRINK_HEAP TRUE |
| 39 |
#define HAS_SIGALTSTACK FALSE |
| 40 |
#define NEEDS_SIGALTSTACK_EXEC FALSE |
| 41 |
#define HAS_SPAWN TRUE |
| 42 |
#define HAS_TIME_PROFILING FALSE |
| 43 |
|
| 44 |
#ifndef MSG_DONTWAIT |
| 45 |
#define HAS_MSG_DONTWAIT FALSE |
| 46 |
|
| 47 |
#define MSG_DONTWAIT 0x1000000 |
| 48 |
#else |
| 49 |
#define HAS_MSG_DONTWAIT TRUE |
| 50 |
#endif |
| 51 |
|
| 52 |
#define SPAWN_MODE _P_NOWAIT |
| 53 |
|
| 54 |
|
| 55 |
#ifndef AF_INET6 |
| 56 |
|
| 57 |
#define AF_INET6 23 |
| 58 |
#define PF_INET6 AF_INET6 |
| 59 |
|
| 60 |
struct sockaddr_in6 { |
| 61 |
int dummy; |
| 62 |
}; |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
#endif |
| 67 |
|
| 68 |
typedef unsigned int nfds_t; |
| 69 |
typedef long suseconds_t; |
| 70 |
|
| 71 |
#ifndef MSG_WAITALL |
| 72 |
|
| 73 |
#define MSG_WAITALL 0 |
| 74 |
#endif |
| 75 |
#ifndef MSG_EOR |
| 76 |
|
| 77 |
#define MSG_EOR 0 |
| 78 |
#endif |