_G_config.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. typedef struct
  19. {
  20. __off_t __pos;
  21. __mbstate_t __state;
  22. } _G_fpos_t;
  23. typedef struct
  24. {
  25. __off64_t __pos;
  26. __mbstate_t __state;
  27. } _G_fpos64_t;
  28. #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
  29. # include <gconv.h>
  30. typedef union
  31. {
  32. struct __gconv_info __cd;
  33. struct
  34. {
  35. struct __gconv_info __cd;
  36. struct __gconv_step_data __data;
  37. } __combined;
  38. } _G_iconv_t;
  39. #endif
  40. /* These library features are always available in the GNU C library. */
  41. #define _G_va_list __gnuc_va_list
  42. #define _G_HAVE_MMAP 1
  43. #define _G_HAVE_MREMAP 1
  44. #define _G_IO_IO_FILE_VERSION 0x20001
  45. /* This is defined by <bits/stat.h> if `st_blksize' exists. */
  46. #define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE)
  47. #define _G_BUFSIZ 8192
  48. #endif /* _G_config.h */