alpha: Avoid fgets plt entry

And since the FILE is function local, avoid locking too.
This commit is contained in:
Richard Henderson 2012-05-30 15:54:49 -07:00
parent 91c0abeda1
commit a797e1734c
2 changed files with 4 additions and 1 deletions

View 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.

View 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)