X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffseek.c;h=35b641610da02e0e8a686c655e8fe3c516033b72;hb=0a419d48138f1411d6e3e50a367b9ece5a2cf893;hp=c897325509b4421e7277d8eb4f77b1dc9f5738b8;hpb=702e9008178bdb5c1b123b963868c946537fb7f5;p=pdclib diff --git a/functions/stdio/fseek.c b/functions/stdio/fseek.c index c897325..35b6416 100644 --- a/functions/stdio/fseek.c +++ b/functions/stdio/fseek.c @@ -9,10 +9,9 @@ #include #ifndef REGTEST +#include <_PDCLIB_io.h> -#include <_PDCLIB_glue.h> - -int fseek_unlocked( struct _PDCLIB_file_t * stream, long loffset, int whence ) +int fseek_unlocked( FILE * stream, long loffset, int whence ) { _PDCLIB_int64_t offset = loffset; if ( stream->status & _PDCLIB_FWRITE ) @@ -37,7 +36,7 @@ int fseek_unlocked( struct _PDCLIB_file_t * stream, long loffset, int whence ) return ( _PDCLIB_seek( stream, offset, whence ) != EOF ) ? 0 : EOF; } -int fseek( struct _PDCLIB_file_t * stream, long loffset, int whence ) +int fseek( FILE * stream, long loffset, int whence ) { flockfile( stream ); int r = fseek_unlocked( stream, loffset, whence );