From aceaabceffd537a0ed83fa25e189b08eae585f4a Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Wed, 7 Apr 1999 21:05:13 +0000 Subject: PHP 4.0 --- win32/wfile.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 win32/wfile.c (limited to 'win32/wfile.c') diff --git a/win32/wfile.c b/win32/wfile.c new file mode 100644 index 0000000000..1407d6a32b --- /dev/null +++ b/win32/wfile.c @@ -0,0 +1,17 @@ + +/* 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, X_OK) == -1) { + errno = ENOENT; + } else { + errno = EINVAL; + } + + /* Either way, it's not a link */ + return -1; +} -- cgit v1.2.1