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

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

?? nfsdrv.c

?? vxworks操作系統(tǒng)源代碼_對于在vxworks環(huán)境下開發(fā)軟件的人員非常有用
?? C
?? 第 1 頁 / 共 4 頁
字號:
    if ((pNfsDev = (NFS_DEV *) KHEAP_ALLOC(sizeof (NFS_DEV) + nfsMaxPath - 1)) 	   == NULL)	return (ERROR);    /* perform an nfs mount of the directory */    if (nfsDirMount (host, fileSystem, &fileHandle) != OK)	{	KHEAP_FREE((char *) pNfsDev);	return (ERROR);	}    /* fill in the nfs device descripter */    (void) strcpy (pNfsDev->host, host);    (void) strcpy (pNfsDev->fileSystem, fileSystem);    bcopy ((char *) &fileHandle, (char *) &pNfsDev->fileHandle, sizeof(nfs_fh));    /*     * If no device name was specified, use the name of the file system     * being mounted.  For instance, if the file system is called "/d0",     * the corresponding nfs device will be named "/d0".     */    if (localName == NULL)	localName = fileSystem;		/* name the same as remote fs */    /* add device to I/O system */    if (iosDevAdd ((DEV_HDR *) pNfsDev, localName, nfsDrvNum) != OK)	{	KHEAP_FREE((char *) pNfsDev);	return (ERROR);	}    return (OK);    }/********************************************************************************* nfsMountAll - mount all file systems exported by a specified host** This routine mounts the file systems exported by the host <pHostName>* which are accessible by <pClientName>. A <pClientName> entry of NULL* will only mount file systems that are accessible by any client. * The nfsMount() routine is called to mount each file system. It creates* a local device for each mount that has the same name as the remote file* system.** If the <quietFlag> setting is FALSE, each file system is printed on* standard output after it is mounted successfully.** RETURNS: OK, or ERROR if any mount fails.** SEE ALSO: nfsMount()*/STATUS nfsMountAll    (    char *pHostName, 	/* name of remote host */    char *pClientName, 	/* name of a client specified in access list, if any */    BOOL quietFlag      /* FALSE = print name of each mounted file system */    )    {    exports	nfsExportBody;    exports 	pExport;    groups 	pGroup;    BOOL	accessFlag;    STATUS	status = OK;    if (nfsExportRead (pHostName, &nfsExportBody) != OK)        return (ERROR);    if (nfsExportBody)        {        /* Attempt to mount each file system in export list */        pExport = nfsExportBody;        while (pExport != NULL)            {            accessFlag = TRUE;      /* Allow mounting if not restricted. */            pGroup = pExport->ex_groups;            if (pGroup != NULL)                {                accessFlag = FALSE;    /* Limit mount to matching clients. */                if (pClientName != NULL)                    {                    /* Check for match with client name. */                    while (!accessFlag && pGroup != NULL)                        {                        if (strcmp (pGroup->gr_name, pClientName))                            pGroup = pGroup->gr_next;                        else                            accessFlag = TRUE;                        }                    }                }            if (accessFlag)                {                if (nfsMount (pHostName, pExport->ex_dir, (char *) NULL) != OK)                    status = ERROR;                else                    {                    if (!quietFlag)                        printf ("%s\n", pExport->ex_dir);                    }                }            pExport = pExport->ex_next;            }	}    nfsExportFree (&nfsExportBody);    return (status);    }/********************************************************************************* nfsDevShow - display the mounted NFS devices** This routine displays the device names and their associated NFS file systems.** EXAMPLE:* .CS*     -> nfsDevShow*     device name          file system*     -----------          -----------*     /yuba1/              yuba:/yuba1*     /wrs1/               wrs:/wrs1* .CE** RETURNS: N/A*/void nfsDevShow (void)    {    char    *fileSysName;    DEV_HDR *pDev0 = NULL;    DEV_HDR *pDev1;    if ((fileSysName = (char *) alloca (nfsMaxPath)) == NULL)	{	printf ("Memory allocation error\n");	return;	}    printf ("%-20.20s %-50.50s\n", "device name", "file system");    printf ("%-20.20s %-50.50s\n", "-----------", "-----------");    /* get entries from the I/O system's device list */    while ((pDev1 = iosNextDevGet (pDev0)) != NULL)	{	if (pDev1->drvNum == nfsDrvNum)	    {	    /* found an nfs device, print information */	    (void) strcpy (fileSysName, ((NFS_DEV *) pDev1)->host);	    (void) strcat (fileSysName, ":");	    (void) strcat (fileSysName, ((NFS_DEV *) pDev1)->fileSystem);	    printf ("%-20.20s %-50.50s\n", pDev1->name, fileSysName);	    }	pDev0 = pDev1;	}    }/********************************************************************************* nfsUnmount - unmount an NFS device** This routine unmounts file systems that were previously mounted via NFS.** RETURNS: OK, or ERROR if <localName> is not an NFS device or cannot* be mounted.* * SEE ALSO: nfsMount()*/STATUS nfsUnmount    (    char *localName     /* local of nfs device */    )    {    FAST NFS_DEV *pNfsDev;    char *dummy;    /* find the device in the I/O system */#ifdef _WRS_VXWORKS_5_X    if ((pNfsDev = (NFS_DEV *) iosDevFind (localName,                                            (char **)&dummy)) == NULL)#else    if ((pNfsDev = (NFS_DEV *) iosDevFind (localName,                                            (const char **)&dummy)) == NULL)#endif /* _WRS_VXWORKS_5_X */        	{	return (ERROR);	}    /* make sure device is an nfs driver and the names match exactly */    if ((pNfsDev->devHdr.drvNum != nfsDrvNum) ||	(strcmp (pNfsDev->devHdr.name, localName) != 0))	{	errnoSet (S_nfsDrv_NOT_AN_NFS_DEVICE);	return (ERROR);	}    /* perform an nfs unmount of the directory */    if (nfsDirUnmount (pNfsDev->host, pNfsDev->fileSystem) == ERROR)	return (ERROR);    /* delete the device from the I/O system */    iosDevDelete ((DEV_HDR *) pNfsDev);    KHEAP_FREE((char *) pNfsDev);    return (OK);    }/********************************************************************************* nfsDevListGet - create list of all the NFS devices in the system** This routine fills the array <nfsDevlist> up to <listSize>, with handles to* NFS devices currently in the system.** RETURNS: The number of entries filled in the <nfsDevList> array.* * SEE ALSO: nfsDevInfoGet()*/int nfsDevListGet    (    unsigned long nfsDevList[],	/* NFS dev list of handles */    int           listSize	/* number of elements available in the list */    )    {    int       numMounted;    DEV_HDR * pDev0 = NULL;    DEV_HDR * pDev1;    /*  Collect information of all the NFS currently mounted.  */    numMounted = 0;    while ((numMounted < listSize) && ((pDev1 = iosNextDevGet (pDev0)) != NULL))        {        if (pDev1->drvNum == nfsDrvNum)            {            /* found an nfs device, save pointer to the device */            nfsDevList [numMounted] = (unsigned long) pDev1;            numMounted++;            }        pDev0 = pDev1;        }    return (numMounted);    }/********************************************************************************* nfsDevInfoGet - read configuration information from the requested NFS device** This routine accesses the NFS device specified in the parameter <nfsDevHandle>* and fills in the structure pointed to by <pnfsInfo>. The calling function * should allocate memory for <pnfsInfo> and for the two character buffers,* 'remFileSys' and 'locFileSys', that are part of <pnfsInfo>. These buffers * should have a size of 'nfsMaxPath'.** RETURNS: OK if <pnfsInfo> information is valid, otherwise ERROR.* * SEE ALSO: nfsDevListGet()*/STATUS nfsDevInfoGet    (    unsigned long   nfsDevHandle,	/* NFS device handle */    NFS_DEV_INFO  * pnfsInfo		/* ptr to struct to hold config info */    )    {    NFS_DEV *pnfsDev;    DEV_HDR *pDev0;    DEV_HDR *pDev1;    if (pnfsInfo == NULL)	return (ERROR);    /* Intialize pointer variables */    pnfsDev = NULL;    pDev0   = NULL;    /* Verify that the device is still in the list of devices */    while ((pDev1 = iosNextDevGet (pDev0)) != NULL)        {        if (pDev1 == (DEV_HDR *) nfsDevHandle)	    {	    pnfsDev = (NFS_DEV *) pDev1;	    break;				/* Found Device */	    }        pDev0 = pDev1;        }     if (pnfsDev != NULL)	{	strcpy (pnfsInfo->hostName,   pnfsDev->host);	strcpy (pnfsInfo->remFileSys, pnfsDev->fileSystem);	strcpy (pnfsInfo->locFileSys, pnfsDev->devHdr.name);	return (OK);	}    return (ERROR);    }/* routines supplied to the I/O system *//********************************************************************************* nfsCreate - create a remote NFS file** Returns an open nfs file descriptor.** Used for creating files only, not directories.* Called only by the I/O system.** To give the file a particular mode (UNIX chmod() style), use nfsOpen().** RETURNS: Pointer to NFS file descriptor, or ERROR.*/LOCAL int nfsCreate    (    NFS_DEV *pNfsDev,   /* pointer to nfs device */    char *fileName,     /* nfs file name (relative to mount point) */    int mode            /* mode (O_RDONLY, O_WRONLY, or O_RDWR) */    )    {    /* file descriptor mode legality is checked for in nfsOpen */    /* don't allow null filenames */    if (fileName [0] == EOS)	{	errnoSet (S_ioLib_NO_FILENAME);	return (ERROR);	}    /* open the file being created,       give the file default UNIX file permissions */    return (nfsOpen (pNfsDev, fileName , O_CREAT | O_TRUNC | mode,                     DEFAULT_FILE_PERM));    }/********************************************************************************* nfsDelete - delete a remote file** Deletes a file on a remote system.* Called only by the I/O system.** RETURNS: OK or ERROR.*/LOCAL int nfsDelete    (    NFS_DEV *pNfsDev,   /* pointer to nfs device */    char *fileName      /* remote file name */    )    {    /* don't allow null filenames */    if (fileName [0] == EOS)	{	errnoSet (S_ioLib_NO_FILENAME);	return (ERROR);	}    return (nfsFileRemove (pNfsDev->host, &pNfsDev->fileHandle, fileName));    }/********************************************************************************* nfsChkFilePerms - check the NFS file permissions with a given permission.** This routine compares the NFS file permissions with a given permission.** This routine is basically designed for nfsOpen() to verify* the target file's permission prior to deleting it due to O_TRUNC.** The parameter "perm" will take 4(read), 2(write), 1(execute), or* combinations of them.** OK means the file has valid permission whichever group is.* FOLLOW_LINK means this path name contains link.  ERROR means* the file doesn't have matched permissions.* * Called only by the I/O system.** RETURNS: OK, FOLLOW_LINK, ERROR*/LOCAL int nfsChkFilePerms    (    NFS_DEV *	pNfsDev,		/* pointer to nfs device */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
另类调教123区| 国产在线精品不卡| 精品视频1区2区| 亚洲精品免费在线| 色综合天天视频在线观看| 国产精品污www在线观看| 大胆欧美人体老妇| 国产日韩一级二级三级| 国产自产高清不卡| 久久久久久**毛片大全| 国产一区二区影院| 久久久青草青青国产亚洲免观| 久久国产精品99久久人人澡| 精品国产污网站| 国产乱码精品一区二区三区av | 国产麻豆成人精品| 久久久国产综合精品女国产盗摄| 国产乱码精品一区二区三区五月婷 | 99视频一区二区| 亚洲丝袜另类动漫二区| 色天使色偷偷av一区二区| 一区二区三区中文字幕精品精品| 色老头久久综合| 亚洲国产综合色| 欧美一级xxx| 国内精品免费**视频| 欧美激情一区二区在线| 99精品视频在线播放观看| 亚洲欧美激情视频在线观看一区二区三区 | 成人激情动漫在线观看| 一区精品在线播放| 欧洲日韩一区二区三区| 天天综合日日夜夜精品| 欧美不卡一二三| 国产精品一二三在| 亚洲精品五月天| 制服丝袜av成人在线看| 九九久久精品视频| 18涩涩午夜精品.www| 欧美亚洲动漫精品| 久久国内精品自在自线400部| 国产亚洲欧美中文| 色狠狠桃花综合| 日韩成人一级片| 国产欧美精品一区二区色综合朱莉| 不卡av在线免费观看| 亚洲高清一区二区三区| 欧美精品一区二区在线观看| 91在线观看美女| 日本不卡视频一二三区| 国产农村妇女精品| 欧美视频中文一区二区三区在线观看| 欧美a一区二区| 国产精品久久久久一区二区三区| 欧美日韩精品久久久| 激情六月婷婷久久| 亚洲免费看黄网站| 日韩欧美在线网站| 99久久99精品久久久久久| 天堂在线一区二区| 中文字幕欧美激情一区| 欧美日韩精品高清| 国产iv一区二区三区| 亚洲成人资源网| 中文字幕精品一区| 在线成人高清不卡| 国产成人午夜电影网| 肉色丝袜一区二区| 国产精品久久久久久久久免费相片 | 免费成人在线观看视频| 国产精品色呦呦| 日韩一区二区在线观看视频播放| 播五月开心婷婷综合| 免费高清成人在线| 亚洲欧美韩国综合色| 久久久影视传媒| 欧美日韩亚洲不卡| www.成人在线| 精品综合久久久久久8888| 一区二区三区四区在线免费观看 | 久久婷婷色综合| 欧洲色大大久久| 成人午夜私人影院| 轻轻草成人在线| 亚洲黄色小视频| 日本一区二区三区四区在线视频| 欧美一区二区视频在线观看2022 | 91精品福利视频| 国产98色在线|日韩| 美国十次了思思久久精品导航| 亚洲精品国产视频| 欧美激情一区二区三区蜜桃视频| 日韩一区二区三区免费看| 在线免费观看成人短视频| 成人性生交大合| 狠狠色综合色综合网络| 婷婷国产在线综合| 亚洲综合一区二区三区| 一区在线中文字幕| 中文字幕欧美三区| 久久久精品综合| 精品成人一区二区| 制服丝袜亚洲网站| 欧美人妖巨大在线| 在线免费观看视频一区| 成人精品鲁一区一区二区| 激情另类小说区图片区视频区| 日韩二区三区在线观看| 亚洲午夜久久久久中文字幕久| 中文字幕亚洲在| 国产精品伦理在线| 欧美国产欧美亚州国产日韩mv天天看完整| 精品欧美一区二区三区精品久久| 欧美精品乱人伦久久久久久| 欧美性色黄大片| 91成人在线精品| 色琪琪一区二区三区亚洲区| 91色婷婷久久久久合中文| 成人黄色大片在线观看| 成人久久视频在线观看| 成人永久aaa| 懂色av一区二区夜夜嗨| 国产98色在线|日韩| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 久久久久久久久99精品| 久久女同精品一区二区| 26uuu精品一区二区在线观看| 欧美大胆人体bbbb| 精品欧美久久久| 久久亚洲精华国产精华液| 337p日本欧洲亚洲大胆色噜噜| 精品国产人成亚洲区| 2021国产精品久久精品| 久久久久国产精品厨房| 国产日韩欧美综合一区| 亚洲国产精品高清| ㊣最新国产の精品bt伙计久久| 亚洲三级免费电影| 亚洲制服丝袜av| 视频在线在亚洲| 老司机精品视频在线| 韩国视频一区二区| 国产传媒一区在线| 成人app网站| 91成人免费网站| 欧美精品aⅴ在线视频| 日韩免费在线观看| 国产日韩av一区| 亚洲欧洲另类国产综合| 一区二区三区四区激情| 亚洲h精品动漫在线观看| 欧美aⅴ一区二区三区视频| 精品午夜一区二区三区在线观看| 国产精品综合视频| 99久久综合国产精品| 在线国产亚洲欧美| 欧美一区二区三区爱爱| 久久嫩草精品久久久精品| 国产精品欧美久久久久一区二区| 亚洲精品午夜久久久| 日韩成人dvd| 国v精品久久久网| 色欧美乱欧美15图片| 欧美一区二区三区视频免费播放| 久久先锋资源网| 亚洲精品v日韩精品| 免费视频最近日韩| 成人激情电影免费在线观看| 欧美网站一区二区| www久久精品| 亚洲日本在线看| 日本在线播放一区二区三区| 国产一区二区伦理| 色乱码一区二区三区88| 欧美一区二区三区四区高清| 欧美激情资源网| 亚洲chinese男男1069| 国产麻豆精品久久一二三| 色av一区二区| 精品理论电影在线观看| 综合在线观看色| 久久草av在线| 91亚洲国产成人精品一区二三 | 色婷婷久久综合| 日韩精品一区二区在线| 中文字幕亚洲一区二区va在线| 日韩va欧美va亚洲va久久| 成人高清免费观看| 欧美高清性hdvideosex| 国产精品天干天干在线综合| 日韩综合小视频| jlzzjlzz亚洲日本少妇| 91精品国模一区二区三区| 国产欧美日韩视频一区二区| 日韩专区一卡二卡| 99久久久精品| 久久亚洲一区二区三区四区| 亚洲国产精品欧美一二99| 成人黄页在线观看| 精品免费国产二区三区|