1 | /*␊ |
2 | * stathelp.h␊ |
3 | *␊ |
4 | * Helper macros for <klibc/archstat.h>␊ |
5 | */␊ |
6 | ␊ |
7 | #ifndef _KLIBC_STATHELP_H␊ |
8 | #define _KLIBC_STATHELP_H␊ |
9 | ␊ |
10 | #include <klibc/endian.h>␊ |
11 | ␊ |
12 | /*␊ |
13 | * Most architectures have a 64-bit field for st_dev and st_rdev,␊ |
14 | * but dev_t is 32 bits (uint32_t == unsigned int), so make a␊ |
15 | * macro we can use across all architectures.␊ |
16 | */␊ |
17 | ␊ |
18 | #if __BYTE_ORDER == __BIG_ENDIAN␊ |
19 | # define __stdev64(x)␉unsigned int __##x, x;␊ |
20 | #else␊ |
21 | # define __stdev64(x)␉unsigned int x, __##x;␊ |
22 | #endif␊ |
23 | ␊ |
24 | #endif␉␉␉␉/* _KLIBC_STATHELP_H */␊ |
25 | |