stdio-ldbl.h 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /* -mlong-double-64 compatibility mode for stdio functions.
  2. Copyright (C) 2006-2019 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. <http://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. __LDBL_REDIR1_DECL (fscanf, __nldbl___isoc99_fscanf)
  26. __LDBL_REDIR1_DECL (scanf, __nldbl___isoc99_scanf)
  27. __LDBL_REDIR1_DECL (sscanf, __nldbl___isoc99_sscanf)
  28. #else
  29. __LDBL_REDIR_DECL (fscanf)
  30. __LDBL_REDIR_DECL (scanf)
  31. __LDBL_REDIR_DECL (sscanf)
  32. #endif
  33. #if defined __USE_ISOC99 || defined __USE_UNIX98
  34. __LDBL_REDIR_DECL (snprintf)
  35. __LDBL_REDIR_DECL (vsnprintf)
  36. #endif
  37. #ifdef __USE_ISOC99
  38. # if !__GLIBC_USE (DEPRECATED_SCANF)
  39. __LDBL_REDIR1_DECL (vfscanf, __nldbl___isoc99_vfscanf)
  40. __LDBL_REDIR1_DECL (vscanf, __nldbl___isoc99_vscanf)
  41. __LDBL_REDIR1_DECL (vsscanf, __nldbl___isoc99_vsscanf)
  42. # else
  43. __LDBL_REDIR_DECL (vfscanf)
  44. __LDBL_REDIR_DECL (vsscanf)
  45. __LDBL_REDIR_DECL (vscanf)
  46. # endif
  47. #endif
  48. #ifdef __USE_XOPEN2K8
  49. __LDBL_REDIR_DECL (vdprintf)
  50. __LDBL_REDIR_DECL (dprintf)
  51. #endif
  52. #ifdef __USE_GNU
  53. __LDBL_REDIR_DECL (vasprintf)
  54. __LDBL_REDIR_DECL (__asprintf)
  55. __LDBL_REDIR_DECL (asprintf)
  56. __LDBL_REDIR_DECL (obstack_printf)
  57. __LDBL_REDIR_DECL (obstack_vprintf)
  58. #endif
  59. #if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
  60. __LDBL_REDIR_DECL (__sprintf_chk)
  61. __LDBL_REDIR_DECL (__vsprintf_chk)
  62. # if defined __USE_ISOC99 || defined __USE_UNIX98
  63. __LDBL_REDIR_DECL (__snprintf_chk)
  64. __LDBL_REDIR_DECL (__vsnprintf_chk)
  65. # endif
  66. # if __USE_FORTIFY_LEVEL > 1
  67. __LDBL_REDIR_DECL (__fprintf_chk)
  68. __LDBL_REDIR_DECL (__printf_chk)
  69. __LDBL_REDIR_DECL (__vfprintf_chk)
  70. __LDBL_REDIR_DECL (__vprintf_chk)
  71. # ifdef __USE_XOPEN2K8
  72. __LDBL_REDIR_DECL (__dprintf_chk)
  73. __LDBL_REDIR_DECL (__vdprintf_chk)
  74. # endif
  75. # ifdef __USE_GNU
  76. __LDBL_REDIR_DECL (__asprintf_chk)
  77. __LDBL_REDIR_DECL (__vasprintf_chk)
  78. __LDBL_REDIR_DECL (__obstack_printf_chk)
  79. __LDBL_REDIR_DECL (__obstack_vprintf_chk)
  80. # endif
  81. # endif
  82. #endif