add some ugly aliases for LSB ABI compatibility
authorRich Felker <dalias@aerifal.cx>
Sun, 3 Jun 2012 01:20:21 +0000 (21:20 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 3 Jun 2012 01:20:21 +0000 (21:20 -0400)
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
src/stdio/ferror.c
src/stdio/fgetc.c
src/stdio/fputc.c
src/stdio/getc_unlocked.c
src/stdio/getdelim.c
src/stdio/putc_unlocked.c

index f2b739b..5d7f4b0 100644 (file)
@@ -8,3 +8,4 @@ int feof(FILE *f)
 }
 
 weak_alias(feof, feof_unlocked);
+weak_alias(feof, _IO_feof_unlocked);
index f535fbe..8288a93 100644 (file)
@@ -8,3 +8,4 @@ int ferror(FILE *f)
 }
 
 weak_alias(ferror, ferror_unlocked);
+weak_alias(ferror, _IO_ferror_unlocked);
index 4d8aca3..65a10fa 100644 (file)
@@ -11,3 +11,4 @@ int fgetc(FILE *f)
 }
 
 weak_alias(fgetc, getc);
+weak_alias(fgetc, _IO_getc);
index 6a144a5..9953296 100644 (file)
@@ -10,3 +10,4 @@ int fputc(int c, FILE *f)
 }
 
 weak_alias(fputc, putc);
+weak_alias(fputc, _IO_putc);
index 203a108..b38dad1 100644 (file)
@@ -6,3 +6,4 @@ int (getc_unlocked)(FILE *f)
 }
 
 weak_alias (getc_unlocked, fgetc_unlocked);
+weak_alias (getc_unlocked, _IO_getc_unlocked);
index 20d345d..b7e04ac 100644 (file)
@@ -57,3 +57,5 @@ oom:
        errno = ENOMEM;
        return -1;
 }
+
+weak_alias(getdelim, __getdelim);
index b47876c..1007131 100644 (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);