diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-09-06 12:12:12 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-09-06 12:12:12 -0400 |
commit | 656167d89112171b2b7672676dc413c676a186f5 (patch) | |
tree | 8d2ce21d6a1ea1ce36f5cb8344b5a1bb398dc147 /libc/sysdeps/linux/common/xstatconv.h | |
parent | 3411040a7bc9c04221c6483f36cbd85a06c3bb60 (diff) |
fstatat: fix up behavior on 32/64 bit hosts
The fstatat() syscall is a little funky in that it sometimes changes name
between 32 and 64 bit hosts, but it should always operate on a 64bit stat
structure. So for the fstatat() function, make sure we convert it from a
64bit kstat to a 32bit stat.
Along these lines, we need to restore the __xstat32_conv() function.
Reported-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libc/sysdeps/linux/common/xstatconv.h')
-rw-r--r-- | libc/sysdeps/linux/common/xstatconv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/xstatconv.h b/libc/sysdeps/linux/common/xstatconv.h index 57c8bcbe2..7568da850 100644 --- a/libc/sysdeps/linux/common/xstatconv.h +++ b/libc/sysdeps/linux/common/xstatconv.h @@ -26,6 +26,7 @@ #include <bits/kernel_stat.h> extern void __xstat_conv(struct kernel_stat *kbuf, struct stat *buf) attribute_hidden; +extern void __xstat32_conv(struct kernel_stat64 *kbuf, struct stat *buf) attribute_hidden; #if defined __UCLIBC_HAS_LFS__ extern void __xstat64_conv(struct kernel_stat64 *kbuf, struct stat64 *buf) attribute_hidden; #endif |