File tree 34 files changed +35
-117
lines changed
34 files changed +35
-117
lines changed Original file line number Diff line number Diff line change 8
8
#define __BYTE_ORDER 1234
9
9
#endif
10
10
11
+ #define __LONG_MAX 0x7fffffffffffffffL
12
+
11
13
#ifndef __cplusplus
12
14
TYPEDEF unsigned wchar_t ;
13
15
#endif
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
#define __BYTE_ORDER 1234
9
9
#endif
10
10
11
+ #define __LONG_MAX 0x7fffffffL
12
+
11
13
#ifndef __cplusplus
12
14
TYPEDEF unsigned wchar_t ;
13
15
#endif
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
#define _Reg int
4
4
5
5
#define __BYTE_ORDER 1234
6
+ #define __LONG_MAX 0x7fffffffL
6
7
7
8
#ifndef __cplusplus
8
9
#ifdef __WCHAR_TYPE__
Original file line number Diff line number Diff line change 1
- #if defined(_POSIX_SOURCE ) || defined(_POSIX_C_SOURCE ) \
2
- || defined(_XOPEN_SOURCE ) || defined(_GNU_SOURCE ) || defined(_BSD_SOURCE )
3
1
#define PAGESIZE 4096
4
- #define LONG_BIT 32
5
- #endif
6
-
7
- #define LONG_MAX 0x7fffffffL
8
- #define LLONG_MAX 0x7fffffffffffffffLL
Original file line number Diff line number Diff line change 3
3
#define _Reg int
4
4
5
5
#define __BYTE_ORDER 4321
6
+ #define __LONG_MAX 0x7fffffffL
6
7
7
8
#ifndef __cplusplus
8
9
#ifdef __WCHAR_TYPE__
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
#define __BYTE_ORDER 4321
9
9
#endif
10
10
11
+ #define __LONG_MAX 0x7fffffffL
12
+
11
13
#ifndef __cplusplus
12
14
TYPEDEF int wchar_t ;
13
15
#endif
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
#define __BYTE_ORDER 4321
9
9
#endif
10
10
11
+ #define __LONG_MAX 0x7fffffffL
12
+
11
13
#ifndef __cplusplus
12
14
TYPEDEF int wchar_t ;
13
15
#endif
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
#define __BYTE_ORDER 4321
9
9
#endif
10
10
11
+ #define __LONG_MAX 0x7fffffffffffffffL
12
+
11
13
#ifndef __cplusplus
12
14
TYPEDEF int wchar_t ;
13
15
#endif
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
#define __BYTE_ORDER 4321
9
9
#endif
10
10
11
+ #define __LONG_MAX 0x7fffffffL
12
+
11
13
#ifndef __cplusplus
12
14
TYPEDEF int wchar_t ;
13
15
#endif
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
#define _Reg int
4
4
5
5
#define __BYTE_ORDER 4321
6
+ #define __LONG_MAX 0x7fffffffL
6
7
7
8
#ifndef __cplusplus
8
9
TYPEDEF unsigned wchar_t ;
Original file line number Diff line number Diff line change 1
- #if defined(_POSIX_SOURCE ) || defined(_POSIX_C_SOURCE ) \
2
- || defined(_XOPEN_SOURCE ) || defined(_GNU_SOURCE ) || defined(_BSD_SOURCE )
3
1
#define PAGESIZE 8192
4
- #define LONG_BIT 32
5
- #endif
6
-
7
- #define LONG_MAX 0x7fffffffL
8
- #define LLONG_MAX 0x7fffffffffffffffLL
Original file line number Diff line number Diff line change 3
3
#define _Reg int
4
4
5
5
#define __BYTE_ORDER 4321
6
+ #define __LONG_MAX 0x7fffffffL
6
7
7
8
#ifndef __cplusplus
8
9
#ifdef __WCHAR_TYPE__
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
#define __BYTE_ORDER 1234
9
9
#endif
10
10
11
+ #define __LONG_MAX 0x7fffffffffffffffL
12
+
11
13
#ifndef __cplusplus
12
14
TYPEDEF int wchar_t ;
13
15
#endif
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
#define _Reg long
4
4
5
5
#define __BYTE_ORDER 1234
6
+ #define __LONG_MAX 0x7fffffffffffffffL
6
7
7
8
#ifndef __cplusplus
8
9
TYPEDEF int wchar_t ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
#define _Reg long
4
4
5
5
#define __BYTE_ORDER 4321
6
+ #define __LONG_MAX 0x7fffffffffffffffL
6
7
7
8
#ifndef __cplusplus
8
9
TYPEDEF int wchar_t ;
Original file line number Diff line number Diff line change 1
- #if defined(_POSIX_SOURCE ) || defined(_POSIX_C_SOURCE ) \
2
- || defined(_XOPEN_SOURCE ) || defined(_GNU_SOURCE ) || defined(_BSD_SOURCE )
3
1
#define PAGESIZE 4096
4
- #define LONG_BIT 64
5
- #endif
6
-
7
- #define LONG_MAX 0x7fffffffffffffffL
8
- #define LLONG_MAX 0x7fffffffffffffffLL
Original file line number Diff line number Diff line change 8
8
#define __BYTE_ORDER 1234
9
9
#endif
10
10
11
+ #define __LONG_MAX 0x7fffffffL
12
+
11
13
#ifndef __cplusplus
12
14
#ifdef __WCHAR_TYPE__
13
15
TYPEDEF __WCHAR_TYPE__ wchar_t ;
Original file line number Diff line number Diff line change 1
- #if defined(_POSIX_SOURCE ) || defined(_POSIX_C_SOURCE ) \
2
- || defined(_XOPEN_SOURCE ) || defined(_GNU_SOURCE ) || defined(_BSD_SOURCE )
3
1
#define PAGESIZE 4096
4
- #define LONG_BIT 32
5
- #endif
6
-
7
- #define LONG_MAX 0x7fffffffL
8
- #define LLONG_MAX 0x7fffffffffffffffLL
Original file line number Diff line number Diff line change 3
3
#define _Reg long long
4
4
5
5
#define __BYTE_ORDER 1234
6
+ #define __LONG_MAX 0x7fffffffL
6
7
7
8
#ifndef __cplusplus
8
9
#ifdef __WCHAR_TYPE__
Original file line number Diff line number Diff line change 1
- #if defined(_POSIX_SOURCE ) || defined(_POSIX_C_SOURCE ) \
2
- || defined(_XOPEN_SOURCE ) || defined(_GNU_SOURCE ) || defined(_BSD_SOURCE )
3
1
#define PAGESIZE 4096
4
- #define LONG_BIT 32
5
- #endif
6
-
7
- #define LONG_MAX 0x7fffffffL
8
- #define LLONG_MAX 0x7fffffffffffffffLL
Original file line number Diff line number Diff line change 3
3
#define _Reg long
4
4
5
5
#define __BYTE_ORDER 1234
6
+ #define __LONG_MAX 0x7fffffffffffffffL
6
7
7
8
#ifndef __cplusplus
8
9
TYPEDEF int wchar_t ;
Original file line number Diff line number Diff line change 1
- #if defined(_POSIX_SOURCE ) || defined(_POSIX_C_SOURCE ) \
2
- || defined(_XOPEN_SOURCE ) || defined(_GNU_SOURCE ) || defined(_BSD_SOURCE )
3
1
#define PAGESIZE 4096
4
- #define LONG_BIT 64
5
- #endif
6
-
7
- #define LONG_MAX 0x7fffffffffffffffL
8
- #define LLONG_MAX 0x7fffffffffffffffLL
Original file line number Diff line number Diff line change 3
3
4
4
#include <features.h>
5
5
6
- /* Most limits are system-specific */
7
-
8
- #include <bits/limits.h>
6
+ #include <bits/alltypes.h> /* __LONG_MAX */
9
7
10
8
/* Support signed or unsigned plain-char */
11
9
17
15
#define CHAR_MAX 127
18
16
#endif
19
17
20
- /* Some universal constants... */
21
-
22
18
#define CHAR_BIT 8
23
19
#define SCHAR_MIN (-128)
24
20
#define SCHAR_MAX 127
30
26
#define INT_MAX 0x7fffffff
31
27
#define UINT_MAX 0xffffffffU
32
28
#define LONG_MIN (-LONG_MAX-1)
29
+ #define LONG_MAX __LONG_MAX
33
30
#define ULONG_MAX (2UL*LONG_MAX+1)
34
31
#define LLONG_MIN (-LLONG_MAX-1)
32
+ #define LLONG_MAX 0x7fffffffffffffffLL
35
33
#define ULLONG_MAX (2ULL*LLONG_MAX+1)
36
34
37
35
#define MB_LEN_MAX 4
38
36
39
37
#if defined(_POSIX_SOURCE ) || defined(_POSIX_C_SOURCE ) \
40
38
|| defined(_XOPEN_SOURCE ) || defined(_GNU_SOURCE ) || defined(_BSD_SOURCE )
41
39
40
+ #include <bits/limits.h>
41
+
42
42
#define PIPE_BUF 4096
43
43
#define FILESIZEBITS 64
44
44
#define NAME_MAX 255
53
53
#define TTY_NAME_MAX 32
54
54
#define HOST_NAME_MAX 255
55
55
56
+ #if LONG_MAX == 0x7fffffffL
57
+ #define LONG_BIT 32
58
+ #else
59
+ #define LONG_BIT 64
60
+ #endif
61
+
56
62
/* Implementation choices... */
57
63
58
64
#define PTHREAD_KEYS_MAX 128
You can’t perform that action at this time.
0 commit comments