📄 usrnfsd.c
字号:
/* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -