X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Ffflush.c;h=28793e3492979716b3e0a4cfedada564b3232ddc;hp=df458804dc3099274f024286c3c55db2091418d8;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=6ca24b75c75b9c6f22e1e69693d326b8e3330841 diff --git a/functions/stdio/fflush.c b/functions/stdio/fflush.c index df45880..28793e3 100644 --- a/functions/stdio/fflush.c +++ b/functions/stdio/fflush.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* fflush( FILE * ) This file is part of the Public Domain C Library (PDCLib). @@ -9,11 +7,11 @@ #include #ifndef REGTEST -#include <_PDCLIB_glue.h> +#include "_PDCLIB_io.h" -extern struct _PDCLIB_file_t * _PDCLIB_filelist; +extern FILE * _PDCLIB_filelist; -int fflush_unlocked( struct _PDCLIB_file_t * stream ) +int _PDCLIB_fflush_unlocked( FILE * stream ) { if ( stream == NULL ) { @@ -39,18 +37,18 @@ int fflush_unlocked( struct _PDCLIB_file_t * stream ) } } -int fflush( struct _PDCLIB_file_t * stream ) +int fflush( FILE * stream ) { - flockfile( stream ); - int res = fflush_unlocked(stream); - funlockfile( stream ); + _PDCLIB_flockfile( stream ); + int res = _PDCLIB_fflush_unlocked(stream); + _PDCLIB_funlockfile( stream ); return res; } #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" int main( void ) {