| 1 | #include <stddef.h> |
| 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> |
| 11 | #include <stdlib.h> |
| 12 | |
| 13 | /* Make the basic types 64-bit quantities on the host */ |
| 14 | #define HOST_64_BIT long |
| 15 | |
| 16 | typedef unsigned long uint64e_type; |
| 17 | typedef unsigned long uint64_type; |
| 18 | typedef long int64_type; |
| 19 | |
| 20 | #define BYTES_IN_PRINTF_INT 4 |
| 21 | |
| 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)) |
| 26 | |
| 27 | #include "fopen-same.h" |