[MLton-commit] r5515

Matthew Fluet fluet at mlton.org
Wed Apr 11 14:00:19 PDT 2007


Move all system headers to platform os header
----------------------------------------------------------------------

U   mlton/branches/on-20050822-x86_64-branch/runtime/cenv.h
U   mlton/branches/on-20050822-x86_64-branch/runtime/platform/aix.h
U   mlton/branches/on-20050822-x86_64-branch/runtime/platform/cygwin.h
U   mlton/branches/on-20050822-x86_64-branch/runtime/platform/darwin.h
U   mlton/branches/on-20050822-x86_64-branch/runtime/platform/freebsd.h
U   mlton/branches/on-20050822-x86_64-branch/runtime/platform/hpux.h
U   mlton/branches/on-20050822-x86_64-branch/runtime/platform/linux.h
U   mlton/branches/on-20050822-x86_64-branch/runtime/platform/mingw.h
U   mlton/branches/on-20050822-x86_64-branch/runtime/platform/netbsd.h
U   mlton/branches/on-20050822-x86_64-branch/runtime/platform/openbsd.h
U   mlton/branches/on-20050822-x86_64-branch/runtime/platform/solaris.h

----------------------------------------------------------------------

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/cenv.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/cenv.h	2007-04-11 20:46:47 UTC (rev 5514)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/cenv.h	2007-04-11 21:00:18 UTC (rev 5515)
@@ -61,14 +61,6 @@
 COMPILE_TIME_ASSERT(sizeof_float__is_four, sizeof(float) == 4);
 COMPILE_TIME_ASSERT(sizeof_double__is_eight, sizeof(double) == 8);
 
-#include <fcntl.h>
-#include <unistd.h>
-
-#include <dirent.h>
-#include <utime.h>
-#include <sys/stat.h>
-#include <sys/time.h>
-
 #include "gmp.h"
 
 #if (defined (__APPLE_CC__))

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/platform/aix.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/platform/aix.h	2007-04-11 20:46:47 UTC (rev 5514)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/platform/aix.h	2007-04-11 21:00:18 UTC (rev 5515)
@@ -1,5 +1,9 @@
 #define __ppc__
 
+#include <unistd.h>
+
+#include <dirent.h>
+#include <fcntl.h>
 #include <grp.h>
 #include <netdb.h>
 #include <netinet/in.h>
@@ -9,12 +13,15 @@
 #include <sys/poll.h>
 #include <sys/select.h>
 #include <sys/socket.h>
+#include <sys/stat.h>
 #include <sys/syslog.h>
+#include <sys/time.h>
 #include <sys/times.h>
 #include <sys/types.h>
 #include <sys/un.h>
 #include <sys/utsname.h>
 #include <termios.h>
+#include <utime.h>
 
 #define HAS_FEROUND TRUE
 #define HAS_FPCLASSIFY FALSE

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/platform/cygwin.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/platform/cygwin.h	2007-04-11 20:46:47 UTC (rev 5514)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/platform/cygwin.h	2007-04-11 21:00:18 UTC (rev 5515)
@@ -1,5 +1,9 @@
 #include <inttypes.h>
 
+#include <unistd.h>
+
+#include <dirent.h>
+#include <fcntl.h>
 #include <grp.h>
 #include <io.h>
 #include <netdb.h>
@@ -14,12 +18,15 @@
 #include <sys/poll.h>
 #include <sys/resource.h>
 #include <sys/socket.h>
+#include <sys/stat.h>
+#include <sys/time.h>
 #include <sys/times.h>
 #include <sys/un.h>
 #include <sys/utsname.h>
 #include <sys/wait.h>
 #include <syslog.h>
 #include <termios.h>
+#include <utime.h>
 #include <windows.h>
 
 #define MLton_Platform_OS_host "cygwin"

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/platform/darwin.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/platform/darwin.h	2007-04-11 20:46:47 UTC (rev 5514)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/platform/darwin.h	2007-04-11 21:00:18 UTC (rev 5515)
@@ -2,6 +2,10 @@
 #include <inttypes.h>
 #include <stdint.h>
 
+#include <unistd.h>
+
+#include <dirent.h>
+#include <fcntl.h>
 #include <grp.h>
 #include <netdb.h>
 #include <netinet/in.h>
@@ -14,7 +18,9 @@
 #include <sys/ptrace.h>
 #include <sys/resource.h>
 #include <sys/socket.h>
+#include <sys/stat.h>
 #include <sys/sysctl.h>
+#include <sys/time.h>
 #include <sys/times.h>
 #include <sys/un.h>
 #include <sys/utsname.h>
@@ -22,6 +28,7 @@
 #include <syslog.h>
 #include <termios.h>
 #include <ucontext.h>
+#include <utime.h>
 
 #define HAS_FEROUND TRUE
 #define HAS_FPCLASSIFY TRUE

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/platform/freebsd.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/platform/freebsd.h	2007-04-11 20:46:47 UTC (rev 5514)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/platform/freebsd.h	2007-04-11 21:00:18 UTC (rev 5515)
@@ -2,6 +2,10 @@
 #include <inttypes.h>
 #include <stdint.h>
 
+#include <unistd.h>
+
+#include <dirent.h>
+#include <fcntl.h>
 #include <grp.h>
 #include <netdb.h>
 #include <netinet/in.h>
@@ -12,7 +16,9 @@
 #include <sys/mman.h>
 #include <sys/resource.h>
 #include <sys/socket.h>
+#include <sys/stat.h>
 #include <sys/sysctl.h>
+#include <sys/time.h>
 #include <sys/times.h>
 #include <sys/un.h>
 #include <sys/utsname.h>
@@ -20,6 +26,7 @@
 #include <syslog.h>
 #include <termios.h>
 #include <ucontext.h>
+#include <utime.h>
 
 #define HAS_FEROUND TRUE
 #define HAS_FPCLASSIFY TRUE

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/platform/hpux.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/platform/hpux.h	2007-04-11 20:46:47 UTC (rev 5514)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/platform/hpux.h	2007-04-11 21:00:18 UTC (rev 5515)
@@ -5,6 +5,10 @@
 #include <fenv.h>
 #include <inttypes.h>
 
+#include <unistd.h>
+
+#include <dirent.h>
+#include <fcntl.h>
 #include <grp.h>
 #include <math.h>
 #include <netdb.h>
@@ -16,11 +20,14 @@
 #include <sys/ptrace.h>
 #include <sys/resource.h>
 #include <sys/socket.h>
+#include <sys/stat.h>
+#include <sys/time.h>
 #include <sys/times.h>
 #include <sys/un.h>
 #include <sys/utsname.h>
 #include <syslog.h>
 #include <termios.h>
+#include <utime.h>
 
 #include "setenv.h"
 

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/platform/linux.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/platform/linux.h	2007-04-11 20:46:47 UTC (rev 5514)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/platform/linux.h	2007-04-11 21:00:18 UTC (rev 5515)
@@ -2,6 +2,10 @@
 #include <inttypes.h>
 #include <stdint.h>
 
+#include <unistd.h>
+
+#include <dirent.h>
+#include <fcntl.h>
 #include <grp.h>
 #include <netdb.h>
 #include <netinet/in.h>
@@ -12,12 +16,15 @@
 #include <sys/mman.h>
 #include <sys/resource.h>
 #include <sys/socket.h>
+#include <sys/stat.h>
+#include <sys/time.h>
 #include <sys/times.h>
 #include <sys/un.h>
 #include <sys/utsname.h>
 #include <sys/wait.h>
 #include <syslog.h>
 #include <termios.h>
+#include <utime.h>
 
 #define HAS_FEROUND TRUE
 #define HAS_FPCLASSIFY TRUE

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/platform/mingw.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/platform/mingw.h	2007-04-11 20:46:47 UTC (rev 5514)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/platform/mingw.h	2007-04-11 21:00:18 UTC (rev 5515)
@@ -2,14 +2,23 @@
 #include <inttypes.h>
 #include <stdint.h>
 
+#include <unistd.h>
+
 #include <windows.h> // lots of stuff depends on this
+
+#include <dirent.h>
+#include <fcntl.h>
+#include <sys/stat.h>
+#include <sys/stat.h>
+#include <sys/time.h>
+#include <sys/timeb.h>
+#include <sys/types.h>
+#include <utime.h>
+
 #include <io.h>
 #include <lm.h>
 #include <process.h>
 //#include <psapi.h>
-#include <sys/stat.h>
-#include <sys/timeb.h>
-#include <sys/types.h>
 #include <winsock2.h>
 #include <ws2tcpip.h>
 #include <psapi.h>

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/platform/netbsd.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/platform/netbsd.h	2007-04-11 20:46:47 UTC (rev 5514)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/platform/netbsd.h	2007-04-11 21:00:18 UTC (rev 5515)
@@ -1,6 +1,10 @@
 #include <inttypes.h>
 #include <stdint.h>
 
+#include <unistd.h>
+
+#include <dirent.h>
+#include <fcntl.h>
 #include <grp.h>
 #include <netdb.h>
 #include <netinet/in.h>
@@ -12,13 +16,16 @@
 #include <sys/param.h>
 #include <sys/resource.h>
 #include <sys/socket.h>
+#include <sys/stat.h>
 #include <sys/sysctl.h>
+#include <sys/time.h>
 #include <sys/times.h>
 #include <sys/un.h>
 #include <sys/utsname.h>
 #include <sys/wait.h>
 #include <syslog.h>
 #include <termios.h>
+#include <utime.h>
 
 #define HAS_FEROUND FALSE
 #define HAS_FPCLASSIFY TRUE

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/platform/openbsd.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/platform/openbsd.h	2007-04-11 20:46:47 UTC (rev 5514)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/platform/openbsd.h	2007-04-11 21:00:18 UTC (rev 5515)
@@ -1,6 +1,10 @@
 #include <inttypes.h>
 #include <stdint.h>
 
+#include <unistd.h>
+
+#include <dirent.h>
+#include <fcntl.h>
 #include <grp.h>
 #include <netdb.h>
 #include <netinet/in.h>
@@ -12,13 +16,16 @@
 #include <sys/param.h>
 #include <sys/resource.h>
 #include <sys/socket.h>
+#include <sys/stat.h>
 #include <sys/sysctl.h>
+#include <sys/time.h>
 #include <sys/times.h>
 #include <sys/un.h>
 #include <sys/utsname.h>
 #include <sys/wait.h>
 #include <syslog.h>
 #include <termios.h>
+#include <utime.h>
 
 #define HAS_FEROUND FALSE
 #define HAS_FPCLASSIFY FALSE

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/platform/solaris.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/platform/solaris.h	2007-04-11 20:46:47 UTC (rev 5514)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/platform/solaris.h	2007-04-11 21:00:18 UTC (rev 5515)
@@ -1,5 +1,9 @@
 #include <inttypes.h>
 
+#include <unistd.h>
+
+#include <dirent.h>
+#include <fcntl.h>
 #include <grp.h>
 #include <netdb.h>
 #include <netinet/in.h>
@@ -16,6 +20,8 @@
 #include <sys/resource.h>
 #include <sys/socket.h>
 #include <sys/sockio.h> /* For SIOCATMARK. */
+#include <sys/stat.h>
+#include <sys/time.h>
 #include <sys/times.h>
 #include <sys/un.h>
 #include <sys/utsname.h>
@@ -23,6 +29,8 @@
 #include <syslog.h>
 #include <termios.h>
 #include <ucontext.h>
+#include <unistd.h>
+#include <utime.h>
 
 #include "feround.h"
 #include "float-math.h"




More information about the MLton-commit mailing list