diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-06-02 21:20:21 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-06-02 21:20:21 -0400 |
commit | 6a4b9472fb0a85e55030b37ec3017ba0319e03f9 (patch) | |
tree | 94ad849a3dbc19a5ff5bde6132dae854dadb6d26 | |
parent | 13b3645c46518e0e2fb91f0d665e60f7a8a44b2b (diff) | |
download | musl-6a4b9472fb0a85e55030b37ec3017ba0319e03f9.tar.gz musl-6a4b9472fb0a85e55030b37ec3017ba0319e03f9.tar.bz2 musl-6a4b9472fb0a85e55030b37ec3017ba0319e03f9.tar.xz musl-6a4b9472fb0a85e55030b37ec3017ba0319e03f9.zip |
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).
-rw-r--r-- | src/stdio/feof.c | 1 | ||||
-rw-r--r-- | src/stdio/ferror.c | 1 | ||||
-rw-r--r-- | src/stdio/fgetc.c | 1 | ||||
-rw-r--r-- | src/stdio/fputc.c | 1 | ||||
-rw-r--r-- | src/stdio/getc_unlocked.c | 1 | ||||
-rw-r--r-- | src/stdio/getdelim.c | 2 | ||||
-rw-r--r-- | src/stdio/putc_unlocked.c | 1 |
7 files changed, 8 insertions, 0 deletions
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); |