コード例 #1
0
ファイル: fgetc.c プロジェクト: fixos/fixos-libc
int fgetc( FILE * stream )
{
    _PDCLIB_flockfile( stream );
    int c = _PDCLIB_fgetc_unlocked( stream );
    _PDCLIB_funlockfile( stream );
    return c;
}
コード例 #2
0
ファイル: ftell.c プロジェクト: DavideD/BizHawk
long int ftell( FILE * stream )
{
    _PDCLIB_flockfile( stream );
    long int off = _PDCLIB_ftell_unlocked( stream );
    _PDCLIB_funlockfile( stream );
    return off;
}
コード例 #3
0
ファイル: fflush.c プロジェクト: Bigcheese/nucleo-toolchain
int fflush( FILE * stream )
{
    _PDCLIB_flockfile( stream );
    int res = _PDCLIB_fflush_unlocked(stream);
    _PDCLIB_funlockfile( stream );
    return res;
}
コード例 #4
0
ファイル: feof.c プロジェクト: fixos/fixos-libc
int feof( FILE * stream )
{
    _PDCLIB_flockfile( stream );
    int eof = _PDCLIB_feof_unlocked( stream );
    _PDCLIB_funlockfile( stream );
    return eof;
}
コード例 #5
0
ファイル: fseek.c プロジェクト: kubasz/NovuOS
int fseek( FILE * stream, long loffset, int whence )
{
    _PDCLIB_flockfile( stream );
    int r = _PDCLIB_fseek_unlocked( stream, loffset, whence );
    _PDCLIB_funlockfile( stream );
    return r;
}
コード例 #6
0
ファイル: fputc.c プロジェクト: kubasz/NovuOS
int fputc( int c, FILE * stream )
{
    _PDCLIB_flockfile( stream );
    int r = _PDCLIB_fputc_unlocked( c, stream );
    _PDCLIB_funlockfile( stream );
    return r;
}
コード例 #7
0
ファイル: _PDCLIB_ftell64.c プロジェクト: Zeke-OS/zeke
uint_fast64_t _PDCLIB_ftell64( FILE * stream )
{
  _PDCLIB_flockfile( stream );
  uint_fast64_t pos = _PDCLIB_ftell64_unlocked( stream );
  _PDCLIB_funlockfile( stream );
  return pos;
}
コード例 #8
0
ファイル: fsetpos.c プロジェクト: Bigcheese/nucleo-toolchain
int fsetpos( FILE * stream, 
             const _PDCLIB_fpos_t * pos )
{
    _PDCLIB_flockfile( stream );
    int res = _PDCLIB_fsetpos_unlocked( stream, pos );
    _PDCLIB_funlockfile( stream );
    return res;
}
コード例 #9
0
ファイル: fflush.c プロジェクト: Zeke-OS/zeke
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;
}