stdio-ldbl.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /* -mlong-double-64 compatibility mode for stdio functions.
  2. Copyright (C) 2006-2021 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. The GNU C Library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, see
  14. <https://www.gnu.org/licenses/>. */
  15. #ifndef _STDIO_H
  16. # error "Never include <bits/stdio-ldbl.h> directly; use <stdio.h> instead."
  17. #endif
  18. __LDBL_REDIR_DECL (fprintf)
  19. __LDBL_REDIR_DECL (printf)
  20. __LDBL_REDIR_DECL (sprintf)
  21. __LDBL_REDIR_DECL (vfprintf)
  22. __LDBL_REDIR_DECL (vprintf)
  23. __LDBL_REDIR_DECL (vsprintf)
  24. #if !__GLIBC_USE (DEPRECATED_SCANF)
  25. # if defined __LDBL_COMPAT
  26. __LDBL_REDIR1_DECL (fscanf, __nldbl___isoc99_fscanf)
  27. __LDBL_REDIR1_DECL (scanf, __nldbl___isoc99_scanf)
  28. __LDBL_REDIR1_DECL (sscanf, __nldbl___isoc99_sscanf)
  29. # elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
  30. __LDBL_REDIR1_DECL (fscanf, __isoc99_fscanfieee128)
  31. __LDBL_REDIR1_DECL (scanf, __isoc99_scanfieee128)
  32. __LDBL_REDIR1_DECL (sscanf, __isoc99_sscanfieee128)
  33. # else
  34. # error bits/stdlib-ldbl.h included when no ldbl redirections are required.
  35. # endif
  36. #else
  37. __LDBL_REDIR_DECL (fscanf)
  38. __LDBL_REDIR_DECL (scanf)
  39. __LDBL_REDIR_DECL (sscanf)
  40. #endif
  41. #if defined __USE_ISOC99 || defined __USE_UNIX98
  42. __LDBL_REDIR_DECL (snprintf)
  43. __LDBL_REDIR_DECL (vsnprintf)
  44. #endif
  45. #ifdef __USE_ISOC99
  46. # if !__GLIBC_USE (DEPRECATED_SCANF)
  47. # if defined __LDBL_COMPAT
  48. __LDBL_REDIR1_DECL (vfscanf, __nldbl___isoc99_vfscanf)
  49. __LDBL_REDIR1_DECL (vscanf, __nldbl___isoc99_vscanf)
  50. __LDBL_REDIR1_DECL (vsscanf, __nldbl___isoc99_vsscanf)
  51. # elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
  52. __LDBL_REDIR1_DECL (vfscanf, __isoc99_vfscanfieee128)
  53. __LDBL_REDIR1_DECL (vscanf, __isoc99_vscanfieee128)
  54. __LDBL_REDIR1_DECL (vsscanf, __isoc99_vsscanfieee128)
  55. # else
  56. # error bits/stdlib-ldbl.h included when no ldbl redirections are required.
  57. # endif
  58. # else
  59. __LDBL_REDIR_DECL (vfscanf)
  60. __LDBL_REDIR_DECL (vsscanf)
  61. __LDBL_REDIR_DECL (vscanf)
  62. # endif
  63. #endif
  64. #ifdef __USE_XOPEN2K8
  65. __LDBL_REDIR_DECL (vdprintf)
  66. __LDBL_REDIR_DECL (dprintf)
  67. #endif
  68. #ifdef __USE_GNU
  69. __LDBL_REDIR_DECL (vasprintf)
  70. __LDBL_REDIR2_DECL (asprintf)
  71. __LDBL_REDIR_DECL (asprintf)
  72. __LDBL_REDIR_DECL (obstack_printf)
  73. __LDBL_REDIR_DECL (obstack_vprintf)
  74. #endif
  75. #if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
  76. __LDBL_REDIR2_DECL (sprintf_chk)
  77. __LDBL_REDIR2_DECL (vsprintf_chk)
  78. # if defined __USE_ISOC99 || defined __USE_UNIX98
  79. __LDBL_REDIR2_DECL (snprintf_chk)
  80. __LDBL_REDIR2_DECL (vsnprintf_chk)
  81. # endif
  82. # if __USE_FORTIFY_LEVEL > 1
  83. __LDBL_REDIR2_DECL (fprintf_chk)
  84. __LDBL_REDIR2_DECL (printf_chk)
  85. __LDBL_REDIR2_DECL (vfprintf_chk)
  86. __LDBL_REDIR2_DECL (vprintf_chk)
  87. # ifdef __USE_XOPEN2K8
  88. __LDBL_REDIR2_DECL (dprintf_chk)
  89. __LDBL_REDIR2_DECL (vdprintf_chk)
  90. # endif
  91. # ifdef __USE_GNU
  92. __LDBL_REDIR2_DECL (asprintf_chk)
  93. __LDBL_REDIR2_DECL (vasprintf_chk)
  94. __LDBL_REDIR2_DECL (obstack_printf_chk)
  95. __LDBL_REDIR2_DECL (obstack_vprintf_chk)
  96. # endif
  97. # endif
  98. #endif