X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fferror.c;h=0067bed48288d6be1598af124299af8b0bc5d3ba;hb=9feedd59d824b75950b8d15be6a2a34534c2a6d9;hp=394dcda2bc7dd07dee9cad93b61dfd95ec50ddd1;hpb=6ca24b75c75b9c6f22e1e69693d326b8e3330841;p=pdclib diff --git a/functions/stdio/ferror.c b/functions/stdio/ferror.c index 394dcda..0067bed 100644 --- a/functions/stdio/ferror.c +++ b/functions/stdio/ferror.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* ferror( FILE * ) This file is part of the Public Domain C Library (PDCLib). @@ -9,17 +7,18 @@ #include #ifndef REGTEST +#include <_PDCLIB_io.h> -int ferror_unlocked( struct _PDCLIB_file_t * stream ) +int _PDCLIB_ferror_unlocked( FILE * stream ) { return stream->status & _PDCLIB_ERRORFLAG; } -int ferror( struct _PDCLIB_file_t * stream ) +int ferror( FILE * stream ) { - flockfile( stream ); - int error = ferror_unlocked( stream ); - funlockfile( stream ); + _PDCLIB_flockfile( stream ); + int error = _PDCLIB_ferror_unlocked( stream ); + _PDCLIB_funlockfile( stream ); return error; }