projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add TLSDESC support for 32-bit arm
[musl]
/
src
/
stat
/
fstat.c
diff --git
a/src/stat/fstat.c
b/src/stat/fstat.c
index
a928986
..
4f13f4f
100644
(file)
--- a/
src/stat/fstat.c
+++ b/
src/stat/fstat.c
@@
-2,9
+2,6
@@
#include <errno.h>
#include <fcntl.h>
#include "syscall.h"
#include <errno.h>
#include <fcntl.h>
#include "syscall.h"
-#include "libc.h"
-
-void __procfdname(char *, unsigned);
int fstat(int fd, struct stat *st)
{
int fstat(int fd, struct stat *st)
{
@@
-17,8
+14,8
@@
int fstat(int fd, struct stat *st)
#ifdef SYS_stat
return syscall(SYS_stat, buf, st);
#else
#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
}
#endif
}
-
LFS64(fstat
);
+
weak_alias(fstat, fstat64
);