X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fclearerr.c;h=a80e3e2987a1b727643717a5857c0cc8e48cd6d9;hb=3309ec3ad8a5db735eaa2de7f5dc6a331d8e7319;hp=2b032bd21833c8ff8b7e631882b6cbd1d9339c5e;hpb=84d648157e22cecc65902ecfdd4e3a1b88d5e53f;p=pdclib.old diff --git a/functions/stdio/clearerr.c b/functions/stdio/clearerr.c index 2b032bd..a80e3e2 100644 --- a/functions/stdio/clearerr.c +++ b/functions/stdio/clearerr.c @@ -9,17 +9,18 @@ #include #ifndef REGTEST +#include <_PDCLIB_io.h> -void clearerr_unlocked( struct _PDCLIB_file_t * stream ) +void _PDCLIB_clearerr_unlocked( FILE * stream ) { stream->status &= ~( _PDCLIB_ERRORFLAG | _PDCLIB_EOFFLAG ); } -void clearerr( struct _PDCLIB_file_t * stream ) +void clearerr( FILE * stream ) { - flockfile( stream ); - clearerr_unlocked( stream ); - funlockfile( stream ); + _PDCLIB_flockfile( stream ); + _PDCLIB_clearerr_unlocked( stream ); + _PDCLIB_funlockfile( stream ); } #endif