Commit | Line | Data |
---|---|---|
c5652bff | 1 | #include <stddef.h> |
5f8f6d56 SC |
2 | #include <fcntl.h> |
3 | #include <errno.h> | |
4 | #include <stdio.h> | |
5 | #include <sys/types.h> | |
6 | #include <sys/stat.h> | |
7 | #include <ctype.h> | |
8 | #include <string.h> | |
9 | #include <sys/file.h> | |
10 | #include <alloca.h> | |
0cd22b6a | 11 | #include <stdlib.h> |
5f8f6d56 SC |
12 | |
13 | /* Make the basic types 64-bit quantities on the host */ | |
14 | #define HOST_64_BIT long | |
5f8f6d56 | 15 | |
5f8f6d56 | 16 | typedef unsigned long uint64e_type; |
5f8f6d56 SC |
17 | typedef unsigned long uint64_type; |
18 | typedef long int64_type; | |
19 | ||
5f8f6d56 SC |
20 | #define BYTES_IN_PRINTF_INT 4 |
21 | ||
e92512bb ILT |
22 | /* These must have type unsigned long because they are used as |
23 | arguments in printf functions. */ | |
24 | #define uint64_typeLOW(x) ((unsigned long) (((x) & 0xffffffff))) | |
25 | #define uint64_typeHIGH(x) ((unsigned long) (((x) >> 32) & 0xffffffff)) | |
c5652bff | 26 | |
5f8f6d56 | 27 | #include "fopen-same.h" |