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:
parent
13b3645c46
commit
6a4b9472fb
7 changed files with 8 additions and 0 deletions
|
|
@ -8,3 +8,4 @@ int feof(FILE *f)
|
|||
}
|
||||
|
||||
weak_alias(feof, feof_unlocked);
|
||||
weak_alias(feof, _IO_feof_unlocked);
|
||||
|
|
|
|||
|
|
@ -8,3 +8,4 @@ int ferror(FILE *f)
|
|||
}
|
||||
|
||||
weak_alias(ferror, ferror_unlocked);
|
||||
weak_alias(ferror, _IO_ferror_unlocked);
|
||||
|
|
|
|||
|
|
@ -11,3 +11,4 @@ int fgetc(FILE *f)
|
|||
}
|
||||
|
||||
weak_alias(fgetc, getc);
|
||||
weak_alias(fgetc, _IO_getc);
|
||||
|
|
|
|||
|
|
@ -10,3 +10,4 @@ int fputc(int c, FILE *f)
|
|||
}
|
||||
|
||||
weak_alias(fputc, putc);
|
||||
weak_alias(fputc, _IO_putc);
|
||||
|
|
|
|||
|
|
@ -6,3 +6,4 @@ int (getc_unlocked)(FILE *f)
|
|||
}
|
||||
|
||||
weak_alias (getc_unlocked, fgetc_unlocked);
|
||||
weak_alias (getc_unlocked, _IO_getc_unlocked);
|
||||
|
|
|
|||
|
|
@ -57,3 +57,5 @@ oom:
|
|||
errno = ENOMEM;
|
||||
return -1;
|
||||
}
|
||||
|
||||
weak_alias(getdelim, __getdelim);
|
||||
|
|
|
|||
|
|
@ -6,3 +6,4 @@ int (putc_unlocked)(int c, FILE *f)
|
|||
}
|
||||
|
||||
weak_alias(putc_unlocked, fputc_unlocked);
|
||||
weak_alias(putc_unlocked, _IO_putc_unlocked);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue