alpha: Avoid fgets plt entry
authorRichard Henderson <rth@twiddle.net>
Wed, 30 May 2012 22:54:49 +0000 (15:54 -0700)
committerRichard Henderson <rth@twiddle.net>
Wed, 30 May 2012 23:05:42 +0000 (16:05 -0700)
And since the FILE is function local, avoid locking too.

ChangeLog.alpha
sysdeps/unix/sysv/linux/alpha/ioperm.c

index e327242..246345a 100644 (file)
@@ -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.
index 8b6c830..686c7ed 100644 (file)
@@ -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)