提交 6a4b9472 编写于 作者: R Rich Felker

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).
上级 13b3645c
......@@ -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);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册