亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? nfslib.c

?? Tornado平臺(tái)下
?? C
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
** nfsExportRead - get list of a host's exported file systems** This routine gets the exported file systems of a specified host and the groups* that are allowed to mount them.** After calling this routine, the export list must be free'd by calling* nfsExportFree.** RETURNS: OK or ERROR.** NOMANUAL*/STATUS nfsExportRead    (    char *hostName,     /* host machine for which to show exports */    exports *pExports    )    {    bzero ((char *) pExports, sizeof (*pExports));    return (nfsClientCall (hostName, MOUNTPROG, MOUNTVERS, MOUNTPROC_EXPORT,			   xdr_void, (char *) NULL,			   xdr_exports, (char *) pExports));    }/********************************************************************************* nfsExportFree - get list of a host's exported file systems** This routine frees the list of exported file systems returned by* nfsExportRead.  It must be called after calling nfsExportRead, if* nfsExportRead returns OK.** RETURNS: OK** NOMANUAL*/STATUS nfsExportFree    (    exports *pExports    )    {    clntudp_freeres (taskRpcStatics->nfsClientCache->client, xdr_exports,		     (caddr_t) pExports);    return (OK);    }/********************************************************************************* nfsHelp - display the NFS help menu** This routine displays a summary of NFS facilities typically called from* the shell:* .CS*     nfsHelp                       Print this list*     netHelp                       Print general network help list*     nfsMount "host","filesystem"[,"devname"]  Create device with*                                     file system/directory from host*     nfsUnmount "devname"          Remove an NFS device*     nfsAuthUnixShow               Print current UNIX authentication*     nfsAuthUnixPrompt             Prompt for UNIX authentication*     nfsIdSet id		    Set user ID for UNIX authentication*     nfsDevShow                    Print list of NFS devices*     nfsExportShow "host"          Print a list of NFS file systems which*                                     are exported on the specified host*     mkdir "dirname"               Create directory*     rm "file"                     Remove file**     EXAMPLE:  -> hostAdd "wrs", "90.0.0.2"*               -> nfsMount "wrs","/disk0/path/mydir","/mydir/"*               -> cd "/mydir/"*               -> nfsAuthUnixPrompt     /@ fill in user ID, etc.     @/*               -> ls                    /@ list /disk0/path/mydir    @/*               -> copy < foo            /@ copy foo to standard out  @/*               -> ld < foo.o            /@ load object module foo.o  @/*               -> nfsUnmount "/mydir/"  /@ remove NFS device /mydir/ @/* .CE** RETURNS: N/A*/void nfsHelp (void)    {    static char *help_msg [] ={"nfsHelp                       Print this list","netHelp                       Print general network help list","nfsMount \"host\",\"filesystem\"[,\"devname\"]  Create device with","                                file system/directory from host","nfsUnmount \"devname\"          Remove an NFS device","nfsAuthUnixShow               Print current UNIX authentication","nfsAuthUnixPrompt             Prompt for UNIX authentication","nfsIdSet id                   Set user ID for UNIX authentication","nfsDevShow                    Print list of NFS devices","nfsExportShow \"host\"          Print a list of NFS file systems which","                                are exported on the specified host","mkdir \"dirname\"               Create directory","rm \"file\"                     Remove file","","EXAMPLE:  -> hostAdd \"wrs\", \"90.0.0.2\"","          -> nfsMount \"wrs\",\"/disk0/path/mydir\",\"/mydir/\"","          -> cd \"/mydir/\"","          -> nfsAuthUnixPrompt     /* fill in user ID, etc. *","          -> ls                    /* list /disk0/path/mydir *","          -> copy < foo            /* copy foo to standard out *","          -> ld < foo.o            /* load object module foo.o *","          -> nfsUnmount \"/mydir/\"  /* remove NFS device /mydir/ *",};    FAST int ix;    for (ix = 0; ix < NELEMENTS(help_msg); ix++)	printf ("%s\n", help_msg [ix]);    printf ("\n");    }/********************************************************************************* nfsExportShow - display the exported file systems of a remote host** This routine displays the file systems of a specified host and the groups* that are allowed to mount them.** EXAMPLE* .CS*    -> nfsExportShow "wrs"*    /d0               staff*    /d1               staff eng*    /d2               eng*    /d3*    value = 0 = 0x0* .CE** RETURNS: OK or ERROR.*/STATUS nfsExportShow    (    char *hostName      /* host machine to show exports for */    )    {    exports nfsExports;    if (hostName == NULL)        {        errnoSet (S_hostLib_INVALID_PARAMETER);        return (ERROR);        }    if (nfsExportRead (hostName, &nfsExports) != OK)	return (ERROR);    if (nfsExports)	nfsExportPrint (nfsExports);    return (nfsExportFree (&nfsExports));    }/********************************************************************************* nfsLookUpByName - looks up a remote file** This routine returns information on a given file.* It takes the host name, mount handle, and file name, and returns the* file handle of the file and the file's attributes in pDirOpRes, and* the file handle of the directory that the file resides in in pDirHandle.** If the file name (directory path or filename itself) contains a symbolic* link, this routine changes the file name to incorporate the name of the link.** RETURNS:  OK | ERROR | FOLLOW_LINK,*	    if FOLLOW_LINK, then fileName contains the name of the link** NOMANUAL*/int nfsLookUpByName    (    char        *hostName,    char        *fileName,      /* name is changed if symbolic link */    nfs_fh      *pMountHandle,                                /* these args are returned to calling routine */    FAST diropres *pDirOpRes,   /*    pointer to directory operation results */    nfs_fh      *pDirHandle     /*    pointer to file's directory file handle */    )    {    diropargs file;    int nameCount = 0;    char *nameArray  [MAX_DIRNAMES]; /* ptrs to individual dir/file names				      * in path name */    char *nameBuf;                   /* buffer for individual dir/file names */    char *newLinkName;               /* new file name if file is symb link */    char *linkName;                  /* name of link file */    char *currentDir;                /* current dir for the look up's				      * that have been done */    if (nfsInit () != OK)	return (ERROR);    if ((nameBuf = (char *) alloca (nfsMaxPath)) == NULL)	return (ERROR);    if ((newLinkName = (char *) alloca (nfsMaxPath)) == NULL)	return (ERROR);    if ((linkName = (char *) alloca (nfsMaxPath)) == NULL)	return (ERROR);    if ((currentDir = (char *) alloca (nfsMaxPath)) == NULL)	return (ERROR);    bzero ((char *) &file, sizeof (file));    /* parse file name, enter each directory name in the path into the array */    pathParse (fileName, nameArray, nameBuf);    bcopy ((char *) pMountHandle, (char *) &file.dir, sizeof (nfs_fh));    bcopy ((char *) pMountHandle, (char *) pDirHandle, sizeof (nfs_fh));    /* start traversing file name */    while ((nameCount < MAX_DIRNAMES) && (nameArray [nameCount] != NULL))	{	file.name = nameArray [nameCount];	if (nfsClientCall (hostName, NFS_PROGRAM, NFS_VERSION, NFSPROC_LOOKUP,				    xdr_diropargs, (char *) &file,				    xdr_diropres, (char *) pDirOpRes) == ERROR)	    {	    return (ERROR);	    }	if (pDirOpRes->status != NFS_OK)	    {	    nfsErrnoSet (pDirOpRes->status);	    return (ERROR);	    }	if (pDirOpRes->diropres_u.diropres.attributes.type == NFDIR)	    {	    /* save directory information */	    /* Store the directory handle of the second to last entry	     * in the path name array.  This is the directory where the	     * file in question (or directory in question) lives.	     */	    if ((nameCount < MAX_DIRNAMES - 1)	        && (nameArray [nameCount + 1] != NULL))	        {		bcopy ((char *) &pDirOpRes->diropres_u.diropres.file,		       (char *) pDirHandle, sizeof (nfs_fh));	        }	    /* copy directory handle for the next nfsClientCall */	    bcopy ((char *) &pDirOpRes->diropres_u.diropres.file,		   (char *) &file.dir, sizeof (nfs_fh));	    }	else if (pDirOpRes->diropres_u.diropres.attributes.type == NFLNK)	    {	    /* symbolic link, get real path name */	    if (nfsLinkGet (hostName, &pDirOpRes->diropres_u.diropres.file,			    linkName) == ERROR)		{		return (ERROR);		}	    /* Change fileName to include name of link.	     * Concatenate the directory name, link name,	     * and rest of the path name following the link.	     */	    *currentDir = EOS;	    if ((pathBuild (nameArray, &(nameArray [nameCount]),			    currentDir) == ERROR)		|| (pathCat (currentDir, linkName, newLinkName) == ERROR)		|| (pathBuild (&(nameArray [++nameCount]), (char **) NULL,			       newLinkName) == ERROR))		{		return (ERROR);		}	    pathCondense (newLinkName);	    (void) strcpy (fileName, newLinkName);	    return (FOLLOW_LINK);	    }	nameCount++;	/* look up next directory */	} /* while */    return (OK);    }/********************************************************************************* nfsFileRemove - remove a file** RETURNS: OK or ERROR** NOMANUAL*/STATUS nfsFileRemove    (    char *      hostName,    nfs_fh *    pMountHandle,   /* file handle of mount device */    char *      fullFileName    )    {    u_int	nfsProc;    diropres	dirResults;    diropargs	where;    nfsstat	status;    int         retVal;    char	fileName [NAME_MAX + 1];    char *	dirName;    nfs_fh	dirHandle;    if (nfsInit () != OK)	return (ERROR);    if (strlen (fullFileName) >= nfsMaxPath)	return (ERROR);    if ((dirName = (char *) alloca (nfsMaxPath)) == NULL)	return (ERROR);    bzero ((char *) &dirResults, sizeof (dirResults));    bzero ((char *) &status, sizeof (status));    pathSplit (fullFileName, dirName, fileName);    /*     * get info on the file to be removed, such as the handle of its directory     * and its file type (so we know whether to delete a file or directory)     *     * note:  some file servers will indeed delete a file with the     *        NFSPROC_RMDIR command     */    retVal = nfsLookUpByName (hostName, fullFileName, pMountHandle,			 &dirResults, &dirHandle);    if (retVal == FOLLOW_LINK)        {        return (FOLLOW_LINK);        }    else        if (retVal == ERROR)            return (ERROR);    bcopy ((char *) &dirHandle, (char *) &where.dir, sizeof (nfs_fh));    where.name = fileName;    switch (dirResults.diropres_u.diropres.attributes.type)	{	case NFREG:			/* remove regular file */	case NFLNK:			/* remove symbolic link */	    nfsProc = NFSPROC_REMOVE;	    break;	case NFDIR:			/* remove directory */	    nfsProc = NFSPROC_RMDIR;	    break;	default:	    errnoSet (S_nfsLib_NFS_INAPPLICABLE_FILE_TYPE);	    return (ERROR);	}    if (nfsClientCall (hostName, NFS_PROGRAM, NFS_VERSION, nfsProc,			    xdr_diropargs, (char *) &where,			    xdr_nfsstat, (char *) &status) == ERROR)	{	return (ERROR);	}    if (status != NFS_OK)	{	nfsErrnoSet (status);	return (ERROR);	}    return (OK);    }/********************************************************************************* nfsRename - rename a file** RETURNS: OK or ERROR** NOMANUAL*/STATUS nfsRename    (    char *      hostName,    nfs_fh *    pMountHandle,    char *      oldName,    nfs_fh *    pOldDirHandle,    char *      newName    )    {    diropres	dirResults;    renameargs	renameArgs;    nfsstat	status;    char	newFileName [NAME_MAX + 1];    char	oldFileName [NAME_MAX + 1];    char *	newDirName;    char *	oldDirName;    nfs_fh	dummyDirHandle;    if (nfsInit () != OK)	return (ERROR);    if ((strlen (oldName) >= nfsMaxPath) || (strlen (newName) >= nfsMaxPath))	{	errnoSet (S_ioLib_NAME_TOO_LONG);	return (ERROR);	}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91色婷婷久久久久合中文| 亚洲aⅴ怡春院| 欧美精品一区视频| 欧美男同性恋视频网站| 欧美视频一区二区在线观看| 色哟哟一区二区在线观看 | 欧美在线看片a免费观看| 99久久精品国产精品久久| 成人开心网精品视频| 成人午夜激情在线| 91精品福利视频| 欧美丰满高潮xxxx喷水动漫| 日韩久久久精品| 日本一区二区免费在线观看视频 | 91色乱码一区二区三区| 97久久超碰精品国产| 91激情五月电影| 日韩三级高清在线| 国产三级欧美三级| 一区二区三区国产精品| 免费美女久久99| 国产精品一区二区免费不卡| 97久久久精品综合88久久| 欧美老人xxxx18| 日本一区二区三区久久久久久久久不 | 国产a精品视频| 在线观看一区日韩| 日韩欧美精品三级| 亚洲人精品午夜| 视频在线观看一区二区三区| 国产一区在线观看麻豆| 在线国产亚洲欧美| 国产欧美视频一区二区| 亚洲国产人成综合网站| 国产乱码精品一区二区三区五月婷| 成人精品国产一区二区4080| 欧美日韩你懂得| 国产精品美女一区二区在线观看| 亚洲永久免费av| 国产一区二区三区在线观看免费视频 | 丝袜美腿亚洲综合| 成人免费视频一区| 日韩欧美黄色影院| 亚洲免费观看高清完整版在线观看 | 亚洲人123区| 奇米一区二区三区| 色综合久久88色综合天天免费| 日韩午夜激情视频| 亚洲黄色片在线观看| 国内国产精品久久| 91精品国产乱| 偷偷要91色婷婷| 在线免费观看日本欧美| 国产精品高潮呻吟久久| 精品在线播放免费| 日韩一区二区影院| 日日夜夜精品视频免费| 91免费在线播放| 久久精品水蜜桃av综合天堂| 美女视频免费一区| 在线不卡中文字幕| 亚洲国产精品一区二区久久| 91社区在线播放| 国产精品福利在线播放| 国产成人免费视频一区| 精品国产91乱码一区二区三区 | 国产无遮挡一区二区三区毛片日本| 亚洲一区二区三区在线播放| 成人av网站免费| 久久久久久**毛片大全| 精品一区二区三区免费播放| 日韩一级片在线播放| 免费在线观看日韩欧美| 欧美一区二区三区色| 久久精品国产免费| 精品成人一区二区三区| 国产精品香蕉一区二区三区| 欧美精品一区二区久久婷婷| 国产精品一区免费视频| 国产欧美一区二区三区沐欲| 国产.精品.日韩.另类.中文.在线.播放| 欧美成人女星排名| 国产宾馆实践打屁股91| 国产精品家庭影院| 在线视频中文字幕一区二区| 亚洲妇女屁股眼交7| 欧美一级高清片在线观看| 日本aⅴ亚洲精品中文乱码| 精品处破学生在线二十三| 成人午夜激情影院| 一区二区三区在线免费| 欧美日韩一区二区在线观看| 日本不卡一二三| 国产女人aaa级久久久级 | 中文一区一区三区高中清不卡| www.欧美精品一二区| 亚洲一区二区四区蜜桃| 精品国产欧美一区二区| 成人黄色av网站在线| 亚洲不卡在线观看| 久久久影院官网| 日本高清不卡aⅴ免费网站| 免费在线一区观看| 亚洲欧洲精品一区二区精品久久久| 欧美在线视频全部完| 久久99热这里只有精品| 中文字幕人成不卡一区| 在线成人高清不卡| 成人黄色a**站在线观看| 一区二区免费在线| 欧美大片在线观看| 不卡的av在线| 日本不卡一区二区| 综合自拍亚洲综合图不卡区| 日韩一区二区精品| 在线欧美一区二区| 极品美女销魂一区二区三区| 亚洲激情自拍偷拍| 国产午夜精品久久久久久久| 91麻豆精品国产91久久久久久久久| 国产精品白丝jk黑袜喷水| 一区av在线播放| 国产农村妇女毛片精品久久麻豆 | 青青青伊人色综合久久| 国产精品第一页第二页第三页| 欧美一区二区三区啪啪| 91极品视觉盛宴| 不卡一区中文字幕| 国产乱人伦偷精品视频不卡| 免费高清视频精品| 亚洲精品成人少妇| 国产精品久久久久久久久免费丝袜| 欧美一区二区三区四区久久| 欧美在线一二三四区| 色综合激情五月| 成人av资源在线观看| 麻豆成人在线观看| 日韩黄色片在线观看| 亚洲国产精品一区二区www在线| 亚洲欧美日韩在线不卡| 国产欧美日本一区视频| 精品国产伦一区二区三区免费 | 国产成人精品网址| 久久精品国产色蜜蜜麻豆| 日本网站在线观看一区二区三区| 亚洲综合色网站| 亚洲国产欧美一区二区三区丁香婷 | 日韩精品一区二区三区蜜臀| 欧美色图天堂网| 一本大道久久a久久综合婷婷| 波多野结衣91| 99久久精品国产一区| 99re成人在线| 色综合av在线| 欧美色爱综合网| 欧美一区二区三区喷汁尤物| 日韩欧美一区中文| 2020国产成人综合网| 久久综合九色综合欧美98 | 欧美羞羞免费网站| 欧美熟乱第一页| 欧美一区二区三区在线视频| 日韩精品一区二区三区视频| wwwwww.欧美系列| 中文字幕一区二区三区不卡在线| 亚洲三级在线免费观看| 亚洲国产你懂的| 香蕉久久一区二区不卡无毒影院| 日韩高清在线不卡| 国产自产高清不卡| av亚洲精华国产精华| 91精品办公室少妇高潮对白| 欧美三级电影在线看| 欧美一区二区在线播放| 久久免费精品国产久精品久久久久| 国产欧美日韩一区二区三区在线观看| 国产精品天美传媒沈樵| 亚洲午夜日本在线观看| 精品一区二区三区影院在线午夜 | 成人午夜伦理影院| 欧洲色大大久久| 精品日韩av一区二区| 国产精品女同一区二区三区| 亚洲影院理伦片| 蜜桃久久久久久| 成人精品视频一区二区三区尤物| 欧洲中文字幕精品| 欧美岛国在线观看| 亚洲综合成人在线| 国产一区二区导航在线播放| 不卡一区二区三区四区| 欧美精品精品一区| 国产午夜精品福利| 午夜不卡av免费| 成人午夜大片免费观看| 欧美日韩精品是欧美日韩精品| 国产三级三级三级精品8ⅰ区| 偷拍与自拍一区| 色8久久精品久久久久久蜜| 26uuu另类欧美|