X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstdio%2Fferror.c;h=07ecde7228774b237f6a5fbdbaa2ec8c93e973cc;hp=f683787e567975ad8cd759b58bee255a16ddc990;hb=b5b6c4a890795ea76f9b92b817b0a83c6bb4862c;hpb=aa8b812cace09efe5e21f191761a5258b266b87b diff --git a/functions/stdio/ferror.c b/functions/stdio/ferror.c index f683787..07ecde7 100644 --- a/functions/stdio/ferror.c +++ b/functions/stdio/ferror.c @@ -11,16 +11,16 @@ #ifndef REGTEST #include <_PDCLIB_io.h> -int ferror_unlocked( FILE * stream ) +int _PDCLIB_ferror_unlocked( FILE * stream ) { return stream->status & _PDCLIB_ERRORFLAG; } 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; }