]> sourceware.org Git - glibc.git/commitdiff
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 e327242f9dc3d09dd2f9d07bf4bfa752b2f5eb11..246345a777bf7cbcc53755f8c657239294cf925a 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 8b6c8309f82507c50253ba3bdda1e2a390f9a947..686c7ed2377ae8bbf5efb57add64ca0dce5b6896 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)
This page took 0.046113 seconds and 5 git commands to generate.