]> rtime.felk.cvut.cz Git - mirosot.git/blob - bluetooth/types.h
Comments translated to english
[mirosot.git] / bluetooth / types.h
1 #ifndef _H8S_TYPES_H
2 #define _H8S_TYPES_H
3
4
5 typedef unsigned short umode_t;
6
7 /*
8  * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the
9  * header files exported to user space
10  */
11
12 typedef __signed__ char __s8;
13 typedef unsigned char __u8;
14
15 typedef __signed__ short __s16;
16 typedef unsigned short __u16;
17
18 #if __INT_MAX__ == 32767
19 typedef __signed__ long __s32;
20 typedef unsigned long __u32;
21 #else
22 typedef int __s32;
23 typedef unsigned int __u32;
24 #endif
25
26 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
27 typedef __signed__ long long __s64;
28 typedef unsigned long long __u64;
29 #endif
30
31 #ifndef __BIT_TYPES_DEFINED__
32 #define __BIT_TYPES_DEFINED__
33
34 typedef __u8  uint8_t;
35 typedef __s8  int8_t;
36 typedef __u16 uint16_t;
37 typedef __s16 int16_t;
38 typedef __u32 uint32_t;
39 typedef __s32 int32_t;
40
41 #if defined(__GNUC__) && !defined(__STRICT_ANSI__)
42 typedef __s64 int64_t;
43 typedef __u64 uint64_t;
44 #endif
45
46 #endif /* !(__BIT_TYPES_DEFINED__) */
47
48
49 /*
50  * These aren't exported outside the kernel to avoid name space clashes
51  */
52 #ifdef __KERNEL__
53
54 typedef __s8 s8;
55 typedef __u8 u8;
56
57 typedef __s16 s16;
58 typedef __u16 u16;
59
60 typedef __s32 s32;
61 typedef __u32 u32;
62
63 typedef __s64 s64;
64 typedef __s64 u64;
65
66 #define BITS_PER_LONG 32
67
68 #endif /* __KERNEL__ */
69
70 #endif /* _H8S_TYPES_H */