X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Frewind.c;h=18eb6a9dc33c575e8375523082b5b3ead223913e;hb=b5b6c4a890795ea76f9b92b817b0a83c6bb4862c;hp=0a19155b5820428acd62c40996d8aa8b8ceaf35c;hpb=98f71f23eb986596ec0ab70bf9ea7c121487fb5e;p=pdclib.old diff --git a/functions/stdio/rewind.c b/functions/stdio/rewind.c index 0a19155..18eb6a9 100644 --- a/functions/stdio/rewind.c +++ b/functions/stdio/rewind.c @@ -9,18 +9,19 @@ #include #ifndef REGTEST +#include <_PDCLIB_io.h> -void rewind_unlocked( struct _PDCLIB_file_t * stream ) +void _PDCLIB_rewind_unlocked( FILE * stream ) { stream->status &= ~ _PDCLIB_ERRORFLAG; - fseek_unlocked( stream, 0L, SEEK_SET ); + _PDCLIB_fseek_unlocked( stream, 0L, SEEK_SET ); } -void rewind( struct _PDCLIB_file_t * stream ) +void rewind( FILE * stream ) { - flockfile(stream); - rewind_unlocked(stream); - funlockfile(stream); + _PDCLIB_flockfile(stream); + _PDCLIB_rewind_unlocked(stream); + _PDCLIB_funlockfile(stream); } #endif