diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/include/sys/stat.h | 1 | ||||
| -rw-r--r-- | src/stat/fstat.c | 6 | 
2 files changed, 5 insertions, 2 deletions
diff --git a/src/include/sys/stat.h b/src/include/sys/stat.h index 822888b2..59339bee 100644 --- a/src/include/sys/stat.h +++ b/src/include/sys/stat.h @@ -3,6 +3,7 @@  #include "../../../include/sys/stat.h" +hidden int __fstat(int, struct stat *);  hidden int __fstatat(int, const char *restrict, struct stat *restrict, int);  #endif diff --git a/src/stat/fstat.c b/src/stat/fstat.c index 9bbb46de..27db0ccb 100644 --- a/src/stat/fstat.c +++ b/src/stat/fstat.c @@ -4,12 +4,14 @@  #include <fcntl.h>  #include "syscall.h" -int fstat(int fd, struct stat *st) +int __fstat(int fd, struct stat *st)  {  	if (fd<0) return __syscall_ret(-EBADF); -	return fstatat(fd, "", st, AT_EMPTY_PATH); +	return __fstatat(fd, "", st, AT_EMPTY_PATH);  } +weak_alias(__fstat, fstat); +  #if !_REDIR_TIME64  weak_alias(fstat, fstat64);  #endif  | 
