usrNtPassFs.c
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:
VxWorks
开发平台:
C/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.
- */
- /*
- DESCRIPTION
- User 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 failedn");
- return (ERROR);
- }
- sprintf (passName, "host:%s", fullExePath);
- /* Remove bootFile name at the end of the string */
- defPathEnd = strrchr (passName, '/');
- if (defPathEnd != NULL)
- *defPathEnd = ' ';
- ioDefPathSet (passName);
- return (OK);
- }