1 /* This file is needed by libio to define various configuration parameters.
2 These are always the same in the GNU C library. */
8 # include <bits/c++config.h>
9 # ifdef _GLIBCPP_USING_THREADS
10 # define _IO_MTSAFE_IO
14 /* Define types for libio in terms of the standard internal type names. */
16 #ifndef _LARGEFILE64_SOURCE
17 # define _LARGEFILE64_SOURCE
19 #include <sys/types.h>
21 #define __need_wchar_t
24 #include <bits/std_cstddef.h>
27 /* For use as part of glibc (native) or as part of libstdc++ (maybe
29 #if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 1)
30 # ifdef _GLIBCPP_USE_WCHAR_T
31 # include <bits/std_cwchar.h>
32 typedef mbstate_t __mbstate_t
;
37 /* Integral type unchanged by default argument promotions that can
38 hold any value corresponding to members of the extended character
39 set, as well as at least one value that does not correspond to any
40 member of the extended character set. */
42 typedef unsigned int wint_t;
44 #define __need_mbstate_t
45 #include <bits/std_cwchar.h>
46 #define _G_size_t size_t
47 #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
59 typedef __off_t _G_fpos_t
;
60 typedef __off64_t _G_fpos64_t
;
62 #define _G_ssize_t __ssize_t
63 #define _G_off_t __off_t
64 #define _G_off64_t __off64_t
65 #define _G_pid_t __pid_t
66 #define _G_uid_t __uid_t
67 #define _G_wchar_t wchar_t
68 #define _G_wint_t wint_t
69 #define _G_stat64 stat64
70 #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
72 typedef iconv_t _G_iconv_t
;
74 /* XXX Commented out because outside glibc we have to use iconv()
78 struct __gconv_info __cd
;
81 struct __gconv_info __cd
;
82 struct __gconv_step_data __data
;
88 typedef int _G_int16_t
__attribute__ ((__mode__ (__HI__
)));
89 typedef int _G_int32_t
__attribute__ ((__mode__ (__SI__
)));
90 typedef unsigned int _G_uint16_t
__attribute__ ((__mode__ (__HI__
)));
91 typedef unsigned int _G_uint32_t
__attribute__ ((__mode__ (__SI__
)));
93 #define _G_HAVE_BOOL 1
96 /* These library features are always available in the GNU C library. */
97 #define _G_HAVE_ATEXIT 1
98 #define _G_HAVE_SYS_CDEFS 1
99 #define _G_HAVE_SYS_WAIT 1
100 #define _G_NEED_STDARG_H 1
101 #define _G_va_list __gnuc_va_list
103 #define _G_HAVE_PRINTF_FP 1
104 #define _G_HAVE_MMAP 1
105 #define _G_HAVE_LONG_DOUBLE_IO 1
106 #define _G_HAVE_IO_FILE_OPEN 1
107 #define _G_HAVE_IO_GETLINE_INFO 1
109 #define _G_IO_IO_FILE_VERSION 0x20001
111 //#define _G_OPEN64 __open64
112 //#define _G_LSEEK64 __lseek64
113 //#define _G_FSTAT64(fd,buf) __fxstat64 (_STAT_VER, fd, buf)
115 /* This is defined by <bits/stat.h> if `st_blksize' exists. */
116 /*#define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE)*/
118 #define _G_BUFSIZ 8192
120 /* These are the vtbl details for ELF. */
121 #define _G_NAMES_HAVE_UNDERSCORE 0
122 #define _G_VTABLE_LABEL_HAS_LENGTH 1
123 #define _G_USING_THUNKS 1
124 #define _G_VTABLE_LABEL_PREFIX "__vt_"
125 #define _G_VTABLE_LABEL_PREFIX_ID __vt_
127 #define _G_INTERNAL_CCS "UCS4"
128 #define _G_HAVE_WEAK_SYMBOL 1
129 #define _G_STDIO_USES_LIBIO 1
131 #if defined __cplusplus || defined __STDC__
132 # define _G_ARGS(ARGLIST) ARGLIST
134 # define _G_ARGS(ARGLIST) ()
137 #endif /* _G_config.h */