chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / sysdeps / ieee754 / ldbl-opt / nldbl-compat.h
1 /* Prototypes for compatibility double == long double entry points.
2    Copyright (C) 2006, 2007 Free Software Foundation, Inc.
3    This file is part of the GNU C Library.
4    Contributed by Jakub Jelinek <jakub@cygnus.com>, 2006.
5
6    The GNU C Library is free software; you can redistribute it and/or
7    modify it under the terms of the GNU Lesser General Public
8    License as published by the Free Software Foundation; either
9    version 2.1 of the License, or (at your option) any later version.
10
11    The GNU C Library is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14    Lesser General Public License for more details.
15
16    You should have received a copy of the GNU Lesser General Public
17    License along with the GNU C Library; if not, write to the Free
18    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19    02111-1307 USA.  */
20
21 #ifndef __NLDBL_COMPAT_H
22 #define __NLDBL_COMPAT_H        1
23
24 /* Avoid long double prototypes.  */
25 #define __NO_LONG_DOUBLE_MATH   1
26 #include <stdarg.h>
27 #include <stdlib.h>
28 #include <stdio.h>
29 #include <printf.h>
30 #include <wchar.h>
31 #include <math.h>
32 #include <monetary.h>
33 #include <sys/syslog.h>
34 #include <gnu/option-groups.h>
35
36
37 /* Declare the __nldbl_NAME function the wrappers call that's in libc.so.  */
38 #define NLDBL_DECL(name) extern __typeof (name) __nldbl_##name
39
40 NLDBL_DECL (_IO_vfscanf);
41 NLDBL_DECL (vfscanf);
42 NLDBL_DECL (obstack_vprintf);
43 NLDBL_DECL (vasprintf);
44 NLDBL_DECL (dprintf);
45 NLDBL_DECL (vdprintf);
46 NLDBL_DECL (fprintf);
47 NLDBL_DECL (vfprintf);
48 NLDBL_DECL (vsnprintf);
49 NLDBL_DECL (vsprintf);
50 NLDBL_DECL (vsscanf);
51 NLDBL_DECL (__asprintf);
52 NLDBL_DECL (asprintf);
53 NLDBL_DECL (__printf_fp);
54 NLDBL_DECL (printf_size);
55 NLDBL_DECL (syslog);
56 NLDBL_DECL (vsyslog);
57 NLDBL_DECL (qecvt);
58 NLDBL_DECL (qfcvt);
59 NLDBL_DECL (qgcvt);
60 NLDBL_DECL (__vstrfmon_l);
61 NLDBL_DECL (__isoc99_scanf);
62 NLDBL_DECL (__isoc99_fscanf);
63 NLDBL_DECL (__isoc99_sscanf);
64 NLDBL_DECL (__isoc99_vscanf);
65 NLDBL_DECL (__isoc99_vfscanf);
66 NLDBL_DECL (__isoc99_vsscanf);
67 #ifdef __OPTION_POSIX_WIDE_CHAR_DEVICE_IO
68 NLDBL_DECL (vfwscanf);
69 NLDBL_DECL (vfwprintf);
70 NLDBL_DECL (vswprintf);
71 NLDBL_DECL (vswscanf);
72 NLDBL_DECL (__isoc99_wscanf);
73 NLDBL_DECL (__isoc99_fwscanf);
74 NLDBL_DECL (__isoc99_swscanf);
75 NLDBL_DECL (__isoc99_vwscanf);
76 NLDBL_DECL (__isoc99_vfwscanf);
77 NLDBL_DECL (__isoc99_vswscanf);
78 #endif
79
80 /* This one does not exist in the normal interface, only
81    __nldbl___vstrfmon really exists.  */
82 extern ssize_t __nldbl___vstrfmon (char *, size_t, const char *, va_list)
83   __THROW;
84
85 /* These don't use __typeof because they were not declared by the headers,
86    since we don't compile with _FORTIFY_SOURCE.  */
87 extern int __nldbl___vfprintf_chk (FILE *__restrict, int,
88                                    const char *__restrict, _G_va_list);
89 extern int __nldbl___vsprintf_chk (char *__restrict, int, size_t,
90                                    const char *__restrict, _G_va_list) __THROW;
91 extern int __nldbl___vsnprintf_chk (char *__restrict, size_t, int, size_t,
92                                     const char *__restrict, _G_va_list)
93   __THROW;
94 extern int __nldbl___vasprintf_chk (char **, int, const char *, _G_va_list)
95   __THROW;
96 extern int __nldbl___vdprintf_chk (int, int, const char *, _G_va_list);
97 extern int __nldbl___obstack_vprintf_chk (struct obstack *, int, const char *,
98                                           _G_va_list) __THROW;
99 extern void __nldbl___vsyslog_chk (int, int, const char *, va_list);
100 #ifdef __OPTION_POSIX_WIDE_CHAR_DEVICE_IO
101 extern int __nldbl___vfwprintf_chk (FILE *__restrict, int,
102                                     const wchar_t *__restrict, __gnuc_va_list);
103 extern int __nldbl___vswprintf_chk (wchar_t *__restrict, size_t, int, size_t,
104                                     const wchar_t *__restrict, __gnuc_va_list)
105   __THROW;
106 #endif
107
108 #endif /* __NLDBL_COMPAT_H */