| 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 | #ifndef _LIBC
|
|---|
| 8 | # include <bits/c++config.h>
|
|---|
| 9 | # ifdef _GLIBCPP_USE_THREADS
|
|---|
| 10 | # define _IO_MTSAFE_IO
|
|---|
| 11 | # endif
|
|---|
| 12 | #endif
|
|---|
| 13 |
|
|---|
| 14 | /* Define types for libio in terms of the standard internal type names. */
|
|---|
| 15 |
|
|---|
| 16 | #include <sys/types.h>
|
|---|
| 17 | #define __need_size_t
|
|---|
| 18 | #define __need_wchar_t
|
|---|
| 19 | #define __need_wint_t
|
|---|
| 20 | #define __need_NULL
|
|---|
| 21 | #define __need_ptrdiff_t
|
|---|
| 22 | #ifdef __cplusplus
|
|---|
| 23 | # include <cstddef>
|
|---|
| 24 | #else
|
|---|
| 25 | # include <stddef.h>
|
|---|
| 26 | #endif
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 | #ifndef _WINT_T
|
|---|
| 30 | /* Integral type unchanged by default argument promotions that can
|
|---|
| 31 | hold any value corresponding to members of the extended character
|
|---|
| 32 | set, as well as at least one value that does not correspond to any
|
|---|
| 33 | member of the extended character set. */
|
|---|
| 34 | # define _WINT_T
|
|---|
| 35 | typedef unsigned int wint_t;
|
|---|
| 36 | #endif
|
|---|
| 37 |
|
|---|
| 38 | /* For use as part of glibc (native) or as part of libstdc++ (maybe
|
|---|
| 39 | not glibc) */
|
|---|
| 40 | #ifndef __c_mbstate_t_defined
|
|---|
| 41 | # define __c_mbstate_t_defined 1
|
|---|
| 42 | /*# ifdef _GLIBCPP_USE_WCHAR_T*/
|
|---|
| 43 | typedef struct
|
|---|
| 44 | {
|
|---|
| 45 | int count;
|
|---|
| 46 | wint_t value;
|
|---|
| 47 | }__c_mbstate_t;
|
|---|
| 48 | /*# endif*/
|
|---|
| 49 | #endif
|
|---|
| 50 | #undef __need_mbstate_t
|
|---|
| 51 |
|
|---|
| 52 | typedef size_t _G_size_t;
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 | #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
|
|---|
| 56 | typedef struct
|
|---|
| 57 | {
|
|---|
| 58 | __off_t __pos;
|
|---|
| 59 | __c_mbstate_t __state;
|
|---|
| 60 | } _G_fpos_t;
|
|---|
| 61 |
|
|---|
| 62 | typedef struct
|
|---|
| 63 | {
|
|---|
| 64 | __off64_t __pos;
|
|---|
| 65 | __c_mbstate_t __state;
|
|---|
| 66 | } _G_fpos64_t;
|
|---|
| 67 | #else
|
|---|
| 68 | typedef __off_t _G_fpos_t;
|
|---|
| 69 | typedef __off64_t _G_fpos64_t;
|
|---|
| 70 | #endif
|
|---|
| 71 | #define _G_ssize_t __ssize_t
|
|---|
| 72 | #define _G_off_t __off_t
|
|---|
| 73 | #define _G_off64_t __off64_t
|
|---|
| 74 | #define _G_pid_t __pid_t
|
|---|
| 75 | #define _G_uid_t __uid_t
|
|---|
| 76 | #define _G_wchar_t wchar_t
|
|---|
| 77 | #define _G_wint_t wint_t
|
|---|
| 78 | #define _G_stat64 stat64
|
|---|
| 79 | #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
|
|---|
| 80 | # include <iconv.h>
|
|---|
| 81 | typedef iconv_t _G_iconv_t;
|
|---|
| 82 | #endif
|
|---|
| 83 |
|
|---|
| 84 | typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
|
|---|
| 85 | typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
|
|---|
| 86 | typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
|
|---|
| 87 | typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
|
|---|
| 88 |
|
|---|
| 89 | #define _G_HAVE_BOOL 1
|
|---|
| 90 |
|
|---|
| 91 |
|
|---|
| 92 | /* These library features are always available in the GNU C library. */
|
|---|
| 93 | #define _G_HAVE_ATEXIT 1
|
|---|
| 94 | #define _G_HAVE_SYS_CDEFS 1
|
|---|
| 95 | #define _G_HAVE_SYS_WAIT 1
|
|---|
| 96 | #define _G_NEED_STDARG_H 1
|
|---|
| 97 | #define _G_va_list __gnuc_va_list
|
|---|
| 98 |
|
|---|
| 99 | #define _G_HAVE_PRINTF_FP 1
|
|---|
| 100 | #define _G_HAVE_MMAP 1
|
|---|
| 101 | #define _G_HAVE_LONG_DOUBLE_IO 1
|
|---|
| 102 | #define _G_HAVE_IO_FILE_OPEN 1
|
|---|
| 103 | #define _G_HAVE_IO_GETLINE_INFO 1
|
|---|
| 104 |
|
|---|
| 105 | #define _G_IO_IO_FILE_VERSION 0x20001
|
|---|
| 106 |
|
|---|
| 107 | //#define _G_OPEN64 __open64
|
|---|
| 108 | //#define _G_LSEEK64 __lseek64
|
|---|
| 109 | //#define _G_FSTAT64(fd,buf) __fxstat64 (_STAT_VER, fd, buf)
|
|---|
| 110 |
|
|---|
| 111 | /* This is defined by <bits/stat.h> if `st_blksize' exists. */
|
|---|
| 112 | /*#define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE)*/
|
|---|
| 113 |
|
|---|
| 114 | #define _G_BUFSIZ 8192
|
|---|
| 115 |
|
|---|
| 116 | /* These are the vtbl details for ELF. */
|
|---|
| 117 | #define _G_NAMES_HAVE_UNDERSCORE 0
|
|---|
| 118 | #define _G_VTABLE_LABEL_HAS_LENGTH 1
|
|---|
| 119 | #ifndef _G_USING_THUNKS
|
|---|
| 120 | # define _G_USING_THUNKS 1
|
|---|
| 121 | #endif /* _G_USING_THUNKS */
|
|---|
| 122 | #define _G_VTABLE_LABEL_PREFIX "__vt_"
|
|---|
| 123 | #define _G_VTABLE_LABEL_PREFIX_ID __vt_
|
|---|
| 124 |
|
|---|
| 125 | #define _G_INTERNAL_CCS "UCS4"
|
|---|
| 126 | #define _G_HAVE_WEAK_SYMBOL 1
|
|---|
| 127 | #define _G_STDIO_USES_LIBIO 1
|
|---|
| 128 |
|
|---|
| 129 | #if defined __cplusplus || defined __STDC__
|
|---|
| 130 | # define _G_ARGS(ARGLIST) ARGLIST
|
|---|
| 131 | #else
|
|---|
| 132 | # define _G_ARGS(ARGLIST) ()
|
|---|
| 133 | #endif
|
|---|
| 134 |
|
|---|
| 135 | #endif /* _G_config.h */
|
|---|
| 136 |
|
|---|