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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? winsig.c

?? C標準庫源代碼,能提高對C的理解,不錯的哦
?? C
?? 第 1 頁 / 共 2 頁
字號:
                if ( ++pxcptact >= ((struct _XCPT_ACTION *)(ptd->_pxcptacttab)
                                   + _XcptActTabCount) )
#else  /* _MT */
                if ( ++pxcptact >= (_XcptActTab + _XcptActTabCount) )
#endif  /* _MT */
                    break;
        }

sigretok:
        return(oldsigact);

sigreterror:
        errno = EINVAL;
        return(SIG_ERR);
}

/***
*int raise(signum) - Raise a signal
*
*Purpose:
*       This routine raises a signal (i.e., performs the action currently
*       defined for this signal). The action associated with the signal is
*       evoked directly without going through intermediate dispatching or
*       handling.
*
*Entry:
*       int signum - signal type (e.g., SIGINT)
*
*Exit:
*       returns 0 on good return, -1 on bad return.
*
*Exceptions:
*       May not return.  Raise has no control over the action
*       routines defined for the various signals.  Those routines may
*       abort, terminate, etc.  In particular, the default actions for
*       certain signals will terminate the program.
*
*******************************************************************************/


int __cdecl raise (
        int signum
        )
{
        _PHNDLR sigact;
        _PHNDLR *psigact;
        PEXCEPTION_POINTERS oldpxcptinfoptrs;
        int oldfpecode;
        int indx;

#ifdef _MT
        int siglock = 0;
        _ptiddata ptd;
#endif  /* _MT */

        switch (signum) {

                case SIGINT:
                        sigact = *(psigact = &ctrlc_action);
#ifdef _MT
                        siglock++;
#endif  /* _MT */
                        break;

                case SIGBREAK:
                        sigact = *(psigact = &ctrlbreak_action);
#ifdef _MT
                        siglock++;
#endif  /* _MT */
                        break;

                case SIGABRT:
                        sigact = *(psigact = &abort_action);
#ifdef _MT
                        siglock++;
#endif  /* _MT */
                        break;

                case SIGTERM:
                        sigact = *(psigact = &term_action);
#ifdef _MT
                        siglock++;
#endif  /* _MT */
                        break;

                case SIGFPE:
                case SIGILL:
                case SIGSEGV:
#ifdef _MT
                        ptd = _getptd();
                        sigact = *(psigact = &(siglookup( signum,
                            ptd->_pxcptacttab )->XcptAction));
#else  /* _MT */
                        sigact = *(psigact = &(siglookup( signum )->
                            XcptAction));
#endif  /* _MT */
                        break;

                default:
                        /*
                         * unsupported signal, return an error
                         */
                        return (-1);
        }

#ifdef _MT
        /*
         * if signum is one of the 'process-wide' signals (i.e., SIGINT,
         * SIGBREAK, SIGABRT or SIGTERM), assert _SIGNAL_LOCK.
         */
        if ( siglock )
                _mlock(_SIGNAL_LOCK);
#endif  /* _MT */

        /*
         * If the current action is SIG_IGN, just return
         */
        if ( sigact == SIG_IGN ) {

#ifdef _MT
                if ( siglock )
                        _munlock(_SIGNAL_LOCK);
#endif  /* _MT */
                return(0);
        }

        /*
         * If the current action is SIG_DFL, take the default action
         */
        if ( sigact == SIG_DFL ) {

#ifdef _MT
                if ( siglock )
                        _munlock(_SIGNAL_LOCK);
#endif  /* _MT */
                /*
                 * The current default action for all of the supported
                 * signals is to terminate with an exit code of 3.
                 *
                 */
                _exit(3);
        }

        /*
         * From here on, sigact is assumed to be a pointer to a user-supplied
         * handler.
         */

        /*
         * For signals which correspond to exceptions, set the pointer
         * to the EXCEPTION_POINTERS structure to NULL
         */
        if ( (signum == SIGFPE) || (signum == SIGSEGV) ||
            (signum == SIGILL) ) {
#ifdef _MT
                oldpxcptinfoptrs = ptd->_tpxcptinfoptrs;
                ptd->_tpxcptinfoptrs = NULL;
#else  /* _MT */
                oldpxcptinfoptrs = _pxcptinfoptrs;
                _pxcptinfoptrs = NULL;
#endif  /* _MT */

                 /*
                  * If signum is SIGFPE, also set _fpecode to
                  * _FPE_EXPLICITGEN
                  */
                if ( signum == SIGFPE ) {
#ifdef _MT
                        oldfpecode = ptd->_tfpecode;
                        ptd->_tfpecode = _FPE_EXPLICITGEN;
#else  /* _MT */
                        oldfpecode = _fpecode;
                        _fpecode = _FPE_EXPLICITGEN;
#endif  /* _MT */
                }
        }

        /*
         * Reset the action to SIG_DFL and call the user specified handler
         * routine.
         */
        if ( signum == SIGFPE )
                /*
                 * for SIGFPE, must reset the action for all of the floating
                 * point exceptions
                 */
                for ( indx = _First_FPE_Indx ;
                      indx < _First_FPE_Indx + _Num_FPE ;
                      indx++ )
                {
#ifdef _MT
                        ( (struct _XCPT_ACTION *)(ptd->_pxcptacttab) +
                          indx )->XcptAction = SIG_DFL;
#else  /* _MT */
                        _XcptActTab[indx].XcptAction = SIG_DFL;
#endif  /* _MT */
                }
        else
                *psigact = SIG_DFL;

#ifdef _MT
        if ( siglock )
                _munlock(_SIGNAL_LOCK);
#endif  /* _MT */

        if ( signum == SIGFPE )
                /*
                 * Special code to support old SIGFPE handlers which
                 * expect the value of _fpecode as the second argument.
                 */
#ifdef _MT
                (*(void (__cdecl *)(int,int))sigact)(SIGFPE,
                    ptd->_tfpecode);
#else  /* _MT */
                (*(void (__cdecl *)(int,int))sigact)(SIGFPE, _fpecode);
#endif  /* _MT */
        else
                (*sigact)(signum);

        /*
         * For signals which correspond to exceptions, restore the pointer
         * to the EXCEPTION_POINTERS structure.
         */
        if ( (signum == SIGFPE) || (signum == SIGSEGV) ||
            (signum == SIGILL) ) {
#ifdef _MT
                ptd->_tpxcptinfoptrs = oldpxcptinfoptrs;
#else  /* _MT */
                _pxcptinfoptrs = oldpxcptinfoptrs;
#endif  /* _MT */

                 /*
                  * If signum is SIGFPE, also restore _fpecode
                  */
                if ( signum == SIGFPE )
#ifdef _MT
                        ptd->_tfpecode = oldfpecode;
#else  /* _MT */
                        _fpecode = oldfpecode;
#endif  /* _MT */
        }

        return(0);
}


/***
*struct _XCPT_ACTION *siglookup(int signum) - look up exception-action table
*       entry for signal.
*
*Purpose:
*       Find the first entry int _XcptActTab[] whose SigNum field is signum.
*
*Entry:
*       int signum - C signal type (e.g., SIGINT)
*
*Exit:
*       If successful, pointer to the table entry. If no such entry, NULL is
*       returned.
*
*Exceptions:
*
*******************************************************************************/

#ifdef _MT

static struct _XCPT_ACTION * __cdecl siglookup (
        int signum,
        struct _XCPT_ACTION *pxcptacttab
        )
{
        struct _XCPT_ACTION *pxcptact = pxcptacttab;

#else  /* _MT */

static struct _XCPT_ACTION * __cdecl siglookup(int signum)
{
        struct _XCPT_ACTION *pxcptact = _XcptActTab;

#endif  /* _MT */
        /*
         * walk thru the _xcptactab table looking for the proper entry. note
         * that in the case where more than one exception corresponds to the
         * same signal, the first such instance in the table is the one
         * returned.
         */
#ifdef _MT

        while ( (pxcptact->SigNum != signum) &&
                (++pxcptact < pxcptacttab + _XcptActTabCount) ) ;

#else  /* _MT */

        while ( (pxcptact->SigNum != signum) &&
                (++pxcptact < _XcptActTab + _XcptActTabCount) ) ;

#endif  /* _MT */

#ifdef _MT
        if ( (pxcptact < (pxcptacttab + _XcptActTabCount)) &&
#else  /* _MT */
        if ( (pxcptact < (_XcptActTab + _XcptActTabCount)) &&
#endif  /* _MT */
             (pxcptact->SigNum == signum) )
                /*
                 * found a table entry corresponding to the signal
                 */
                return(pxcptact);
        else
                /*
                 * found no table entry corresponding to the signal
                 */
                return(NULL);
}

#ifdef _MT

/***
*int *__fpecode(void) - return pointer to _fpecode field of the tidtable entry
*       for the current thread
*
*Purpose:
*
*Entry:
*
*Exit:
*
*Exceptions:
*
*******************************************************************************/

int * __cdecl __fpecode (
        void
        )
{
        return( &(_getptd()->_tfpecode) );
}


/***
*void **__pxcptinfoptrs(void) - return pointer to _pxcptinfoptrs field of the
*       tidtable entry for the current thread
*
*Purpose:
*
*Entry:
*
*Exit:
*
*Exceptions:
*
*******************************************************************************/

void ** __cdecl __pxcptinfoptrs (
        void
        )
{
        return( &(_getptd()->_tpxcptinfoptrs) );
}

#endif  /* _MT */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
美国毛片一区二区| 婷婷夜色潮精品综合在线| 日韩无一区二区| 欧美午夜精品久久久| 色婷婷一区二区三区四区| 成人精品国产免费网站| 高清视频一区二区| 成人性生交大合| proumb性欧美在线观看| 91丝袜美腿高跟国产极品老师 | 欧美bbbbb| 免费人成精品欧美精品| 麻豆精品一区二区三区| 国产精品亚洲人在线观看| 国产福利一区二区三区视频在线| 国产传媒一区在线| av一二三不卡影片| 在线观看免费亚洲| 在线成人午夜影院| 2021国产精品久久精品| 亚洲国产成人在线| 亚洲综合一区二区| 免费在线成人网| 国产91精品久久久久久久网曝门| av激情成人网| 欧美久久久久中文字幕| 欧美精品一区二区三区高清aⅴ| 久久精品视频在线看| 亚洲美女视频在线观看| 男人的天堂久久精品| 懂色av一区二区夜夜嗨| 欧美日韩高清一区二区| 久久久久久久综合狠狠综合| 国产精品久久久久三级| 手机精品视频在线观看| 丁香桃色午夜亚洲一区二区三区| 9色porny自拍视频一区二区| 欧美精品色综合| 国产精品嫩草影院com| 日日欢夜夜爽一区| 92国产精品观看| 精品少妇一区二区三区免费观看| 亚洲人成亚洲人成在线观看图片| 日韩国产欧美三级| 日本韩国精品一区二区在线观看| 欧美一区二区观看视频| 亚洲综合在线观看视频| 国产麻豆精品久久一二三| 欧美日韩精品欧美日韩精品| 国产精品嫩草久久久久| 久久国产人妖系列| 欧美日韩免费在线视频| 国产精品五月天| 美日韩黄色大片| 欧美精品亚洲一区二区在线播放| 中文欧美字幕免费| 韩国女主播成人在线观看| 欧美色图激情小说| 亚洲欧洲中文日韩久久av乱码| 国产一区二区三区黄视频 | 日韩精品一区二区三区四区| 亚洲欧美日韩一区| 99在线热播精品免费| 久久久久综合网| 久久福利资源站| 5月丁香婷婷综合| 亚洲午夜久久久| 在线观看欧美日本| 一区二区三区中文免费| 91捆绑美女网站| 国产精品不卡视频| 成人妖精视频yjsp地址| 欧美国产激情二区三区| 大陆成人av片| 中文字幕一区二区三区精华液| 国产99久久久久久免费看农村| 精品美女一区二区| 国产一区二区女| 欧美精品一区二区精品网| 久久99九九99精品| 久久网这里都是精品| 狠狠色丁香婷综合久久| 久久久久久麻豆| 成人一级片网址| 亚洲免费av网站| 91久久人澡人人添人人爽欧美 | 欧美一级二级在线观看| 美国十次了思思久久精品导航| 欧美成人伊人久久综合网| 韩国欧美国产一区| 国产精品国产三级国产专播品爱网 | 国产高清在线精品| 中文字幕一区二区三区蜜月| 91丨九色porny丨蝌蚪| 亚洲综合免费观看高清完整版在线| 欧美视频精品在线观看| 美国精品在线观看| 国产精品久久久久精k8| 欧洲国产伦久久久久久久| 日韩高清在线电影| 久久亚洲一级片| 色吧成人激情小说| 蜜桃av噜噜一区二区三区小说| 日韩女优av电影| 成人午夜视频免费看| 亚洲精品美国一| 日韩三级中文字幕| a亚洲天堂av| 蜜臀av国产精品久久久久 | 亚洲午夜激情av| 精品国产123| 91麻豆国产精品久久| 免费成人av在线| 亚洲视频免费在线| 精品久久免费看| 欧美性受xxxx黑人xyx| 国产精品1区2区| 日韩主播视频在线| 亚洲欧洲国产专区| 久久久久久久久久久99999| 91成人免费在线视频| 国产精品伊人色| 日韩经典中文字幕一区| 亚洲欧美一区二区视频| 久久影院午夜论| 欧美妇女性影城| 91一区一区三区| 成人一区二区三区中文字幕| 日日夜夜精品视频免费| 一区二区在线看| 国产精品久久久久久久蜜臀 | 日本乱人伦一区| 国产不卡在线播放| 日本成人超碰在线观看| 亚洲午夜久久久久| 亚洲欧美另类图片小说| 国产欧美1区2区3区| 日韩视频免费观看高清在线视频| 欧美在线观看18| 色婷婷香蕉在线一区二区| 国产精品1区2区3区| 国产一区二区免费看| 黄网站免费久久| 久久精品理论片| 蜜臀av性久久久久蜜臀aⅴ四虎| 亚洲18色成人| 五月婷婷久久综合| 午夜电影一区二区三区| 亚洲成人动漫在线观看| 亚洲成人免费电影| 亚洲成人动漫精品| 三级一区在线视频先锋| 日韩精品91亚洲二区在线观看| 亚洲午夜激情网页| 天天影视色香欲综合网老头| 亚洲综合色噜噜狠狠| 一区二区三区av电影| 一区二区三区日韩欧美| 午夜精品免费在线观看| 亚洲大片精品永久免费| 天堂精品中文字幕在线| 日日夜夜免费精品| 久久99久久精品| 国产成人在线电影| 97久久精品人人爽人人爽蜜臀| 成人一区二区三区在线观看| 99久久免费精品高清特色大片| 91网站最新地址| 欧美成人a视频| 日韩午夜av一区| 国产欧美在线观看一区| 中文字幕亚洲一区二区va在线| 国产精品国产三级国产aⅴ入口| 亚洲视频在线一区| 日韩电影在线观看网站| 国产一区二区不卡老阿姨| eeuss鲁片一区二区三区在线观看| 色综合激情久久| 欧美一级高清大全免费观看| 久久你懂得1024| 亚洲一区二区欧美| 国产尤物一区二区在线| 日本精品视频一区二区三区| 欧美一二三区在线观看| 亚洲欧洲国产日韩| 捆绑调教美女网站视频一区| 成人精品免费视频| 欧美日韩色综合| 国产精品不卡视频| 另类小说一区二区三区| 99re这里只有精品首页| 日韩精品专区在线| 亚洲一区二区视频| 国产九色sp调教91| 欧美精品自拍偷拍动漫精品| 日本一区二区免费在线| 日韩电影在线一区| 在线精品视频一区二区三四| 久久精品夜夜夜夜久久| 国产黄人亚洲片|