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