summaryrefslogtreecommitdiff
path: root/lib/readlink-stub.c
blob: cb2926ca6d7d53b03f49ac40cc746aaba22d81f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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;
}