]>
Commit | Line | Data |
---|---|---|
fa00327f RM |
1 | /* This file is needed by libio to define various configuration parameters. |
2 | These are always the same in the GNU C library. */ | |
3 | ||
4 | #ifndef _G_config_h | |
5 | #define _G_config_h 1 | |
6 | ||
7 | /* Define types for libio in terms of the standard internal type names. */ | |
8 | ||
5107cf1d | 9 | #include <bits/types.h> |
fa00327f | 10 | #define __need_size_t |
795fbc9a | 11 | #define __need_wint_t |
6973fc01 | 12 | #define __need_NULL |
fa00327f | 13 | #include <stddef.h> |
7434ccad UD |
14 | #ifndef _WINT_T |
15 | /* Integral type unchanged by default argument promotions that can | |
16 | hold any value corresponding to members of the extended character | |
17 | set, as well as at least one value that does not correspond to any | |
18 | member of the extended character set. */ | |
dfd2257a | 19 | # define _WINT_T |
7434ccad UD |
20 | typedef unsigned int wint_t; |
21 | #endif | |
fa00327f RM |
22 | #define _G_size_t size_t |
23 | #define _G_fpos_t __off_t | |
dfd2257a | 24 | #define _G_fpos64_t __off_t |
fa00327f RM |
25 | #define _G_ssize_t __ssize_t |
26 | #define _G_off_t __off_t | |
dfd2257a | 27 | #define _G_off64_t __off_t |
fa00327f RM |
28 | #define _G_pid_t __pid_t |
29 | #define _G_uid_t __uid_t | |
795fbc9a | 30 | #define _G_wint_t wint_t |
dfd2257a | 31 | #define _G_stat64 stat |
fa00327f | 32 | |
f8b87ef0 UD |
33 | typedef int _G_int16_t __attribute__ ((__mode__ (__HI__))); |
34 | typedef int _G_int32_t __attribute__ ((__mode__ (__SI__))); | |
35 | typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__))); | |
36 | typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__))); | |
37 | ||
38 | #define _G_HAVE_BOOL 1 | |
39 | ||
fa00327f RM |
40 | |
41 | /* These library features are always available in the GNU C library. */ | |
42 | #define _G_HAVE_ATEXIT 1 | |
6259ec0d | 43 | #define _G_HAVE_SYS_CDEFS 1 |
fa00327f RM |
44 | #define _G_HAVE_SYS_WAIT 1 |
45 | #define _G_NEED_STDARG_H 1 | |
46 | #define _G_va_list __gnuc_va_list | |
47 | ||
6259ec0d | 48 | #define _G_HAVE_PRINTF_FP 1 |
f8b87ef0 | 49 | #define _G_HAVE_MMAP 1 |
df4ef2ab | 50 | #define _G_HAVE_LONG_DOUBLE_IO 1 |
bd355af0 UD |
51 | #define _G_HAVE_IO_FILE_OPEN 1 |
52 | ||
53 | #define _G_IO_IO_FILE_VERSION 0x20001 | |
6259ec0d | 54 | |
5107cf1d | 55 | /* This is defined by <bits/stat.h> if `st_blksize' exists. */ |
fa00327f RM |
56 | #define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE) |
57 | ||
58 | #define _G_BUFSIZ 8192 | |
59 | ||
60 | /* These are the vtbl details for ELF. */ | |
61 | #define _G_NAMES_HAVE_UNDERSCORE 0 | |
62 | #define _G_VTABLE_LABEL_PREFIX "_vt." | |
63 | #define _G_VTABLE_LABEL_HAS_LENGTH 1 | |
64 | ||
65 | ||
bd355af0 | 66 | #if defined __cplusplus || defined __STDC__ |
dfd2257a | 67 | # define _G_ARGS(ARGLIST) ARGLIST |
f8b87ef0 | 68 | #else |
dfd2257a | 69 | # define _G_ARGS(ARGLIST) () |
f8b87ef0 UD |
70 | #endif |
71 | ||
fa00327f | 72 | #endif /* _G_config.h */ |