]> git.ipfire.org Git - thirdparty/glibc.git/blob - sysdeps/ieee754/ldbl-opt/nldbl-compat.h
9f5836586c72e0603ffa6620bb155ee6ed13b32f
[thirdparty/glibc.git] / sysdeps / ieee754 / ldbl-opt / nldbl-compat.h
1 /* Prototypes for compatibility double == long double entry points.
2 Copyright (C) 2006-2019 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, see
18 <http://www.gnu.org/licenses/>. */
19
20 #ifndef __NLDBL_COMPAT_H
21 #define __NLDBL_COMPAT_H 1
22
23 /* Ensure calls to libm functions from libnldbl_nonshared.a call
24 public names, not libm-internal names. */
25 #define NO_MATH_REDIRECT
26
27 /* Avoid long double prototypes. */
28 #define __NO_LONG_DOUBLE_MATH 1
29 #include <argp.h>
30 #include <stdarg.h>
31 #include <stdlib.h>
32 #include <stdint.h>
33 #include <stdio.h>
34 #include <printf.h>
35 #include <wchar.h>
36 #include <math.h>
37 #include <monetary.h>
38 #include <sys/syslog.h>
39
40
41 /* Declare the __nldbl_NAME function the wrappers call that's in libc.so. */
42 #define NLDBL_DECL(name) extern __typeof (name) __nldbl_##name
43
44 NLDBL_DECL (_IO_vfscanf);
45 NLDBL_DECL (vfscanf);
46 NLDBL_DECL (vfwscanf);
47 NLDBL_DECL (obstack_vprintf);
48 NLDBL_DECL (vasprintf);
49 NLDBL_DECL (dprintf);
50 NLDBL_DECL (vdprintf);
51 NLDBL_DECL (fprintf);
52 NLDBL_DECL (vfprintf);
53 NLDBL_DECL (vfwprintf);
54 NLDBL_DECL (vsnprintf);
55 NLDBL_DECL (vsprintf);
56 NLDBL_DECL (vsscanf);
57 NLDBL_DECL (vswprintf);
58 NLDBL_DECL (vswscanf);
59 NLDBL_DECL (__asprintf);
60 NLDBL_DECL (asprintf);
61 NLDBL_DECL (__printf_fp);
62 NLDBL_DECL (printf_size);
63 NLDBL_DECL (syslog);
64 NLDBL_DECL (vsyslog);
65 NLDBL_DECL (qecvt);
66 NLDBL_DECL (qfcvt);
67 NLDBL_DECL (qgcvt);
68 NLDBL_DECL (__isoc99_scanf);
69 NLDBL_DECL (__isoc99_fscanf);
70 NLDBL_DECL (__isoc99_sscanf);
71 NLDBL_DECL (__isoc99_vscanf);
72 NLDBL_DECL (__isoc99_vfscanf);
73 NLDBL_DECL (__isoc99_vsscanf);
74 NLDBL_DECL (__isoc99_wscanf);
75 NLDBL_DECL (__isoc99_fwscanf);
76 NLDBL_DECL (__isoc99_swscanf);
77 NLDBL_DECL (__isoc99_vwscanf);
78 NLDBL_DECL (__isoc99_vfwscanf);
79 NLDBL_DECL (__isoc99_vswscanf);
80 NLDBL_DECL (argp_error);
81 NLDBL_DECL (argp_failure);
82
83 /* These do not exist in the normal interface, but must exist in the
84 __nldbl interface so that they can be called from libnldbl. */
85 extern ssize_t __nldbl___vstrfmon (char *, size_t, const char *, va_list)
86 __THROW;
87 extern ssize_t __nldbl___vstrfmon_l (char *, size_t, locale_t, const char *,
88 va_list)
89 __THROW;
90
91 /* These don't use __typeof because they were not declared by the headers,
92 since we don't compile with _FORTIFY_SOURCE. */
93 extern int __nldbl___vfprintf_chk (FILE *__restrict, int,
94 const char *__restrict, __gnuc_va_list);
95 extern int __nldbl___vfwprintf_chk (FILE *__restrict, int,
96 const wchar_t *__restrict, __gnuc_va_list);
97 extern int __nldbl___vsprintf_chk (char *__restrict, int, size_t,
98 const char *__restrict, __gnuc_va_list)
99 __THROW;
100 extern int __nldbl___vsnprintf_chk (char *__restrict, size_t, int, size_t,
101 const char *__restrict, __gnuc_va_list)
102 __THROW;
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 extern int __nldbl___vasprintf_chk (char **, int, const char *, __gnuc_va_list)
107 __THROW;
108 extern int __nldbl___vdprintf_chk (int, int, const char *, __gnuc_va_list);
109 extern int __nldbl___obstack_vprintf_chk (struct obstack *, int, const char *,
110 __gnuc_va_list) __THROW;
111 extern void __nldbl___vsyslog_chk (int, int, const char *, va_list);
112
113 /* The original declarations of these were hidden by the including
114 file. */
115 extern double __nldbl_daddl (double, double) __THROW;
116 extern double __nldbl_ddivl (double, double) __THROW;
117 extern double __nldbl_dmull (double, double) __THROW;
118 extern double __nldbl_dsubl (double, double) __THROW;
119
120 #endif /* __NLDBL_COMPAT_H */