X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstdio%2Fclearerr.c;h=a80e3e2987a1b727643717a5857c0cc8e48cd6d9;hp=20af80f298b4a1e792e6e8de80b5cce58f4e977a;hb=b5b6c4a890795ea76f9b92b817b0a83c6bb4862c;hpb=aa8b812cace09efe5e21f191761a5258b266b87b diff --git a/functions/stdio/clearerr.c b/functions/stdio/clearerr.c index 20af80f..a80e3e2 100644 --- a/functions/stdio/clearerr.c +++ b/functions/stdio/clearerr.c @@ -11,16 +11,16 @@ #ifndef REGTEST #include <_PDCLIB_io.h> -void clearerr_unlocked( FILE * stream ) +void _PDCLIB_clearerr_unlocked( FILE * stream ) { stream->status &= ~( _PDCLIB_ERRORFLAG | _PDCLIB_EOFFLAG ); } void clearerr( FILE * stream ) { - flockfile( stream ); - clearerr_unlocked( stream ); - funlockfile( stream ); + _PDCLIB_flockfile( stream ); + _PDCLIB_clearerr_unlocked( stream ); + _PDCLIB_funlockfile( stream ); } #endif