1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00

NetWare LibC has readlink implementation

This commit is contained in:
Anantha Kesari H Y
2005-06-29 11:44:49 +00:00
parent 3190028b5b
commit ba4a956864
2 changed files with 0 additions and 33 deletions
-17
View File
@@ -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;
}
-16
View File
@@ -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);