*** empty log message ***
[platform/upstream/coreutils.git] / lib / readlink-stub.c
1 #include <config.h>
2 #include <stddef.h>
3 #include <errno.h>
4
5 /* A trivial substitute for `readlink'.
6
7    DJGPP 2.03 and earlier don't have `readlink' and don't support
8    symlinks. */
9
10 int
11 readlink (const char *file, char *buffer, size_t size)
12 {
13   errno = EINVAL;
14   return -1;
15 }