stdio-ldbl.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* -mlong-double-64 compatibility mode for stdio functions.
  2. Copyright (C) 2006, 2007, 2008 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, write to the Free
  14. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  15. 02111-1307 USA. */
  16. #ifndef _STDIO_H
  17. # error "Never include <bits/stdio-ldbl.h> directly; use <stdio.h> instead."
  18. #endif
  19. __BEGIN_NAMESPACE_STD
  20. __LDBL_REDIR_DECL (fprintf)
  21. __LDBL_REDIR_DECL (printf)
  22. __LDBL_REDIR_DECL (sprintf)
  23. __LDBL_REDIR_DECL (vfprintf)
  24. __LDBL_REDIR_DECL (vprintf)
  25. __LDBL_REDIR_DECL (vsprintf)
  26. #if defined __USE_ISOC99 && !defined __USE_GNU \
  27. && !defined __REDIRECT \
  28. && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
  29. __LDBL_REDIR1_DECL (fscanf, __nldbl___isoc99_fscanf)
  30. __LDBL_REDIR1_DECL (scanf, __nldbl___isoc99_scanf)
  31. __LDBL_REDIR1_DECL (sscanf, __nldbl___isoc99_sscanf)
  32. #else
  33. __LDBL_REDIR_DECL (fscanf)
  34. __LDBL_REDIR_DECL (scanf)
  35. __LDBL_REDIR_DECL (sscanf)
  36. #endif
  37. __END_NAMESPACE_STD
  38. #if defined __USE_BSD || defined __USE_ISOC99 || defined __USE_UNIX98
  39. __BEGIN_NAMESPACE_C99
  40. __LDBL_REDIR_DECL (snprintf)
  41. __LDBL_REDIR_DECL (vsnprintf)
  42. __END_NAMESPACE_C99
  43. #endif
  44. #ifdef __USE_ISOC99
  45. __BEGIN_NAMESPACE_C99
  46. # if !defined __USE_GNU && !defined __REDIRECT \
  47. && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
  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. # else
  52. __LDBL_REDIR_DECL (vfscanf)
  53. __LDBL_REDIR_DECL (vsscanf)
  54. __LDBL_REDIR_DECL (vscanf)
  55. # endif
  56. __END_NAMESPACE_C99
  57. #endif
  58. #ifdef __USE_GNU
  59. __LDBL_REDIR_DECL (vdprintf)
  60. __LDBL_REDIR_DECL (dprintf)
  61. __LDBL_REDIR_DECL (vasprintf)
  62. __LDBL_REDIR_DECL (__asprintf)
  63. __LDBL_REDIR_DECL (asprintf)
  64. __LDBL_REDIR_DECL (obstack_printf)
  65. __LDBL_REDIR_DECL (obstack_vprintf)
  66. #endif
  67. #if __USE_FORTIFY_LEVEL > 0 && defined __extern_always_inline
  68. __LDBL_REDIR_DECL (__sprintf_chk)
  69. __LDBL_REDIR_DECL (__vsprintf_chk)
  70. # if defined __USE_BSD || defined __USE_ISOC99 || defined __USE_UNIX98
  71. __LDBL_REDIR_DECL (__snprintf_chk)
  72. __LDBL_REDIR_DECL (__vsnprintf_chk)
  73. # endif
  74. # if __USE_FORTIFY_LEVEL > 1
  75. __LDBL_REDIR_DECL (__fprintf_chk)
  76. __LDBL_REDIR_DECL (__printf_chk)
  77. __LDBL_REDIR_DECL (__vfprintf_chk)
  78. __LDBL_REDIR_DECL (__vprintf_chk)
  79. # ifdef __USE_GNU
  80. __LDBL_REDIR_DECL (__asprintf_chk)
  81. __LDBL_REDIR_DECL (__vasprintf_chk)
  82. __LDBL_REDIR_DECL (__dprintf_chk)
  83. __LDBL_REDIR_DECL (__vdprintf_chk)
  84. __LDBL_REDIR_DECL (__obstack_printf_chk)
  85. __LDBL_REDIR_DECL (__obstack_vprintf_chk)
  86. # endif
  87. # endif
  88. #endif