Back to index

glibc  2.9
Functions
readlinkat.c File Reference
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <stub-tag.h>

Go to the source code of this file.

Functions

ssize_t readlinkat (int fd, const char *path, char *buf, size_t len)

Function Documentation

ssize_t readlinkat ( int  fd,
const char *  path,
char *  buf,
size_t  len 
)

Definition at line 27 of file readlinkat.c.

{
  if (path == NULL)
    {
      __set_errno (EINVAL);
      return -1;
    }

  if (fd != AT_FDCWD && fd < 0 && *path != '/')
    {
      __set_errno (EBADF);
      return -1;
    }

  __set_errno (ENOSYS);
  return -1;
}

Here is the caller graph for this function: