Whamcloud - gitweb
ChangeLog, Makefile.in:
[tools/e2fsprogs.git] / include / asm / types.h.in
1 #ifndef _LINUX_TYPES_H
2 #define _LINUX_TYPES_H
3
4 typedef unsigned char __u8;
5 typedef signed char __s8;
6
7 #if (@SIZEOF_INT@ == 8)
8 typedef int             __s64;
9 typedef unsigned int    __u64;
10 #elif (@SIZEOF_LONG@ == 8)
11 typedef long            __s64;
12 typedef unsigned long   __u64;
13 #elif (@SIZEOF_LONG_LONG@ == 8)
14 #if defined(__GNUC__)
15 typedef __signed__ long long    __s64;
16 #else
17 typedef signed long long        __s64;
18 #endif
19 typedef unsigned long long      __u64;
20 #endif
21
22 #if (@SIZEOF_INT@ == 2)
23 typedef int             __s16;
24 typedef unsigned int    __u16;
25 #elif (@SIZEOF_SHORT@ == 2)
26 typedef short           __s16;
27 typedef unsigned short  __u16;
28 #else
29   ?==error: undefined 16 bit type
30 #endif
31
32 #if (@SIZEOF_LONG@ == 4)
33 typedef long            __s32;
34 typedef unsigned long   __u32;
35 #elif (@SIZEOF_INT@ == 4)
36 typedef int             __s32;
37 typedef unsigned int    __u32;
38 #elif (@SIZEOF_SHORT@ == 4)
39 typedef short           __s32;
40 typedef unsigned short  __u32;
41 #else
42  ?== error: undefined 32 bit type
43 #endif
44
45 #ifndef HAVE_INO_T
46 typedef __u32 ino_t;
47 #endif
48
49 #endif /* LINUX_TYPES_H */