X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffeof.c;h=772bb5090f3223cb9e0d8382577657e56937c382;hb=HEAD;hp=ca43c75532bd4d06b3c83607597575faa7d25976;hpb=84d648157e22cecc65902ecfdd4e3a1b88d5e53f;p=pdclib.old diff --git a/functions/stdio/feof.c b/functions/stdio/feof.c index ca43c75..772bb50 100644 --- a/functions/stdio/feof.c +++ b/functions/stdio/feof.c @@ -9,17 +9,18 @@ #include #ifndef REGTEST +#include <_PDCLIB_io.h> -int feof_unlocked( struct _PDCLIB_file_t * stream ) +int _PDCLIB_feof_unlocked( FILE * stream ) { return stream->status & _PDCLIB_EOFFLAG; } -int feof( struct _PDCLIB_file_t * stream ) +int feof( FILE * stream ) { - flockfile( stream ); - int eof = feof_unlocked( stream ); - funlockfile( stream ); + _PDCLIB_flockfile( stream ); + int eof = _PDCLIB_feof_unlocked( stream ); + _PDCLIB_funlockfile( stream ); return eof; }