summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/fstatat64.c
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2012-12-11 12:51:33 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-02-20 13:45:12 +0100
commit82fd359bcccb162d78c3b7fbd572ac074aee98e9 (patch)
treedabe2edd5ad7b5273e1276d9aff712ce7e485462 /libc/sysdeps/linux/common/fstatat64.c
parentcb529f08cfe1fd6ca86e13bac5934dc8cf1c6355 (diff)
fstatat{64}: No conversion code is needed for new architectures
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps/linux/common/fstatat64.c')
-rw-r--r--libc/sysdeps/linux/common/fstatat64.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/fstatat64.c b/libc/sysdeps/linux/common/fstatat64.c
index 9020fb521..fbf096300 100644
--- a/libc/sysdeps/linux/common/fstatat64.c
+++ b/libc/sysdeps/linux/common/fstatat64.c
@@ -20,6 +20,7 @@
# include "xstatconv.h"
int fstatat64(int fd, const char *file, struct stat64 *buf, int flag)
{
+# ifdef __ARCH_HAS_DEPRECATED_SYSCALLS__
int ret;
struct kernel_stat64 kbuf;
@@ -28,6 +29,9 @@ int fstatat64(int fd, const char *file, struct stat64 *buf, int flag)
__xstat64_conv(&kbuf, buf);
return ret;
+# else
+ return INLINE_SYSCALL(fstatat64, 4, fd, file, buf, flag);
+# endif
}
#else
/* should add emulation with fstat64() and /proc/self/fd/ ... */