Blame sysdeps/ieee754/ldbl-opt/nldbl-compat.h

Packit 6c4009
/* Prototypes for compatibility double == long double entry points.
Packit 6c4009
   Copyright (C) 2006-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
   Contributed by Jakub Jelinek <jakub@cygnus.com>, 2006.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
#ifndef __NLDBL_COMPAT_H
Packit 6c4009
#define __NLDBL_COMPAT_H	1
Packit 6c4009
Packit 6c4009
/* Avoid long double prototypes.  */
Packit 6c4009
#define __NO_LONG_DOUBLE_MATH	1
Packit 6c4009
#include <stdarg.h>
Packit 6c4009
#include <stdlib.h>
Packit 6c4009
#include <stdint.h>
Packit 6c4009
#include <stdio.h>
Packit 6c4009
#include <printf.h>
Packit 6c4009
#include <wchar.h>
Packit 6c4009
#include <math.h>
Packit 6c4009
#include <monetary.h>
Packit 6c4009
#include <sys/syslog.h>
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Declare the __nldbl_NAME function the wrappers call that's in libc.so.  */
Packit 6c4009
#define NLDBL_DECL(name) extern __typeof (name) __nldbl_##name
Packit 6c4009
Packit 6c4009
NLDBL_DECL (_IO_vfscanf);
Packit 6c4009
NLDBL_DECL (vfscanf);
Packit 6c4009
NLDBL_DECL (vfwscanf);
Packit 6c4009
NLDBL_DECL (obstack_vprintf);
Packit 6c4009
NLDBL_DECL (vasprintf);
Packit 6c4009
NLDBL_DECL (dprintf);
Packit 6c4009
NLDBL_DECL (vdprintf);
Packit 6c4009
NLDBL_DECL (fprintf);
Packit 6c4009
NLDBL_DECL (vfprintf);
Packit 6c4009
NLDBL_DECL (vfwprintf);
Packit 6c4009
NLDBL_DECL (vsnprintf);
Packit 6c4009
NLDBL_DECL (vsprintf);
Packit 6c4009
NLDBL_DECL (vsscanf);
Packit 6c4009
NLDBL_DECL (vswprintf);
Packit 6c4009
NLDBL_DECL (vswscanf);
Packit 6c4009
NLDBL_DECL (__asprintf);
Packit 6c4009
NLDBL_DECL (asprintf);
Packit 6c4009
NLDBL_DECL (__printf_fp);
Packit 6c4009
NLDBL_DECL (printf_size);
Packit 6c4009
NLDBL_DECL (syslog);
Packit 6c4009
NLDBL_DECL (vsyslog);
Packit 6c4009
NLDBL_DECL (qecvt);
Packit 6c4009
NLDBL_DECL (qfcvt);
Packit 6c4009
NLDBL_DECL (qgcvt);
Packit 6c4009
NLDBL_DECL (__vstrfmon_l);
Packit 6c4009
NLDBL_DECL (__isoc99_scanf);
Packit 6c4009
NLDBL_DECL (__isoc99_fscanf);
Packit 6c4009
NLDBL_DECL (__isoc99_sscanf);
Packit 6c4009
NLDBL_DECL (__isoc99_vscanf);
Packit 6c4009
NLDBL_DECL (__isoc99_vfscanf);
Packit 6c4009
NLDBL_DECL (__isoc99_vsscanf);
Packit 6c4009
NLDBL_DECL (__isoc99_wscanf);
Packit 6c4009
NLDBL_DECL (__isoc99_fwscanf);
Packit 6c4009
NLDBL_DECL (__isoc99_swscanf);
Packit 6c4009
NLDBL_DECL (__isoc99_vwscanf);
Packit 6c4009
NLDBL_DECL (__isoc99_vfwscanf);
Packit 6c4009
NLDBL_DECL (__isoc99_vswscanf);
Packit 6c4009
Packit 6c4009
/* This one does not exist in the normal interface, only
Packit 6c4009
   __nldbl___vstrfmon really exists.  */
Packit 6c4009
extern ssize_t __nldbl___vstrfmon (char *, size_t, const char *, va_list)
Packit 6c4009
  __THROW;
Packit 6c4009
Packit 6c4009
/* These don't use __typeof because they were not declared by the headers,
Packit 6c4009
   since we don't compile with _FORTIFY_SOURCE.  */
Packit 6c4009
extern int __nldbl___vfprintf_chk (FILE *__restrict, int,
Packit 6c4009
				   const char *__restrict, __gnuc_va_list);
Packit 6c4009
extern int __nldbl___vfwprintf_chk (FILE *__restrict, int,
Packit 6c4009
				    const wchar_t *__restrict, __gnuc_va_list);
Packit 6c4009
extern int __nldbl___vsprintf_chk (char *__restrict, int, size_t,
Packit 6c4009
				   const char *__restrict, __gnuc_va_list)
Packit 6c4009
  __THROW;
Packit 6c4009
extern int __nldbl___vsnprintf_chk (char *__restrict, size_t, int, size_t,
Packit 6c4009
				    const char *__restrict, __gnuc_va_list)
Packit 6c4009
  __THROW;
Packit 6c4009
extern int __nldbl___vswprintf_chk (wchar_t *__restrict, size_t, int, size_t,
Packit 6c4009
				    const wchar_t *__restrict, __gnuc_va_list)
Packit 6c4009
  __THROW;
Packit 6c4009
extern int __nldbl___vasprintf_chk (char **, int, const char *, __gnuc_va_list)
Packit 6c4009
  __THROW;
Packit 6c4009
extern int __nldbl___vdprintf_chk (int, int, const char *, __gnuc_va_list);
Packit 6c4009
extern int __nldbl___obstack_vprintf_chk (struct obstack *, int, const char *,
Packit 6c4009
					  __gnuc_va_list) __THROW;
Packit 6c4009
extern void __nldbl___vsyslog_chk (int, int, const char *, va_list);
Packit 6c4009
Packit 6c4009
/* The original declarations of these were hidden by the including
Packit 6c4009
   file.  */
Packit 6c4009
extern double __nldbl_daddl (double, double) __THROW;
Packit 6c4009
extern double __nldbl_ddivl (double, double) __THROW;
Packit 6c4009
extern double __nldbl_dmull (double, double) __THROW;
Packit 6c4009
extern double __nldbl_dsubl (double, double) __THROW;
Packit 6c4009
Packit 6c4009
#endif /* __NLDBL_COMPAT_H */