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

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

?? usrfslib.c

?? vxwork源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
* brevity and backward compatibility. It produces a list of files* and directories, without details such as file size and date,* and without recursion into subdirectories.** <dirName> is a name of a directory or file, and may contain wildcards.* <doLong> is provided for backward compatibility.** .iP NOTE* This is a target resident function, which manipulates the target I/O* system. It must be preceded with the* '@' letter if executed from the Tornado Shell (windsh), which has a* built-in command of the same name that operates on the Host's I/O* system.** RETURNS: OK or ERROR.** SEE ALSO: dirList()*/STATUS ls    (    char	*dirName,	/* name of dir to list */    BOOL	doLong		/* switch on details */    )    {    return (dirList (STD_OUT, dirName, doLong, FALSE));    }/******************************************************************************** ll - generate a long listing of directory contents** This command causes a long listing of a directory's contents to be* displayed.  It is equivalent to:* .CS*     -> dirList 1, dirName, TRUE, FALSE* .CE** <dirName> is a name of a directory or file, and may contain wildcards.** .iP "NOTE 1:"* This is a target resident function, which manipulates the target I/O* system. It must be preceded with the* '@' letter if executed from the Tornado Shell (windsh), which has a* built-in command of the same name that operates on the Host's I/O* system.** .iP "NOTE 2:"* When used with netDrv devices (FTP or RSH), ll() does not give* directory information.  It is equivalent to an ls() call with no* long-listing option.** RETURNS: OK or ERROR.** SEE ALSO: dirList()*/STATUS ll    (       char *dirName               /* name of directory to list */    )    {    return (dirList (STD_OUT, dirName, TRUE, FALSE));    }/********************************************************************************* lsr - list the contents of a directory and any of its subdirectories** This function is simply a front-end for dirList(), intended for* brevity and backward compatibility. It produces a list of files* and directories, without details such as file size and date,* with recursion into subdirectories.** <dirName> is a name of a directory or file, and may contain wildcards.** RETURNS: OK or ERROR.** SEE ALSO: dirList()*/STATUS lsr    (    char	*dirName	/* name of dir to list */    )    {    return (dirList( STD_OUT, dirName, FALSE, TRUE));    }/******************************************************************************** llr - do a long listing of directory and all its subdirectories contents** This command causes a long listing of a directory's contents to be* displayed.  It is equivalent to:* .CS*     -> dirList 1, dirName, TRUE, TRUE* .CE ** <dirName> is a name of a directory or file, and may contain wildcards.** NOTE: When used with netDrv devices (FTP or RSH), ll() does not give* directory information.  It is equivalent to an ls() call with no* long-listing option.** RETURNS: OK or ERROR.** SEE ALSO: dirList()*/STATUS llr    (       char *dirName               /* name of directory to list */    )    {    return (dirList (STD_OUT, dirName, TRUE, TRUE));    }/********************************************************************************* cp - copy file into other file/directory.** This command copies from the input file to the output file.* If destination name is directory, a source file is copied into* this directory, using the last element of the source file name* to be the name of the destination file.** This function is very similar to copy(), except it is somewhat* more similar to the UNIX "cp" program in its handling of the* destination.** <src> may contain a wildcard pattern, in which case all files* matching the pattern will be copied to the directory specified in* <dest>.* This function does not copy directories, and is not recursive.* To copy entire subdirectories recursively, use xcopy().** EXAMPLES* .CS* -> cp( "/sd0/FILE1.DAT","/sd0/dir2/f001.dat")* -> cp( "/sd0/dir1/file88","/sd0/dir2")* -> cp( "/sd0/@.tmp","/sd0/junkdir")* .CE** RETURNS: OK or ERROR if destination is not a directory while <src> is* a wildcard pattern, or if any of the files could not be copied.** SEE ALSO; xcopy()**/STATUS cp    (    const char *src,   /* source file or wildcard pattern */    const char *dest   /* destination file name or directory */    )    {    FAST DIR *pDir;		/* ptr to directory descriptor */    FAST struct dirent	*pDirEnt;	/* ptr to dirent */    STATUS status = OK ;    char * pattern = NULL ;    char * dirName = NULL ;    char  dir[MAX_FILENAME_LENGTH] ;    char  fileName[MAX_FILENAME_LENGTH] ;    char  destName[MAX_FILENAME_LENGTH] ;    if (src == NULL)    	{	errno = EINVAL ;        return ERROR;    	}    if (dest == NULL)	dest = "." ;    /* dest does not exist or regular file */    if (!nameIsDir (dest))	{	if (dirNameWildcard (src))	    {	    printErr("mv: destination \"%s\" not a directory\n", dest );	    errno = ENOTDIR ;	    return ERROR;	    }	printf("copying file %s -> %s\n", src, dest );        return copy( src, dest );	}    strncpy( dir, src, MAX_FILENAME_LENGTH-1 );    pattern = rindex(dir, '/');    if ( pattern != NULL && pattern != dir && dirNameWildcard(pattern))	{	/* dir and pattern e.g. dir1/a*.c */	*pattern++ = EOS ;	dirName = dir ;	}    else if (dirNameWildcard (dir))	{	/* just pattern e.g. *.c or abc.? */	pattern = dir;	dirName = "." ;	}    else	{	pattern = NULL ;	dirName = dir ;	}    if (pattern == NULL)	{	printf("copying file %s -> %s\n", src, dest );	return copy(src, dest ) ;	}    pDir = opendir (dirName) ;    if (pDir == NULL)	{	perror(dirName);	return ERROR;	}    errno = OK;    do	{    	pDirEnt = readdir (pDir);	if (pDirEnt != NULL)	    {	    if (pattern != NULL &&		dirListPattern( pattern, pDirEnt->d_name) == FALSE)		continue ;	    if (strcmp(pDirEnt->d_name,"." )  == 0 &&		strcmp(pDirEnt->d_name,".." ) == 0)		continue ;	    /* Construct path/filename for stat */	    usrPathCat( dirName, pDirEnt->d_name, fileName );	    usrPathCat( dest, pDirEnt->d_name, destName );	    if (nameIsDir( fileName ))		{		printf("skipping directory %s\n", fileName );		continue;		}	    printf("copying file %s -> %s\n", fileName, destName );	    status |= copy( fileName, destName );	    }	} while (pDirEnt != NULL);		/* until end of dir */    status |= closedir (pDir);    return status ;    }/* cp() *//********************************************************************************* mv - mv file into other directory.** This function is similar to rename() but behaves somewhat more* like the UNIX program "mv", it will overwrite files.** This command moves the <src> file or directory into* a file which name is passed in the <dest> argument, if <dest> is* a regular file or does not exist.* If <dest> name is a directory, the source object is moved into* this directory as with the same name,* if <dest> is NULL, the current directory is assumed as the destination* directory.* <src> may be a single file name or a path containing a wildcard* pattern, in which case all files or directories matching the pattern* will be moved to <dest> which must be a directory in this case.** EXAMPLES* .CS* -> mv( "/sd0/dir1","/sd0/dir2")* -> mv( "/sd0/@.tmp","/sd0/junkdir")* -> mv( "/sd0/FILE1.DAT","/sd0/dir2/f001.dat")* .CE** RETURNS: OK or error if any of the files or directories could not be* moved, or if <src> is a pattern but the destination is not a* directory.*/STATUS mv    (       const char *src,   /* source file name or wildcard */    const char *dest   /* destination name or directory */    )    {    FAST DIR *pDir;		/* ptr to directory descriptor */    FAST struct dirent	*pDirEnt;	/* ptr to dirent */    STATUS status = OK ;    char * pattern = NULL ;    char * dirName = NULL ;    char  dir[MAX_FILENAME_LENGTH] ;    char  fileName[MAX_FILENAME_LENGTH] ;    char  destName[MAX_FILENAME_LENGTH] ;    if (src == NULL)    	{	errno = EINVAL ;        return ERROR;    	}    if (dest == NULL)	dest = "." ;    /* dest does not exist or regular file */    if (nameIsDir( dest ) == nameIsDir( src ))	{	if (dirNameWildcard( src))	    {	    printErr("mv: destination \"%s\" not a directory\n", dest );	    errno = ENOTDIR ;	    return ERROR;	    }	printf("moving file %s -> %s\n", src, dest );        return mvFile ( src, dest );	}    strncpy( dir, src, MAX_FILENAME_LENGTH-1 );    pattern = rindex(dir, '/');    if ( pattern != NULL && pattern != dir && dirNameWildcard(pattern))	{	/* dir and pattern e.g. dir1/a*.c */	*pattern++ = EOS ;	dirName = dir ;	}    else if (dirNameWildcard( dir))	{	/* just pattern e.g. *.c or abc.? */	pattern = dir;	dirName = "." ;	}    else	{	pattern = NULL ;	dirName = dir ;	}    if (pattern == NULL)	{	printf("moving file %s -> %s\n", src, dest );	return (mvFile (src, dest ));	}    pDir = opendir (dirName) ;    if (pDir == NULL)	{	perror(dirName);	return ERROR;	}    errno = OK;    do	{    	pDirEnt = readdir (pDir);	if (pDirEnt != NULL)	    {	    if (pattern != NULL &&		dirListPattern( pattern, pDirEnt->d_name) == FALSE)		continue ;	    if (strcmp(pDirEnt->d_name,"." )  == 0 &&		strcmp(pDirEnt->d_name,".." ) == 0)		continue ;	    /* Construct path/filename for stat */	    usrPathCat( dirName, pDirEnt->d_name, fileName );	    usrPathCat( dest, pDirEnt->d_name, destName );	    printf("moving file %s -> %s\n", fileName, destName );	    status |= mvFile( fileName, destName );	    }	} while (pDirEnt != NULL);		/* until end of dir */    status |= closedir (pDir);    return status ;    }  /* mv() *//********************************************************************************* mvFile - move a file from one place to another.  ** This routine does some of the work of the mv() function.** RETURNS: OK, or ERROR if the file could not be opened or moved.*/LOCAL int mvFile    (    const char *oldname,        /* name of file to move */    const char *newname         /* name with which to move file */    )    {    int fd;    int status;    if ((oldname == NULL) || (newname == NULL) || (newname[0] == EOS))        {        errnoSet (ENOENT);        return (ERROR);        }    /* try to open file */    if (ERROR == (fd = open ((char *) oldname, O_RDONLY, 0)))        return (ERROR);    /* move it */    status = ioctl (fd, FIOMOVE, (int) newname);    close (fd);    return (status);    }/******************************************************************************** xcopy - copy a hierarchy of files with wildcards** <source> is a string containing a name of a directory, or a wildcard* or both which will cause this function to make a recursive copy of all* files residing in that directory and matching the wildcard pattern into* the <dest> directory, preserving the file names and subdirectories.** CAVEAT* This function may call itself in accordance with the depth of the* source directory, and occupies approximately 800 bytes per stack* frame, meaning that to accommodate the maximum depth of subdirectories* which is 20, at least 16 Kbytes of stack space should be available to* avoid stack overflow.** RETURNS: OK or ERROR if any operation has failed.** SEE ALSO: tarLib, checkStack(), cp()*/STATUS xcopy    (    const char *source,	/* source directory or wildcard name */    const char *dest		/* destination directory */    )    {    FAST DIR *pDir;		/* ptr to directory descriptor */    FAST struct dirent	*pDirEnt;	/* ptr to dirent */    STATUS status = OK ;    char * pattern = NULL ;    char * dirName = NULL ;    char  dir[MAX_FILENAME_LENGTH] ;    char  fileName[MAX_FILENAME_LENGTH] ;    char  destName[MAX_FILENAME_LENGTH] ;    if (!nameIsDir( dest ))	{	printErr("xcopy: error: destination \"%s\" is not a directory\n",		dest );	errno = ENOTDIR ;	return ERROR ;	}    strncpy( dir, source, MAX_FILENAME_LENGTH-1 );    pattern = rindex(dir, '/');    if ( pattern != NULL && pattern != dir && dirNameWildcard(pattern))	{	/* dir and pattern e.g. dir1/a*.c */	*pattern++ = EOS ;	dirName = dir ;	}    else if (dirNameWildcard( dir))	{	/* just pattern e.g. *.c or abc.? */	pattern = dir;	dirName = "." ;	}    else	{	pattern = NULL ;	dirName = dir ;	}    if (!nameIsDir (dirName))	{	printf("copying file %s -> %s\n", source, dest );	return copy(source, dest ) ;	}    pDir = opendir (dirName) ;    if (pDir == NULL)	{	perror(dirName);	return ERROR;	}    errno = OK;    do	{    	pDirEnt = readdir (pDir);	if (pDirEnt != NULL)	    {	    if (pattern != NULL &&		dirListPattern( pattern, pDirEnt->d_name) == FALSE)		continue ;	    /* Construct path/filename for stat */	    usrPathCat( dirName, pDirEnt->d_name, fileName );	    usrPathCat( dest, pDirEnt->d_name, destName );	    if (!nameIsDir( fileName ))		{		printf("copying file %s -> %s\n", fileName, destName );

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美va亚洲va国产综合| 一区二区在线观看免费视频播放| 久久久99久久| 亚洲一区二区在线免费看| 久久aⅴ国产欧美74aaa| 色天天综合久久久久综合片| 日韩视频一区二区三区| 亚洲色欲色欲www| 国内精品久久久久影院一蜜桃| 91麻豆.com| 国产清纯白嫩初高生在线观看91| 国产盗摄视频一区二区三区| 91福利在线导航| 欧美国产禁国产网站cc| 久久精品噜噜噜成人av农村| 在线中文字幕一区二区| 日本一区二区高清| 久久超碰97中文字幕| 欧美性猛交xxxxxx富婆| 18成人在线视频| 国产精品1024久久| 久久综合九色综合欧美亚洲| 亚洲1区2区3区视频| 欧美性生交片4| 中文字幕亚洲成人| 成人激情黄色小说| 国产精品毛片久久久久久 | 欧美成人女星排名| 性欧美疯狂xxxxbbbb| 日本韩国欧美三级| 亚洲欧美一区二区在线观看| 成人性生交大片| 国产精品日韩成人| gogo大胆日本视频一区| 自拍偷拍国产亚洲| 91丝袜美腿高跟国产极品老师| 国产精品久久久久久久久图文区 | 夜夜亚洲天天久久| 91免费版在线看| 亚洲精品中文在线观看| 91国偷自产一区二区开放时间 | 青草av.久久免费一区| 欧美日韩精品电影| 青青青爽久久午夜综合久久午夜| 3d动漫精品啪啪1区2区免费| 日韩专区中文字幕一区二区| 欧美一级日韩不卡播放免费| 日韩精品福利网| 精品国产人成亚洲区| 国产成人精品免费在线| 国产精品成人免费在线| 色婷婷亚洲婷婷| 日韩高清一级片| 欧美精品一区二区三区高清aⅴ| 国产一区二区三区免费在线观看| 国产欧美日韩激情| 91污在线观看| 天天av天天翘天天综合网| 日韩午夜av一区| 成人美女在线观看| 一区二区日韩电影| 精品国产一区二区三区忘忧草| 国产乱码精品一区二区三区av| 1024国产精品| 91精品国产高清一区二区三区 | 蜜乳av一区二区三区| 久久久久久久久伊人| 色素色在线综合| 精品亚洲porn| 一区二区三区小说| 精品噜噜噜噜久久久久久久久试看 | 中文字幕va一区二区三区| 欧美性受xxxx| 国产高清精品久久久久| 亚洲图片有声小说| 久久久久一区二区三区四区| 在线亚洲一区二区| 国产在线视频精品一区| 玉米视频成人免费看| 久久亚洲私人国产精品va媚药| 色噜噜狠狠成人中文综合| 精品一区二区日韩| 亚洲一二三区不卡| 国产精品婷婷午夜在线观看| 51精品秘密在线观看| 99久久综合99久久综合网站| 奇米四色…亚洲| 亚洲免费av高清| 久久午夜老司机| 91精品国产综合久久久蜜臀粉嫩 | 欧美激情中文不卡| 日韩一区二区三区高清免费看看| 97se亚洲国产综合自在线观| 韩国三级在线一区| 青娱乐精品视频在线| 午夜影院久久久| 亚洲欧美偷拍三级| 国产精品午夜在线| 久久亚洲影视婷婷| 精品av久久707| 欧美一区二区三区在线观看视频 | 国产一区二区三区四区在线观看| 香蕉乱码成人久久天堂爱免费| 亚洲视频免费在线| 国产精品区一区二区三| 久久久久国产精品麻豆| 日韩欧美二区三区| 欧美一级一区二区| 欧美高清激情brazzers| 欧美日韩一卡二卡三卡| 91成人在线观看喷潮| 色婷婷激情一区二区三区| www.在线成人| 99re在线精品| 99在线热播精品免费| 99热这里都是精品| 一本色道久久加勒比精品| 95精品视频在线| 色www精品视频在线观看| 色综合久久久网| 一本高清dvd不卡在线观看| 91在线观看一区二区| 一本到不卡免费一区二区| 91麻豆国产福利在线观看| 91高清视频在线| 91麻豆精品91久久久久久清纯| 精品视频一区三区九区| 欧美福利电影网| 日韩视频在线你懂得| 久久精品一二三| 国产精品久久免费看| 尤物在线观看一区| 五月婷婷综合网| 日本aⅴ亚洲精品中文乱码| 蜜臀91精品一区二区三区| 狠狠色丁香久久婷婷综合_中| 国产一区二区毛片| 91在线视频播放| 欧美日韩在线播| 日韩精品一区二区三区四区视频| 精品乱人伦小说| 亚洲欧洲国产日本综合| 亚洲国产精品久久久久秋霞影院| 日韩av高清在线观看| 国产精品白丝av| 一本一道久久a久久精品综合蜜臀| 欧美艳星brazzers| 精品久久久久久久久久久久包黑料 | 欧美日韩国产免费一区二区 | 免费高清成人在线| 国产精品18久久久| 欧美三级午夜理伦三级中视频| 欧美一级精品大片| 国产精品电影一区二区| 亚洲高清视频的网址| 国产精品一区二区黑丝| 欧美综合视频在线观看| 精品国精品自拍自在线| 亚洲精品国产视频| 久久国产精品第一页| 91蝌蚪porny| 欧美电影免费观看高清完整版在 | 成人av集中营| 欧美日韩久久一区二区| 久久精子c满五个校花| 一区二区三区高清在线| 国产精品亚洲综合一区在线观看| 在线观看国产日韩| 国产日韩欧美电影| 亚洲成精国产精品女| 成人黄色大片在线观看| 日韩久久久精品| 亚洲综合免费观看高清完整版在线 | 欧美经典三级视频一区二区三区| 天天综合网 天天综合色| 99久久精品一区| 26uuu国产在线精品一区二区| 亚洲午夜免费电影| 不卡一区二区中文字幕| 精品日本一线二线三线不卡| 亚洲综合精品久久| 99精品国产91久久久久久| 26uuu国产日韩综合| 麻豆国产精品一区二区三区| 欧美唯美清纯偷拍| 亚洲免费在线播放| av亚洲精华国产精华精华| 久久亚洲春色中文字幕久久久| 午夜精品久久一牛影视| 色婷婷久久综合| 亚洲精品中文在线影院| 91美女精品福利| 亚洲欧洲99久久| 成人高清视频在线| 国产精品亲子伦对白| 丰满放荡岳乱妇91ww| 欧美国产综合一区二区| 国产成人精品免费看| 国产亚洲欧洲997久久综合 | 午夜精品福利视频网站|