From: Rich Felker Date: Sun, 3 Jun 2012 01:20:21 +0000 (-0400) Subject: add some ugly aliases for LSB ABI compatibility X-Git-Tag: v0.9.1~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6a4b9472fb0a85e55030b37ec3017ba0319e03f9;p=oweals%2Fmusl.git 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). --- diff --git a/src/stdio/feof.c b/src/stdio/feof.c index f2b739b5..5d7f4b02 100644 --- a/src/stdio/feof.c +++ b/src/stdio/feof.c @@ -8,3 +8,4 @@ int feof(FILE *f) } weak_alias(feof, feof_unlocked); +weak_alias(feof, _IO_feof_unlocked); diff --git a/src/stdio/ferror.c b/src/stdio/ferror.c index f535fbed..8288a93d 100644 --- a/src/stdio/ferror.c +++ b/src/stdio/ferror.c @@ -8,3 +8,4 @@ int ferror(FILE *f) } weak_alias(ferror, ferror_unlocked); +weak_alias(ferror, _IO_ferror_unlocked); diff --git a/src/stdio/fgetc.c b/src/stdio/fgetc.c index 4d8aca37..65a10fa6 100644 --- a/src/stdio/fgetc.c +++ b/src/stdio/fgetc.c @@ -11,3 +11,4 @@ int fgetc(FILE *f) } weak_alias(fgetc, getc); +weak_alias(fgetc, _IO_getc); diff --git a/src/stdio/fputc.c b/src/stdio/fputc.c index 6a144a54..99532965 100644 --- a/src/stdio/fputc.c +++ b/src/stdio/fputc.c @@ -10,3 +10,4 @@ int fputc(int c, FILE *f) } weak_alias(fputc, putc); +weak_alias(fputc, _IO_putc); diff --git a/src/stdio/getc_unlocked.c b/src/stdio/getc_unlocked.c index 203a1081..b38dad16 100644 --- a/src/stdio/getc_unlocked.c +++ b/src/stdio/getc_unlocked.c @@ -6,3 +6,4 @@ int (getc_unlocked)(FILE *f) } weak_alias (getc_unlocked, fgetc_unlocked); +weak_alias (getc_unlocked, _IO_getc_unlocked); diff --git a/src/stdio/getdelim.c b/src/stdio/getdelim.c index 20d345d1..b7e04acb 100644 --- a/src/stdio/getdelim.c +++ b/src/stdio/getdelim.c @@ -57,3 +57,5 @@ oom: errno = ENOMEM; return -1; } + +weak_alias(getdelim, __getdelim); diff --git a/src/stdio/putc_unlocked.c b/src/stdio/putc_unlocked.c index b47876c9..10071312 100644 --- a/src/stdio/putc_unlocked.c +++ b/src/stdio/putc_unlocked.c @@ -6,3 +6,4 @@ int (putc_unlocked)(int c, FILE *f) } weak_alias(putc_unlocked, fputc_unlocked); +weak_alias(putc_unlocked, _IO_putc_unlocked);