From 84fb7c8c26edf479ad40cc27c41d2a0b1b452b99 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 31 Dec 2001 17:46:59 +0000 Subject: Update. 2001-12-31 Ulrich Drepper * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Always use C locale to parse /proc/loadavg. 2001-12-31 Jakub Jelinek * elf/dl-conflict.c: Include sys/param.h. (RESOLVE_CONFLICT_FIND_MAP): Cast r_offset to ElfW(Addr). * sysdeps/alpha/dl-machine.h (elf_machine_runtime_setup): Avoid warning. (TRAMPOLINE_TEMPLATE, RTLD_START): Don't use multi-line string literals to avoid warnings. * configure.in: Don't check for gsed since we do not use it anywhere. --- sysdeps/unix/sysv/linux/getloadavg.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sysdeps/unix/sysv/linux/getloadavg.c') diff --git a/sysdeps/unix/sysv/linux/getloadavg.c b/sysdeps/unix/sysv/linux/getloadavg.c index 39b143336a..e1a372cd5f 100644 --- a/sysdeps/unix/sysv/linux/getloadavg.c +++ b/sysdeps/unix/sysv/linux/getloadavg.c @@ -18,9 +18,10 @@ 02111-1307 USA. */ #include -#include #include +#include #include +#include /* Put the 1 minute, 5 minute and 15 minute load averages into the first NELEM elements of LOADAVG. @@ -53,8 +54,8 @@ getloadavg (double loadavg[], int nelem) for (i = 0; i < nelem; ++i) { char *endp; - loadavg[i] = strtod (p, &endp); - if (!endp || endp == p) + loadavg[i] = __strtod_l (p, &endp, &_nl_C_locobj); + if (endp == NULL || endp == p) /* This should not happen. The format of /proc/loadavg must have changed. Don't return with what we have, signal an error. */ -- cgit v1.2.3