X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fferror.c;h=07ecde7228774b237f6a5fbdbaa2ec8c93e973cc;hb=b5b6c4a890795ea76f9b92b817b0a83c6bb4862c;hp=394dcda2bc7dd07dee9cad93b61dfd95ec50ddd1;hpb=84d648157e22cecc65902ecfdd4e3a1b88d5e53f;p=pdclib.old diff --git a/functions/stdio/ferror.c b/functions/stdio/ferror.c index 394dcda..07ecde7 100644 --- a/functions/stdio/ferror.c +++ b/functions/stdio/ferror.c @@ -9,17 +9,18 @@ #include #ifndef REGTEST +#include <_PDCLIB_io.h> -int ferror_unlocked( struct _PDCLIB_file_t * stream ) +int _PDCLIB_ferror_unlocked( FILE * stream ) { return stream->status & _PDCLIB_ERRORFLAG; } -int ferror( struct _PDCLIB_file_t * stream ) +int ferror( FILE * stream ) { - flockfile( stream ); - int error = ferror_unlocked( stream ); - funlockfile( stream ); + _PDCLIB_flockfile( stream ); + int error = _PDCLIB_ferror_unlocked( stream ); + _PDCLIB_funlockfile( stream ); return error; }