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

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

?? modulelib.c

?? vxworks的開發
?? C
?? 第 1 頁 / 共 3 頁
字號:
	if (objFree (moduleClassId, (char *) moduleId) != OK)	    return (ERROR);    return (OK);    }/******************************************************************************** moduleIdFigure - translate a module name or ID to a module ID** Some routines take either a module ID (an integer) or a module name.  This* routine determines whether the parameter is a module name or a module ID and* returns the module ID. ** RETURNS: A module ID (type MODULE_ID), or NULL.** NOMANUAL*/MODULE_ID moduleIdFigure    (    void * 	moduleNameOrId	/* module name or module ID */    )    {    MODULE_ID 	moduleId = NULL;	/* default is NULL */    /*     * Make sure we're not getting a NULL pointer, OBJ_VERIFY doesn't check     * for that.     */    if (moduleNameOrId == NULL)        return (NULL);        /* If moduleNameOrId is a moduleId, just return it. */        if (OBJ_VERIFY (moduleNameOrId, moduleClassId) == OK)	{	return ((MODULE_ID) moduleNameOrId);	}        /*     * moduleNameOrId isn't a legitmate object - see if it's the name     * of a module.       */    if ((moduleId = moduleFindByName (moduleNameOrId)) == NULL)	{	/*	 * It's neither an object module nor a module name.  Set errno and	 * return NULL.	 */	errnoSet (S_moduleLib_MODULE_NOT_FOUND);	return (NULL);	}    else        return (moduleId);    }/******************************************************************************** moduleShow - show the current status for all the loaded modules** This routine displays a list of the currently loaded modules and* some information about where the modules are loaded.* * The specific information displayed depends on the format of the object* modules.  In the case of a.out and ECOFF object modules, moduleShow() displays* the start of the text, data, and BSS segments.* * If moduleShow() is called with no arguments, a summary list of all* loaded modules is displayed.  It can also be called with an argument,* <moduleNameOrId>, which can be either the name of a loaded module or a* module ID.  If it is called with either of these, more information* about the specified module will be displayed.* * RETURNS: OK or ERROR.** SEE ALSO:* .pG "Target Shell,"* windsh,* .tG "Shell"*/STATUS moduleShow    (    char * 		moduleNameOrId,	/* name or ID of the module to show */    int			options		/* display options */    )    {    MODULE_ID		moduleId;    static char *	moduleShowHdr [] = {"\n\MODULE NAME     MODULE ID  GROUP #    TEXT START DATA START  BSS START\n\--------------- ---------- ---------- ---------- ---------- ----------\n"};    /*     * If moduleNameOrId isn't NULL, translate it into a module ID, and     * display information about that specific module.     * If it is NULL, set moduleId to NULL, and display info about all     * loaded modules.     */    if (moduleNameOrId != NULL)	{        if ((moduleId = moduleIdFigure (moduleNameOrId)) == NULL)	    {	    /* moduleIdFigure couldn't find a match */	    printf ("Module not found\n");	    return (ERROR);	    }	}    else        moduleId = NULL;    /* print the module display header */    printf ("%s", moduleShowHdr [MODULE_A_OUT]);    /*     * If moduleId is a specific module ID, print information about that     * specific module.  Otherwise, print the summary.     */    if (moduleId != NULL)	{	/*	 * We've got a specific module to show.  If no options are specified,	 * then display all information, otherwise use what's specified.	 */        moduleDisplayGeneric (moduleId,			      options == 0 ? MODDISPLAY_ALL : options);	}    else        {	/* We need to display all the modules. */	semTake (moduleListSem, WAIT_FOREVER);	dllEach (&moduleList, moduleDisplayGeneric,		 options | MODDISPLAY_IS_DLL_NODE);	semGive (moduleListSem);	}    /*     * There's nothing that can fail - always return OK     */    return (OK);    }/******************************************************************************** moduleDisplayGeneric - support routine to show stats for an object module** This routine is normally called via a dllEach() call from moduleShow.* It prints a single line of information about the specified module.* Note that the parameter is _not_ of type MODULE_ID, but rather is a* DL_NODE *.* * RETURNS: TRUE, or FALSE if display should be aborted.* * NOMANUAL*/LOCAL STATUS moduleDisplayGeneric    (    MODULE_ID	moduleId,	/* pointer to the module node to display */    UINT	options		/* display options */    )    {    static char	moduleShowFmt[] = "%15s %#10x %10d %#10x %#10x %#10x\n";    MODULE_SEG_INFO segInfo;    /* segment information */    /* If MODDISPLAY_IS_DLL_NODE is set, need to convert node to module id */    if (options & MODDISPLAY_IS_DLL_NODE)        moduleId = NODE_TO_ID (moduleId);    /* If HIDDEN_MODULE is set, return OK without displaying anything */    if (moduleId->flags & HIDDEN_MODULE)        return (TRUE);    /* Return FALSE if we can't get information about the module segments */    if (moduleSegInfoGet (moduleId, &segInfo) != OK)	{	printErr ("Can\'t get information about module %#x\n", moduleId);        return (FALSE);	}    /*     * Print out the module summary line.     * We only want to print the file name, not the entire path.     */    printf (moduleShowFmt, moduleId->name, moduleId,	    moduleId->group,	    segInfo.textAddr,	    segInfo.dataAddr,	    segInfo.bssAddr);    /*     * Print out all the optional information     */    if (options & MODDISPLAY_CODESIZE)	{	/* Print specific information about the size of module's segments */	printf ("\nSize of text segment:   %8d\n", segInfo.textSize);	printf ("Size of data segment:   %8d\n", segInfo.dataSize);	printf ("Size of bss  segment:   %8d\n", segInfo.bssSize);	printf ("Total size          :   %8d\n\n",		segInfo.textSize + segInfo.dataSize		+ segInfo.bssSize);	}    /*     * Return TRUE to continue displaying modules     */    return (TRUE);    }/******************************************************************************** moduleSegAdd - add a segment to a module* * This routine adds segment information to an object module descriptor.  The* specific information recorded depends on the format of the object module.* * The <type> parameter is one of the following:* .iP SEGMENT_TEXT 25* The segment is for TEXT.* .iP SEGMENT_DATA* The segment is for DATA* .iP SEGMENT_BSS* The segment is for BSS* * NOMANUAL* * RETURNS: OK, or ERROR.*/STATUS moduleSegAdd    (    MODULE_ID	moduleId,	/* module to add segment to*/    int		type,		/* segment type */    void *	location,	/* segment address */    int		length,		/* segment length */    int		flags		/* segment flags */    )    {    SEGMENT_ID	seg;    /*     * Validate module id     */    if (OBJ_VERIFY (moduleId, moduleClassId) != OK)	{	return (ERROR);	}	        /*     * Allocate space for the segment record     */    seg = (SEGMENT_ID) malloc (sizeof (*seg));    if (seg == NULL)	{        return (ERROR);	}    /*     * Set the fields of the segment record     */    seg->address	= location;    seg->size		= length;    seg->type		= type;    seg->flags		= flags;    seg->checksum	= checksum (location, length);    /*     * Add the segment to the module's segment list     */    semTake (moduleSegSem, WAIT_FOREVER);    dllAdd (&moduleId->segmentList, (DL_NODE *) seg);    semGive (moduleSegSem);    return (OK);    }/******************************************************************************** moduleSegGet - get (delete and return) the first segment from a module* * This routine returns information about the first segment of a module* descriptor, and then deletes the segment from the module.* * RETURNS: A pointer to the segment ID, or NULL if the segment list is empty.** SEE ALSO: moduleSegFirst()*/SEGMENT_ID moduleSegGet    (    MODULE_ID 	moduleId		/* module to get segment from */    )    {    SEGMENT_ID	segmentId;    /*     * Validate module id     */    if (OBJ_VERIFY (moduleId, moduleClassId) != OK)	{	return (NULL);	}	        semTake (moduleSegSem, WAIT_FOREVER);    segmentId = (SEGMENT_ID) dllGet (&moduleId->segmentList);    semGive (moduleSegSem);    return (segmentId);    }/******************************************************************************** moduleSegFirst - find the first segment in a module* * This routine returns information about the first segment of a module* descriptor.* * RETURNS: A pointer to the segment ID, or NULL if the segment list is empty.** SEE ALSO: moduleSegGet()*/SEGMENT_ID moduleSegFirst    (    MODULE_ID 	moduleId		/* module to get segment from */    )    {    SEGMENT_ID	newSegId;    /*     * Validate module id     */    if (OBJ_VERIFY (moduleId, moduleClassId) != OK)	{	return (NULL);	}    semTake (moduleSegSem, WAIT_FOREVER);    newSegId = (SEGMENT_ID) DLL_FIRST (&moduleId->segmentList);    semGive (moduleSegSem);    return (newSegId);    }/******************************************************************************** moduleSegNext - find the next segment in a module* * This routine returns the segment in the list immediately following* <segmentId>.* * RETURNS: A pointer to the segment ID, or NULL if there is no next segment.*/SEGMENT_ID moduleSegNext    (    SEGMENT_ID segmentId	/* segment whose successor is to be found */    )    {    SEGMENT_ID	newSegId;    semTake (moduleSegSem, WAIT_FOREVER);    newSegId = (SEGMENT_ID) DLL_NEXT (segmentId);    semGive (moduleSegSem);    return (newSegId);    }/******************************************************************************** moduleSegEach - call a routine to examine each segment in a module* * This routine calls a user-supplied routine to examine each segment* associated with a given module.  The routine should be declared as* follows:* * .CS*     BOOL routine*         (*         SEGMENT_ID 	 segmentId,   /@ The segment to examine @/*         MODULE_ID	 moduleId,    /@ The associated module @/*         int		 userArg      /@ An arbitrary user-supplied argument @/*         )* .CE* * The user routine should return TRUE if moduleSegEach() is to continue* calling it for the other segments, or FALSE if moduleSegEach() should* exit.* * RETURNS: NULL if all segments were examined, or the segment ID that* caused the support routine to return FALSE.* * NOMANUAL*/SEGMENT_ID moduleSegEach    (    MODULE_ID	moduleId,	/* The module to examine */    FUNCPTR 	routine,	/* The routine to call */    int		userArg		/* arbitrary user-supplied argument */    )    {    SEGMENT_ID	segmentId;    semTake (moduleSegSem, WAIT_FOREVER);    for (segmentId = moduleSegFirst (moduleId);	 segmentId != NULL;	 segmentId = moduleSegNext (segmentId))	{	if ((*routine) (segmentId, moduleId, userArg) == FALSE)	    {	    semGive (moduleSegSem);	    return (segmentId);	    }	}    semGive (moduleSegSem);    return (NULL);    }    /******************************************************************************** moduleCreateHookAdd - add a routine to be called when a module is added* * This routine adds a specified routine to a list of routines to be* called when a module is created.  The specified routine should be* declared as follows:* .CS*     void moduleCreateHook*         (*         MODULE_ID  moduleId  /@ the module ID @/*         )* .CE* * This routine is called after all fields of the module ID have been filled in.* * NOTE:* Modules do not have information about their object segments when they are* created.  This information is not available until after the entire load* process has finished.* * RETURNS: OK or ERROR.* * SEE ALSO: moduleCreateHookDelete()*/STATUS moduleCreateHookAdd    (    FUNCPTR     moduleCreateHookRtn  /* routine called when module is added */    )    {    MODCREATE_HOOK * pHook;      	 /* pointer to hook node */    if (!moduleCreateHookInitialized)	{	dllInit (&moduleCreateHookList);	moduleCreateHookInitialized = TRUE;	}    /* allocate and initialize hook node */    if ((pHook = (MODCREATE_HOOK *) malloc (sizeof (MODCREATE_HOOK)))	== NULL)	{	return (ERROR);	}    pHook->func = moduleCreateHookRtn;    /* add it to end of hook list */    semTake (moduleCreateHookSem, WAIT_FOREVER);    dllAdd (&moduleCreateHookList, &pHook->node);    semGive (moduleCreateHookSem);    return (OK);    }/******************************************************************************

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美丰满少妇xxxbbb| 视频一区视频二区中文字幕| 国产精品一区久久久久| 久久久午夜精品| 成人夜色视频网站在线观看| 国产欧美一区二区精品忘忧草 | 亚洲精品一区二区三区在线观看| 日本中文在线一区| 精品少妇一区二区三区视频免付费 | 精品一区二区成人精品| 国产清纯白嫩初高生在线观看91| 国产ts人妖一区二区| 亚洲精品一二三区| 欧美日韩国产在线观看| 蜜臀av性久久久久蜜臀av麻豆| 91在线观看美女| 亚洲人成在线播放网站岛国| 欧美日韩国产首页| 久久99精品久久久| 中文字幕一区二区三区四区不卡 | 亚洲激情一二三区| 欧美日韩在线播放三区四区| 蜜桃av一区二区在线观看| 久久精品视频一区| 日本高清不卡视频| 久久99国产精品久久99果冻传媒 | 亚洲精品综合在线| 日韩三级在线观看| 91在线视频在线| 日韩av中文字幕一区二区三区 | 在线视频欧美精品| 国产一区激情在线| 亚洲综合色丁香婷婷六月图片| 日韩欧美色综合网站| 99精品国产视频| 麻豆91在线观看| 一区二区三区日韩精品| 久久影音资源网| 欧美夫妻性生活| 99视频有精品| 国产一区二区免费看| 亚洲一区二区不卡免费| 中文字幕巨乱亚洲| 欧美一级爆毛片| 欧美日韩一卡二卡三卡| 成人av资源在线| 久久国产精品99久久久久久老狼 | 精品视频一区二区不卡| eeuss鲁片一区二区三区 | 国产v日产∨综合v精品视频| 日本va欧美va欧美va精品| 一级女性全黄久久生活片免费| 亚洲国产精品成人久久综合一区| 这里只有精品免费| 精品视频在线看| 色悠悠久久综合| av中文一区二区三区| 国产高清成人在线| 激情图片小说一区| av一二三不卡影片| 国产盗摄精品一区二区三区在线| 麻豆专区一区二区三区四区五区| 亚洲成av人在线观看| 一级女性全黄久久生活片免费| 国产精品伦理在线| wwwwxxxxx欧美| 婷婷综合另类小说色区| 国产精品丝袜在线| 久久日韩粉嫩一区二区三区 | 日韩黄色小视频| 亚洲一区二区精品久久av| 一卡二卡欧美日韩| 亚洲伊人伊色伊影伊综合网 | 偷拍一区二区三区四区| 亚洲自拍都市欧美小说| 亚洲国产精品一区二区久久恐怖片| 中文字幕欧美一| 自拍偷拍亚洲激情| 亚洲综合偷拍欧美一区色| 亚洲一区二区四区蜜桃| 亚洲大片精品永久免费| 日韩精品亚洲专区| 韩国欧美国产1区| 国产精品一区二区黑丝| 国产成人精品影视| 91麻豆免费观看| 在线免费观看视频一区| 色婷婷一区二区三区四区| 欧美在线色视频| 在线成人av网站| 精品久久久久久久久久久久久久久久久 | 麻豆精品视频在线| 韩国欧美国产一区| 不卡视频一二三四| 欧美日韩一区 二区 三区 久久精品 | 午夜精品视频在线观看| 日本最新不卡在线| 国产成人av电影在线播放| 波多野结衣亚洲| 欧美色图第一页| 精品久久99ma| 中文字幕制服丝袜一区二区三区 | 91搞黄在线观看| 91精品国产综合久久久久久漫画 | 久久久99久久| 亚洲激情校园春色| 久久99国产精品久久99 | 国产大陆a不卡| 91丨九色丨蝌蚪丨老版| 91麻豆精品国产91| 国产精品国产精品国产专区不蜜| 一区二区三区四区高清精品免费观看| 日本伊人色综合网| 成人久久18免费网站麻豆| 欧美亚洲综合另类| 国产欧美在线观看一区| 亚洲一区二三区| 春色校园综合激情亚洲| 欧美日韩电影在线播放| 亚洲摸摸操操av| 亚洲人成精品久久久久| 成人综合在线观看| 日本丰满少妇一区二区三区| 日韩午夜在线观看| 国产精品麻豆欧美日韩ww| 免费在线观看一区| 91老司机福利 在线| 337p粉嫩大胆噜噜噜噜噜91av | 日韩午夜在线观看视频| 亚洲欧美视频在线观看| 青青国产91久久久久久 | 91麻豆精品国产91久久久 | 亚洲 欧美综合在线网络| 99精品国产99久久久久久白柏| 欧美精品国产精品| 一区二区三区精品视频在线| 国产成人精品免费一区二区| 欧美一级片在线观看| 亚洲国产日韩a在线播放性色| 国产成人在线看| 精品国产制服丝袜高跟| 午夜av区久久| 在线观看免费一区| 亚洲手机成人高清视频| 国产精品影视天天线| 日韩一区二区在线看| 亚洲成av人在线观看| 99re热视频这里只精品| 国产精品初高中害羞小美女文| 国产精品自拍三区| 久久久久久久综合| 国产一区二区伦理片| 精品国产乱码久久久久久免费 | 久久人人97超碰com| 秋霞影院一区二区| 欧美一级一级性生活免费录像| 亚洲综合色在线| 欧洲亚洲国产日韩| 日韩色在线观看| 亚洲精品在线三区| 日本va欧美va欧美va精品| 欧美综合久久久| 专区另类欧美日韩| 99久久婷婷国产| 亚洲少妇屁股交4| 色综合天天在线| 亚洲精品欧美综合四区| 色老汉一区二区三区| 亚洲综合久久久| 欧美精三区欧美精三区| 人妖欧美一区二区| 亚洲精品一区二区三区影院| 精品一区二区三区在线播放视频 | 国产一区二区精品久久| 久久婷婷成人综合色| 国产乱码一区二区三区| 国产精品情趣视频| 日本精品免费观看高清观看| 一级中文字幕一区二区| 制服丝袜av成人在线看| 激情小说亚洲一区| 精品av综合导航| 成人手机在线视频| 亚洲另类在线一区| 91精品国产色综合久久不卡蜜臀| 乱中年女人伦av一区二区| 久久久久国产免费免费| 成人黄页在线观看| 麻豆国产欧美一区二区三区| 欧美日本韩国一区二区三区视频 | 日本视频一区二区| 精品国产99国产精品| 国产成人啪午夜精品网站男同| 自拍偷拍国产精品| 91精品国产色综合久久| 国产精品一区二区在线看| 亚洲美女淫视频| 精品美女一区二区| 在线视频你懂得一区| 麻豆视频一区二区|