ldbl-128ibm-compat: Add syslog functions
commit381b76d7a3511e152675018457bd432fa2657928
authorGabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Thu, 11 Jul 2019 14:47:51 +0000 (11 11:47 -0300)
committerGabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Wed, 27 Nov 2019 18:52:41 +0000 (27 15:52 -0300)
tree1f7ba32975ef1ed80fb2f6615c26b1ba91327a7d
parent590ef889bc7afe42d4feec94e1c4fbd4ddd65226
ldbl-128ibm-compat: Add syslog functions

Similarly to __vfprintf_internal and __vfscanf_internal, the internal
implementation of syslog functions (__vsyslog_internal) takes a
'mode_flags' parameter used to select the format of long double
parameters.  This patch adds variants of the syslog functions that set
'mode_flags' to PRINTF_LDBL_USES_FLOAT128, thus enabling the correct
printing of long double values on powerpc64le, when long double has IEEE
binary128 format (-mabi=ieeelongdouble).

Tested for powerpc64le.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
Reviewed-by: Joseph Myers <joseph@codesourcery.com>
Reviewed-by: Paul E. Murphy <murphyp@linux.ibm.com>
sysdeps/ieee754/ldbl-128ibm-compat/Makefile
sysdeps/ieee754/ldbl-128ibm-compat/Versions
sysdeps/ieee754/ldbl-128ibm-compat/ieee128-syslog.c [new file with mode: 0644]
sysdeps/ieee754/ldbl-128ibm-compat/test-syslog-chk-ibm128.c [new file with mode: 0644]
sysdeps/ieee754/ldbl-128ibm-compat/test-syslog-chk-ieee128.c [new file with mode: 0644]
sysdeps/ieee754/ldbl-128ibm-compat/test-syslog-chk-ldbl-compat.c [new file with mode: 0644]
sysdeps/ieee754/ldbl-128ibm-compat/test-syslog-ibm128.c [new file with mode: 0644]
sysdeps/ieee754/ldbl-128ibm-compat/test-syslog-ieee128.c [new file with mode: 0644]
sysdeps/ieee754/ldbl-128ibm-compat/test-syslog-ldbl-compat-template.c [new file with mode: 0644]
sysdeps/ieee754/ldbl-128ibm-compat/test-syslog-ldbl-compat.c [new file with mode: 0644]