From a797e1734c8d91a6d6df8c07e1b47ac5291425c6 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 30 May 2012 15:54:49 -0700 Subject: [PATCH] alpha: Avoid fgets plt entry And since the FILE is function local, avoid locking too. --- ChangeLog.alpha | 3 +++ sysdeps/unix/sysv/linux/alpha/ioperm.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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)