1 /* -mlong-double-64 compatibility mode for stdio functions. 2 Copyright (C) 2006, 2007 Free Software Foundation, Inc. 3 This file is part of the GNU C Library. 4 5 The GNU C Library is free software; you can redistribute it and/or 6 modify it under the terms of the GNU Lesser General Public 7 License as published by the Free Software Foundation; either 8 version 2.1 of the License, or (at your option) any later version. 9 10 The GNU C Library is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Lesser General Public License for more details. 14 15 You should have received a copy of the GNU Lesser General Public 16 License along with the GNU C Library; if not, write to the Free 17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 18 02111-1307 USA. */ 19 20 #ifndef _STDIO_H 21 # error "Never include <bits/stdio-ldbl.h> directly; use <stdio.h> instead." 22 #endif 23 24 __BEGIN_NAMESPACE_STD 25 __LDBL_REDIR_DECL (fprintf) 26 __LDBL_REDIR_DECL (printf) 27 __LDBL_REDIR_DECL (sprintf) 28 __LDBL_REDIR_DECL (vfprintf) 29 __LDBL_REDIR_DECL (vprintf) 30 __LDBL_REDIR_DECL (vsprintf) 31 #if defined __USE_ISOC99 && !defined __USE_GNU \ 32 && !defined __REDIRECT \ 33 && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K) 34 __LDBL_REDIR1_DECL (fscanf, __nldbl___isoc99_fscanf) 35 __LDBL_REDIR1_DECL (scanf, __nldbl___isoc99_scanf) 36 __LDBL_REDIR1_DECL (sscanf, __nldbl___isoc99_sscanf) 37 #else 38 __LDBL_REDIR_DECL (fscanf) 39 __LDBL_REDIR_DECL (scanf) 40 __LDBL_REDIR_DECL (sscanf) 41 #endif 42 __END_NAMESPACE_STD 43 44 #if defined __USE_BSD || defined __USE_ISOC99 || defined __USE_UNIX98 45 __BEGIN_NAMESPACE_C99 46 __LDBL_REDIR_DECL (snprintf) 47 __LDBL_REDIR_DECL (vsnprintf) 48 __END_NAMESPACE_C99 49 #endif 50 51 #ifdef __USE_ISOC99 52 __BEGIN_NAMESPACE_C99 53 # if !defined __USE_GNU && !defined __REDIRECT \ 54 && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K) 55 __LDBL_REDIR1_DECL (vfscanf, __nldbl___isoc99_vfscanf) 56 __LDBL_REDIR1_DECL (vscanf, __nldbl___isoc99_vscanf) 57 __LDBL_REDIR1_DECL (vsscanf, __nldbl___isoc99_vsscanf) 58 # else 59 __LDBL_REDIR_DECL (vfscanf) 60 __LDBL_REDIR_DECL (vsscanf) 61 __LDBL_REDIR_DECL (vscanf) 62 # endif 63 __END_NAMESPACE_C99 64 #endif 65 66 #ifdef __USE_GNU 67 __LDBL_REDIR_DECL (vdprintf) 68 __LDBL_REDIR_DECL (dprintf) 69 __LDBL_REDIR_DECL (vasprintf) 70 __LDBL_REDIR_DECL (__asprintf) 71 __LDBL_REDIR_DECL (asprintf) 72 __LDBL_REDIR_DECL (obstack_printf) 73 __LDBL_REDIR_DECL (obstack_vprintf) 74 #endif 75 76 #if __USE_FORTIFY_LEVEL > 0 && defined __extern_always_inline 77 __LDBL_REDIR_DECL (__sprintf_chk) 78 __LDBL_REDIR_DECL (__vsprintf_chk) 79 # if defined __USE_BSD || defined __USE_ISOC99 || defined __USE_UNIX98 80 __LDBL_REDIR_DECL (__snprintf_chk) 81 __LDBL_REDIR_DECL (__vsnprintf_chk) 82 # endif 83 # if __USE_FORTIFY_LEVEL > 1 84 __LDBL_REDIR_DECL (__fprintf_chk) 85 __LDBL_REDIR_DECL (__printf_chk) 86 __LDBL_REDIR_DECL (__vfprintf_chk) 87 __LDBL_REDIR_DECL (__vprintf_chk) 88 # endif 89 #endif 90