From 6a4b9472fb0a85e55030b37ec3017ba0319e03f9 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 2 Jun 2012 21:20:21 -0400 Subject: 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). --- src/stdio/feof.c | 1 + src/stdio/ferror.c | 1 + src/stdio/fgetc.c | 1 + src/stdio/fputc.c | 1 + src/stdio/getc_unlocked.c | 1 + src/stdio/getdelim.c | 2 ++ src/stdio/putc_unlocked.c | 1 + 7 files changed, 8 insertions(+) (limited to 'src/stdio') 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); -- cgit v1.2.1