[MLton-commit] r4518

Wesley Terpstra MLton@mlton.org
Wed, 10 May 2006 08:13:53 -0700


provide all types needed by basis, remove obsolete/broken prototypes
----------------------------------------------------------------------

U   mlton/branches/on-20050822-x86_64-branch/runtime/platform/mingw.h

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

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-10 15:12:57 UTC (rev 4517)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/platform/mingw.h	2006-05-10 15:13:52 UTC (rev 4518)
@@ -29,7 +29,13 @@
 
 typedef unsigned short gid_t;
 typedef unsigned short uid_t;
+typedef long suseconds_t; // type of timeval.tv_usec in sys/time.h
+typedef short nlink_t; // type of st_nlink in sys/stat.h
 
+// bullshit typedefs:
+typedef int id_t; // waitid() doesn't exist on windows
+typedef short nfds_t; // poll() doesn't either
+
 int getpagesize (void);
 int mkstemp (char *template);
 
@@ -184,7 +190,6 @@
 int fchmod (int filedes, mode_t mode);
 int fchown (int fd, uid_t owner, gid_t group);
 long fpathconf (int filedes, int name);
-int ftruncate (int fd, off_t length);
 int link (const char *oldpath, const char *newpath);
 int lstat (const char *file_name, struct stat *buf);
 int mkfifo (const char *pathname, mode_t mode);
@@ -244,7 +249,6 @@
 char *getlogin (void);
 pid_t getpgid(pid_t pid);
 pid_t getpgrp(void);
-pid_t getpid (void);
 pid_t getppid (void);
 uid_t getuid (void);
 int setenv (const char *name, const char *value, int overwrite);
@@ -325,7 +329,7 @@
 
 #define _NSIG 32
 
-typedef void (*_sig_func_ptr)();
+typedef void (*_sig_func_ptr)(void);
 
 struct sigaction {
         int             sa_flags;