#include <errno.h>
#include <fcntl.h>
#include "syscall.h"
-#include "libc.h"
-
-void __procfdname(char *, unsigned);
int fstat(int fd, struct stat *st)
{
#ifdef SYS_stat
return syscall(SYS_stat, buf, st);
#else
- return syscall(SYS_fstatat, AT_FDCWD, buf, st);
+ return syscall(SYS_fstatat, AT_FDCWD, buf, st, 0);
#endif
}
-LFS64(fstat);
+weak_alias(fstat, fstat64);