- remove dummy wrapper for readfile

This commit is contained in:
Pierre Joye 2010-09-11 19:07:43 +00:00
parent 6ca2ea7109
commit d97c07c265
5 changed files with 1 additions and 42 deletions

View 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);

View File

@ -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

View 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

View 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;
}

View File

@ -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);