about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2012-05-30 15:54:49 -0700
committerRichard Henderson <rth@twiddle.net>2012-05-30 16:05:42 -0700
commita797e1734c8d91a6d6df8c07e1b47ac5291425c6 (patch)
treeb7731e11dd5723ee72c04eeec2a2d647e0a7a530
parent91c0abeda12bff60bebee81b944a235d219f9157 (diff)
downloadglibc-a797e1734c8d91a6d6df8c07e1b47ac5291425c6.tar.gz
glibc-a797e1734c8d91a6d6df8c07e1b47ac5291425c6.tar.xz
glibc-a797e1734c8d91a6d6df8c07e1b47ac5291425c6.zip
alpha: Avoid fgets plt entry
And since the FILE is function local, avoid locking too.
-rw-r--r--ChangeLog.alpha3
-rw-r--r--sysdeps/unix/sysv/linux/alpha/ioperm.c2
2 files changed, 4 insertions, 1 deletions
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  <rth@twiddle.net>
 
+	* 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)