Back to index

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

Go to the source code of this file.

Functions

int linkat (int fromfd, const char *from, int tofd, const char *to, int flags)

Function Documentation

int linkat ( int  fromfd,
const char *  from,
int  tofd,
const char *  to,
int  flags 
)

Definition at line 27 of file linkat.c.

{
  if (from == NULL || to == NULL)
    {
      __set_errno (EINVAL);
      return -1;
    }

  if ((tofd != AT_FDCWD && tofd < 0 && *to != '/')
      || (fromfd != AT_FDCWD && fromfd < 0 && *from != '/'))
    {
      __set_errno (EBADF);
      return -1;
    }

  __set_errno (ENOSYS);
  return -1;
}

Here is the caller graph for this function: