Files
semi-libc/src/stat/fstat.c
T
Rich Felker 50018f92f7 disable lfs64 aliases for remapped time64 functions
these functions cannot provide the glibc lfs64-ABI-compatible symbols
when time_t differs from what it was in that ABI. instead, the aliases
need to be provided by the time32 compat shims or through some other
mechanism.
2019-10-28 19:26:52 -04:00

16 lines
281 B
C

#define _BSD_SOURCE
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include "syscall.h"
int fstat(int fd, struct stat *st)
{
if (fd<0) return __syscall_ret(-EBADF);
return fstatat(fd, "", st, AT_EMPTY_PATH);
}
#if !_REDIR_TIME64
weak_alias(fstat, fstat64);
#endif