[MLton-commit] r7470

Matthew Fluet fluet at mlton.org
Fri May 28 10:41:13 PDT 2010


mkdir2 is unused by any platform.
----------------------------------------------------------------------

U   mlton/trunk/runtime/platform/aix.c
U   mlton/trunk/runtime/platform/cygwin.c
U   mlton/trunk/runtime/platform/darwin.c
U   mlton/trunk/runtime/platform/freebsd.c
U   mlton/trunk/runtime/platform/hpux.c
U   mlton/trunk/runtime/platform/hurd.c
U   mlton/trunk/runtime/platform/linux.c
U   mlton/trunk/runtime/platform/mingw.c
D   mlton/trunk/runtime/platform/mkdir2.c
U   mlton/trunk/runtime/platform/netbsd.c
U   mlton/trunk/runtime/platform/openbsd.c
U   mlton/trunk/runtime/platform/solaris.c
U   mlton/trunk/runtime/platform.h

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

Modified: mlton/trunk/runtime/platform/aix.c
===================================================================
--- mlton/trunk/runtime/platform/aix.c	2010-05-28 14:58:41 UTC (rev 7469)
+++ mlton/trunk/runtime/platform/aix.c	2010-05-28 17:41:12 UTC (rev 7470)
@@ -5,7 +5,6 @@
 #include <sys/vminfo.h>
 
 #include "diskBack.unix.c"
-#include "mkdir2.c"
 #include "mmap-protect.c"
 #include "nonwin.c"
 #include "recv.nonblock.c"

Modified: mlton/trunk/runtime/platform/cygwin.c
===================================================================
--- mlton/trunk/runtime/platform/cygwin.c	2010-05-28 14:58:41 UTC (rev 7469)
+++ mlton/trunk/runtime/platform/cygwin.c	2010-05-28 17:41:12 UTC (rev 7470)
@@ -2,7 +2,6 @@
 
 #include "platform.h"
 
-#include "mkdir2.c"
 #include "mmap.c"
 #include "recv.nonblock.c"
 #include "windows.c"

Modified: mlton/trunk/runtime/platform/darwin.c
===================================================================
--- mlton/trunk/runtime/platform/darwin.c	2010-05-28 14:58:41 UTC (rev 7469)
+++ mlton/trunk/runtime/platform/darwin.c	2010-05-28 17:41:12 UTC (rev 7470)
@@ -4,7 +4,6 @@
 #include <stdio.h>
 
 #include "diskBack.unix.c"
-#include "mkdir2.c"
 #include "mmap-protect.c"
 #include "nonwin.c"
 #include "sysctl.c"

Modified: mlton/trunk/runtime/platform/freebsd.c
===================================================================
--- mlton/trunk/runtime/platform/freebsd.c	2010-05-28 14:58:41 UTC (rev 7469)
+++ mlton/trunk/runtime/platform/freebsd.c	2010-05-28 17:41:12 UTC (rev 7470)
@@ -1,7 +1,6 @@
 #include "platform.h"
 
 #include "diskBack.unix.c"
-#include "mkdir2.c"
 #include "mmap-protect.c"
 #include "nonwin.c"
 #include "sysctl.c"

Modified: mlton/trunk/runtime/platform/hpux.c
===================================================================
--- mlton/trunk/runtime/platform/hpux.c	2010-05-28 14:58:41 UTC (rev 7469)
+++ mlton/trunk/runtime/platform/hpux.c	2010-05-28 17:41:12 UTC (rev 7470)
@@ -8,7 +8,6 @@
 #define MAP_ANON MAP_ANONYMOUS
 
 #include "diskBack.unix.c"
-#include "mkdir2.c"
 #include "mmap-protect.c"
 #include "nonwin.c"
 #include "recv.nonblock.c"

Modified: mlton/trunk/runtime/platform/hurd.c
===================================================================
--- mlton/trunk/runtime/platform/hurd.c	2010-05-28 14:58:41 UTC (rev 7469)
+++ mlton/trunk/runtime/platform/hurd.c	2010-05-28 17:41:12 UTC (rev 7470)
@@ -3,7 +3,6 @@
 #include "platform.h"
 
 #include "diskBack.unix.c"
-#include "mkdir2.c"
 #include "displayMem.linux.c"
 #include "mmap-protect.c"
 #include "nonwin.c"

Modified: mlton/trunk/runtime/platform/linux.c
===================================================================
--- mlton/trunk/runtime/platform/linux.c	2010-05-28 14:58:41 UTC (rev 7469)
+++ mlton/trunk/runtime/platform/linux.c	2010-05-28 17:41:12 UTC (rev 7470)
@@ -3,7 +3,6 @@
 #include "platform.h"
 
 #include "diskBack.unix.c"
-#include "mkdir2.c"
 #include "displayMem.linux.c"
 #include "mmap-protect.c"
 #include "nonwin.c"

Modified: mlton/trunk/runtime/platform/mingw.c
===================================================================
--- mlton/trunk/runtime/platform/mingw.c	2010-05-28 14:58:41 UTC (rev 7469)
+++ mlton/trunk/runtime/platform/mingw.c	2010-05-28 17:41:12 UTC (rev 7470)
@@ -536,10 +536,6 @@
         return stat (file_name, buf);
 }
 
-int mkdir2 (const char *pathname, mode_t mode) {
-        return mkdir (pathname, mode);
-}
-
 __attribute__ ((noreturn))
 int mkfifo (__attribute__ ((unused)) const char *pathname,
             __attribute__ ((unused)) mode_t mode) {

Deleted: mlton/trunk/runtime/platform/mkdir2.c
===================================================================
--- mlton/trunk/runtime/platform/mkdir2.c	2010-05-28 14:58:41 UTC (rev 7469)
+++ mlton/trunk/runtime/platform/mkdir2.c	2010-05-28 17:41:12 UTC (rev 7470)
@@ -1,3 +0,0 @@
-int mkdir2 (const char *pathname, mode_t mode) {
-        return mkdir (pathname, mode);
-}

Modified: mlton/trunk/runtime/platform/netbsd.c
===================================================================
--- mlton/trunk/runtime/platform/netbsd.c	2010-05-28 14:58:41 UTC (rev 7469)
+++ mlton/trunk/runtime/platform/netbsd.c	2010-05-28 17:41:12 UTC (rev 7470)
@@ -1,7 +1,6 @@
 #include "platform.h"
 
 #include "diskBack.unix.c"
-#include "mkdir2.c"
 #include "displayMem.linux.c"
 #include "mmap-protect.c"
 #include "nonwin.c"

Modified: mlton/trunk/runtime/platform/openbsd.c
===================================================================
--- mlton/trunk/runtime/platform/openbsd.c	2010-05-28 14:58:41 UTC (rev 7469)
+++ mlton/trunk/runtime/platform/openbsd.c	2010-05-28 17:41:12 UTC (rev 7470)
@@ -1,7 +1,6 @@
 #include "platform.h"
 
 #include "diskBack.unix.c"
-#include "mkdir2.c"
 #include "displayMem.linux.c"
 #include "mmap-protect.c"
 #include "nonwin.c"

Modified: mlton/trunk/runtime/platform/solaris.c
===================================================================
--- mlton/trunk/runtime/platform/solaris.c	2010-05-28 14:58:41 UTC (rev 7469)
+++ mlton/trunk/runtime/platform/solaris.c	2010-05-28 17:41:12 UTC (rev 7470)
@@ -4,7 +4,6 @@
 
 #include "diskBack.unix.c"
 #include "float-math.c"
-#include "mkdir2.c"
 #include "mmap.c"
 #include "mmap-protect.c"
 #include "nonwin.c"

Modified: mlton/trunk/runtime/platform.h
===================================================================
--- mlton/trunk/runtime/platform.h	2010-05-28 14:58:41 UTC (rev 7469)
+++ mlton/trunk/runtime/platform.h	2010-05-28 17:41:12 UTC (rev 7470)
@@ -1,4 +1,5 @@
-/* Copyright (C) 1999-2008 Henry Cejtin, Matthew Fluet, Suresh
+/* Copyright (C) 2010 Matthew Fluet.
+ * Copyright (C) 1999-2008 Henry Cejtin, Matthew Fluet, Suresh
  *    Jagannathan, and Stephen Weeks.
  * Copyright (C) 1997-2000 NEC Research Institute.
  *
@@ -143,8 +144,6 @@
 /*                        Utility libraries                         */
 /* ---------------------------------------------------------------- */
 
-PRIVATE int mkdir2 (const char *pathname, mode_t mode);
-
 /* ---------------------------------------------------------------- */
 /*                        Garbage Collector                         */
 /* ---------------------------------------------------------------- */




More information about the MLton-commit mailing list