]> sourceware.org Git - glibc.git/blame - sysdeps/ieee754/ldbl-opt/nldbl-compat.h
Post-cleanup 2: minimize _G_config.h.
[glibc.git] / sysdeps / ieee754 / ldbl-opt / nldbl-compat.h
CommitLineData
c6251f03 1/* Prototypes for compatibility double == long double entry points.
688903eb 2 Copyright (C) 2006-2018 Free Software Foundation, Inc.
c6251f03
RM
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
59ba27a6
PE
17 License along with the GNU C Library; if not, see
18 <http://www.gnu.org/licenses/>. */
c6251f03
RM
19
20#ifndef __NLDBL_COMPAT_H
21#define __NLDBL_COMPAT_H 1
22
23/* Avoid long double prototypes. */
24#define __NO_LONG_DOUBLE_MATH 1
25#include <stdarg.h>
26#include <stdlib.h>
423c2b9d 27#include <stdint.h>
c6251f03
RM
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
54e98f69 35
926320ab
RM
36/* Declare the __nldbl_NAME function the wrappers call that's in libc.so. */
37#define NLDBL_DECL(name) extern __typeof (name) __nldbl_##name
c6251f03
RM
38
39NLDBL_DECL (_IO_vfscanf);
40NLDBL_DECL (vfscanf);
41NLDBL_DECL (vfwscanf);
54e98f69
RM
42NLDBL_DECL (obstack_vprintf);
43NLDBL_DECL (vasprintf);
c6251f03
RM
44NLDBL_DECL (dprintf);
45NLDBL_DECL (vdprintf);
46NLDBL_DECL (fprintf);
47NLDBL_DECL (vfprintf);
48NLDBL_DECL (vfwprintf);
54e98f69
RM
49NLDBL_DECL (vsnprintf);
50NLDBL_DECL (vsprintf);
51NLDBL_DECL (vsscanf);
52NLDBL_DECL (vswprintf);
53NLDBL_DECL (vswscanf);
c6251f03
RM
54NLDBL_DECL (__asprintf);
55NLDBL_DECL (asprintf);
56NLDBL_DECL (__printf_fp);
54e98f69 57NLDBL_DECL (printf_size);
c6251f03
RM
58NLDBL_DECL (syslog);
59NLDBL_DECL (vsyslog);
60NLDBL_DECL (qecvt);
61NLDBL_DECL (qfcvt);
62NLDBL_DECL (qgcvt);
54e98f69 63NLDBL_DECL (__vstrfmon_l);
874aa523
UD
64NLDBL_DECL (__isoc99_scanf);
65NLDBL_DECL (__isoc99_fscanf);
66NLDBL_DECL (__isoc99_sscanf);
67NLDBL_DECL (__isoc99_vscanf);
68NLDBL_DECL (__isoc99_vfscanf);
69NLDBL_DECL (__isoc99_vsscanf);
70NLDBL_DECL (__isoc99_wscanf);
71NLDBL_DECL (__isoc99_fwscanf);
72NLDBL_DECL (__isoc99_swscanf);
73NLDBL_DECL (__isoc99_vwscanf);
74NLDBL_DECL (__isoc99_vfwscanf);
75NLDBL_DECL (__isoc99_vswscanf);
54e98f69 76
8c22dca3
RM
77/* This one does not exist in the normal interface, only
78 __nldbl___vstrfmon really exists. */
79extern ssize_t __nldbl___vstrfmon (char *, size_t, const char *, va_list)
80 __THROW;
81
54e98f69
RM
82/* These don't use __typeof because they were not declared by the headers,
83 since we don't compile with _FORTIFY_SOURCE. */
c6251f03 84extern int __nldbl___vfprintf_chk (FILE *__restrict, int,
63fb8f9a 85 const char *__restrict, __gnuc_va_list);
c6251f03 86extern int __nldbl___vfwprintf_chk (FILE *__restrict, int,
54e98f69 87 const wchar_t *__restrict, __gnuc_va_list);
c6251f03 88extern int __nldbl___vsprintf_chk (char *__restrict, int, size_t,
63fb8f9a
ZW
89 const char *__restrict, __gnuc_va_list)
90 __THROW;
c6251f03 91extern int __nldbl___vsnprintf_chk (char *__restrict, size_t, int, size_t,
63fb8f9a 92 const char *__restrict, __gnuc_va_list)
54e98f69 93 __THROW;
c6251f03
RM
94extern int __nldbl___vswprintf_chk (wchar_t *__restrict, size_t, int, size_t,
95 const wchar_t *__restrict, __gnuc_va_list)
54e98f69 96 __THROW;
63fb8f9a 97extern int __nldbl___vasprintf_chk (char **, int, const char *, __gnuc_va_list)
dff37515 98 __THROW;
63fb8f9a 99extern int __nldbl___vdprintf_chk (int, int, const char *, __gnuc_va_list);
dff37515 100extern int __nldbl___obstack_vprintf_chk (struct obstack *, int, const char *,
63fb8f9a 101 __gnuc_va_list) __THROW;
8c22dca3 102extern void __nldbl___vsyslog_chk (int, int, const char *, va_list);
c6251f03
RM
103
104
105#endif /* __NLDBL_COMPAT_H */
This page took 0.364865 seconds and 5 git commands to generate.