Implement mmap(), fxstat(), fxstat64()
[glibc/nacl-glibc.git] / sysdeps / nacl / fxstat64.c
blob27614c39c78d322de77a4cbded578786863fb869
2 #include <errno.h>
3 #include <stddef.h>
4 #include <sys/stat.h>
6 #include <nacl_syscalls.h>
9 int __fxstat64(int vers, int fd, struct stat64 *buf)
11 int (*nacl_fstat)(int fd, struct stat64 *buf) =
12 NACL_SYSCALL_ADDR(NACL_sys_fstat);
13 int result = nacl_fstat(fd, buf);
14 if (result < 0) {
15 errno = -result;
16 return -1;
18 return result;
20 hidden_def (__fxstat64)