[MLton-commit] r4457

Matthew Fluet MLton@mlton.org
Thu, 4 May 2006 13:24:23 -0700


_SC_IPV6 and _SC_RAW_SOCKETS don't exist on Linux 2.4
----------------------------------------------------------------------

U   mlton/branches/on-20050822-x86_64-branch/basis-library.refactor/posix/proc-env.sml
U   mlton/branches/on-20050822-x86_64-branch/basis-library.refactor/primitive/basis-ffi.sml
U   mlton/branches/on-20050822-x86_64-branch/runtime/Posix/ProcEnv/sysconf-consts.c
U   mlton/branches/on-20050822-x86_64-branch/runtime/Posix/Process/waitpid-consts.c
U   mlton/branches/on-20050822-x86_64-branch/runtime/gen/basis-ffi.def

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

Modified: mlton/branches/on-20050822-x86_64-branch/basis-library.refactor/posix/proc-env.sml
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/basis-library.refactor/posix/proc-env.sml	2006-05-04 20:19:32 UTC (rev 4456)
+++ mlton/branches/on-20050822-x86_64-branch/basis-library.refactor/posix/proc-env.sml	2006-05-04 20:24:20 UTC (rev 4457)
@@ -120,7 +120,7 @@
              (Prim.SC_GETPW_R_SIZE_MAX,"GETPW_R_SIZE_MAX"),
              (Prim.SC_HOST_NAME_MAX,"HOST_NAME_MAX"),
              (Prim.SC_IOV_MAX,"IOV_MAX"),
-             (Prim.SC_IPV6,"IPV6"),
+             (* (Prim.SC_IPV6,"IPV6"), *)
              (Prim.SC_JOB_CONTROL,"JOB_CONTROL"),
              (Prim.SC_LINE_MAX,"LINE_MAX"),
              (Prim.SC_LOGIN_NAME_MAX,"LOGIN_NAME_MAX"),
@@ -138,7 +138,7 @@
              (Prim.SC_PAGE_SIZE,"PAGE_SIZE"),
              (Prim.SC_PRIORITIZED_IO,"PRIORITIZED_IO"),
              (Prim.SC_PRIORITY_SCHEDULING,"PRIORITY_SCHEDULING"),
-             (Prim.SC_RAW_SOCKETS,"RAW_SOCKETS"),
+             (* (Prim.SC_RAW_SOCKETS,"RAW_SOCKETS"), *)
              (Prim.SC_READER_WRITER_LOCKS,"READER_WRITER_LOCKS"),
              (Prim.SC_REALTIME_SIGNALS,"REALTIME_SIGNALS"),
              (Prim.SC_REGEXP,"REGEXP"),

Modified: mlton/branches/on-20050822-x86_64-branch/basis-library.refactor/primitive/basis-ffi.sml
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/basis-library.refactor/primitive/basis-ffi.sml	2006-05-04 20:19:32 UTC (rev 4456)
+++ mlton/branches/on-20050822-x86_64-branch/basis-library.refactor/primitive/basis-ffi.sml	2006-05-04 20:24:20 UTC (rev 4457)
@@ -596,7 +596,6 @@
 val SC_GETPW_R_SIZE_MAX = _const "Posix_ProcEnv_SC_GETPW_R_SIZE_MAX" : C_Int.t;
 val SC_HOST_NAME_MAX = _const "Posix_ProcEnv_SC_HOST_NAME_MAX" : C_Int.t;
 val SC_IOV_MAX = _const "Posix_ProcEnv_SC_IOV_MAX" : C_Int.t;
-val SC_IPV6 = _const "Posix_ProcEnv_SC_IPV6" : C_Int.t;
 val SC_JOB_CONTROL = _const "Posix_ProcEnv_SC_JOB_CONTROL" : C_Int.t;
 val SC_LINE_MAX = _const "Posix_ProcEnv_SC_LINE_MAX" : C_Int.t;
 val SC_LOGIN_NAME_MAX = _const "Posix_ProcEnv_SC_LOGIN_NAME_MAX" : C_Int.t;
@@ -614,7 +613,6 @@
 val SC_PAGESIZE = _const "Posix_ProcEnv_SC_PAGESIZE" : C_Int.t;
 val SC_PRIORITIZED_IO = _const "Posix_ProcEnv_SC_PRIORITIZED_IO" : C_Int.t;
 val SC_PRIORITY_SCHEDULING = _const "Posix_ProcEnv_SC_PRIORITY_SCHEDULING" : C_Int.t;
-val SC_RAW_SOCKETS = _const "Posix_ProcEnv_SC_RAW_SOCKETS" : C_Int.t;
 val SC_RE_DUP_MAX = _const "Posix_ProcEnv_SC_RE_DUP_MAX" : C_Int.t;
 val SC_READER_WRITER_LOCKS = _const "Posix_ProcEnv_SC_READER_WRITER_LOCKS" : C_Int.t;
 val SC_REALTIME_SIGNALS = _const "Posix_ProcEnv_SC_REALTIME_SIGNALS" : C_Int.t;

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/Posix/ProcEnv/sysconf-consts.c
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/Posix/ProcEnv/sysconf-consts.c	2006-05-04 20:19:32 UTC (rev 4456)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/Posix/ProcEnv/sysconf-consts.c	2006-05-04 20:24:20 UTC (rev 4457)
@@ -30,7 +30,7 @@
 const C_Int_t Posix_ProcEnv_SC_CLOCK_SELECTION = _SC_CLOCK_SELECTION;
 const C_Int_t Posix_ProcEnv_SC_CPUTIME = _SC_CPUTIME;
 const C_Int_t Posix_ProcEnv_SC_FSYNC = _SC_FSYNC;
-const C_Int_t Posix_ProcEnv_SC_IPV6 = _SC_IPV6;
+// const C_Int_t Posix_ProcEnv_SC_IPV6 = _SC_IPV6;
 const C_Int_t Posix_ProcEnv_SC_JOB_CONTROL = _SC_JOB_CONTROL;
 const C_Int_t Posix_ProcEnv_SC_MAPPED_FILES = _SC_MAPPED_FILES;
 const C_Int_t Posix_ProcEnv_SC_MEMLOCK = _SC_MEMLOCK;
@@ -40,7 +40,7 @@
 const C_Int_t Posix_ProcEnv_SC_MONOTONIC_CLOCK = _SC_MONOTONIC_CLOCK;
 const C_Int_t Posix_ProcEnv_SC_PRIORITIZED_IO = _SC_PRIORITIZED_IO;
 const C_Int_t Posix_ProcEnv_SC_PRIORITY_SCHEDULING = _SC_PRIORITY_SCHEDULING;
-const C_Int_t Posix_ProcEnv_SC_RAW_SOCKETS = _SC_RAW_SOCKETS;
+// const C_Int_t Posix_ProcEnv_SC_RAW_SOCKETS = _SC_RAW_SOCKETS;
 const C_Int_t Posix_ProcEnv_SC_READER_WRITER_LOCKS = _SC_READER_WRITER_LOCKS;
 const C_Int_t Posix_ProcEnv_SC_REALTIME_SIGNALS = _SC_REALTIME_SIGNALS;
 const C_Int_t Posix_ProcEnv_SC_REGEXP = _SC_REGEXP;

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/Posix/Process/waitpid-consts.c
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/Posix/Process/waitpid-consts.c	2006-05-04 20:19:32 UTC (rev 4456)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/Posix/Process/waitpid-consts.c	2006-05-04 20:24:20 UTC (rev 4457)
@@ -1,5 +1,5 @@
 #include "platform.h"
 
-const C_Int_t Posix_Process_W_CONTINUED = WCONTINUED;
+// const C_Int_t Posix_Process_W_CONTINUED = WCONTINUED;
 const C_Int_t Posix_Process_W_NOHANG = WNOHANG;
 const C_Int_t Posix_Process_W_UNTRACED = WUNTRACED;

Modified: mlton/branches/on-20050822-x86_64-branch/runtime/gen/basis-ffi.def
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/gen/basis-ffi.def	2006-05-04 20:19:32 UTC (rev 4456)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/gen/basis-ffi.def	2006-05-04 20:24:20 UTC (rev 4457)
@@ -456,7 +456,7 @@
 Posix.ProcEnv.SC_GETPW_R_SIZE_MAX = _const : C_Int.t
 Posix.ProcEnv.SC_HOST_NAME_MAX = _const : C_Int.t
 Posix.ProcEnv.SC_IOV_MAX = _const : C_Int.t
-Posix.ProcEnv.SC_IPV6 = _const : C_Int.t
+# Posix.ProcEnv.SC_IPV6 = _const : C_Int.t
 Posix.ProcEnv.SC_JOB_CONTROL = _const : C_Int.t
 Posix.ProcEnv.SC_LINE_MAX = _const : C_Int.t
 Posix.ProcEnv.SC_LOGIN_NAME_MAX = _const : C_Int.t
@@ -474,7 +474,7 @@
 Posix.ProcEnv.SC_PAGE_SIZE = _const : C_Int.t
 Posix.ProcEnv.SC_PRIORITIZED_IO = _const : C_Int.t
 Posix.ProcEnv.SC_PRIORITY_SCHEDULING = _const : C_Int.t
-Posix.ProcEnv.SC_RAW_SOCKETS = _const : C_Int.t
+# Posix.ProcEnv.SC_RAW_SOCKETS = _const : C_Int.t
 Posix.ProcEnv.SC_READER_WRITER_LOCKS = _const : C_Int.t
 Posix.ProcEnv.SC_REALTIME_SIGNALS = _const : C_Int.t
 Posix.ProcEnv.SC_REGEXP = _const : C_Int.t