blob: 3978c6473c11139972a2a174bd246f656beac3f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef STATFIX_H
#define STATFIX_H
#include <sys/types.h>
/* Pull in whatever this particular arch's kernel thinks the kernel version of
* struct stat should look like. It turns out that each arch has a different
* opinion on the subject, and different kernel revs use different names... */
#define stat kernel_stat
#define new_stat kernel_stat
#define stat64 kernel_stat64
#include <asm/stat.h>
#undef stat64
#undef new_stat
#undef stat
/* Now pull in libc's version of stat */
#define stat libc_stat
#include <sys/stat.h>
#undef stat
extern void statfix(struct libc_stat *libcstat, struct kernel_stat *kstat);
extern int __fxstat(int version, int fd, struct libc_stat * statbuf);
#endif
|