summaryrefslogtreecommitdiff
path: root/lib/readlink-stub.c
blob: 67a7769934ceaaab63db1e8ac8301595f2f1dd07 (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 *file, char *buffer, size_t size)
{
  errno = EINVAL;
  return -1;
}