glibc/include/err.h
Gabriel F. T. Gomes 90188e7d1a ldbl-opt: Add err, errx, verr, verrx, warn, warnx, vwarn, and vwarnx (bug 23984)
When support for long double format with 128-bits (-mlong-double-128)
was added for platforms where long double had the same format as double,
such as powerpc, compatibility versions for the functions listed in the
commit title were missed.  Since the older format of long double can
still be used (with -mlong-double-64), using these functions with a
format string that requests the printing of long double variables will
produce wrong outputs.

This patch adds the missing compatibility functions and header magic to
redirect calls to them when -mlong-double-64 is in use.

Tested for powerpc, powerpc64 and powerpc64le.
2019-03-01 15:24:51 -03:00

24 lines
491 B
C

#ifndef _ERR_H
#include <misc/err.h>
/* Prototypes for internal err.h functions. */
void
__vwarnx_internal (const char *format, __gnuc_va_list ap,
unsigned int mode_flags);
void
__vwarn_internal (const char *format, __gnuc_va_list ap,
unsigned int mode_flags);
# ifndef _ISOMAC
libc_hidden_proto (warn)
libc_hidden_proto (warnx)
libc_hidden_proto (vwarn)
libc_hidden_proto (vwarnx)
libc_hidden_proto (verr)
libc_hidden_proto (verrx)
# endif /* !_ISOMAC */
#endif /* err.h */