mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-02 01:40:07 +00:00
5a82c74822
Also, change sources.redhat.com to sourceware.org. This patch was automatically generated by running the following shell script, which uses GNU sed, and which avoids modifying files imported from upstream: sed -ri ' s,(http|ftp)(://(.*\.)?(gnu|fsf|sourceware)\.org($|[^.]|\.[^a-z])),https\2,g s,(http|ftp)(://(.*\.)?)sources\.redhat\.com($|[^.]|\.[^a-z]),https\2sourceware.org\4,g ' \ $(find $(git ls-files) -prune -type f \ ! -name '*.po' \ ! -name 'ChangeLog*' \ ! -path COPYING ! -path COPYING.LIB \ ! -path manual/fdl-1.3.texi ! -path manual/lgpl-2.1.texi \ ! -path manual/texinfo.tex ! -path scripts/config.guess \ ! -path scripts/config.sub ! -path scripts/install-sh \ ! -path scripts/mkinstalldirs ! -path scripts/move-if-change \ ! -path INSTALL ! -path locale/programs/charmap-kw.h \ ! -path po/libc.pot ! -path sysdeps/gnu/errlist.c \ ! '(' -name configure \ -execdir test -f configure.ac -o -f configure.in ';' ')' \ ! '(' -name preconfigure \ -execdir test -f preconfigure.ac ';' ')' \ -print) and then by running 'make dist-prepare' to regenerate files built from the altered files, and then executing the following to cleanup: chmod a+x sysdeps/unix/sysv/linux/riscv/configure # Omit irrelevant whitespace and comment-only changes, # perhaps from a slightly-different Autoconf version. git checkout -f \ sysdeps/csky/configure \ sysdeps/hppa/configure \ sysdeps/riscv/configure \ sysdeps/unix/sysv/linux/csky/configure # Omit changes that caused a pre-commit check to fail like this: # remote: *** error: sysdeps/powerpc/powerpc64/ppc-mcount.S: trailing lines git checkout -f \ sysdeps/powerpc/powerpc64/ppc-mcount.S \ sysdeps/unix/sysv/linux/s390/s390-64/syscall.S # Omit change that caused a pre-commit check to fail like this: # remote: *** error: sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: last line does not end in newline git checkout -f sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S
133 lines
4.4 KiB
C
133 lines
4.4 KiB
C
/* Prototypes for compatibility double == long double entry points.
|
|
Copyright (C) 2006-2019 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
Contributed by Jakub Jelinek <jakub@cygnus.com>, 2006.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with the GNU C Library; if not, see
|
|
<https://www.gnu.org/licenses/>. */
|
|
|
|
#ifndef __NLDBL_COMPAT_H
|
|
#define __NLDBL_COMPAT_H 1
|
|
|
|
/* Ensure calls to libm functions from libnldbl_nonshared.a call
|
|
public names, not libm-internal names. */
|
|
#define NO_MATH_REDIRECT
|
|
|
|
/* Avoid long double prototypes. */
|
|
#define __NO_LONG_DOUBLE_MATH 1
|
|
#include <argp.h>
|
|
#include <err.h>
|
|
#include <error.h>
|
|
#include <stdarg.h>
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
#include <printf.h>
|
|
#include <wchar.h>
|
|
#include <math.h>
|
|
#include <monetary.h>
|
|
#include <sys/syslog.h>
|
|
|
|
|
|
/* Declare the __nldbl_NAME function the wrappers call that's in libc.so. */
|
|
#define NLDBL_DECL(name) extern __typeof (name) __nldbl_##name
|
|
|
|
NLDBL_DECL (_IO_vfscanf);
|
|
NLDBL_DECL (vfscanf);
|
|
NLDBL_DECL (vfwscanf);
|
|
NLDBL_DECL (obstack_vprintf);
|
|
NLDBL_DECL (vasprintf);
|
|
NLDBL_DECL (dprintf);
|
|
NLDBL_DECL (vdprintf);
|
|
NLDBL_DECL (fprintf);
|
|
NLDBL_DECL (vfprintf);
|
|
NLDBL_DECL (vfwprintf);
|
|
NLDBL_DECL (vsnprintf);
|
|
NLDBL_DECL (vsprintf);
|
|
NLDBL_DECL (vsscanf);
|
|
NLDBL_DECL (vswprintf);
|
|
NLDBL_DECL (vswscanf);
|
|
NLDBL_DECL (__asprintf);
|
|
NLDBL_DECL (asprintf);
|
|
NLDBL_DECL (__printf_fp);
|
|
NLDBL_DECL (printf_size);
|
|
NLDBL_DECL (syslog);
|
|
NLDBL_DECL (vsyslog);
|
|
NLDBL_DECL (qecvt);
|
|
NLDBL_DECL (qfcvt);
|
|
NLDBL_DECL (qgcvt);
|
|
NLDBL_DECL (__isoc99_scanf);
|
|
NLDBL_DECL (__isoc99_fscanf);
|
|
NLDBL_DECL (__isoc99_sscanf);
|
|
NLDBL_DECL (__isoc99_vscanf);
|
|
NLDBL_DECL (__isoc99_vfscanf);
|
|
NLDBL_DECL (__isoc99_vsscanf);
|
|
NLDBL_DECL (__isoc99_wscanf);
|
|
NLDBL_DECL (__isoc99_fwscanf);
|
|
NLDBL_DECL (__isoc99_swscanf);
|
|
NLDBL_DECL (__isoc99_vwscanf);
|
|
NLDBL_DECL (__isoc99_vfwscanf);
|
|
NLDBL_DECL (__isoc99_vswscanf);
|
|
NLDBL_DECL (argp_error);
|
|
NLDBL_DECL (argp_failure);
|
|
NLDBL_DECL (warn);
|
|
NLDBL_DECL (vwarn);
|
|
NLDBL_DECL (warnx);
|
|
NLDBL_DECL (vwarnx);
|
|
NLDBL_DECL (err);
|
|
NLDBL_DECL (verr);
|
|
NLDBL_DECL (errx);
|
|
NLDBL_DECL (verrx);
|
|
NLDBL_DECL (error);
|
|
NLDBL_DECL (error_at_line);
|
|
|
|
/* These do not exist in the normal interface, but must exist in the
|
|
__nldbl interface so that they can be called from libnldbl. */
|
|
extern ssize_t __nldbl___vstrfmon (char *, size_t, const char *, va_list)
|
|
__THROW;
|
|
extern ssize_t __nldbl___vstrfmon_l (char *, size_t, locale_t, const char *,
|
|
va_list)
|
|
__THROW;
|
|
|
|
/* These don't use __typeof because they were not declared by the headers,
|
|
since we don't compile with _FORTIFY_SOURCE. */
|
|
extern int __nldbl___vfprintf_chk (FILE *__restrict, int,
|
|
const char *__restrict, __gnuc_va_list);
|
|
extern int __nldbl___vfwprintf_chk (FILE *__restrict, int,
|
|
const wchar_t *__restrict, __gnuc_va_list);
|
|
extern int __nldbl___vsprintf_chk (char *__restrict, int, size_t,
|
|
const char *__restrict, __gnuc_va_list)
|
|
__THROW;
|
|
extern int __nldbl___vsnprintf_chk (char *__restrict, size_t, int, size_t,
|
|
const char *__restrict, __gnuc_va_list)
|
|
__THROW;
|
|
extern int __nldbl___vswprintf_chk (wchar_t *__restrict, size_t, int, size_t,
|
|
const wchar_t *__restrict, __gnuc_va_list)
|
|
__THROW;
|
|
extern int __nldbl___vasprintf_chk (char **, int, const char *, __gnuc_va_list)
|
|
__THROW;
|
|
extern int __nldbl___vdprintf_chk (int, int, const char *, __gnuc_va_list);
|
|
extern int __nldbl___obstack_vprintf_chk (struct obstack *, int, const char *,
|
|
__gnuc_va_list) __THROW;
|
|
extern void __nldbl___vsyslog_chk (int, int, const char *, va_list);
|
|
|
|
/* The original declarations of these were hidden by the including
|
|
file. */
|
|
extern double __nldbl_daddl (double, double) __THROW;
|
|
extern double __nldbl_ddivl (double, double) __THROW;
|
|
extern double __nldbl_dmull (double, double) __THROW;
|
|
extern double __nldbl_dsubl (double, double) __THROW;
|
|
|
|
#endif /* __NLDBL_COMPAT_H */
|