Contents of /trunk/mkinitrd-magellan/klibc/usr/include/klibc/stathelp.h
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 498 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 498 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
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 */ |