X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fferror.c;h=07ecde7228774b237f6a5fbdbaa2ec8c93e973cc;hb=06630c64aa2ac5b8ec55c3c0509e69da4d81a22b;hp=f683787e567975ad8cd759b58bee255a16ddc990;hpb=0a419d48138f1411d6e3e50a367b9ece5a2cf893;p=pdclib 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; }