亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? _file.c

?? C標準庫源代碼,能提高對C的理解,不錯的哦
?? C
字號:
/***
*_file.c - Definition of _iob[], initializer and terminator.
*
*       Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
*
*Purpose:
*       Defines _iob[], the array of stdio control structures, the initializer
*       and terminator routines, and the multithread locking for stdio.
*
*******************************************************************************/

#ifdef _WIN32


#include <cruntime.h>
#include <windows.h>
#include <stdio.h>
#include <file2.h>
#include <internal.h>
#include <malloc.h>
#include <rterr.h>
#include <dbgint.h>
#include <mtdll.h>

/*
 * Buffer for stdin.
 */

char _bufin[_INTERNAL_BUFSIZ];

/*
 * FILE descriptors; preset for stdin/out/err (note that the __tmpnum field
 * is not initialized)
 */
FILE _iob[_IOB_ENTRIES] = {
        /* _ptr, _cnt, _base,  _flag, _file, _charbuf, _bufsiz */

        /* stdin (_iob[0]) */

        { _bufin, 0, _bufin, _IOREAD | _IOYOURBUF, 0, 0, _INTERNAL_BUFSIZ },

        /* stdout (_iob[1]) */

        { NULL, 0, NULL, _IOWRT, 1, 0, 0 },

        /* stderr (_iob[3]) */

        { NULL, 0, NULL, _IOWRT, 2, 0, 0 },

};

/*
 * Pointer to array of FILE * or _FILEX * structures.
 */
void ** __piob;

/*
 * Number of open streams (set to _NSTREAM by default)
 */
#ifdef CRTDLL
int _nstream = _NSTREAM_;
#else  /* CRTDLL */
int _nstream;
#endif  /* CRTDLL */


/*
 * Initializer and terminator for stdio
 */
void __cdecl __initstdio(void);
void __cdecl __endstdio(void);

#ifdef _MSC_VER

#pragma data_seg(".CRT$XIC")
static _PVFV pinit = __initstdio;

#pragma data_seg(".CRT$XPX")
static _PVFV pterm = __endstdio;

#pragma data_seg()

#endif  /* _MSC_VER */

#ifndef CRTDLL
/*
 * _cflush is a dummy variable used to pull in _endstdio() when any STDIO
 * routine is included in the user program.
 */
int _cflush = 0;
#endif  /* CRTDLL */


/***
* __initstdio - Initialize the stdio system
*
*Purpose:
*       Create and initialize the __piob array.
*
*Entry: <void>
*
*Exit:  <void>
*
*Uses:
*
*Exceptions:
*
*******************************************************************************/

void __cdecl __initstdio(void)
{
        int i;

#ifndef CRTDLL
        /*
         * If the user has not supplied a definition of _nstream, set it
         * to _NSTREAM_. If the user has supplied a value that is too small
         * set _nstream to the minimum acceptable value (_IOB_ENTRIES).
         */
        if ( _nstream ==  0 )
            _nstream = _NSTREAM_;
        else if ( _nstream < _IOB_ENTRIES )
            _nstream = _IOB_ENTRIES;
#endif  /* CRTDLL */

        /*
         * Allocate the __piob array. Try for _nstream entries first. If this
         * fails then reset _nstream to _IOB_ENTRIES and try again. If it
         * still fails, bail out with an RTE.
         */
        if ( (__piob = (void **)_calloc_crt( _nstream, sizeof(void *) )) ==
             NULL ) {
            _nstream = _IOB_ENTRIES;
            if ( (__piob = (void **)_calloc_crt( _nstream, sizeof(void *) ))
                 == NULL )
                _amsg_exit( _RT_STDIOINIT );
        }

        /*
         * Initialize the first _IOB_ENTRIES to point to the corresponding
         * entries in _iob[].
         */
        for ( i = 0 ; i < _IOB_ENTRIES ; i++ )
            __piob[i] = (void *)&_iob[i];

        for ( i = 0 ; i < 3 ; i++ ) {
            if ( (_osfhnd(i) == (long)INVALID_HANDLE_VALUE) ||
                 (_osfhnd(i) == 0L) )
            {
                _iob[i]._file = -1;
            }
        }
}


/***
* __endstdio - Terminate the stdio system
*
*Purpose:
*       Terminate the stdio system
*
*       (1) Flush all streams.  (Do this even if we're going to
*       call fcloseall since that routine won't do anything to the
*       std streams.)
*
*       (2) If returning to caller, close all streams.  This is
*       not necessary if the exe is terminating because the OS will
*       close the files for us (much more efficiently, too).
*
*Entry: <void>
*
*Exit:  <void>
*
*Uses:
*
*Exceptions:
*
*******************************************************************************/

void __cdecl __endstdio(void)
{
        /* flush all streams */
        _flushall();

        /* if in callable exit, close all streams */
        if (_exitflag)
                _fcloseall();
}


#ifdef _MT

/***
* _lock_file - Lock a FILE
*
*Purpose:
*       Assert the lock for a stdio-level file
*
*Entry:
*       pf = __piob[] entry (pointer to a FILE or _FILEX)
*
*Exit:
*
*Exceptions:
*
*******************************************************************************/

void __cdecl _lock_file (
        void *pf
        )
{
        /*
         * The way the FILE (pointed to by pf) is locked depends on whether
         * it is part of _iob[] or not
         */
        if ( (pf >= (void *)_iob) && (pf <= (void *)(&_iob[_IOB_ENTRIES-1])) )
            /*
             * FILE lies in _iob[] so the lock lies in _locktable[].
             */
            _lock( _STREAM_LOCKS + ((FILE *)pf - _iob) );
        else
            /*
             * Not part of _iob[]. Therefore, *pf is a _FILEX and the
             * lock field of the struct is an initialized critical
             * section.
             */
            EnterCriticalSection( &(((_FILEX *)pf)->lock) );
}


/***
* _lock_file2(i, s) - Lock the FILE
*
*Purpose:
*       Assert the lock for a stdio-level file given by s == __piob[i].
*
*Entry:
*       s == __piob[i]
*
*Exit:
*
*Exceptions:
*
*******************************************************************************/

void __cdecl _lock_file2 (
        int i,
        void *s
        )
{
        /*
         * The way the FILE is locked depends on whether it is part of _iob[]
         * _iob[] or not
         */
        if ( i < _IOB_ENTRIES )
            /*
             * FILE lies in _iob[] so the lock lies in _locktable[].
             */
            _lock( _STREAM_LOCKS + i );
        else
            /*
             * Not part of _iob[]. Therefore, *s is a _FILEX and the
             * lock field of the struct is an initialized critical
             * section.
             */
            EnterCriticalSection( &(((_FILEX *)s)->lock) );
}


/***
* _unlock_file - Unlock a FILE
*
*Purpose:
*       Release the lock for a stdio-level file
*
*Entry:
*       pf = __piob[] entry (pointer to a FILE or _FILEX)
*
*Exit:
*
*Exceptions:
*
*******************************************************************************/

void __cdecl _unlock_file (
        void *pf
        )
{
        /*
         * The way the FILE (pointed to by pf) is unlocked depends on whether
         * it is part of _iob[] or not
         */
        if ( (pf >= (void *)_iob) && (pf <= (void *)(&_iob[_IOB_ENTRIES-1])) )
            /*
             * FILE lies in _iob[] so the lock lies in _locktable[].
             */
            _unlock( _STREAM_LOCKS + ((FILE *)pf - _iob) );
        else
            /*
             * Not part of _iob[]. Therefore, *pf is a _FILEX and the
             * lock field of the struct is an initialized critical
             * section.
             */
            LeaveCriticalSection( &(((_FILEX *)pf)->lock) );
}


/***
* _unlock_file2(i, s) - Lock the FILE
*
*Purpose:
*       Release the lock for a stdio-level file given by s == __piob[i].
*
*Entry:
*       s == __piob[i]
*
*Exit:
*
*Exceptions:
*
*******************************************************************************/

void __cdecl _unlock_file2 (
        int i,
        void *s
        )
{
        /*
         * The way the FILE is locked depends on whether it is part of _iob[]
         * _iob[] or not
         */
        if ( i < _IOB_ENTRIES )
            /*
             * FILE lies in _iob[] so the lock lies in _locktable[].
             */
            _unlock( _STREAM_LOCKS + i );
        else
            /*
             * Not part of _iob[]. Therefore, *s is a _FILEX and the
             * lock field of the struct is an initialized critical
             * section.
             */
            LeaveCriticalSection( &(((_FILEX *)s)->lock) );
}

#endif  /* _MT */

#else  /* _WIN32 */

#ifdef _MAC


#include <cruntime.h>
#include <stdio.h>
#include <file2.h>

/*
 * Buffer for stdin.
 */

char _bufin[BUFSIZ];


/*
 * FILE descriptors; preset for stdin/out/err (note that the __tmpnum field
 * is not initialized)
 */

FILE _iob[ _NSTREAM_ ] = {

        /* _ptr, _cnt, _base,  _flag, _file, _charbuf, _bufsiz */

        /* stdin (_iob[0]) */

        { _bufin, 0, _bufin, _IOREAD | _IOYOURBUF, 0, 0, BUFSIZ },

        /* stdout (_iob[1]) */

        { NULL, 0, NULL, _IOWRT, 1, 0, 0 },

        /* stderr (_iob[3]) */

        { NULL, 0, NULL, _IOWRT, 2, 0, 0 },

};


/*
 * pointer to end of descriptors
 */

FILE * _lastiob = &_iob[_NSTREAM_ - 1];


#endif  /* _MAC */

#endif  /* _WIN32 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
视频一区国产视频| 亚洲成人精品一区二区| 日韩精品在线看片z| 在线不卡中文字幕| 欧美日韩国产天堂| 欧美一区二区女人| 日韩一级二级三级精品视频| 欧美电影免费提供在线观看| 欧美成va人片在线观看| 国产午夜亚洲精品理论片色戒 | 在线观看一区日韩| 91成人在线免费观看| 在线精品视频免费播放| 欧美日韩国产乱码电影| 日韩一区二区三区免费观看| 精品日韩欧美一区二区| 国产女主播视频一区二区| 亚洲天堂2016| 日韩精品一级二级| 国产一区三区三区| 成人黄色大片在线观看| 欧美综合一区二区三区| 日韩一区二区三区视频在线观看| 精品国产人成亚洲区| 国产精品全国免费观看高清| 亚洲一本大道在线| 久久66热偷产精品| jiyouzz国产精品久久| 欧美亚洲国产bt| 久久在线观看免费| 亚洲天堂网中文字| 另类欧美日韩国产在线| 国产精品91xxx| 欧美最猛性xxxxx直播| xnxx国产精品| 亚洲成人黄色影院| 国产成人综合在线观看| 欧美在线|欧美| 久久精品亚洲精品国产欧美kt∨| 亚洲美女一区二区三区| 久久69国产一区二区蜜臀| 91黄视频在线观看| 日本一区二区三区在线不卡| 亚洲高清在线视频| 成人av在线资源网站| 欧美一二区视频| 亚洲码国产岛国毛片在线| 麻豆国产精品一区二区三区 | 成人午夜伦理影院| 9191久久久久久久久久久| 国产精品久久久久久久久搜平片| 日本最新不卡在线| 欧美在线一二三| 欧美国产日产图区| 久久国产剧场电影| 欧美美女直播网站| 亚洲激情第一区| 东方aⅴ免费观看久久av| 日韩亚洲欧美在线| 亚洲自拍另类综合| 91麻豆高清视频| 国产欧美一二三区| 精品一区精品二区高清| 91精品国产入口在线| 亚洲国产成人va在线观看天堂| 97精品久久久午夜一区二区三区| 精品区一区二区| 九一九一国产精品| 555夜色666亚洲国产免| 午夜欧美2019年伦理| 91黄视频在线观看| 亚洲一区在线看| 欧美日韩一区二区三区高清| 亚洲免费毛片网站| 欧美性xxxxxxxx| 亚洲黄色录像片| 色综合久久综合网欧美综合网| 亚洲色图都市小说| 色婷婷综合久久久| 一区二区三区在线观看动漫| 91蝌蚪porny| 亚洲午夜精品在线| 欧美高清你懂得| 青青青伊人色综合久久| 精品国产第一区二区三区观看体验 | 亚洲视频每日更新| 在线亚洲人成电影网站色www| 亚洲欧洲国产日韩| 91国模大尺度私拍在线视频| 亚洲激情图片一区| 欧美日韩高清一区二区| 免费精品视频在线| 国产欧美日产一区| 在线亚洲人成电影网站色www| 亚洲国产精品久久一线不卡| 91麻豆精品国产91久久久久久久久 | 国产91对白在线观看九色| 中文字幕制服丝袜一区二区三区 | 天堂蜜桃一区二区三区| 日韩亚洲欧美一区二区三区| 国产不卡在线视频| 亚洲电影第三页| 久久人人爽爽爽人久久久| 99riav久久精品riav| 五月天激情综合网| 久久久久久亚洲综合影院红桃 | 亚洲成人福利片| 日韩精品资源二区在线| 99久久精品国产导航| 日韩成人伦理电影在线观看| 国产无一区二区| 精品视频在线看| 国产精品一区二区久激情瑜伽 | 成人h动漫精品一区二区 | 日韩一区二区在线观看视频| 国产91高潮流白浆在线麻豆| 性做久久久久久| 中文字幕免费观看一区| 51午夜精品国产| 成人av网站大全| 久久成人免费电影| 亚洲国产精品久久人人爱| 国产丝袜美腿一区二区三区| 欧美日本一区二区三区| av一区二区三区黑人| 免费成人美女在线观看.| 一区二区三区四区不卡在线| 中文字幕va一区二区三区| 日韩亚洲欧美在线| 欧美日韩中字一区| 91丨九色丨蝌蚪丨老版| 国产成人在线影院| 久久99精品国产| 天天综合日日夜夜精品| 伊人开心综合网| ...av二区三区久久精品| 久久久亚洲国产美女国产盗摄| 6080亚洲精品一区二区| 欧美精品九九99久久| 欧洲另类一二三四区| 97精品国产97久久久久久久久久久久| 国产一区二三区| 久久99九九99精品| 免费av成人在线| 日本不卡中文字幕| 午夜精品一区二区三区电影天堂| 亚洲老妇xxxxxx| 伊人性伊人情综合网| 亚洲精品国产a| 一区二区三区91| 亚洲精品中文在线影院| 亚洲麻豆国产自偷在线| 亚洲女爱视频在线| 一区二区三区四区不卡在线| 一区二区久久久| 天天色天天操综合| 日本午夜一区二区| 蜜臀91精品一区二区三区| 理论片日本一区| 国内精品视频一区二区三区八戒| 蜜乳av一区二区| 国产一区二区三区视频在线播放| 国产成人午夜高潮毛片| 91麻豆免费观看| 一道本成人在线| 欧美日韩在线播| 日韩欧美一区二区久久婷婷| 欧美成人一区二区三区片免费| 26uuu成人网一区二区三区| 中文字幕欧美国产| 亚洲一区二区欧美激情| 五月天欧美精品| 国产美女精品在线| 91亚洲永久精品| 欧美精品123区| 国产午夜精品一区二区三区视频| 亚洲视频一区二区在线| 五月婷婷久久综合| 国产成人福利片| 欧美日韩精品电影| 欧美精品一区二区在线观看| 国产精品高潮呻吟久久| 亚洲第四色夜色| 国产成人h网站| 欧美在线免费播放| 亚洲精品一线二线三线| 日韩理论片网站| 蜜臀av性久久久久蜜臀aⅴ流畅 | 亚洲制服丝袜一区| 国产米奇在线777精品观看| 欧美性做爰猛烈叫床潮| 久久久久97国产精华液好用吗| 亚洲精品自拍动漫在线| 久久国产夜色精品鲁鲁99| av爱爱亚洲一区| 日韩欧美久久久| 一区二区三区日韩欧美| 激情五月婷婷综合| 欧美精品丝袜中出| 亚洲少妇屁股交4|