Back to index

glibc  2.9
Functions
fxstatat.c File Reference
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <sys/stat.h>
#include <stub-tag.h>

Go to the source code of this file.

Functions

int __fxstatat (int vers, int fd, const char *filename, struct stat *buf, int flag)

Function Documentation

int __fxstatat ( int  vers,
int  fd,
const char *  filename,
struct stat buf,
int  flag 
)

Definition at line 26 of file fxstatat.c.

{
  if (vers != _STAT_VER)
    {
      __set_errno (EINVAL);
      return -1;
    }

  if (fd < 0 && fd != AT_FDCWD)
    {
      __set_errno (EBADF);
      return -1;
    }
  if (buf == NULL || (flag & ~AT_SYMLINK_NOFOLLOW) != 0)
    {
      __set_errno (EINVAL);
      return -1;
    }

  __set_errno (ENOSYS);
  return -1;
}

Here is the caller graph for this function: