MIPS: Regenerate ulps
[glibc.git] / sysdeps / ieee754 / ldbl-128ibm-compat / ieee128-err.c
blob878f572e974984b8332d57f9bc4c15d051a8915c
1 /* Wrappers for err.h functions. IEEE128 version.
2 Copyright (C) 2019-2024 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
19 #include <err.h>
20 #include <stdarg.h>
21 #include <libio/libioP.h>
23 #define VA(call) \
24 { \
25 va_list ap; \
26 va_start (ap, format); \
27 IEEE128_CALL (call); \
28 va_end (ap); \
31 #define IEEE128_ALIAS(name) \
32 strong_alias (___ieee128_##name, __##name##ieee128)
34 #define IEEE128_DECL(name) ___ieee128_##name
35 #define IEEE128_CALL(name) ___ieee128_##name
37 void
38 IEEE128_DECL (vwarn) (const char *format, __gnuc_va_list ap)
40 __vwarn_internal (format, ap, PRINTF_LDBL_USES_FLOAT128);
42 IEEE128_ALIAS (vwarn)
44 void
45 IEEE128_DECL (vwarnx) (const char *format, __gnuc_va_list ap)
47 __vwarnx_internal (format, ap, PRINTF_LDBL_USES_FLOAT128);
49 IEEE128_ALIAS (vwarnx)
51 void
52 IEEE128_DECL (warn) (const char *format, ...)
54 VA (vwarn (format, ap))
56 IEEE128_ALIAS (warn)
58 void
59 IEEE128_DECL (warnx) (const char *format, ...)
61 VA (vwarnx (format, ap))
63 IEEE128_ALIAS (warnx)
65 void
66 IEEE128_DECL (verr) (int status, const char *format, __gnuc_va_list ap)
68 IEEE128_CALL (vwarn) (format, ap);
69 exit (status);
71 IEEE128_ALIAS (verr)
73 void
74 IEEE128_DECL (verrx) (int status, const char *format, __gnuc_va_list ap)
76 IEEE128_CALL (vwarnx) (format, ap);
77 exit (status);
79 IEEE128_ALIAS (verrx)
81 void
82 IEEE128_DECL (err) (int status, const char *format, ...)
84 VA (verr (status, format, ap))
86 IEEE128_ALIAS (err)
88 void
89 IEEE128_DECL (errx) (int status, const char *format, ...)
91 VA (verrx (status, format, ap))
93 IEEE128_ALIAS (errx)
95 hidden_def (___ieee128_warn)
96 hidden_def (___ieee128_warnx)
97 hidden_def (___ieee128_vwarn)
98 hidden_def (___ieee128_vwarnx)
99 hidden_def (___ieee128_verr)
100 hidden_def (___ieee128_verrx)