From: Pierre Joye Date: Sat, 11 Sep 2010 19:07:43 +0000 (+0000) Subject: - remove dummy wrapper for readfile X-Git-Tag: php-5.3.4RC1~249 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d97c07c265ed012f429346f60bd6a522df101eeb;p=php - remove dummy wrapper for readfile --- diff --git a/win32/build/config.w32 b/win32/build/config.w32 index 9fbd6eb8db..f2063b2e99 100644 --- a/win32/build/config.w32 +++ b/win32/build/config.w32 @@ -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); diff --git a/win32/php5dll.dsp b/win32/php5dll.dsp index b0fad66c2f..335a0d874f 100644 --- a/win32/php5dll.dsp +++ b/win32/php5dll.dsp @@ -1564,10 +1564,6 @@ SOURCE=..\ext\com\VARIANT.c # End Source File # Begin Source File -SOURCE=..\win32\wfile.c -# End Source File -# Begin Source File - SOURCE=..\win32\winutil.c # End Source File # Begin Source File diff --git a/win32/php5dllts.dsp b/win32/php5dllts.dsp index 250d450e3b..8471418ec7 100644 --- a/win32/php5dllts.dsp +++ b/win32/php5dllts.dsp @@ -2403,10 +2403,6 @@ SOURCE=..\win32\time.c # End Source File # Begin Source File -SOURCE=..\win32\wfile.c -# End Source File -# Begin Source File - SOURCE=..\win32\winutil.c # End Source File # Begin Source File diff --git a/win32/wfile.c b/win32/wfile.c deleted file mode 100644 index 3a5118e037..0000000000 --- a/win32/wfile.c +++ /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 index 0105e76eed..0000000000 --- a/win32/wfile.h +++ /dev/null @@ -1,16 +0,0 @@ -#include -#include -#include -#include - -#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);