Contents of /trunk/mkinitrd-magellan/klibc/usr/include/limits.h
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 738 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File MIME type: text/plain
File size: 738 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 | * limits.h |
3 | */ |
4 | |
5 | #ifndef _LIMITS_H |
6 | #define _LIMITS_H |
7 | |
8 | #define CHAR_BIT 8 |
9 | #define SHRT_BIT 16 |
10 | #define INT_BIT 32 |
11 | #define LONGLONG_BIT 64 |
12 | |
13 | #define SCHAR_MIN (-128) |
14 | #define SCHAR_MAX 127 |
15 | #define UCHAR_MAX 255 |
16 | |
17 | #ifdef __CHAR_UNSIGNED__ |
18 | # define CHAR_MIN 0 |
19 | # define CHAR_MAX UCHAR_MAX |
20 | #else |
21 | # define CHAR_MIN SCHAR_MIN |
22 | # define CHAR_MAX SCHAR_MAX |
23 | #endif |
24 | |
25 | #define SHRT_MIN (-32768) |
26 | #define SHRT_MAX 32767 |
27 | #define USHRT_MAX 65535 |
28 | |
29 | #define INT_MIN (-2147483647-1) |
30 | #define INT_MAX 2147483647 |
31 | #define UINT_MAX 4294967295U |
32 | |
33 | #define LONGLONG_MIN (-9223372036854775807LL-1) |
34 | #define LONGLONG_MAX 9223372036854775807LL |
35 | #define ULONGLONG_MAX 18446744073709551615ULL |
36 | |
37 | #include <bitsize/limits.h> |
38 | #include <linux/limits.h> |
39 | |
40 | #endif /* _LIMITS_H */ |