diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-05-30 01:51:23 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-05-30 01:51:23 -0400 |
commit | 5cf9e8f860dcfe63b36e050dd7dfbc5e53745fce (patch) | |
tree | f29f4bdd839a23d52ca71deed22a8bfe178ef903 /src/stat | |
parent | 55f45bc7222ec50b72aa8411c61e30184d0ade23 (diff) | |
download | musl-5cf9e8f860dcfe63b36e050dd7dfbc5e53745fce.tar.gz musl-5cf9e8f860dcfe63b36e050dd7dfbc5e53745fce.tar.bz2 musl-5cf9e8f860dcfe63b36e050dd7dfbc5e53745fce.tar.xz musl-5cf9e8f860dcfe63b36e050dd7dfbc5e53745fce.zip |
additional fixes for linux kernel apis with old syscalls removed
Diffstat (limited to 'src/stat')
-rw-r--r-- | src/stat/fstat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stat/fstat.c b/src/stat/fstat.c index b5611767..a9289867 100644 --- a/src/stat/fstat.c +++ b/src/stat/fstat.c @@ -14,7 +14,11 @@ int fstat(int fd, struct stat *st) char buf[15+3*sizeof(int)]; __procfdname(buf, fd); +#ifdef SYS_stat return syscall(SYS_stat, buf, st); +#else + return syscall(SYS_fstatat, AT_FDCWD, buf, st); +#endif } LFS64(fstat); |