mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
- remove dummy wrapper for readfile
This commit is contained in:
parent
6ca2ea7109
commit
d97c07c265
@ -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);
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
@ -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);
|
Loading…
Reference in New Issue
Block a user