]> granicus.if.org Git - php/commitdiff
- remove dummy wrapper for readfile
authorPierre Joye <pajoye@php.net>
Sat, 11 Sep 2010 19:07:43 +0000 (19:07 +0000)
committerPierre Joye <pajoye@php.net>
Sat, 11 Sep 2010 19:07:43 +0000 (19:07 +0000)
win32/build/config.w32
win32/php5dll.dsp
win32/php5dllts.dsp
win32/wfile.c [deleted file]
win32/wfile.h [deleted file]

index 9fbd6eb8dbd23269a2c00cf536d0956286da24b8..f2063b2e99474244f9513a6304b6729acf80f4a1 100644 (file)
@@ -349,7 +349,7 @@ ADD_SOURCES("main/streams", "streams.c cast.c memory.c filter.c plain_wrapper.c
        userspace.c transports.c xp_socket.c mmap.c glob_wrapper.c");
 
 ADD_SOURCES("win32", "glob.c readdir.c \
-       registry.c select.c sendmail.c time.c wfile.c winutil.c wsyslog.c globals.c");
+       registry.c select.c sendmail.c time.c winutil.c wsyslog.c globals.c");
 
 STDOUT.WriteBlankLines(1);
 
index b0fad66c2fadac455971060f22a0e50980a766e9..335a0d874ff5cd595f6f82edb75d6723a42f3d83 100644 (file)
@@ -1564,10 +1564,6 @@ SOURCE=..\ext\com\VARIANT.c
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\win32\wfile.c\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\win32\winutil.c\r
 # End Source File\r
 # Begin Source File\r
index 250d450e3ba2c9f0d20f59690a1ef99b50b1c63f..8471418ec7ae05f6667d6e4f5891fbf9a7405306 100644 (file)
@@ -2403,10 +2403,6 @@ SOURCE=..\win32\time.c
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\win32\wfile.c\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\win32\winutil.c\r
 # End Source File\r
 # Begin Source File\r
diff --git a/win32/wfile.c b/win32/wfile.c
deleted file mode 100644 (file)
index 3a5118e..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-
-/* Function borrowed from the Downhill Project */
-#include "wfile.h"
-#include "direct.h"
-
-int readlink(char *file_Name, char *buf_Mem, int buf_Size)
-{
-       /* See if the file exists */
-       if (access(file_Name, WFILE_EXISTS) == -1) {
-               errno = ENOENT;
-       } else {
-               errno = EINVAL;
-       }
-
-       /* Either way, it's not a link */
-       return -1;
-}
diff --git a/win32/wfile.h b/win32/wfile.h
deleted file mode 100644 (file)
index 0105e76..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#include  <io.h>
-#include  <stdio.h>
-#include  <stdlib.h>
-#include  <errno.h>
-
-#define access _access
-#define WFILE_EXISTS   0
-#ifndef ENOENT
-#define ENOENT 136
-#endif
-#ifndef EINVAL
-#define EINVAL 131
-#endif
-
-int readlink(char *, char *, int);
-int checkroot(char *path);