add some ugly aliases for LSB ABI compatibility

for some nonsensical reason, glibc's headers use inline functions that
redirect some of the standard functions to ugly nonstandard names (and
likewise for some of their nonstandard functions).
This commit is contained in:
Rich Felker 2012-06-02 21:20:21 -04:00
parent 13b3645c46
commit 6a4b9472fb
7 changed files with 8 additions and 0 deletions

View File

@ -8,3 +8,4 @@ int feof(FILE *f)
}
weak_alias(feof, feof_unlocked);
weak_alias(feof, _IO_feof_unlocked);

View File

@ -8,3 +8,4 @@ int ferror(FILE *f)
}
weak_alias(ferror, ferror_unlocked);
weak_alias(ferror, _IO_ferror_unlocked);

View File

@ -11,3 +11,4 @@ int fgetc(FILE *f)
}
weak_alias(fgetc, getc);
weak_alias(fgetc, _IO_getc);

View File

@ -10,3 +10,4 @@ int fputc(int c, FILE *f)
}
weak_alias(fputc, putc);
weak_alias(fputc, _IO_putc);

View File

@ -6,3 +6,4 @@ int (getc_unlocked)(FILE *f)
}
weak_alias (getc_unlocked, fgetc_unlocked);
weak_alias (getc_unlocked, _IO_getc_unlocked);

View File

@ -57,3 +57,5 @@ oom:
errno = ENOMEM;
return -1;
}
weak_alias(getdelim, __getdelim);

View File

@ -6,3 +6,4 @@ int (putc_unlocked)(int c, FILE *f)
}
weak_alias(putc_unlocked, fputc_unlocked);
weak_alias(putc_unlocked, _IO_putc_unlocked);