usrnfsd.c

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

C
55
字号
/* usrNfsd.c - Support for NFS server *//* Copyright 2001-2002 Wind River Systems, Inc. *//*modification history--------------------01b,20dec01,vvv  allow client and server to be built together 01a,06nov01,vvv  written*//*DESCRIPTIONThis file is used to include support for the NFS server. The contents of thisfile are included in the project configuration file when the componentINCLUDE_NFS_SERVER is defined. This file initializes the variable nfsMaxPathwhich uses the configuration parameter NFS_MAXPATH to set the maximum filepath length handled by the server. It also initializes the server by callingthe init routine.NOMANUAL*/#ifndef INCLUDE_NFSconst int nfsMaxPath = NFS_MAXPATH + 1;#endif/******************************************************************************** usrNfsdInit - initialize NFS server** This routine initializes the NFS server.** RETURNS: OK or ERROR** NOMANUAL*/STATUS usrNfsdInit (void)   {   if (nfsMaxPath < 1)       {       printf ("Error initializing NFS server, invalid NFS_MAXPATH\n");       return (ERROR);       }   if (nfsdInit (0, 0, 0, 0, 0, 0) == ERROR)       {       printf ("Error initializing NFS server\n");       return (ERROR);       }   return (OK);   }

⌨️ 快捷键说明

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