⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usrntpassfs.c

📁 IXP425的BSP代码
💻 C
字号:
/* usrNtPassFs.c - VxSim pass-through filesystem initialization *//* Copyright 2001-2002 Wind River Systems, Inc. *//*modification history--------------------01b,05apr02,hbh  Completed fix for SPR# 30368.01a,07sep01,hbh  written based on usrPassFs.c file. Fixed SPR 30368.   *//*DESCRIPTIONUser configurable pass-thorough filesystem intialization for VxSim.*//******************************************************************************** usrNtPassFsInit - initialize pass-through filesystem*/ STATUS usrNtPassFsInit (void)    {    IMPORT STATUS	ntPassFsInit ();    IMPORT void *	ntPassFsDevInit ();    IMPORT char		fullExePath[];    char		passName [MAX_FILENAME_LENGTH];    char *		defPathEnd;    if (ntPassFsInit (1) != OK)	return (ERROR);    if (ntPassFsDevInit ("host:") == NULL)	{	printf ("ntPassFsDevInit failed\n");	return (ERROR);	}    sprintf (passName, "host:%s", fullExePath);    /* Remove bootFile name at the end of the string */    defPathEnd = strrchr (passName, '/');    if (defPathEnd != NULL)    	*defPathEnd = '\0';    ioDefPathSet (passName);    return (OK);    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -