Back to index

glibc  2.9
Defines | Functions
fxstat.c File Reference
#include <errno.h>
#include <stddef.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <kernel_stat.h>
#include <sysdep.h>
#include <sys/syscall.h>
#include <bp-checks.h>
#include <xstatconv.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define __fxstat64   __fxstat64_disable


int __fxstat (int vers, int fd, struct stat *buf)

Define Documentation

#define __fxstat64   __fxstat64_disable

Definition at line 22 of file fxstat.c.

Function Documentation

int __fxstat ( int  vers,
int  fd,
struct stat buf 

Definition at line 38 of file fxstat.c.

  if (vers == _STAT_VER_KERNEL)
    return INLINE_SYSCALL (fstat, 2, fd, CHECK_1 ((struct kernel_stat *) buf));

  errno = EINVAL;
  return -1;
  struct kernel_stat kbuf;
  int result;

  result = INLINE_SYSCALL (fstat, 2, fd, __ptrvalue (&kbuf));
  if (result == 0)
    result = __xstat_conv (vers, &kbuf, buf);

  return result;

Here is the call graph for this function: