X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=functions%2Fstdio%2Ffgets.c;h=fd893443b8679a27149c3f8f65d2e47ee0bd6b92;hp=95103bb2ad753f8d9430a1af6be9208dea4babb3;hb=b5b6c4a890795ea76f9b92b817b0a83c6bb4862c;hpb=aa8b812cace09efe5e21f191761a5258b266b87b diff --git a/functions/stdio/fgets.c b/functions/stdio/fgets.c index 95103bb..fd89344 100644 --- a/functions/stdio/fgets.c +++ b/functions/stdio/fgets.c @@ -11,7 +11,7 @@ #ifndef REGTEST #include <_PDCLIB_io.h> -char * fgets_unlocked( char * _PDCLIB_restrict s, int size, FILE * _PDCLIB_restrict stream ) +char * _PDCLIB_fgets_unlocked( char * _PDCLIB_restrict s, int size, FILE * _PDCLIB_restrict stream ) { if ( size == 0 ) { @@ -37,9 +37,9 @@ char * fgets_unlocked( char * _PDCLIB_restrict s, int size, FILE * _PDCLIB_restr char * fgets( char * _PDCLIB_restrict s, int size, FILE * _PDCLIB_restrict stream ) { - flockfile( stream ); - char* r = fgets_unlocked( s, size, stream ); - funlockfile( stream ); + _PDCLIB_flockfile( stream ); + char* r = _PDCLIB_fgets_unlocked( s, size, stream ); + _PDCLIB_funlockfile( stream ); return r; }