X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fferror.c;h=0067bed48288d6be1598af124299af8b0bc5d3ba;hb=5b64e18a94a184cc73392d563a1f3e0dbd3bdbf8;hp=f683787e567975ad8cd759b58bee255a16ddc990;hpb=0a419d48138f1411d6e3e50a367b9ece5a2cf893;p=pdclib diff --git a/functions/stdio/ferror.c b/functions/stdio/ferror.c index f683787..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). @@ -11,16 +9,16 @@ #ifndef REGTEST #include <_PDCLIB_io.h> -int ferror_unlocked( FILE * stream ) +int _PDCLIB_ferror_unlocked( FILE * stream ) { return stream->status & _PDCLIB_ERRORFLAG; } 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; }