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

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

?? ls.c

?? 這是 gnu 程序中 ls 程序的源代碼程序。
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/*	$NetBSD: ls.c,v 1.55 2003/12/26 10:51:25 simonb Exp $	*//* * Copyright (c) 1989, 1993, 1994 *	The Regents of the University of California.  All rights reserved. * * This code is derived from software contributed to Berkeley by * Michael Fischbein. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */#include <sys/cdefs.h>#ifndef lint__COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\n\	The Regents of the University of California.  All rights reserved.\n");#endif /* not lint */#ifndef lint#if 0static char sccsid[] = "@(#)ls.c	8.7 (Berkeley) 8/5/94";#else__RCSID("$NetBSD: ls.c,v 1.55 2003/12/26 10:51:25 simonb Exp $");#endif#endif /* not lint */#include <sys/types.h>#include <sys/stat.h>#include <sys/ioctl.h>#include <dirent.h>#include <err.h>#include <errno.h>#include <fts.h>#include <locale.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <termios.h>#include <pwd.h>#include <grp.h>#include "ls.h"#include "extern.h"static void	 display(FTSENT *, FTSENT *);static int	 mastercmp(const FTSENT **, const FTSENT **);static void	 traverse(int, char **, int);static void (*printfcn)(DISPLAY *);static int (*sortfcn)(const FTSENT *, const FTSENT *);#define	BY_NAME 0#define	BY_SIZE 1#define	BY_TIME	2long blocksize;			/* block size units */int termwidth = 80;		/* default terminal width */int sortkey = BY_NAME;int rval = EXIT_SUCCESS;	/* exit value - set if error encountered *//* flags */int f_accesstime;		/* use time of last access */int f_column;			/* columnated format */int f_columnacross;		/* columnated format, sorted across */int f_flags;			/* show flags associated with a file */int f_grouponly;		/* long listing without owner */int f_humanize;			/* humanize the size field */int f_inode;			/* print inode */int f_listdir;			/* list actual directory, not contents */int f_listdot;			/* list files beginning with . */int f_longform;			/* long listing format */int f_nonprint;			/* show unprintables as ? */int f_nosort;			/* don't sort output */int f_numericonly;		/* don't convert uid/gid to name */int f_octal;			/* print octal escapes for nongraphic characters */int f_octal_escape;		/* like f_octal but use C escapes if possible */int f_recursive;		/* ls subdirectories also */int f_reversesort;		/* reverse whatever sort is used */int f_sectime;			/* print the real time for all files */int f_singlecol;		/* use single column output */int f_size;			/* list size in short listing */int f_statustime;		/* use time of last mode change */int f_stream;			/* stream format */int f_type;			/* add type character for non-regular files */int f_typedir;			/* add type character for directories */int f_whiteout;			/* show whiteout entries */intls_main(int argc, char *argv[]){	static char dot[] = ".", *dotav[] = { dot, NULL };	struct winsize win;	int ch, fts_options;	int kflag = 0;	const char *p;	setlocale(LC_ALL, "");	/* Terminal defaults to -Cq, non-terminal defaults to -1. */	if (isatty(STDOUT_FILENO)) {		if ((p = getenv("COLUMNS")) != NULL)			termwidth = atoi(p);		else if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) == 0 &&		    win.ws_col > 0)			termwidth = win.ws_col;		f_column = f_nonprint = 1;	} else		f_singlecol = 1;	/* Root is -A automatically. */	if (!getuid())		f_listdot = 1;	fts_options = FTS_PHYSICAL;	while ((ch = getopt(argc, argv, "1ABCFLRSTWabcdfghiklmnopqrstuwx")) != -1) {		switch (ch) {		/*		 * The -1, -C, -l, -m and -x options all override each other so		 * shell aliasing works correctly.		 */		case '1':			f_singlecol = 1;			f_column = f_columnacross = f_longform = f_stream = 0;			break;		case 'C':			f_column = 1;			f_columnacross = f_longform = f_singlecol = f_stream =			    0;			break;		case 'g':			if (f_grouponly != -1)				f_grouponly = 1;			f_longform = 1;			f_column = f_columnacross = f_singlecol = f_stream = 0;			break;		case 'l':			f_longform = 1;			f_column = f_columnacross = f_singlecol = f_stream = 0;			/* Never let -g take precedence over -l. */			f_grouponly = -1;			break;		case 'm':			f_stream = 1;			f_column = f_columnacross = f_longform = f_singlecol =			    0;			break;		case 'x':			f_columnacross = 1;			f_column = f_longform = f_singlecol = f_stream = 0;			break;		/* The -c and -u options override each other. */		case 'c':			f_statustime = 1;			f_accesstime = 0;			break;		case 'u':			f_accesstime = 1;			f_statustime = 0;			break;		case 'F':			f_type = 1;			break;		case 'L':			fts_options &= ~FTS_PHYSICAL;			fts_options |= FTS_LOGICAL;			break;		case 'R':			f_recursive = 1;			break;		case 'a':			fts_options |= FTS_SEEDOT;			/* FALLTHROUGH */		case 'A':			f_listdot = 1;			break;		/* the -B option turns off the -b, -q and -w options. */		case 'B':			f_nonprint = 0;			f_octal = 1;			f_octal_escape = 0;			break;		/* the -b option turns off the -B, -q and -w options. */		case 'b':			f_nonprint = 0;			f_octal = 0;			f_octal_escape = 1;			break;		/* The -d option turns off the -R option. */		case 'd':			f_listdir = 1;			f_recursive = 0;			break;		case 'f':			f_nosort = 1;			break;		case 'i':			f_inode = 1;			break;		case 'k':			blocksize = 1024;			kflag = 1;			break;		/*		 * The -h option forces all sizes to be measured in bytes.		 * It also makes -l suppress -s.		 */		case 'h':			f_humanize = 1;			break;		case 'n':			f_numericonly = 1;			break;		case 'o':			f_flags = 1;			break;		case 'p':			f_typedir = 1;			break;		/* the -q option turns off the -B, -b and -w options. */		case 'q':			f_nonprint = 1;			f_octal = 0;			f_octal_escape = 0;			break;		case 'r':			f_reversesort = 1;			break;		case 'S':			sortkey = BY_SIZE;			break;		case 's':			f_size = 1;			break;		case 'T':			f_sectime = 1;			break;		case 't':			sortkey = BY_TIME;			break;		case 'W':			f_whiteout = 1;			break;		/* the -w option turns off the -B, -b and -q options. */		case 'w':			f_nonprint = 0;			f_octal = 0;			f_octal_escape = 0;			break;		default:		case '?':			usage();		}	}	argc -= optind;	argv += optind;	/*	 * If both -g and -l options, let -l take precedence.	 */	if (f_grouponly == -1)		f_grouponly = 0;	/*	 * If not -F, -i, -l, -p, -S, -s or -t options, don't require stat	 * information.	 */	if (!f_inode && !f_longform && !f_size && !f_type && !f_typedir &&	    sortkey == BY_NAME)		fts_options |= FTS_NOSTAT;	/*	 * If not -F, -d or -l options, follow any symbolic links listed on	 * the command line.	 */	if (!f_longform && !f_listdir && !f_type)		fts_options |= FTS_COMFOLLOW;	/*	 * If -W, show whiteout entries	 */#ifdef FTS_WHITEOUT	if (f_whiteout)		fts_options |= FTS_WHITEOUT;#endif	/* If -l or -s, figure out block size. */	if (f_inode || f_longform || f_size) {		if (!kflag)			(void)getbsize(NULL, &blocksize);		blocksize /= 512;	}	/* Select a sort function. */	if (f_reversesort) {		switch (sortkey) {		case BY_NAME:			sortfcn = revnamecmp;			break;		case BY_SIZE:			sortfcn = revsizecmp;			break;		case BY_TIME:			if (f_accesstime)				sortfcn = revacccmp;			else if (f_statustime)				sortfcn = revstatcmp;			else /* Use modification time. */				sortfcn = revmodcmp;			break;		}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产一本一道久久香蕉| 秋霞电影网一区二区| 欧美狂野另类xxxxoooo| 国产一区二区三区免费播放| 午夜精品爽啪视频| 亚洲欧洲国产日本综合| 精品日韩成人av| 欧美日韩国产在线观看| av在线一区二区三区| 久久国产福利国产秒拍| 亚洲电影你懂得| 亚洲免费观看高清| 国产天堂亚洲国产碰碰| 日韩欧美一级片| 欧美日韩视频一区二区| av日韩在线网站| 国产成人精品网址| 捆绑变态av一区二区三区| 亚洲v中文字幕| 亚洲高清久久久| 亚洲一区二区综合| 亚洲女同ⅹxx女同tv| 中文字幕精品—区二区四季| 久久午夜免费电影| 精品国产乱码久久久久久久久| 欧美美女一区二区| 欧美日韩中文字幕一区二区| 日本精品视频一区二区| 91在线精品秘密一区二区| 成人性生交大合| 国产一级精品在线| 国产风韵犹存在线视精品| 国产一区二区看久久| 精品一区二区国语对白| 麻豆中文一区二区| 久久国产福利国产秒拍| 韩国精品在线观看| 国产美女在线精品| 国产91富婆露脸刺激对白| 国产精品一区二区x88av| 国产成人在线网站| 成人激情免费网站| 99久久婷婷国产综合精品电影| 不卡的av网站| 91麻豆视频网站| 色噜噜狠狠色综合中国| 欧美日韩一二三区| 欧美一级一级性生活免费录像| 日韩亚洲欧美成人一区| 精品日韩一区二区| 国产日韩亚洲欧美综合| 亚洲欧洲av在线| 亚洲精品视频在线看| 亚洲va韩国va欧美va精品| 奇米影视一区二区三区小说| 精品一区二区在线播放| 粉嫩久久99精品久久久久久夜| 成人一区在线观看| 欧美影院一区二区| 欧美一区二区精品| 精品国产乱码久久久久久夜甘婷婷| 2019国产精品| 亚洲欧美在线aaa| 亚洲成av人片一区二区梦乃| 美女视频网站黄色亚洲| 国产毛片精品视频| 99国产麻豆精品| 337p亚洲精品色噜噜噜| 久久九九99视频| 亚洲欧美偷拍卡通变态| 日韩中文字幕91| 国产精品一区二区黑丝| 色婷婷精品久久二区二区蜜臂av | 久久久久久久综合色一本| 国产精品福利电影一区二区三区四区 | 国产精品18久久久久久久久| 99国产精品久久久久| 欧美一区二区久久| 中文字幕一区二区三区不卡| 肉色丝袜一区二区| 国产成人午夜精品5599| 欧美在线影院一区二区| 亚洲精品一区二区在线观看| 日韩伦理av电影| 裸体在线国模精品偷拍| 99国产精品久久久久久久久久| 欧美一级片免费看| 一区二区三区在线观看视频| 国产在线国偷精品免费看| 色噜噜狠狠色综合欧洲selulu| 2欧美一区二区三区在线观看视频| 亚洲欧美日韩国产中文在线| 九九**精品视频免费播放| 色天天综合色天天久久| 久久久精品综合| 欧美aaaaa成人免费观看视频| 99国产精品一区| 国产午夜精品一区二区| 奇米精品一区二区三区在线观看一| 99久久婷婷国产综合精品电影| 精品国产一区a| 天天色综合天天| 色噜噜夜夜夜综合网| 国产精品热久久久久夜色精品三区| 免费观看一级欧美片| 欧美视频中文一区二区三区在线观看| 久久精品无码一区二区三区| 日韩福利视频导航| 欧美三区在线观看| 亚洲九九爱视频| 97se狠狠狠综合亚洲狠狠| 久久众筹精品私拍模特| 久久精品国产亚洲高清剧情介绍| 在线一区二区三区做爰视频网站| 中文字幕的久久| 国产sm精品调教视频网站| 精品999久久久| 美女视频黄久久| 91精品婷婷国产综合久久性色 | 国产精品女同一区二区三区| 国产一区二区精品久久99| 日韩欧美国产小视频| 香蕉成人伊视频在线观看| 欧美视频精品在线观看| 亚洲影视资源网| 欧美午夜影院一区| 亚洲综合一二三区| 欧美亚洲综合网| 亚洲成人免费观看| 欧美性xxxxxx少妇| 亚洲二区视频在线| 欧美精品久久天天躁| 日韩和欧美的一区| 欧美一区二区久久久| 久久精品国产亚洲aⅴ| 精品盗摄一区二区三区| 国内精品伊人久久久久av影院| xnxx国产精品| 国产成都精品91一区二区三| 欧美国产精品中文字幕| av亚洲精华国产精华精| 中文字幕一区二区不卡| 91国偷自产一区二区三区成为亚洲经典 | 欧美一级艳片视频免费观看| 青青草国产精品亚洲专区无| 日韩一级成人av| 国内不卡的二区三区中文字幕| 337p日本欧洲亚洲大胆精品| 国产激情91久久精品导航| 国产精品麻豆欧美日韩ww| 91女厕偷拍女厕偷拍高清| 亚洲综合无码一区二区| 欧美精品日韩精品| 久久er精品视频| 中文字幕精品—区二区四季| 色婷婷av一区二区三区gif| 亚洲高清久久久| 精品国产乱码久久久久久1区2区| 国产91清纯白嫩初高中在线观看 | 91亚洲国产成人精品一区二区三 | 日韩高清电影一区| 久久久久九九视频| 91丨国产丨九色丨pron| 午夜精品久久久久| 亚洲精品一区在线观看| 91在线观看高清| 香蕉成人伊视频在线观看| 久久婷婷成人综合色| 99国产精品视频免费观看| 视频在线观看一区二区三区| 久久久久久久久久久久久女国产乱 | 亚洲乱码国产乱码精品精可以看 | 国产自产2019最新不卡| 中文字幕在线观看不卡视频| 欧美乱妇一区二区三区不卡视频| 狠狠色狠狠色综合| 亚洲视频在线一区观看| 日韩一区二区三免费高清| 成人免费av网站| 天天操天天干天天综合网| 国产精品天天看| 欧美一区二区免费观在线| av中文字幕一区| 看国产成人h片视频| 亚洲精品久久嫩草网站秘色| 日韩免费观看2025年上映的电影| 91免费视频观看| 久久99国产精品免费| 亚洲专区一二三| 中文在线免费一区三区高中清不卡| 6080国产精品一区二区| av激情综合网| 国产一区美女在线| 日韩精品一二三四| 一区av在线播放| 国产精品乱码人人做人人爱| 日韩欧美亚洲一区二区| 欧美日韩性生活| 色综合久久久久| 福利91精品一区二区三区|