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

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

?? usrfslib.c

?? vxwork源代碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
		status |= copy( fileName, destName );		}	    else if (strcmp(pDirEnt->d_name,"." ) &&		strcmp(pDirEnt->d_name,".." ))		{		printf("copying dir %s -> %s\n", fileName, destName );		mkdir(destName);		status |= xcopy( fileName, destName );		}	    }	} while (pDirEnt != NULL);		/* until end of dir */    status |= closedir (pDir);    return status ;    }/******************************************************************************** xdelete - delete 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 recursively remove all* files and subdirectories residing in that directory* and matching the wildcard pattern.* When a directory is encountered, all its contents are removed,* and then the directory itself is deleted.** CAVEAT* This function may call itself in accordance with the depth of the* source directory, and occupies approximately 520 bytes per stack* frame, meaning that to accommodate the maximum depth of subdirectories* which is 20, at least 10 Kbytes of stack space should be available to* avoid stack overflow.** RETURNS: OK or ERROR if any operation has failed.** SEE ALSO: checkStack(), cp(), copy(), xcopy(), tarLib*/STATUS xdelete    (    const char *source	/* source directory or wildcard name */    )    {    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] ;    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("deleting file %s\n", source);	return unlink((char *)source);	}    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 );	    if (!nameIsDir( fileName ))		{		printf("deleting file %s\n", fileName);		status |= unlink( fileName);		}	    else if (strcmp(pDirEnt->d_name,"." ) &&		strcmp(pDirEnt->d_name,".." ))		{		printf("deleting directory %s \n", fileName);		status |= xdelete( fileName);		status |= rmdir(fileName);		}	    }	} while (pDirEnt != NULL);		/* until end of dir */    status |= closedir (pDir);    return status ;    }/******************************************************************************** attrib - modify MS-DOS file attributes on a file or directory** This function provides means for the user to modify the attributes* of a single file or directory. There are four attribute flags which* may be modified: "Archive", "System", "Hidden" and "Read-only".* Among these flags, only "Read-only" has a meaning in VxWorks,* namely, read-only files can not be modified deleted or renamed.** The <attr> argument string may contain must start with either "+" or* "-", meaning the attribute flags which will follow should be either set* or cleared. After "+" or "-" any of these four letter will signify their* respective attribute flags - "A", "S", "H" and "R".** For example, to write-protect a particular file and flag that it is a* system file:** .CS* -> attrib( "bootrom.sys", "+RS")* .CE** RETURNS: OK, or ERROR if the file can not be opened.*/STATUS attrib    (    const char * fileName,	/* file or dir name on which to change flags */    const char * attr		/* flag settings to change */    )    {    BOOL set = TRUE ;    STATUS status ;    u_char bit = 0 ;    struct stat fileStat;    int fd ;    if (attr == NULL)	{	errno = EINVAL ;	return ERROR;	}    fd = open (fileName, O_RDONLY, 0);    if (fd == ERROR)	{	perror(fileName);	return ERROR ;	}    if (fstat (fd, &fileStat) == ERROR)          /* get file status    */	{	printErr("Can't get stat on %s\n", fileName );	return ERROR;	}    for ( ; *attr != EOS ; attr ++)	{	switch( *attr)	    {	    case '+' :		set = TRUE ;		break ;	    case '-' :		set = FALSE ;		break ;	    case 'A' : case 'a' :		bit = DOS_ATTR_ARCHIVE ;		break ;	    case 'S' : case 's' :		bit = DOS_ATTR_SYSTEM ;		break ;	    case 'H' : case 'h' :		bit = DOS_ATTR_HIDDEN ;		break ;	    case 'R' : case 'r' :		bit = DOS_ATTR_RDONLY ;		break ;	    default:		printErr("Illegal attribute flag \"%c\", ignored\n", *attr );	    } /* end of switch */	if (set)	    fileStat.st_attrib |= bit ;	else	    fileStat.st_attrib &= ~bit ;	}    status = ioctl (fd, FIOATTRIBSET, fileStat.st_attrib);    close(fd);    return status ;    }/******************************************************************************** xattrib - modify MS-DOS file attributes of many files** This function is essentially the same as attrib(), but it accepts* wildcards in <fileName>, and traverses subdirectories in order* to modify attributes of entire file hierarchies.** The <attr> argument string may contain must start with either "+" or* "-", meaning the attribute flags which will follow should be either set* or cleared. After "+" or "-" any of these four letter will signify their* respective attribute flags - "A", "S", "H" and "R".** EXAMPLE* .CS* -> xattrib( "/sd0/sysfiles", "+RS")	/@ write protect "sysfiles" @/* -> xattrib( "/sd0/logfiles", "-R")	/@ unprotect logfiles before deletion @/* -> xdelete( "/sd0/logfiles")* .CE** CAVEAT* This function may call itself in accordance with the depth of the* source directory, and occupies approximately 520 bytes per stack* frame, meaning that to accommodate the maximum depth of subdirectories* which is 20, at least 10 Kbytes of stack space should be available to* avoid stack overflow.** RETURNS: OK, or ERROR if the file can not be opened.*/STATUS xattrib    (    const char *source,	/* file or directory name on which to change flags */    const char *attr	/* flag settings to change */    )    {    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] ;    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("changing attributes on %s\n", source);	return attrib(source, attr);	}    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 );	    if (!nameIsDir( fileName ))		{		printf("changing attributes on %s\n", fileName);		status |= attrib( fileName, attr);		}	    else if (strcmp(pDirEnt->d_name,"." ) &&		strcmp(pDirEnt->d_name,".." ))		{		printf("traversing directory %s to change attributes \n",			fileName);		status |= xattrib( fileName, attr);		status |= attrib( fileName, attr);		}	    }	} while (pDirEnt != NULL);		/* until end of dir */    status |= closedir (pDir);    return status ;    }/********************************************************************************* diskFormat - format a disk** This command formats a disk and creates a file system on it.  The* device must already have been created by the device driver and* initialized for use with a particular file system, via dosFsDevInit().** This command calls ioctl() to perform the FIODISKFORMAT function.** EXAMPLE* .CS*     -> diskFormat "/fd0/"* .CE** RETURNS:* OK, or ERROR if the device cannot be opened or formatted.** SEE ALSO: dosFsLib* .pG "Target Shell"*/STATUS diskFormat    (    const char *pDevName 	/* name of the device to initialize */    )    {    FAST int fd;    FAST const char *name;    /* If no directory name specified, use current working directory (".") */    name = (pDevName == NULL) ? "." : pDevName;    /* Open the device, format it, and initialize it. */    if ((fd = open (name, O_WRONLY, 0)) == ERROR)	{	printErr ("Couldn't open \"%s\".\n", name);	return (ERROR);	}    printf ("\"%s\" formatting... ", name);    if (ioctl (fd, FIODISKFORMAT, 0) != OK)	{	printErr ("Couldn't format \"%s\".\n", name);	close (fd);	return (ERROR);	}    printf ("\"%s\" formatted... ", name);    if (ioctl (fd, FIODISKINIT, 0) < OK)	{	printErr ("Couldn't initialize file system on \"%s\".\n", name);	close (fd);	return (ERROR);	}    close (fd);    printf ("\"%s\" initialized.\n", name);    return (OK);    }/********************************************************************************* diskInit - initialize a file system on a block device** This function is now obsolete, use of dosFsVolFormat() is recommended.** This command creates a new, blank file system on a block device.  The* device must already have been created by the device driver and* initialized for use with a particular file system, via dosFsDevCreate().** EXAMPLE* .CS*     -> diskInit "/fd0/"* .CE** Note that if the disk is unformatted, it can not be mounted,* thus open() will return error, in which case use the dosFsVolFormat* routine manually.** This routine performs the FIODISKINIT ioctl operation.** RETURNS:* OK, or* ERROR if the device cannot be opened or initialized.** SEE ALSO: dosFsLib* .pG "Target Shell"*/STATUS diskInit    (    const char *pDevName	/* name of the device to initialize */    )    {    FAST int fd;    char name[MAX_FILENAME_LENGTH+1];    /* If no directory name specified, use current working directory (".") */    if (pDevName == NULL)	ioDefPathGet (name);    else	strncpy (name, pDevName, MAX_FILENAME_LENGTH);    /* Open the device, format it, and initialize it. */    fd = open (name, O_WRONLY, 0) ;    if (ERROR == fd)	{	printErr ("Couldn't open file system on \"%s\".\n", name);	printErr ("Perhaps a dosFsVolFormat on the file system is needed.\n");	return (ERROR);	}    if (ioctl (fd, FIODISKINIT, 0) < OK)	{	printErr ("Couldn't initialize file system on \"%s\".\n", name);	close (fd);	return (ERROR);	}    printf ("\"%s\" initialized.\n", name);    close (fd);    return (OK);    }/********************************************************************************* ioHelp - print a synopsis of I/O utility functions** This function prints out synopsis for the I/O and File System* utility functions.** RETURNS: N/A** SEE ALSO:* .pG "Target Shell"*/void ioHelp (void)    {    static char *help_msg [] = {    "cd        \"path\"             Set current working path",    "pwd                            Print working path",    "ls        [\"wpat\"[,long]]    List contents of directory",    "ll        [\"wpat\"]           List contents of directory - long format",    "lsr       [\"wpat\"[,long]]    Recursive list of directory contents",    "llr       [\"wpat\"]           Recursive detailed list of directory",    "rename    \"old\",\"new\"      Change name of file",    "copy      [\"in\"][,\"out\"]   Copy in file to out file (0 = std in/out)",    "cp        \"wpat\",\"dst\"      Copy many files to another dir",    "xcopy     \"wpat\",\"dst\"      Recursively copy files",    "mv        \"wpat\",\"dst\"      Move files into another directory",    "xdelete   \"wpat\"             Delete a file, wildcard list or tree",    "attrib    \"path\",\"attr\"    Modify file attributes",    "xattrib   \"wpat\",\"attr\"    Recursively modify file attributes",    "chkdsk    \"device\", L, V     Consistency check of file system",    "diskInit  \"device\"           Initialize file system on disk",    "diskFormat \"device\"          Low level and file system disk format",    "",    "\"attr\" contains one or more of: \" + - A H S R\" characters",    "\"wpat\" may be name of a file, directory or wildcard pattern",    " in which case \"dst\" must be a directory name",    "chkdsk() params: L=0, check only, L=2, check and fix, V=0x200 verbose",    NULL    };    FAST int ix;    char ch;    printf ("\n");    for (ix = 0; help_msg [ix] != NULL; ix++)	{	if ((ix+1) % 20 == 0)	    {	    printf ("\nType <CR> to continue, Q<CR> to stop: ");	    fioRdString (STD_IN, &ch, 1);	    if (ch == 'q' || ch == 'Q')		break;	    else		printf ("\n");	    }	printf ("%s\n", help_msg [ix]);	}    printf ("\n");    }/* End of file */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合免费观看高清在线观看| 精品国产一二三| 精东粉嫩av免费一区二区三区| 综合欧美一区二区三区| 日韩免费观看高清完整版在线观看| 99热精品国产| 国产精品一区二区久激情瑜伽| 婷婷开心激情综合| 亚洲色图丝袜美腿| 久久久精品中文字幕麻豆发布| 91精品国产综合久久久久久| 一本高清dvd不卡在线观看| 国产在线视频一区二区| 亚洲图片欧美一区| 亚洲欧美日韩小说| 国产精品色哟哟网站| 久久精品一区蜜桃臀影院| 欧美一区二区视频在线观看2020| 婷婷一区二区三区| 国产精品进线69影院| 日韩美女主播在线视频一区二区三区| 成人综合婷婷国产精品久久免费| 日韩高清国产一区在线| 亚洲午夜久久久久久久久电影网 | 欧美日本国产一区| 99久久精品久久久久久清纯| 国产精品一级在线| 精品午夜一区二区三区在线观看| 日韩精品一区第一页| 午夜视频在线观看一区二区 | 国内精品久久久久影院薰衣草 | 69精品人人人人| 欧美日韩亚洲综合一区| 欧美性高清videossexo| a4yy欧美一区二区三区| 国产凹凸在线观看一区二区| 国产主播一区二区三区| 韩国女主播成人在线| 精品一区二区三区久久| 极品少妇xxxx精品少妇偷拍| 狂野欧美性猛交blacked| 免费看精品久久片| 久久国产日韩欧美精品| 欧美精品1区2区| 精品一区二区成人精品| 欧美成人精品福利| 日韩精品综合一本久道在线视频| 日韩欧美黄色影院| 日韩欧美一区二区三区在线| 日韩精品一区二区三区视频| 欧美精品一区二区三区四区| 欧美国产一区视频在线观看| **性色生活片久久毛片| 亚洲激情在线播放| 日韩高清不卡在线| 精品一区二区三区在线播放视频 | 国产精品夜夜嗨| 日本韩国欧美国产| 国产精品99久久久久| 不卡视频在线看| 欧美影院一区二区三区| 91精品国产全国免费观看| 久久奇米777| 国产精品久久久久久久久久久免费看 | 亚洲精品少妇30p| 午夜精品爽啪视频| 精品一区二区国语对白| 99久久综合99久久综合网站| 欧美三级午夜理伦三级中视频| 91精品国产色综合久久不卡蜜臀| 久久午夜免费电影| 亚洲欧美日本在线| 日韩国产欧美三级| 国产成人综合亚洲网站| 欧美在线不卡视频| 2024国产精品| 亚洲精品国产高清久久伦理二区| 视频一区二区三区在线| 国产白丝精品91爽爽久久| 欧美日韩一区视频| 久久久www成人免费毛片麻豆| 怡红院av一区二区三区| 紧缚捆绑精品一区二区| 色欧美片视频在线观看| 欧美精品一区二区三区高清aⅴ| 一区在线中文字幕| 美女视频黄a大片欧美| 99精品久久99久久久久| 日韩免费在线观看| 亚洲综合一二区| 国产激情一区二区三区| 欧美日韩国产成人在线免费| 中文字幕精品一区二区精品绿巨人| 日日噜噜夜夜狠狠视频欧美人| 成人免费毛片嘿嘿连载视频| 制服丝袜中文字幕一区| 国产精品不卡一区二区三区| 免费成人av在线| 欧美中文字幕一区| 欧美国产日韩a欧美在线观看| 免费成人小视频| 91久久精品日日躁夜夜躁欧美| 久久精品人人做人人综合| 免费日韩伦理电影| 欧美日韩一区二区三区不卡 | 一区二区三区四区国产精品| 国产乱理伦片在线观看夜一区| 6080午夜不卡| 亚洲地区一二三色| 色婷婷久久99综合精品jk白丝| 久久精品日产第一区二区三区高清版| 日韩va亚洲va欧美va久久| 欧美在线色视频| 一区二区三区在线播| 99精品偷自拍| 国产精品欧美一区二区三区| 国产成人综合在线播放| 久久久午夜精品理论片中文字幕| 喷白浆一区二区| 欧美日韩日日摸| 亚洲国产日韩一级| 91九色02白丝porn| 一区二区三区中文在线| 一本一道久久a久久精品综合蜜臀| 国产精品视频麻豆| 成人精品一区二区三区四区 | 91精品国产色综合久久久蜜香臀| 亚洲女厕所小便bbb| 成人国产亚洲欧美成人综合网| 国产视频视频一区| 国产精品影视在线观看| 26uuu国产日韩综合| 国产一区二区三区四区五区入口 | 久久久久久毛片| 经典三级一区二区| 国产日产亚洲精品系列| 国产传媒欧美日韩成人| 国产精品国产馆在线真实露脸| 国产黄人亚洲片| 中文字幕在线一区| 91丝袜国产在线播放| 一区二区在线观看免费视频播放| 色综合天天综合狠狠| 午夜私人影院久久久久| 日韩视频在线一区二区| 国产剧情av麻豆香蕉精品| 欧美极品另类videosde| 91在线免费播放| 亚洲成年人网站在线观看| 欧美肥妇bbw| 狠狠网亚洲精品| 中文字幕乱码日本亚洲一区二区| 99久久久免费精品国产一区二区| 樱桃国产成人精品视频| 91精品欧美福利在线观看| 韩国视频一区二区| 国产精品久久久久婷婷二区次| 91视频观看视频| 丝袜美腿亚洲一区二区图片| 日韩欧美黄色影院| youjizz久久| 亚洲成人在线网站| 日韩欧美123| 91影视在线播放| 日韩黄色小视频| 国产精品美女久久久久久久网站| 在线亚洲高清视频| 美腿丝袜亚洲一区| 最好看的中文字幕久久| 3d成人h动漫网站入口| 国产91对白在线观看九色| 亚洲国产日韩综合久久精品| 久久久精品免费免费| 日本国产一区二区| 黄网站免费久久| 亚洲一卡二卡三卡四卡| 精品国产一区二区三区四区四| 色综合婷婷久久| 国模无码大尺度一区二区三区| 自拍视频在线观看一区二区| 日韩视频免费直播| 91香蕉视频黄| 国产乱码精品1区2区3区| 亚洲国产视频网站| 欧美激情一区二区三区不卡 | 日韩精品在线看片z| 91在线视频免费91| 国产在线精品不卡| 午夜欧美电影在线观看| 国产精品免费av| 日韩一级精品视频在线观看| 91在线精品一区二区三区| 久久成人免费网站| 一本一道波多野结衣一区二区| 亚洲第一搞黄网站| 日本一区二区高清| 日韩视频永久免费| 欧美人牲a欧美精品| 91在线你懂得| 成人精品视频一区|