mirror of
https://github.com/fluencelabs/musl
synced 2025-05-18 18:21:31 +00:00
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).
12 lines
173 B
C
12 lines
173 B
C
#include "stdio_impl.h"
|
|
|
|
#undef ferror
|
|
|
|
int ferror(FILE *f)
|
|
{
|
|
return !!(f->flags & F_ERR);
|
|
}
|
|
|
|
weak_alias(ferror, ferror_unlocked);
|
|
weak_alias(ferror, _IO_ferror_unlocked);
|