File: ext2_types.h

package info (click to toggle)
arcboot 0.3.8.8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,152 kB
  • ctags: 2,503
  • sloc: ansic: 15,138; makefile: 774; awk: 311; sh: 189; sed: 12
file content (53 lines) | stat: -rw-r--r-- 999 bytes parent folder | download | duplicates (3)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef _EXT2_TYPES_H
#define _EXT2_TYPES_H

/* 
 * If linux/types.h is already been included, assume it has defined
 * everything we need.  (cross fingers)
 */
#ifndef _LINUX_TYPES_H

typedef unsigned char __u8;
typedef signed char __s8;

#if (4 == 8)
typedef int		__s64;
typedef unsigned int	__u64;
#elif (4 == 8)
typedef long		__s64;
typedef unsigned long	__u64;
#elif (8 == 8)
#if defined(__GNUC__)
typedef __signed__ long long 	__s64;
#else
typedef signed long long 	__s64;
#endif
typedef unsigned long long	__u64;
#endif

#if (4 == 2)
typedef	int		__s16;
typedef	unsigned int	__u16;
#elif (2 == 2)
typedef	short		__s16;
typedef	unsigned short	__u16;
#else
  ?==error: undefined 16 bit type
#endif

#if (4 == 4)
typedef	int		__s32;
typedef	unsigned int	__u32;
#elif (4 == 4)
typedef	long		__s32;
typedef	unsigned long	__u32;
#elif (2 == 4)
typedef	short		__s32;
typedef	unsigned short	__u32;
#else
 ?== error: undefined 32 bit type
#endif

#endif /* LINUX_TYPES_H */

#endif /* EXT2_TYPES_H */