mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Use gcc -finput-charset=ascii for check-installed-headers.
A non-ascii character in the installed headers leads now to:
error: failure to convert ascii to UTF-8
Such a finding in s390 specific fenv.h leads to fails in GCC testsuite.
See glibc commit 08aea89ef6
.
Adding this gcc option also to our tests was proposed by Florian Weimer.
This change also found a hit in resource.h where now "microseconds" is used.
I've adjusted all the resource.h files.
I've used the following command to check for further hits in headers.
LC_ALL=C find -name "*.h" -exec grep -PHn "[\x80-\xFF]" {} \;
Tested on s390x and x86_64.
Reviewed-by: Zack Weinberg <zackw@panix.com>
This commit is contained in:
@ -123,7 +123,8 @@ $expanded_lib_mode
|
|||||||
#include <$header>
|
#include <$header>
|
||||||
int avoid_empty_translation_unit;
|
int avoid_empty_translation_unit;
|
||||||
EOF
|
EOF
|
||||||
if $cc_cmd -fsyntax-only $lang_mode "$cih_test_c" 2>&1
|
if $cc_cmd -finput-charset=ascii -fsyntax-only $lang_mode \
|
||||||
|
"$cih_test_c" 2>&1
|
||||||
then :
|
then :
|
||||||
else failed=1
|
else failed=1
|
||||||
fi
|
fi
|
||||||
|
@ -98,7 +98,7 @@ enum __rlimit_resource
|
|||||||
__RLIMIT_RTPRIO = 14,
|
__RLIMIT_RTPRIO = 14,
|
||||||
#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
|
#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
|
||||||
|
|
||||||
/* Maximum CPU time in µs that a process scheduled under a real-time
|
/* Maximum CPU time in microseconds that a process scheduled under a real-time
|
||||||
scheduling policy may consume without making a blocking system
|
scheduling policy may consume without making a blocking system
|
||||||
call before being forcibly descheduled. */
|
call before being forcibly descheduled. */
|
||||||
__RLIMIT_RTTIME = 15,
|
__RLIMIT_RTTIME = 15,
|
||||||
|
@ -98,7 +98,7 @@ enum __rlimit_resource
|
|||||||
__RLIMIT_RTPRIO = 14,
|
__RLIMIT_RTPRIO = 14,
|
||||||
#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
|
#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
|
||||||
|
|
||||||
/* Maximum CPU time in µs that a process scheduled under a real-time
|
/* Maximum CPU time in microseconds that a process scheduled under a real-time
|
||||||
scheduling policy may consume without making a blocking system
|
scheduling policy may consume without making a blocking system
|
||||||
call before being forcibly descheduled. */
|
call before being forcibly descheduled. */
|
||||||
__RLIMIT_RTTIME = 15,
|
__RLIMIT_RTTIME = 15,
|
||||||
|
@ -98,7 +98,7 @@ enum __rlimit_resource
|
|||||||
__RLIMIT_RTPRIO = 14,
|
__RLIMIT_RTPRIO = 14,
|
||||||
#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
|
#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
|
||||||
|
|
||||||
/* Maximum CPU time in µs that a process scheduled under a real-time
|
/* Maximum CPU time in microseconds that a process scheduled under a real-time
|
||||||
scheduling policy may consume without making a blocking system
|
scheduling policy may consume without making a blocking system
|
||||||
call before being forcibly descheduled. */
|
call before being forcibly descheduled. */
|
||||||
__RLIMIT_RTTIME = 15,
|
__RLIMIT_RTTIME = 15,
|
||||||
|
@ -98,7 +98,7 @@ enum __rlimit_resource
|
|||||||
__RLIMIT_RTPRIO = 14,
|
__RLIMIT_RTPRIO = 14,
|
||||||
#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
|
#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
|
||||||
|
|
||||||
/* Maximum CPU time in µs that a process scheduled under a real-time
|
/* Maximum CPU time in microseconds that a process scheduled under a real-time
|
||||||
scheduling policy may consume without making a blocking system
|
scheduling policy may consume without making a blocking system
|
||||||
call before being forcibly descheduled. */
|
call before being forcibly descheduled. */
|
||||||
__RLIMIT_RTTIME = 15,
|
__RLIMIT_RTTIME = 15,
|
||||||
|
Reference in New Issue
Block a user