Back to index

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

Go to the source code of this file.

Functions

int renameat (int oldfd, const char *old, int newfd, const char *new)

Function Documentation

int renameat ( int  oldfd,
const char *  old,
int  newfd,
const char *  new 
)

Definition at line 26 of file renameat.c.

{
  if ((oldfd < 0 && oldfd != AT_FDCWD) || (newfd < 0 && newfd != AT_FDCWD))
    {
      __set_errno (EBADF);
      return -1;
    }

  if (old == NULL || new == NULL)
    {
      __set_errno (EINVAL);
      return -1;
    }

  __set_errno (ENOSYS);
  return -1;
}

Here is the caller graph for this function: