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

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

?? nfslib.c

?? vxwork源代碼
?? C
?? 第 1 頁 / 共 5 頁
字號(hào):
** 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 */    }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91黄色免费版| 欧美三级电影一区| 国产精品一区专区| 久久99精品国产91久久来源| 亚洲成人三级小说| 亚洲一二三四久久| 午夜一区二区三区在线观看| 亚洲国产欧美在线人成| 亚洲成人av一区二区三区| 亚洲韩国一区二区三区| 五月天国产精品| 青青草原综合久久大伊人精品优势| 午夜精品久久久久久| 夜夜精品浪潮av一区二区三区| 亚洲图片自拍偷拍| 日韩二区三区四区| 精品一区二区免费| 国产成人av一区| av影院午夜一区| 在线观看91视频| 91精品国产高清一区二区三区 | 成人免费观看视频| 不卡的电影网站| 色欧美日韩亚洲| 欧美一区二区精品| 久久久久99精品国产片| 国产精品久久久久久久久免费桃花| 亚洲精品少妇30p| 日韩在线一区二区三区| 国产中文字幕一区| 成人动漫在线一区| 欧美精品一二三| 国产午夜精品一区二区三区嫩草 | 中文字幕一区二区三区在线播放| 亚洲欧美日韩国产中文在线| 国产精品盗摄一区二区三区| 欧美韩国一区二区| 久久先锋影音av鲁色资源网| 欧美一级xxx| 精品国产91乱码一区二区三区| 欧美一区二区三区婷婷月色| 日韩一区二区三区视频在线| 精品国精品自拍自在线| 久久久午夜精品理论片中文字幕| 国产精品色哟哟| 国产一区二区三区四| 成人精品视频网站| 欧美色视频一区| 久久综合狠狠综合| 一区二区三区精品| 激情文学综合网| 色屁屁一区二区| 精品国产成人系列| 亚洲美女少妇撒尿| 久久99热99| 欧美亚一区二区| 国产午夜精品久久久久久免费视| 一区二区欧美国产| 国产精品自拍三区| 欧美日韩视频在线一区二区| 国产调教视频一区| 日日欢夜夜爽一区| 99久久夜色精品国产网站| 日韩一级成人av| 亚洲欧美日韩中文播放 | 日本成人中文字幕在线视频| 极品瑜伽女神91| 欧美日韩一区二区三区在线| 久久精品亚洲麻豆av一区二区| 亚洲综合一区二区三区| 国产伦精一区二区三区| 欧美日韩mp4| 国产精品初高中害羞小美女文| 美女视频黄a大片欧美| 日本高清不卡一区| 中国av一区二区三区| 麻豆精品在线播放| 欧美日韩国产大片| 1区2区3区精品视频| 国产精品一线二线三线| 欧美电视剧在线看免费| 色播五月激情综合网| 国产拍欧美日韩视频二区| 91免费在线看| 亚洲综合在线第一页| 一本到高清视频免费精品| 中文字幕 久热精品 视频在线| 国产专区欧美精品| 久久精品亚洲精品国产欧美kt∨| 免费在线看一区| 日韩精品一区二区三区四区| 久久电影网站中文字幕 | 一区二区三区产品免费精品久久75| 狠狠久久亚洲欧美| 91精品国产色综合久久| 亚洲图片欧美综合| 91久久一区二区| 亚洲精品欧美在线| 99精品视频在线观看| 国产精品系列在线| 成人午夜免费电影| 国产欧美日韩激情| 成人毛片老司机大片| 国产欧美日韩精品在线| 丰满放荡岳乱妇91ww| 国产欧美久久久精品影院| 国产一区二区视频在线播放| 2022国产精品视频| 国产毛片精品一区| 国产亲近乱来精品视频| 高清免费成人av| 国产精品妹子av| 9i在线看片成人免费| 亚洲品质自拍视频网站| 色综合久久久久久久久| 一区二区三区电影在线播| 欧美日韩高清不卡| 日本美女一区二区三区| 欧美精品一区二区三区很污很色的 | 欧美在线免费观看视频| 午夜在线成人av| 日韩一区二区不卡| 国产一区二区三区四区在线观看| 久久久久国产一区二区三区四区| 国产**成人网毛片九色| 亚洲欧美乱综合| 欧美欧美欧美欧美| 美女视频一区在线观看| 精品国内二区三区| 成人精品国产福利| 一区二区三区日韩欧美精品| 一区二区三区免费网站| 一区二区在线看| 热久久一区二区| 亚洲成年人影院| 亚洲综合免费观看高清完整版在线 | 国内外精品视频| 日韩电影在线免费看| 日本精品视频一区二区三区| 日韩欧美中文字幕精品| 国产一区在线精品| 亚洲色图色小说| 欧美一区二区精美| 成人18视频日本| 亚洲影视资源网| 精品国产亚洲在线| av网站免费线看精品| 天堂av在线一区| 国产免费成人在线视频| 欧美性色综合网| 精品一区二区免费在线观看| 中文字幕一区二区在线观看| 777色狠狠一区二区三区| 国产成人免费av在线| 亚洲精品美国一| 久久亚洲捆绑美女| 欧美主播一区二区三区| 久久97超碰色| 一级中文字幕一区二区| 精品国产髙清在线看国产毛片| 91视频国产资源| 久久国产精品99久久久久久老狼| 成人欧美一区二区三区小说| 欧美一区二区播放| 91在线观看高清| 国产毛片精品视频| 日韩专区欧美专区| 亚洲欧美另类在线| 久久先锋影音av| 欧美精品久久99| 色综合久久久久| 国产精品18久久久久| 天堂一区二区在线| 免费在线观看精品| 亚洲成在人线免费| ...av二区三区久久精品| 精品理论电影在线观看| 欧美日韩国产影片| 91色|porny| 粉嫩av一区二区三区在线播放| 免费不卡在线观看| 亚洲一区视频在线| 亚洲免费在线视频一区 二区| 久久免费视频色| 精品伦理精品一区| 日韩一卡二卡三卡四卡| 欧美美女bb生活片| 欧美在线观看一区二区| av色综合久久天堂av综合| 国产东北露脸精品视频| 理论片日本一区| 国产亚洲一区二区三区在线观看| 性久久久久久久| 亚洲欧美激情一区二区| caoporn国产一区二区| 国产欧美日韩在线视频| 国产一区二区三区视频在线播放| 欧美久久久久久久久| 亚洲天堂成人在线观看| 99re8在线精品视频免费播放|