diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2018-08-08 17:26:22 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2019-03-01 15:26:36 -0300 |
commit | d11086a9391b6066458947b80c0d0059b6b461d8 (patch) | |
tree | 91d537afc5f7a3c50c2b0002ec626de9353abc69 /include/error.h | |
parent | ldbl-opt: Add err, errx, verr, verrx, warn, warnx, vwarn, and vwarnx (bug 23984) (diff) | |
download | glibc-d11086a9391b6066458947b80c0d0059b6b461d8.tar.gz glibc-d11086a9391b6066458947b80c0d0059b6b461d8.tar.bz2 glibc-d11086a9391b6066458947b80c0d0059b6b461d8.zip |
ldbl-opt: Add error and error_at_line (bug 23984)
On platforms where long double may have the same format as double
(-mlong-double-64), error and error_at_line do not take that into
account and might produce wrong output if a long double conversion is
requested by the format string ('%Lf'). This patch adds compatibility
functions for this situation and redirects calls via header magic.
Tested for powerpc, powerpc64 and powerpc64le.
Diffstat (limited to 'include/error.h')
-rw-r--r-- | include/error.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/error.h b/include/error.h index 70f3192fa6..9e96262fc5 100644 --- a/include/error.h +++ b/include/error.h @@ -1 +1,15 @@ +#ifndef _ERROR_H #include <misc/error.h> + +#include <stdarg.h> + +void +__error_internal (int status, int errnum, const char *message, + va_list args, unsigned int mode_flags); + +void +__error_at_line_internal (int status, int errnum, const char *file_name, + unsigned int line_number, const char *message, + va_list args, unsigned int mode_flags); + +#endif |