usrntpassfs.c

来自「IXP425的BSP代码」· C语言 代码 · 共 51 行

C
51
字号
/* 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 + =
减小字号Ctrl + -
显示快捷键?