_G_config.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /* This file is needed by libio to define various configuration parameters.
  2. These are always the same in the GNU C library. */
  3. #ifndef _G_config_h
  4. #define _G_config_h 1
  5. /* Define types for libio in terms of the standard internal type names. */
  6. #include <bits/types.h>
  7. #define __need_size_t
  8. #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
  9. # define __need_wchar_t
  10. #endif
  11. #define __need_NULL
  12. #include <stddef.h>
  13. #define __need_mbstate_t
  14. #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
  15. # define __need_wint_t
  16. #endif
  17. #include <wchar.h>
  18. #define _G_size_t size_t
  19. typedef struct
  20. {
  21. __off_t __pos;
  22. __mbstate_t __state;
  23. } _G_fpos_t;
  24. typedef struct
  25. {
  26. __off64_t __pos;
  27. __mbstate_t __state;
  28. } _G_fpos64_t;
  29. #define _G_ssize_t __ssize_t
  30. #define _G_off_t __off_t
  31. #define _G_off64_t __off64_t
  32. #define _G_pid_t __pid_t
  33. #define _G_uid_t __uid_t
  34. #define _G_wchar_t wchar_t
  35. #define _G_wint_t wint_t
  36. #define _G_stat64 stat64
  37. #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
  38. # include <gconv.h>
  39. typedef union
  40. {
  41. struct __gconv_info __cd;
  42. struct
  43. {
  44. struct __gconv_info __cd;
  45. struct __gconv_step_data __data;
  46. } __combined;
  47. } _G_iconv_t;
  48. #endif
  49. typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
  50. typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
  51. typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
  52. typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
  53. #define _G_HAVE_BOOL 1
  54. /* These library features are always available in the GNU C library. */
  55. #define _G_HAVE_ATEXIT 1
  56. #define _G_HAVE_SYS_CDEFS 1
  57. #define _G_HAVE_SYS_WAIT 1
  58. #define _G_NEED_STDARG_H 1
  59. #define _G_va_list __gnuc_va_list
  60. #define _G_HAVE_PRINTF_FP 1
  61. #define _G_HAVE_MMAP 1
  62. #define _G_HAVE_MREMAP 1
  63. #define _G_HAVE_LONG_DOUBLE_IO 1
  64. #define _G_HAVE_IO_FILE_OPEN 1
  65. #define _G_HAVE_IO_GETLINE_INFO 1
  66. #define _G_IO_IO_FILE_VERSION 0x20001
  67. #define _G_OPEN64 __open64
  68. #define _G_LSEEK64 __lseek64
  69. #define _G_MMAP64 __mmap64
  70. #define _G_FSTAT64(fd,buf) __fxstat64 (_STAT_VER, fd, buf)
  71. /* This is defined by <bits/stat.h> if `st_blksize' exists. */
  72. #define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE)
  73. #define _G_BUFSIZ 8192
  74. /* These are the vtbl details for ELF. */
  75. #define _G_NAMES_HAVE_UNDERSCORE 0
  76. #define _G_VTABLE_LABEL_HAS_LENGTH 1
  77. #define _G_USING_THUNKS 1
  78. #define _G_VTABLE_LABEL_PREFIX "__vt_"
  79. #define _G_VTABLE_LABEL_PREFIX_ID __vt_
  80. #if defined __cplusplus || defined __STDC__
  81. # define _G_ARGS(ARGLIST) ARGLIST
  82. #else
  83. # define _G_ARGS(ARGLIST) ()
  84. #endif
  85. #endif /* _G_config.h */