summaryrefslogtreecommitdiff
path: root/netware
diff options
context:
space:
mode:
authorAnantha Kesari H Y <hyanantha@php.net>2005-06-29 11:49:16 +0000
committerAnantha Kesari H Y <hyanantha@php.net>2005-06-29 11:49:16 +0000
commit58379a1d6c9ceea9ae39fa1b947418aae0f0095d (patch)
tree9eed3c6ff486d3af0abaceda2a7f2071fc1796ae /netware
parentc98c13629700f2df32bfb9f999c62d65e2cad10c (diff)
downloadphp-git-58379a1d6c9ceea9ae39fa1b947418aae0f0095d.tar.gz
NetWare LibC has readlink implementation. This is not needed anymore.
Diffstat (limited to 'netware')
-rw-r--r--netware/wfile.c17
-rw-r--r--netware/wfile.h16
2 files changed, 0 insertions, 33 deletions
diff --git a/netware/wfile.c b/netware/wfile.c
deleted file mode 100644
index a887ee93df..0000000000
--- a/netware/wfile.c
+++ /dev/null
@@ -1,17 +0,0 @@
-
-/* Function borrowed from the Downhill Project */
-#include "wfile.h"
-/*#include "direct.h"*/ /* Can't find this file */
-
-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;
-}
diff --git a/netware/wfile.h b/netware/wfile.h
deleted file mode 100644
index 7a9614c2cf..0000000000
--- a/netware/wfile.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/*#include <io.h> */
-#include <stdio.h>
-#include <stdlib.h>
-#include <errno.h>
-
-#define access _access
-#define X_OK 0
-#ifndef ENOENT
-#define ENOENT 136
-#endif
-#ifndef EINVAL
-#define EINVAL 131
-#endif
-
-int readlink(char *, char *, int);
-int checkroot(char *path);