coreutils/lib/readlink-stub.c
2003-03-17 19:21:28 +00:00

16 lines
282 B
C

#include <config.h>
#include <stddef.h>
#include <errno.h>
/* A trivial substitute for `readlink'.
DJGPP 2.03 and earlier don't have `readlink' and don't support
symlinks. */
int
readlink (const char *filename, char *buffer, size_t size)
{
errno = EINVAL;
return -1;
}