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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? nfslib.c

?? vxworks操作系統(tǒng)源代碼_對于在vxworks環(huán)境下開發(fā)軟件的人員非常有用
?? C
?? 第 1 頁 / 共 5 頁
字號:
** RETURNS:  OK | ERROR*/LOCAL STATUS nfsClientCall    (    char *      host,           /* server's host name */    u_int       prognum,        /* RPC program number */    u_int       versnum,        /* RPC version number */    u_int       procnum,        /* RPC procedure number */    xdrproc_t   inproc,         /* xdr routine for args */    char *      in,    xdrproc_t   outproc,        /* xdr routine for results */    char *      out    )    {    nfstime		tottimeout;    enum clnt_stat	clientStat;    FAST NFS_MODULE_STATICS *ms;    if (nfsInit () != OK)	return (ERROR);     ms = taskRpcStatics->nfsClientCache;    /* get an appropriate client in the cache */    if (nfsClientCacheSetUp (ms, host, prognum, versnum) != OK)	return (ERROR);    /* set time to allow results to come back */    tottimeout.seconds  = nfsTimeoutSec;    tottimeout.useconds = nfsTimeoutUSec;    clientStat = clnt_call (ms->client, procnum, inproc, in, outproc, out,			    tottimeout);    if (clientStat != RPC_SUCCESS)	{	/* XXX this should be more gracefull */	nfsClientCacheCleanUp (ms);	rpcClntErrnoSet (clientStat);	return (ERROR);	}    return (OK);    }/********************************************************************************* nfsClientClose - close the NFS client socket and associated structures** NOMANUAL*/void nfsClientClose (void)    {    if (taskRpcStatics != NULL)	nfsClientCacheCleanUp (taskRpcStatics->nfsClientCache);    }/********************************************************************************* nfsMountListPrint - prints a list of mount entries*/LOCAL void nfsMountListPrint    (    FAST mountlist pMountList    )    {    while (pMountList)	{	printf ("%s:%s\n", pMountList->ml_hostname, pMountList->ml_directory);	pMountList = pMountList->ml_next;	}    }/********************************************************************************* nfsGroupsPrint - print a list of groups*/LOCAL void nfsGroupsPrint    (    FAST groups pGroup    )    {    while (pGroup != NULL)	{	printf ("%s ", pGroup->gr_name);	pGroup = pGroup->gr_next;	}    }/********************************************************************************* nfsExportPrint - prints a list of exported file systems on a host*/LOCAL void nfsExportPrint    (    FAST exports pExport    )    {    while (pExport != NULL)	{	printf ("%-25s ", pExport->ex_dir);	nfsGroupsPrint (pExport->ex_groups);	printf ("\n");	pExport = pExport->ex_next;	}    }/********************************************************************************* nfsErrnoSet - set NFS status** nfsErrnoSet calls errnoSet with the given "nfs stat" or'd with the* NFS status prefix.*/LOCAL void nfsErrnoSet    (    enum nfsstat status    )    {    errnoSet (M_nfsStat | (int) status);    }/********************************************************************************* nfsAuthUnixPrompt - modify the NFS UNIX authentication parameters** This routine allows* UNIX authentication parameters to be changed from the shell.* The user is prompted for each parameter, which can be changed* by entering the new value next to the current one.** EXAMPLE* .CS*    -> nfsAuthUnixPrompt*    machine name:   yuba*    user ID:        2001 128*    group ID:       100*    num of groups:  1 3*    group #1:        100 100*    group #2:        0 120*    group #3:        0 200*    value = 3 = 0x3* .CE** SEE ALSO: nfsAuthUnixShow(), nfsAuthUnixSet(), nfsAuthUnixGet(), nfsIdSet()*/void nfsAuthUnixPrompt (void)    {    char machname [AUTH_UNIX_FIELD_LEN];/* host name where client is */    int uid;				/* client's UNIX effective uid */    int gid;				/* client's current group ID */    int len;				/* element length of aup_gids */    int aup_gids [MAX_GRPS];		/* array of groups user is in */    int ix;    nfsAuthUnixGet (machname, &uid, &gid, &len, aup_gids);    promptParamString ("machine name:  ", machname, sizeof (machname));    promptParamNum ("user ID:       ", &uid, 8, "%d ");    promptParamNum ("group ID:      ", &gid, 8, "%d ");    promptParamNum ("num of groups: ", &len, 8, "%d ");    for (ix = 0; ix < len; ix++)	{	printf ("group #%d:       ", ix + 1);	promptParamNum ("", &aup_gids [ix], 8, "%d ");	}    nfsAuthUnixSet (machname, uid, gid, len, aup_gids);    }/********************************************************************************* nfsAuthUnixShow - display the NFS UNIX authentication parameters** This routine displays the parameters set by nfsAuthUnixSet() or* nfsAuthUnixPrompt().** EXAMPLE:* .CS*    -> nfsAuthUnixShow*    machine name = yuba*    user ID      = 2001*    group ID     = 100*    group [0]    = 100*    value = 1 = 0x1* .CE** RETURNS: N/A** SEE ALSO: nfsAuthUnixPrompt(), nfsAuthUnixSet(), nfsAuthUnixGet(), nfsIdSet()*/void nfsAuthUnixShow (void)    {    char machname [AUTH_UNIX_FIELD_LEN]; /* host name where client is */    int uid;				/* client's UNIX effective uid */    int gid;				/* client's current group ID */    int len;				/* element length of aup_gids */    int aup_gids [MAX_GRPS];		/* array of groups user is in */    int ix;    nfsAuthUnixGet (machname, &uid, &gid, &len, aup_gids);    printf ("machine name = %s\n", machname);    printf ("user ID      = %d\n", uid);    printf ("group ID     = %d\n", gid);    for (ix = 0; ix < len; ix++)	printf ("group [%d]    = %d\n", ix, aup_gids [ix]);    }/********************************************************************************* nfsAuthUnixSet - set the NFS UNIX authentication parameters** This routine sets UNIX authentication parameters.* It is initially called by usrNetInit().* `machname' should be set with the name of the mounted system (i.e. the target* name itself) to distinguish hosts from hosts on a NFS network.** RETURNS: N/A** SEE ALSO: nfsAuthUnixPrompt(), nfsAuthUnixShow(), nfsAuthUnixGet(), * nfsIdSet()* * **/void nfsAuthUnixSet    (    char *machname,     /* host machine        */    int uid,            /* user ID             */    int gid,            /* group ID            */    int ngids,          /* number of group IDs */    int *aup_gids       /* array of group IDs  */    )    {    int ix;    taskLock ();    (void) strcpy (nfsAuthUnix.machname, machname);    nfsAuthUnix.uid = uid;    nfsAuthUnix.gid = gid;    nfsAuthUnix.len = (ngids < MAX_GRPS ? ngids : MAX_GRPS);    for (ix = 0; ix < ngids; ix++)	nfsAuthUnix.aup_gids [ix] = aup_gids [ix];    /* Cached client authentications are out of date now.     * Bump auth count so clients will be rebuilt with new auth,     * next time the client transport is used.     */    nfsAuthCount++;    taskUnlock ();    }/********************************************************************************* nfsAuthUnixGet - get the NFS UNIX authentication parameters** This routine gets the previously set UNIX authentication values.** RETURNS: N/A** SEE ALSO: nfsAuthUnixPrompt(), nfsAuthUnixShow(), nfsAuthUnixSet(), * nfsIdSet()*/void nfsAuthUnixGet    (    char *machname,     /* where to store host machine        */    int *pUid,          /* where to store user ID             */    int *pGid,          /* where to store group ID            */    int *pNgids,        /* where to store number of group IDs */    int *gids           /* where to store array of group IDs  */    )    {    int ix;    (void) strcpy (machname, nfsAuthUnix.machname);    *pUid   = nfsAuthUnix.uid;    *pGid   = nfsAuthUnix.gid;    *pNgids = nfsAuthUnix.len;    for (ix = 0; ix < nfsAuthUnix.len; ix++)	gids [ix] = nfsAuthUnix.aup_gids [ix];    }/********************************************************************************* nfsIdSet - set the ID number of the NFS UNIX authentication parameters** This routine sets only the UNIX authentication user ID number.* For most NFS permission needs, only the user ID needs to be changed.* Set <uid> to the user ID on the NFS server.** RETURNS: N/A** SEE ALSO: nfsAuthUnixPrompt(), nfsAuthUnixShow(), nfsAuthUnixSet(),* nfsAuthUnixGet()* */void nfsIdSet    (    int uid             /* user ID on host machine */    )    {    taskLock ();    nfsAuthUnix.uid = uid;    /* Cached client authentications are out of date now.     * Bump auth count so clients will be rebuilt with new auth,     * next time the client transport is used.     */    nfsAuthCount++;    taskUnlock ();    }/********************************************************************************* printClear - print string with '?' for unprintable characters*/LOCAL void printClear    (    FAST char *param    )    {    FAST char ch;    while ((ch = *(param++)) != EOS)	printf ("%c", (isascii ((UINT)ch) && isprint ((UINT)ch)) ? ch : '?');    }/********************************************************************************* promptParamString - prompt the user for a string parameter** - carriage return leaves the parameter unmodified;* - "." clears the parameter (null string).*/LOCAL void promptParamString    (    char *msg,    char *param,    int fieldWidth    )    {    int ix;    char buf [100];    FOREVER	{	printf ("%s ", msg);	printClear (param);	printf (" ");	ix = fioRdString (STD_IN, buf, sizeof (buf));	if (ix < fieldWidth)	    break;	printf ("too big - maximum field width = %d.\n", fieldWidth);	}    if (ix == 1)	return;			/* just CR; leave field unchanged */    if (buf[0] == '.')	{	param [0] = EOS;	/* just '.'; make empty field */	return;	}    (void) strcpy (param, buf);	/* update parameter */    }/********************************************************************************* promptParamNum - prompt the user for a parameter** - carriage return leaves the parameter unmodified;* - "." clears the parameter (0).*/LOCAL void promptParamNum    (    char *msg,    int *pParam,    int fieldWidth,    char *format    )    {    int ix;    char buf [100];    FOREVER	{	(void) strcpy (buf, "%s ");	(void) strcat (buf, format);	printf (buf, msg, *pParam);	ix = fioRdString (STD_IN, buf, sizeof (buf));	if (ix < fieldWidth)	    break;	printf ("too big - maximum field width = %d.\n", fieldWidth);	}    if (ix == 1)	return;			/* just CR; leave field unchanged */    if (buf[0] == '.')	{	pParam = 0;		/* just '.'; make empty field */	return;	}    (void) sscanf (buf, format, pParam);	/* scan field */    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美专区亚洲专区| 久久久www成人免费毛片麻豆| 国产精品欧美精品| 成人一级片网址| 国产精品电影院| 日本高清视频一区二区| 亚洲18女电影在线观看| 欧美一区二区黄| 国产在线一区观看| 中文字幕乱码亚洲精品一区| 色婷婷综合在线| 天堂一区二区在线| 亚洲精品一区二区精华| 成人午夜电影网站| 一区2区3区在线看| 日韩一区二区三区视频在线观看| 国产精品系列在线播放| 亚洲资源中文字幕| 国产中文字幕一区| 亚洲天堂av老司机| 欧美精品乱码久久久久久| 久久国产精品露脸对白| 中文字幕一区不卡| 欧美一区二区在线免费播放 | 中文字幕不卡三区| 日本韩国欧美三级| 国产在线视频一区二区三区| 亚洲特级片在线| 91精品国产色综合久久不卡蜜臀| 国产高清亚洲一区| 亚洲国产日韩在线一区模特| 26uuu亚洲综合色| 91久久精品一区二区| 精品亚洲aⅴ乱码一区二区三区| 国产精品区一区二区三区| 欧美日韩成人在线| 国产suv精品一区二区883| 亚洲国产成人精品视频| 国产日韩高清在线| 欧美浪妇xxxx高跟鞋交| 国产亚洲自拍一区| 国产一区二区日韩精品| 欧美视频一区在线| 精品在线你懂的| 一区二区三区中文在线观看| 久久久久九九视频| 精品婷婷伊人一区三区三| 成人一级片网址| 激情综合色播激情啊| 亚洲午夜一二三区视频| 国产精品欧美极品| 亚洲精品一区二区三区在线观看| 日本韩国一区二区三区视频| 福利视频网站一区二区三区| 欧美aaa在线| 亚洲国产一区二区a毛片| 国产精品视频在线看| 日韩久久久精品| 欧美日韩的一区二区| 91美女在线看| aaa欧美日韩| 丁香亚洲综合激情啪啪综合| 337p亚洲精品色噜噜狠狠| 91蝌蚪porny| 亚洲综合999| **欧美大码日韩| 国产精品女同一区二区三区| 亚洲精品在线一区二区| 欧美电视剧在线看免费| 欧美电影免费提供在线观看| 欧美日本视频在线| 欧美日韩视频专区在线播放| 欧洲精品在线观看| 91福利在线看| 在线观看免费亚洲| 欧美亚洲国产一区二区三区va| 91美女蜜桃在线| 日本福利一区二区| 欧洲视频一区二区| 欧美性生活一区| 欧美探花视频资源| 欧美裸体一区二区三区| 欧美一区二区三区婷婷月色| 91精品国产美女浴室洗澡无遮挡| 欧美极品xxx| 欧美大片在线观看一区| 欧美精品tushy高清| 国产高清成人在线| 国产日韩欧美精品一区| 日本福利一区二区| 99久久免费精品高清特色大片| 精东粉嫩av免费一区二区三区| 亚洲人妖av一区二区| 精品乱码亚洲一区二区不卡| 欧美一区二区啪啪| 国产精品一区二区久久不卡| 自拍av一区二区三区| 91精品国产综合久久精品app| 欧美三级三级三级| 日本亚洲电影天堂| 中文字幕字幕中文在线中不卡视频| 日韩一区欧美一区| 欧美一区日本一区韩国一区| 国产电影精品久久禁18| 99这里都是精品| 成人美女视频在线观看| 国产伦精一区二区三区| 欧美人与禽zozo性伦| 东方aⅴ免费观看久久av| 欧美日韩在线综合| 91精品一区二区三区久久久久久| 欧美在线观看视频在线| 亚洲精品一区二区三区99| 亚洲人精品午夜| 精彩视频一区二区三区| 欧美视频精品在线观看| 国产女人aaa级久久久级| 午夜欧美电影在线观看| 国产精品一二三四五| 在线亚洲欧美专区二区| 国产精品嫩草影院av蜜臀| 久久精品免费观看| 欧美午夜片在线观看| 亚洲欧美日韩国产手机在线| 99久久精品一区二区| 欧美美女bb生活片| 亚洲柠檬福利资源导航| 成人av在线影院| 精品va天堂亚洲国产| 日韩成人一区二区三区在线观看| eeuss鲁片一区二区三区| 2021中文字幕一区亚洲| 日本亚洲电影天堂| 日韩一区二区中文字幕| 日本午夜一区二区| 26uuu另类欧美| 久久国产精品99久久久久久老狼| 99精品视频在线观看| 欧美激情综合五月色丁香小说| 免费在线视频一区| 欧美一区二区不卡视频| 九一久久久久久| 欧美精品一区二区三| 粉嫩一区二区三区在线看| 国产欧美精品区一区二区三区| 国产91色综合久久免费分享| 亚洲精品第一国产综合野| 欧美一区二区三区四区久久| 精品国产乱码91久久久久久网站| 一区二区三区四区精品在线视频| 欧美少妇bbb| 美女久久久精品| 中文字幕中文乱码欧美一区二区| 91在线视频观看| 91极品视觉盛宴| 久久成人久久鬼色| 日韩精品一区二区三区视频在线观看| 欧美狂野另类xxxxoooo| 国产精品亚洲第一区在线暖暖韩国 | 欧美午夜电影网| 亚洲美女免费视频| 这里只有精品电影| 国产精品1024| 毛片基地黄久久久久久天堂| 无吗不卡中文字幕| 成人亚洲一区二区一| 亚洲免费在线电影| 国产午夜精品一区二区三区四区| 99久久精品国产毛片| 久久99精品一区二区三区| 亚洲精品欧美激情| 欧美国产综合色视频| 3atv一区二区三区| 欧美影院一区二区三区| 欧美午夜在线一二页| 91国偷自产一区二区开放时间| 经典一区二区三区| 91精品啪在线观看国产60岁| 麻豆精品精品国产自在97香蕉| 亚洲精品视频免费看| 亚洲欧洲成人自拍| 中文字幕第一区| 国产精品久久久久久久久免费丝袜| 欧美精品aⅴ在线视频| 欧美一区二区三区在线| 日韩三级中文字幕| 精品99一区二区| 国产精品久久久久久亚洲毛片| 亚洲丝袜美腿综合| 视频一区二区中文字幕| 欧美大黄免费观看| 在线观看国产日韩| 欧美日韩免费视频| 欧美一级生活片| 国产精品国产a| 日韩国产欧美视频| 国产aⅴ综合色| 色悠久久久久综合欧美99| 欧美亚洲愉拍一区二区| 久久久国际精品|