X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstdio%2Ffseek.c;h=35b641610da02e0e8a686c655e8fe3c516033b72;hp=c897325509b4421e7277d8eb4f77b1dc9f5738b8;hb=0e35e82c5e9a0804864839e8fc0e985b1ae41f07;hpb=4fe88a1c445105a96d08b808831d6fc7480a211d 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 );