[MLton-commit] r4480
Stephen Weeks
MLton@mlton.org
Sun, 7 May 2006 13:01:52 -0700
Defined all of the _PC and _SC constants with #ifndef in the
platform-independent code, so that each platform doesn't have to
define the missing ones.
There were a bunch missing on Solaris, and I see there were already a
bunch missing on Cygwin and MinGW, which I took out in favor of the
general definitions in the -consts.c files.
----------------------------------------------------------------------
U mlton/branches/on-20050822-x86_64-branch/runtime/Posix/FileSys/FileSys-consts.c
U mlton/branches/on-20050822-x86_64-branch/runtime/Posix/ProcEnv/sysconf-consts.c
U mlton/branches/on-20050822-x86_64-branch/runtime/platform/cygwin.h
U mlton/branches/on-20050822-x86_64-branch/runtime/platform/mingw.h
----------------------------------------------------------------------
Modified: mlton/branches/on-20050822-x86_64-branch/runtime/Posix/FileSys/FileSys-consts.c
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/Posix/FileSys/FileSys-consts.c 2006-05-07 19:59:55 UTC (rev 4479)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/Posix/FileSys/FileSys-consts.c 2006-05-07 20:01:49 UTC (rev 4480)
@@ -29,25 +29,85 @@
const C_Int_t Posix_FileSys_O_TEXT = O_TEXT;
const C_Int_t Posix_FileSys_O_TRUNC = O_TRUNC;
+#ifndef _PC_FILESIZEBITS
+#define _PC_FILESIZEBITS -1
+#endif
const C_Int_t Posix_FileSys_PC_FILESIZEBITS = _PC_FILESIZEBITS;
+#ifndef _PC_LINK_MAX
+#define _PC_LINK_MAX -1
+#endif
+#ifndef _PC_LINK_MAX
+#define _PC_LINK_MAX -1
+#endif
const C_Int_t Posix_FileSys_PC_LINK_MAX = _PC_LINK_MAX;
+#ifndef _PC_MAX_CANON
+#define _PC_MAX_CANON -1
+#endif
const C_Int_t Posix_FileSys_PC_MAX_CANON = _PC_MAX_CANON;
+#ifndef _PC_MAX_INPUT
+#define _PC_MAX_INPUT -1
+#endif
const C_Int_t Posix_FileSys_PC_MAX_INPUT = _PC_MAX_INPUT;
+#ifndef _PC_NAME_MAX
+#define _PC_NAME_MAX -1
+#endif
const C_Int_t Posix_FileSys_PC_NAME_MAX = _PC_NAME_MAX;
+#ifndef _PC_PATH_MAX
+#define _PC_PATH_MAX -1
+#endif
const C_Int_t Posix_FileSys_PC_PATH_MAX = _PC_PATH_MAX;
+#ifndef _PC_PIPE_BUF
+#define _PC_PIPE_BUF -1
+#endif
const C_Int_t Posix_FileSys_PC_PIPE_BUF = _PC_PIPE_BUF;
// const C_Int_t Posix_FileSys_PC_2_SYMLINKS = _PC_2_SYMLINKS;
+#ifndef _PC_ALLOC_SIZE_MIN
+#define _PC_ALLOC_SIZE_MIN -1
+#endif
const C_Int_t Posix_FileSys_PC_ALLOC_SIZE_MIN = _PC_ALLOC_SIZE_MIN;
+#ifndef _PC_REC_INCR_XFER_SIZE
+#define _PC_REC_INCR_XFER_SIZE -1
+#endif
const C_Int_t Posix_FileSys_PC_REC_INCR_XFER_SIZE = _PC_REC_INCR_XFER_SIZE;
+#ifndef _PC_REC_MAX_XFER_SIZE
+#define _PC_REC_MAX_XFER_SIZE -1
+#endif
const C_Int_t Posix_FileSys_PC_REC_MAX_XFER_SIZE = _PC_REC_MAX_XFER_SIZE;
+#ifndef _PC_REC_MIN_XFER_SIZE
+#define _PC_REC_MIN_XFER_SIZE -1
+#endif
const C_Int_t Posix_FileSys_PC_REC_MIN_XFER_SIZE = _PC_REC_MIN_XFER_SIZE;
+#ifndef _PC_REC_XFER_ALIGN
+#define _PC_REC_XFER_ALIGN -1
+#endif
const C_Int_t Posix_FileSys_PC_REC_XFER_ALIGN = _PC_REC_XFER_ALIGN;
+#ifndef _PC_SYMLINK_MAX
+#define _PC_SYMLINK_MAX -1
+#endif
const C_Int_t Posix_FileSys_PC_SYMLINK_MAX = _PC_SYMLINK_MAX;
+#ifndef _PC_CHOWN_RESTRICTED
+#define _PC_CHOWN_RESTRICTED -1
+#endif
const C_Int_t Posix_FileSys_PC_CHOWN_RESTRICTED = _PC_CHOWN_RESTRICTED;
+#ifndef _PC_NO_TRUNC
+#define _PC_NO_TRUNC -1
+#endif
const C_Int_t Posix_FileSys_PC_NO_TRUNC = _PC_NO_TRUNC;
+#ifndef _PC_VDISABLE
+#define _PC_VDISABLE -1
+#endif
const C_Int_t Posix_FileSys_PC_VDISABLE = _PC_VDISABLE;
+#ifndef _PC_ASYNC_IO
+#define _PC_ASYNC_IO -1
+#endif
const C_Int_t Posix_FileSys_PC_ASYNC_IO = _PC_ASYNC_IO;
+#ifndef _PC_PRIO_IO
+#define _PC_PRIO_IO -1
+#endif
const C_Int_t Posix_FileSys_PC_PRIO_IO = _PC_PRIO_IO;
+#ifndef _PC_SYNC_IO
+#define _PC_SYNC_IO -1
+#endif
const C_Int_t Posix_FileSys_PC_SYNC_IO = _PC_SYNC_IO;
const C_Mode_t Posix_FileSys_S_IFBLK = S_IFBLK;
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-07 19:59:55 UTC (rev 4479)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/Posix/ProcEnv/sysconf-consts.c 2006-05-07 20:01:49 UTC (rev 4480)
@@ -1,80 +1,284 @@
#include "platform.h"
+#ifndef _SC_AIO_LISTIO_MAX
+#define _SC_AIO_LISTIO_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_AIO_LISTIO_MAX = _SC_AIO_LISTIO_MAX;
+#ifndef _SC_AIO_MAX
+#define _SC_AIO_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_AIO_MAX = _SC_AIO_MAX;
+#ifndef _SC_AIO_PRIO_DELTA_MAX
+#define _SC_AIO_PRIO_DELTA_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_AIO_PRIO_DELTA_MAX = _SC_AIO_PRIO_DELTA_MAX;
+#ifndef _SC_ARG_MAX
+#define _SC_ARG_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_ARG_MAX = _SC_ARG_MAX;
+#ifndef _SC_ATEXIT_MAX
+#define _SC_ATEXIT_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_ATEXIT_MAX = _SC_ATEXIT_MAX;
+#ifndef _SC_BC_BASE_MAX
+#define _SC_BC_BASE_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_BC_BASE_MAX = _SC_BC_BASE_MAX;
+#ifndef _SC_BC_DIM_MAX
+#define _SC_BC_DIM_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_BC_DIM_MAX = _SC_BC_DIM_MAX;
+#ifndef _SC_BC_SCALE_MAX
+#define _SC_BC_SCALE_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_BC_SCALE_MAX = _SC_BC_SCALE_MAX;
+#ifndef _SC_BC_STRING_MAX
+#define _SC_BC_STRING_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_BC_STRING_MAX = _SC_BC_STRING_MAX;
+#ifndef _SC_CHILD_MAX
+#define _SC_CHILD_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_CHILD_MAX = _SC_CHILD_MAX;
+#ifndef _SC_CLK_TCK
+#define _SC_CLK_TCK -1
+#endif
const C_Int_t Posix_ProcEnv_SC_CLK_TCK = _SC_CLK_TCK;
+#ifndef _SC_COLL_WEIGHTS_MAX
+#define _SC_COLL_WEIGHTS_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_COLL_WEIGHTS_MAX = _SC_COLL_WEIGHTS_MAX;
+#ifndef _SC_DELAYTIMER_MAX
+#define _SC_DELAYTIMER_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_DELAYTIMER_MAX = _SC_DELAYTIMER_MAX;
+#ifndef _SC_EXPR_NEST_MAX
+#define _SC_EXPR_NEST_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_EXPR_NEST_MAX = _SC_EXPR_NEST_MAX;
+#ifndef _SC_HOST_NAME_MAX
+#define _SC_HOST_NAME_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_HOST_NAME_MAX = _SC_HOST_NAME_MAX;
+#ifndef _SC_IOV_MAX
+#define _SC_IOV_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_IOV_MAX = _SC_IOV_MAX;
+#ifndef _SC_LINE_MAX
+#define _SC_LINE_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_LINE_MAX = _SC_LINE_MAX;
+#ifndef _SC_LOGIN_NAME_MAX
+#define _SC_LOGIN_NAME_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_LOGIN_NAME_MAX = _SC_LOGIN_NAME_MAX;
+#ifndef _SC_NGROUPS_MAX
+#define _SC_NGROUPS_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_NGROUPS_MAX = _SC_NGROUPS_MAX;
+#ifndef _SC_GETGR_R_SIZE_MAX
+#define _SC_GETGR_R_SIZE_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_GETGR_R_SIZE_MAX = _SC_GETGR_R_SIZE_MAX;
+#ifndef _SC_GETPW_R_SIZE_MAX
+#define _SC_GETPW_R_SIZE_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_GETPW_R_SIZE_MAX = _SC_GETPW_R_SIZE_MAX;
+#ifndef _SC_MQ_OPEN_MAX
+#define _SC_MQ_OPEN_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_MQ_OPEN_MAX = _SC_MQ_OPEN_MAX;
+#ifndef _SC_MQ_PRIO_MAX
+#define _SC_MQ_PRIO_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_MQ_PRIO_MAX = _SC_MQ_PRIO_MAX;
+#ifndef _SC_OPEN_MAX
+#define _SC_OPEN_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_OPEN_MAX = _SC_OPEN_MAX;
+#ifndef _SC_ADVISORY_INFO
+#define _SC_ADVISORY_INFO -1
+#endif
const C_Int_t Posix_ProcEnv_SC_ADVISORY_INFO = _SC_ADVISORY_INFO;
+#ifndef _SC_BARRIERS
+#define _SC_BARRIERS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_BARRIERS = _SC_BARRIERS;
+#ifndef _SC_ASYNCHRONOUS_IO
+#define _SC_ASYNCHRONOUS_IO -1
+#endif
const C_Int_t Posix_ProcEnv_SC_ASYNCHRONOUS_IO = _SC_ASYNCHRONOUS_IO;
+#ifndef _SC_CLOCK_SELECTION
+#define _SC_CLOCK_SELECTION -1
+#endif
const C_Int_t Posix_ProcEnv_SC_CLOCK_SELECTION = _SC_CLOCK_SELECTION;
+#ifndef _SC_CPUTIME
+#define _SC_CPUTIME -1
+#endif
const C_Int_t Posix_ProcEnv_SC_CPUTIME = _SC_CPUTIME;
+#ifndef _SC_FSYNC
+#define _SC_FSYNC -1
+#endif
const C_Int_t Posix_ProcEnv_SC_FSYNC = _SC_FSYNC;
// const C_Int_t Posix_ProcEnv_SC_IPV6 = _SC_IPV6;
+#ifndef _SC_JOB_CONTROL
+#define _SC_JOB_CONTROL -1
+#endif
const C_Int_t Posix_ProcEnv_SC_JOB_CONTROL = _SC_JOB_CONTROL;
+#ifndef _SC_MAPPED_FILES
+#define _SC_MAPPED_FILES -1
+#endif
const C_Int_t Posix_ProcEnv_SC_MAPPED_FILES = _SC_MAPPED_FILES;
+#ifndef _SC_MEMLOCK
+#define _SC_MEMLOCK -1
+#endif
const C_Int_t Posix_ProcEnv_SC_MEMLOCK = _SC_MEMLOCK;
+#ifndef _SC_MEMLOCK_RANGE
+#define _SC_MEMLOCK_RANGE -1
+#endif
const C_Int_t Posix_ProcEnv_SC_MEMLOCK_RANGE = _SC_MEMLOCK_RANGE;
+#ifndef _SC_MEMORY_PROTECTION
+#define _SC_MEMORY_PROTECTION -1
+#endif
const C_Int_t Posix_ProcEnv_SC_MEMORY_PROTECTION = _SC_MEMORY_PROTECTION;
+#ifndef _SC_MESSAGE_PASSING
+#define _SC_MESSAGE_PASSING -1
+#endif
const C_Int_t Posix_ProcEnv_SC_MESSAGE_PASSING = _SC_MESSAGE_PASSING;
+#ifndef _SC_MONOTONIC_CLOCK
+#define _SC_MONOTONIC_CLOCK -1
+#endif
const C_Int_t Posix_ProcEnv_SC_MONOTONIC_CLOCK = _SC_MONOTONIC_CLOCK;
+#ifndef _SC_PRIORITIZED_IO
+#define _SC_PRIORITIZED_IO -1
+#endif
const C_Int_t Posix_ProcEnv_SC_PRIORITIZED_IO = _SC_PRIORITIZED_IO;
+#ifndef _SC_PRIORITY_SCHEDULING
+#define _SC_PRIORITY_SCHEDULING -1
+#endif
const C_Int_t Posix_ProcEnv_SC_PRIORITY_SCHEDULING = _SC_PRIORITY_SCHEDULING;
// const C_Int_t Posix_ProcEnv_SC_RAW_SOCKETS = _SC_RAW_SOCKETS;
+#ifndef _SC_READER_WRITER_LOCKS
+#define _SC_READER_WRITER_LOCKS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_READER_WRITER_LOCKS = _SC_READER_WRITER_LOCKS;
+#ifndef _SC_REALTIME_SIGNALS
+#define _SC_REALTIME_SIGNALS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_REALTIME_SIGNALS = _SC_REALTIME_SIGNALS;
+#ifndef _SC_REGEXP
+#define _SC_REGEXP -1
+#endif
const C_Int_t Posix_ProcEnv_SC_REGEXP = _SC_REGEXP;
+#ifndef _SC_SAVED_IDS
+#define _SC_SAVED_IDS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_SAVED_IDS = _SC_SAVED_IDS;
+#ifndef _SC_SEMAPHORES
+#define _SC_SEMAPHORES -1
+#endif
const C_Int_t Posix_ProcEnv_SC_SEMAPHORES = _SC_SEMAPHORES;
+#ifndef _SC_SHARED_MEMORY_OBJECTS
+#define _SC_SHARED_MEMORY_OBJECTS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_SHARED_MEMORY_OBJECTS = _SC_SHARED_MEMORY_OBJECTS;
+#ifndef _SC_SHELL
+#define _SC_SHELL -1
+#endif
const C_Int_t Posix_ProcEnv_SC_SHELL = _SC_SHELL;
+#ifndef _SC_SPAWN
+#define _SC_SPAWN -1
+#endif
const C_Int_t Posix_ProcEnv_SC_SPAWN = _SC_SPAWN;
+#ifndef _SC_SPIN_LOCKS
+#define _SC_SPIN_LOCKS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_SPIN_LOCKS = _SC_SPIN_LOCKS;
+#ifndef _SC_SPORADIC_SERVER
+#define _SC_SPORADIC_SERVER -1
+#endif
const C_Int_t Posix_ProcEnv_SC_SPORADIC_SERVER = _SC_SPORADIC_SERVER;
#ifndef _SC_SS_REPL_MAX
#define _SC_SS_REPL_MAX -1
#endif
+#ifndef _SC_SS_REPL_MAX
+#define _SC_SS_REPL_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_SS_REPL_MAX = _SC_SS_REPL_MAX;
+#ifndef _SC_SYNCHRONIZED_IO
+#define _SC_SYNCHRONIZED_IO -1
+#endif
const C_Int_t Posix_ProcEnv_SC_SYNCHRONIZED_IO = _SC_SYNCHRONIZED_IO;
+#ifndef _SC_THREAD_ATTR_STACKADDR
+#define _SC_THREAD_ATTR_STACKADDR -1
+#endif
const C_Int_t Posix_ProcEnv_SC_THREAD_ATTR_STACKADDR = _SC_THREAD_ATTR_STACKADDR;
+#ifndef _SC_THREAD_ATTR_STACKSIZE
+#define _SC_THREAD_ATTR_STACKSIZE -1
+#endif
const C_Int_t Posix_ProcEnv_SC_THREAD_ATTR_STACKSIZE = _SC_THREAD_ATTR_STACKSIZE;
+#ifndef _SC_THREAD_CPUTIME
+#define _SC_THREAD_CPUTIME -1
+#endif
const C_Int_t Posix_ProcEnv_SC_THREAD_CPUTIME = _SC_THREAD_CPUTIME;
+#ifndef _SC_THREAD_PRIO_INHERIT
+#define _SC_THREAD_PRIO_INHERIT -1
+#endif
const C_Int_t Posix_ProcEnv_SC_THREAD_PRIO_INHERIT = _SC_THREAD_PRIO_INHERIT;
+#ifndef _SC_THREAD_PRIO_PROTECT
+#define _SC_THREAD_PRIO_PROTECT -1
+#endif
const C_Int_t Posix_ProcEnv_SC_THREAD_PRIO_PROTECT = _SC_THREAD_PRIO_PROTECT;
+#ifndef _SC_THREAD_PRIORITY_SCHEDULING
+#define _SC_THREAD_PRIORITY_SCHEDULING -1
+#endif
const C_Int_t Posix_ProcEnv_SC_THREAD_PRIORITY_SCHEDULING = _SC_THREAD_PRIORITY_SCHEDULING;
+#ifndef _SC_THREAD_PROCESS_SHARED
+#define _SC_THREAD_PROCESS_SHARED -1
+#endif
const C_Int_t Posix_ProcEnv_SC_THREAD_PROCESS_SHARED = _SC_THREAD_PROCESS_SHARED;
+#ifndef _SC_THREAD_SAFE_FUNCTIONS
+#define _SC_THREAD_SAFE_FUNCTIONS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_THREAD_SAFE_FUNCTIONS = _SC_THREAD_SAFE_FUNCTIONS;
+#ifndef _SC_THREAD_SPORADIC_SERVER
+#define _SC_THREAD_SPORADIC_SERVER -1
+#endif
const C_Int_t Posix_ProcEnv_SC_THREAD_SPORADIC_SERVER = _SC_THREAD_SPORADIC_SERVER;
+#ifndef _SC_THREADS
+#define _SC_THREADS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_THREADS = _SC_THREADS;
+#ifndef _SC_TIMEOUTS
+#define _SC_TIMEOUTS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_TIMEOUTS = _SC_TIMEOUTS;
+#ifndef _SC_TIMERS
+#define _SC_TIMERS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_TIMERS = _SC_TIMERS;
+#ifndef _SC_TRACE
+#define _SC_TRACE -1
+#endif
const C_Int_t Posix_ProcEnv_SC_TRACE = _SC_TRACE;
+#ifndef _SC_TRACE_EVENT_FILTER
+#define _SC_TRACE_EVENT_FILTER -1
+#endif
const C_Int_t Posix_ProcEnv_SC_TRACE_EVENT_FILTER = _SC_TRACE_EVENT_FILTER;
#ifndef _SC_TRACE_EVENT_NAME_MAX
#define _SC_TRACE_EVENT_NAME_MAX -1
#endif
+#ifndef _SC_TRACE_EVENT_NAME_MAX
+#define _SC_TRACE_EVENT_NAME_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_TRACE_EVENT_NAME_MAX = _SC_TRACE_EVENT_NAME_MAX;
+#ifndef _SC_TRACE_INHERIT
+#define _SC_TRACE_INHERIT -1
+#endif
const C_Int_t Posix_ProcEnv_SC_TRACE_INHERIT = _SC_TRACE_INHERIT;
+#ifndef _SC_TRACE_LOG
+#define _SC_TRACE_LOG -1
+#endif
const C_Int_t Posix_ProcEnv_SC_TRACE_LOG = _SC_TRACE_LOG;
#ifndef _SC_TRACE_NAME_MAX
#define _SC_TRACE_NAME_MAX -1
@@ -87,57 +291,210 @@
#ifndef _SC_TRACE_USER_EVENT_MAX
#define _SC_TRACE_USER_EVENT_MAX -1
#endif
+#ifndef _SC_TRACE_USER_EVENT_MAX
+#define _SC_TRACE_USER_EVENT_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_TRACE_USER_EVENT_MAX = _SC_TRACE_USER_EVENT_MAX;
+#ifndef _SC_TYPED_MEMORY_OBJECTS
+#define _SC_TYPED_MEMORY_OBJECTS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_TYPED_MEMORY_OBJECTS = _SC_TYPED_MEMORY_OBJECTS;
+#ifndef _SC_VERSION
+#define _SC_VERSION -1
+#endif
const C_Int_t Posix_ProcEnv_SC_VERSION = _SC_VERSION;
+#ifndef _SC_V6_ILP32_OFF32
+#define _SC_V6_ILP32_OFF32 -1
+#endif
const C_Int_t Posix_ProcEnv_SC_V6_ILP32_OFF32 = _SC_V6_ILP32_OFF32;
+#ifndef _SC_V6_ILP32_OFFBIG
+#define _SC_V6_ILP32_OFFBIG -1
+#endif
const C_Int_t Posix_ProcEnv_SC_V6_ILP32_OFFBIG = _SC_V6_ILP32_OFFBIG;
+#ifndef _SC_V6_LP64_OFF64
+#define _SC_V6_LP64_OFF64 -1
+#endif
const C_Int_t Posix_ProcEnv_SC_V6_LP64_OFF64 = _SC_V6_LP64_OFF64;
+#ifndef _SC_V6_LPBIG_OFFBIG
+#define _SC_V6_LPBIG_OFFBIG -1
+#endif
const C_Int_t Posix_ProcEnv_SC_V6_LPBIG_OFFBIG = _SC_V6_LPBIG_OFFBIG;
+#ifndef _SC_2_C_BIND
+#define _SC_2_C_BIND -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_C_BIND = _SC_2_C_BIND;
+#ifndef _SC_2_C_DEV
+#define _SC_2_C_DEV -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_C_DEV = _SC_2_C_DEV;
+#ifndef _SC_2_CHAR_TERM
+#define _SC_2_CHAR_TERM -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_CHAR_TERM = _SC_2_CHAR_TERM;
+#ifndef _SC_2_FORT_DEV
+#define _SC_2_FORT_DEV -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_FORT_DEV = _SC_2_FORT_DEV;
+#ifndef _SC_2_FORT_RUN
+#define _SC_2_FORT_RUN -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_FORT_RUN = _SC_2_FORT_RUN;
+#ifndef _SC_2_LOCALEDEF
+#define _SC_2_LOCALEDEF -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_LOCALEDEF = _SC_2_LOCALEDEF;
+#ifndef _SC_2_PBS
+#define _SC_2_PBS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_PBS = _SC_2_PBS;
+#ifndef _SC_2_PBS_ACCOUNTING
+#define _SC_2_PBS_ACCOUNTING -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_PBS_ACCOUNTING = _SC_2_PBS_ACCOUNTING;
+#ifndef _SC_2_PBS_CHECKPOINT
+#define _SC_2_PBS_CHECKPOINT -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_PBS_CHECKPOINT = _SC_2_PBS_CHECKPOINT;
+#ifndef _SC_2_PBS_LOCATE
+#define _SC_2_PBS_LOCATE -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_PBS_LOCATE = _SC_2_PBS_LOCATE;
+#ifndef _SC_2_PBS_MESSAGE
+#define _SC_2_PBS_MESSAGE -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_PBS_MESSAGE = _SC_2_PBS_MESSAGE;
+#ifndef _SC_2_PBS_TRACK
+#define _SC_2_PBS_TRACK -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_PBS_TRACK = _SC_2_PBS_TRACK;
+#ifndef _SC_2_SW_DEV
+#define _SC_2_SW_DEV -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_SW_DEV = _SC_2_SW_DEV;
+#ifndef _SC_2_UPE
+#define _SC_2_UPE -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_UPE = _SC_2_UPE;
+#ifndef _SC_2_VERSION
+#define _SC_2_VERSION -1
+#endif
const C_Int_t Posix_ProcEnv_SC_2_VERSION = _SC_2_VERSION;
+#ifndef _SC_PAGE_SIZE
+#define _SC_PAGE_SIZE -1
+#endif
const C_Int_t Posix_ProcEnv_SC_PAGE_SIZE = _SC_PAGE_SIZE;
+#ifndef _SC_PAGESIZE
+#define _SC_PAGESIZE -1
+#endif
const C_Int_t Posix_ProcEnv_SC_PAGESIZE = _SC_PAGESIZE;
+#ifndef _SC_THREAD_DESTRUCTOR_ITERATIONS
+#define _SC_THREAD_DESTRUCTOR_ITERATIONS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_THREAD_DESTRUCTOR_ITERATIONS = _SC_THREAD_DESTRUCTOR_ITERATIONS;
+#ifndef _SC_THREAD_KEYS_MAX
+#define _SC_THREAD_KEYS_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_THREAD_KEYS_MAX = _SC_THREAD_KEYS_MAX;
+#ifndef _SC_THREAD_STACK_MIN
+#define _SC_THREAD_STACK_MIN -1
+#endif
const C_Int_t Posix_ProcEnv_SC_THREAD_STACK_MIN = _SC_THREAD_STACK_MIN;
+#ifndef _SC_THREAD_THREADS_MAX
+#define _SC_THREAD_THREADS_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_THREAD_THREADS_MAX = _SC_THREAD_THREADS_MAX;
+#ifndef _SC_RE_DUP_MAX
+#define _SC_RE_DUP_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_RE_DUP_MAX = _SC_RE_DUP_MAX;
+#ifndef _SC_RTSIG_MAX
+#define _SC_RTSIG_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_RTSIG_MAX = _SC_RTSIG_MAX;
+#ifndef _SC_SEM_NSEMS_MAX
+#define _SC_SEM_NSEMS_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_SEM_NSEMS_MAX = _SC_SEM_NSEMS_MAX;
+#ifndef _SC_SEM_VALUE_MAX
+#define _SC_SEM_VALUE_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_SEM_VALUE_MAX = _SC_SEM_VALUE_MAX;
+#ifndef _SC_SIGQUEUE_MAX
+#define _SC_SIGQUEUE_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_SIGQUEUE_MAX = _SC_SIGQUEUE_MAX;
+#ifndef _SC_STREAM_MAX
+#define _SC_STREAM_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_STREAM_MAX = _SC_STREAM_MAX;
+#ifndef _SC_SYMLOOP_MAX
+#define _SC_SYMLOOP_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_SYMLOOP_MAX = _SC_SYMLOOP_MAX;
+#ifndef _SC_TIMER_MAX
+#define _SC_TIMER_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_TIMER_MAX = _SC_TIMER_MAX;
+#ifndef _SC_TTY_NAME_MAX
+#define _SC_TTY_NAME_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_TTY_NAME_MAX = _SC_TTY_NAME_MAX;
+#ifndef _SC_TZNAME_MAX
+#define _SC_TZNAME_MAX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_TZNAME_MAX = _SC_TZNAME_MAX;
+#ifndef _SC_XBS5_ILP32_OFF32
+#define _SC_XBS5_ILP32_OFF32 -1
+#endif
const C_Int_t Posix_ProcEnv_SC_XBS5_ILP32_OFF32 = _SC_XBS5_ILP32_OFF32;
+#ifndef _SC_XBS5_ILP32_OFFBIG
+#define _SC_XBS5_ILP32_OFFBIG -1
+#endif
const C_Int_t Posix_ProcEnv_SC_XBS5_ILP32_OFFBIG = _SC_XBS5_ILP32_OFFBIG;
+#ifndef _SC_XBS5_LP64_OFF64
+#define _SC_XBS5_LP64_OFF64 -1
+#endif
const C_Int_t Posix_ProcEnv_SC_XBS5_LP64_OFF64 = _SC_XBS5_LP64_OFF64;
+#ifndef _SC_XBS5_LPBIG_OFFBIG
+#define _SC_XBS5_LPBIG_OFFBIG -1
+#endif
const C_Int_t Posix_ProcEnv_SC_XBS5_LPBIG_OFFBIG = _SC_XBS5_LPBIG_OFFBIG;
+#ifndef _SC_XOPEN_CRYPT
+#define _SC_XOPEN_CRYPT -1
+#endif
const C_Int_t Posix_ProcEnv_SC_XOPEN_CRYPT = _SC_XOPEN_CRYPT;
+#ifndef _SC_XOPEN_ENH_I18N
+#define _SC_XOPEN_ENH_I18N -1
+#endif
const C_Int_t Posix_ProcEnv_SC_XOPEN_ENH_I18N = _SC_XOPEN_ENH_I18N;
+#ifndef _SC_XOPEN_LEGACY
+#define _SC_XOPEN_LEGACY -1
+#endif
const C_Int_t Posix_ProcEnv_SC_XOPEN_LEGACY = _SC_XOPEN_LEGACY;
+#ifndef _SC_XOPEN_REALTIME
+#define _SC_XOPEN_REALTIME -1
+#endif
const C_Int_t Posix_ProcEnv_SC_XOPEN_REALTIME = _SC_XOPEN_REALTIME;
+#ifndef _SC_XOPEN_REALTIME_THREADS
+#define _SC_XOPEN_REALTIME_THREADS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_XOPEN_REALTIME_THREADS = _SC_XOPEN_REALTIME_THREADS;
+#ifndef _SC_XOPEN_SHM
+#define _SC_XOPEN_SHM -1
+#endif
const C_Int_t Posix_ProcEnv_SC_XOPEN_SHM = _SC_XOPEN_SHM;
#ifndef __SC_XOPEN_STREAMS
#define _SC_XOPEN_STREAMS -1
#endif
+#ifndef _SC_XOPEN_STREAMS
+#define _SC_XOPEN_STREAMS -1
+#endif
const C_Int_t Posix_ProcEnv_SC_XOPEN_STREAMS = _SC_XOPEN_STREAMS;
+#ifndef _SC_XOPEN_UNIX
+#define _SC_XOPEN_UNIX -1
+#endif
const C_Int_t Posix_ProcEnv_SC_XOPEN_UNIX = _SC_XOPEN_UNIX;
+#ifndef _SC_XOPEN_VERSION
+#define _SC_XOPEN_VERSION -1
+#endif
const C_Int_t Posix_ProcEnv_SC_XOPEN_VERSION = _SC_XOPEN_VERSION;
Modified: mlton/branches/on-20050822-x86_64-branch/runtime/platform/cygwin.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/platform/cygwin.h 2006-05-07 19:59:55 UTC (rev 4479)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/platform/cygwin.h 2006-05-07 20:01:49 UTC (rev 4480)
@@ -31,21 +31,6 @@
#define HAS_SPAWN TRUE
#define HAS_TIME_PROFILING FALSE
-#define _SC_BOGUS 0xFFFFFFFF
-#define _SC_2_FORT_DEV _SC_BOGUS
-#define _SC_2_FORT_RUN _SC_BOGUS
-#define _SC_2_SW_DEV _SC_BOGUS
-#define _SC_2_VERSION _SC_BOGUS
-#define _SC_BC_BASE_MAX _SC_BOGUS
-#define _SC_BC_DIM_MAX _SC_BOGUS
-#define _SC_BC_SCALE_MAX _SC_BOGUS
-#define _SC_BC_STRING_MAX _SC_BOGUS
-#define _SC_COLL_WEIGHTS_MAX _SC_BOGUS
-#define _SC_EXPR_NEST_MAX _SC_BOGUS
-#define _SC_LINE_MAX _SC_BOGUS
-#define _SC_RE_DUP_MAX _SC_BOGUS
-#define _SC_STREAM_MAX _SC_BOGUS
-
#define MSG_DONTWAIT 0
#define PF_INET6 0
Modified: mlton/branches/on-20050822-x86_64-branch/runtime/platform/mingw.h
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/platform/mingw.h 2006-05-07 19:59:55 UTC (rev 4479)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/platform/mingw.h 2006-05-07 20:01:49 UTC (rev 4480)
@@ -212,28 +212,13 @@
/* Posix.ProcEnv */
/* ------------------------------------------------- */
-#define _SC_BOGUS 0xFFFFFFFF
-#define _SC_2_FORT_DEV _SC_BOGUS
-#define _SC_2_FORT_RUN _SC_BOGUS
-#define _SC_2_SW_DEV _SC_BOGUS
-#define _SC_2_VERSION _SC_BOGUS
#define _SC_ARG_MAX 0
-#define _SC_BC_BASE_MAX _SC_BOGUS
-#define _SC_BC_DIM_MAX _SC_BOGUS
-#define _SC_BC_SCALE_MAX _SC_BOGUS
-#define _SC_BC_STRING_MAX _SC_BOGUS
#define _SC_CHILD_MAX 1
#define _SC_CLK_TCK 2
-#define _SC_COLL_WEIGHTS_MAX _SC_BOGUS
-#define _SC_EXPR_NEST_MAX _SC_BOGUS
#define _SC_JOB_CONTROL 5
-#define _SC_LINE_MAX _SC_BOGUS
#define _SC_NGROUPS_MAX 3
#define _SC_OPEN_MAX 4
-#define _SC_RE_DUP_MAX _SC_BOGUS
#define _SC_SAVED_IDS 6
-#define _SC_STREAM_MAX _SC_BOGUS
-#define _SC_TZNAME_MAX 20
#define _SC_VERSION 7
struct tms {