Beispiel #1
0
int fflush(FILE * stream)
{
    int res;

    if (stream) {
        _PDCLIB_flockfile(stream);
        res = _PDCLIB_fflush_unlocked(stream);
        _PDCLIB_funlockfile(stream);
    } else {
        res = _PDCLIB_fflush_unlocked(NULL);
    }

    return res;
}
Beispiel #2
0
int fflush( FILE * stream )
{
    _PDCLIB_flockfile( stream );
    int res = _PDCLIB_fflush_unlocked(stream);
    _PDCLIB_funlockfile( stream );
    return res;
}