From: Richard Henderson Date: Wed, 30 May 2012 22:54:49 +0000 (-0700) Subject: alpha: Avoid fgets plt entry X-Git-Tag: glibc-2.16-ports-before-merge~39 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=a797e1734c8d91a6d6df8c07e1b47ac5291425c6;p=glibc.git alpha: Avoid fgets plt entry And since the FILE is function local, avoid locking too. --- diff --git a/ChangeLog.alpha b/ChangeLog.alpha index e327242f9d..246345a777 100644 --- a/ChangeLog.alpha +++ b/ChangeLog.alpha @@ -1,5 +1,8 @@ 2012-05-30 Richard Henderson + * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo): Use + fgets_unlocked. + * sysdeps/alpha/Implies: Include ieee754/dbl-64/wordsize-64. * sysdeps/alpha/alphaev6/fpu/e_sqrt.S: Use dynamic rounding. diff --git a/sysdeps/unix/sysv/linux/alpha/ioperm.c b/sysdeps/unix/sysv/linux/alpha/ioperm.c index 8b6c8309f8..686c7ed237 100644 --- a/sysdeps/unix/sysv/linux/alpha/ioperm.c +++ b/sysdeps/unix/sysv/linux/alpha/ioperm.c @@ -504,7 +504,7 @@ process_cpuinfo(struct cpuinfo_data *data) while (1) { - if (fgets (dummy, 256, fp) == NULL) + if (fgets_unlocked (dummy, 256, fp) == NULL) break; if (!got_type && sscanf (dummy, "system type : %256[^\n]\n", data->systype) == 1)