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

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

?? util.c

?? EFI(Extensible Firmware Interface)是下一代BIOS
?? C
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
	(void)fflush(stdout);
	if (fgets(line, sizeof(line), stdin) == NULL)
		return (0);
	switch (tolower((unsigned char)*line)) {
		case 'n':
			return (0);
		case 'p':
			interactive = 0;
			puts("Interactive mode: off.");
			break;
		case 'a':
			confirmrest = 1;
			printf("Prompting off for duration of %s.\n", cmd);
			break;
	}
	return (1);
}

/*
 * Glob a local file name specification with
 * the expectation of a single return value.
 * Can't control multiple values being expanded
 * from the expression, we return only the first.
 */
int
globulize(cpp)
	char **cpp;
{
	glob_t gl;
	int flags;

	if (!doglob)
		return (1);

	flags = GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE;
	memset(&gl, 0, sizeof(gl));
	if (glob(*cpp, flags, NULL, &gl) ||
	    gl.gl_pathc == 0) {
		warnx("%s: not found", *cpp);
		globfree(&gl);
		return (0);
	}
		/* XXX: caller should check if *cpp changed, and
		 *	free(*cpp) if that is the case
		 */
	*cpp = strdup(gl.gl_pathv[0]);
	globfree(&gl);
	return (1);
}

/*
 * determine size of remote file
 */
off_t
remotesize(file, noisy)
	const char *file;
	int noisy;
{
	int overbose;
	off_t size;

	overbose = verbose;
	size = -1;
	if (debug == 0)
		verbose = -1;
	if (command("SIZE %s", file) == COMPLETE) {
		char *cp, *ep;

		cp = strchr(reply_string, ' ');
		if (cp != NULL) {
			cp++;
			size = strtoq(cp, &ep, 10);
			if (*ep != '\0' && !isspace((unsigned char)*ep))
				size = -1;
		}
	} else if (noisy && debug == 0)
		puts(reply_string);
	verbose = overbose;
	return (size);
}

/*
 * determine last modification time (in GMT) of remote file
 */
time_t
remotemodtime(file, noisy)
	const char *file;
	int noisy;
{
	int overbose;
	time_t rtime;
	int ocode;

	overbose = verbose;
	ocode = code;
	rtime = -1;
	if (debug == 0)
		verbose = -1;
	if (command("MDTM %s", file) == COMPLETE) {
		struct tm timebuf;
		int yy, mo, day, hour, min, sec;
		sscanf(reply_string, "%*s %04d%02d%02d%02d%02d%02d", &yy, &mo,
			&day, &hour, &min, &sec);
		memset(&timebuf, 0, sizeof(timebuf));
		timebuf.tm_sec = sec;
		timebuf.tm_min = min;
		timebuf.tm_hour = hour;
		timebuf.tm_mday = day;
		timebuf.tm_mon = mo - 1;
		timebuf.tm_year = yy - 1900;
		timebuf.tm_isdst = -1;
		rtime = mktime(&timebuf);
		if (rtime == -1 && (noisy || debug != 0))
			printf("Can't convert %s to a time.\n", reply_string);
		else
			rtime += timebuf.tm_gmtoff;	/* conv. local -> GMT */
	} else if (noisy && debug == 0)
		puts(reply_string);
	verbose = overbose;
	if (rtime == -1)
		code = ocode;
	return (rtime);
}

void updateprogressmeter __P((int));

void
updateprogressmeter(dummy)
	int dummy;
{
#if EFI32 || EFI64	/* always foreground */
	progressmeter(0);
#else
	static pid_t pgrp = -1;
	int ctty_pgrp;

	if (pgrp == -1)
		pgrp = getpgrp();

	/*
	 * print progress bar only if we are foreground process.
	 */
	if (ioctl(STDOUT_FILENO, TIOCGPGRP, &ctty_pgrp) != -1 &&
	    ctty_pgrp == (int)pgrp)
		progressmeter(0);
#endif /* EFI32 || EFI64 */
}

/*
 * Display a transfer progress bar if progress is non-zero.
 * SIGALRM is hijacked for use by this function.
 * - Before the transfer, set filesize to size of file (or -1 if unknown),
 *   and call with flag = -1. This starts the once per second timer,
 *   and a call to updateprogressmeter() upon SIGALRM.
 * - During the transfer, updateprogressmeter will call progressmeter
 *   with flag = 0
 * - After the transfer, call with flag = 1
 */
static struct timeval start;

void
progressmeter(flag)
	int flag;
{
#if EFI32 || EFI64	/* need setitimer support - just ret under EFI */
	if (flag == -1) {
		(void)gettimeofday(&start, (struct timezone *)0);
	}
	return;
#else
	/*
	 * List of order of magnitude prefixes.
	 * The last is `P', as 2^64 = 16384 Petabytes
	 */
	static const char prefixes[] = " KMGTP";

	static struct timeval lastupdate;
	static off_t lastsize;
	struct timeval now, td, wait;
	off_t cursize, abbrevsize;
	double elapsed;
	int ratio, barlength, i, len;
	off_t remaining;
	char buf[256];

	len = 0;

	if (flag == -1) {
		(void)gettimeofday(&start, (struct timezone *)0);
		lastupdate = start;
		lastsize = restart_point;
	}
	(void)gettimeofday(&now, (struct timezone *)0);
	if (!progress || filesize <= 0)
		return;
	cursize = bytes + restart_point;

	ratio = (int)(cursize * 100 / filesize);
	ratio = MAX(ratio, 0);
	ratio = MIN(ratio, 100);
	len += snprintf(buf + len, sizeof(buf) - len, "\r%3d%% ", ratio);

	barlength = ttywidth - 30;
	if (barlength > 0) {
		i = barlength * ratio / 100;
		len += snprintf(buf + len, sizeof(buf) - len,
		    "|%.*s%*s|", i, 
"*****************************************************************************"
"*****************************************************************************",
		    barlength - i, "");
	}

	i = 0;
	abbrevsize = cursize;
	while (abbrevsize >= 100000 && i < sizeof(prefixes)) {
		i++;
		abbrevsize = abbrevsize/1024;
	}
	len += snprintf(buf + len, sizeof(buf) - len,
	    " %5d %c%c ", (int)abbrevsize, prefixes[i],
	    prefixes[i] == ' ' ? ' ' : 'B');

	timersub(&now, &lastupdate, &wait);
	if (cursize > lastsize) {
		lastupdate = now;
		lastsize = cursize;
		if (wait.tv_sec >= STALLTIME) {	/* fudge out stalled time */
			start.tv_sec += wait.tv_sec;
			start.tv_usec += wait.tv_usec;
		}
		wait.tv_sec = 0;
	}

	timersub(&now, &start, &td);
	elapsed = td.tv_sec + (td.tv_usec / 1000000.0);

	if (bytes <= 0 || elapsed <= 0.0 || cursize > filesize) {
		len += snprintf(buf + len, sizeof(buf) - len,
		    "   --:-- ETA");
	} else if (wait.tv_sec >= STALLTIME) {
		len += snprintf(buf + len, sizeof(buf) - len,
		    " - stalled -");
	} else {
		remaining = 
		    (off_t)((filesize - restart_point) / (bytes / elapsed) - elapsed);
		if (remaining >= 100 * SECSPERHOUR)
			len += snprintf(buf + len, sizeof(buf) - len,
			    "   --:-- ETA");
		else {
			i = (int)(remaining / SECSPERHOUR);
			if (i)
				len += snprintf(buf + len, sizeof(buf) - len,
				    "%2d:", i);
			else
				len += snprintf(buf + len, sizeof(buf) - len,
				    "   ");
			i = (int)(remaining % SECSPERHOUR);
			len += snprintf(buf + len, sizeof(buf) - len,
			    "%02d:%02d ETA", i / 60, i % 60);
		}
	}
#if EFI32 || EFI64
	buf[ len ] = 0;
	fprintf(stdout, buf);
#else
	(void)write(STDOUT_FILENO, buf, len);
#endif

	if (flag == -1) {
		(void)signal(SIGALRM, updateprogressmeter);
		alarmtimer(1);		/* set alarm timer for 1 Hz */
	} else if (flag == 1) {
		alarmtimer(0);
		(void)putchar('\n');
	}
	fflush(stdout);
#endif /* EFI32 || EFI64 */
}

/*
 * Display transfer statistics.
 * Requires start to be initialised by progressmeter(-1),
 * direction to be defined by xfer routines, and filesize and bytes
 * to be updated by xfer routines
 * If siginfo is nonzero, an ETA is displayed, and the output goes to STDERR
 * instead of STDOUT.
 */
void
ptransfer(siginfo)
	int siginfo;
{
	struct timeval now, td;
	double elapsed;
	off_t bs;
	int meg, remaining, hh, len;
	char buf[100];

	if (!verbose && !siginfo)
		return;

	(void)gettimeofday(&now, (struct timezone *)0);
	timersub(&now, &start, &td);
	elapsed = td.tv_sec + (td.tv_usec / 1000000.0);
	bs = (off_t)(bytes / (elapsed == 0.0 ? 1 : elapsed));
	meg = 0;
	if (bs > (1024 * 1024))
		meg = 1;
	len = 0;
	len += snprintf(buf + len, sizeof(buf) - len,
	    "%d byte%s %s in %.2f seconds (%.2f %sB/s)\n",
	    (unsigned int)bytes, bytes == 1 ? "" : "s", direction, elapsed,
	    bs / (1024.0 * (meg ? 1024.0 : 1.0)), meg ? "M" : "K");
	if (siginfo && bytes > 0 && elapsed > 0.0 && filesize >= 0
	    && bytes + restart_point <= filesize) {
		remaining = (int)((filesize - restart_point) /
				  (bytes / elapsed) - elapsed);
		hh = remaining / SECSPERHOUR;
		remaining %= SECSPERHOUR;
		len--;	 		/* decrement len to overwrite \n */
		len += snprintf(buf + len, sizeof(buf) - len,
		    "  ETA: %02d:%02d:%02d\n", hh, remaining / 60,
		    remaining % 60);
	}
#if EFI32 || EFI64
	printf(buf);
#else
	(void)write(siginfo ? STDERR_FILENO : STDOUT_FILENO, buf, len);
#endif
}

/*
 * List words in stringlist, vertically arranged
 */
void
list_vertical(sl)
	StringList *sl;
{
	int i, j, w;
	int columns, width, lines, items;
	char *p;

	width = items = 0;

	for (i = 0 ; i < (int) sl->sl_cur ; i++) {	/* cast added for EFI port */
		w = (int)strlen(sl->sl_str[i]);
		if (w > width)
			width = w;
	}
	width = (width + 8) &~ 7;

	columns = ttywidth / width;
	if (columns == 0)
		columns = 1;
	lines = (int)((sl->sl_cur + columns - 1) / columns);
	for (i = 0; i < lines; i++) {
		for (j = 0; j < columns; j++) {
			p = sl->sl_str[j * lines + i];
			if (p)
				fputs(p, stdout);
			if (j * lines + i + lines >= (int)sl->sl_cur) {	/* cast added for EFI port */
				putchar('\n');
				break;
			}
			w = (int)strlen(p);
			while (w < width) {
				w = (w + 8) &~ 7;
				(void)putchar('\t'); 
			}
		}
	}
}

/*
 * Update the global ttywidth value, using TIOCGWINSZ.
 */
void
setttywidth(a)
	int a;
{
	struct winsize winsize;

	if (ioctl(fileno(stdout), TIOCGWINSZ, &winsize) != -1)
		ttywidth = winsize.ws_col;
	else
		ttywidth = 80;
}

/*
 * Set the SIGALRM interval timer for wait seconds, 0 to disable.
 */
void
alarmtimer(wait)
	int wait;
{
	struct itimerval itv;

	itv.it_value.tv_sec = wait;
	itv.it_value.tv_usec = 0;
	itv.it_interval = itv.it_value;
	setitimer(ITIMER_REAL, &itv, NULL);
}

/*
 * Setup or cleanup EditLine structures
 */
#ifndef SMALL
void
controlediting()
{
	if (editing && el == NULL && hist == NULL) {
		el = el_init(__progname, stdin, stdout); /* init editline */
		hist = history_init();		/* init the builtin history */
		history(hist, H_EVENT, 100);	/* remember 100 events */
		el_set(el, EL_HIST, history, hist);	/* use history */

		el_set(el, EL_EDITOR, "emacs");	/* default editor is emacs */
		el_set(el, EL_PROMPT, prompt);	/* set the prompt function */

		/* add local file completion, bind to TAB */
		el_set(el, EL_ADDFN, "ftp-complete",
		    "Context sensitive argument completion",
		    complete);
		el_set(el, EL_BIND, "^I", "ftp-complete", NULL);

		el_source(el, NULL);	/* read ~/.editrc */
		el_set(el, EL_SIGNAL, 1);
	} else if (!editing) {
		if (hist) {
			history_end(hist);
			hist = NULL;
		}
		if (el) {
			el_end(el);
			el = NULL;
		}
	}
}
#endif /* !SMALL */

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品综合一区二区三区| 久久精品国产77777蜜臀| 成人永久看片免费视频天堂| 日韩久久久精品| 日韩福利电影在线| 欧美日韩国产一级| 亚洲成a天堂v人片| 欧美三级日韩在线| 亚洲成a人片在线不卡一二三区 | 91麻豆精品国产无毒不卡在线观看| 亚洲精品日韩一| 91碰在线视频| 亚洲男人的天堂网| 色94色欧美sute亚洲13| 亚洲精品中文在线观看| 色哟哟国产精品免费观看| 亚洲美女免费视频| 色婷婷av一区二区三区gif | 蜜臀久久99精品久久久久宅男| 欧美丰满少妇xxxxx高潮对白 | 秋霞电影网一区二区| 日韩一区二区在线观看视频| 美腿丝袜亚洲综合| 精品sm捆绑视频| 国产精品资源站在线| 久久精品视频在线看| 成人av动漫在线| 亚洲美女区一区| 欧美精品成人一区二区三区四区| 91网站最新网址| 亚洲自拍偷拍图区| 欧美日本不卡视频| 韩国av一区二区三区四区| 国产日韩欧美精品电影三级在线| 成人av电影在线播放| 亚洲自拍偷拍九九九| 91.麻豆视频| 激情综合色播五月| 国产精品久久久一本精品 | 日本一区二区成人在线| 91丝袜高跟美女视频| 亚洲午夜在线视频| 欧美成人精品3d动漫h| 国产成人精品免费在线| 日韩伦理av电影| 欧美日韩一区 二区 三区 久久精品| 日韩中文字幕不卡| 精品国产1区二区| 成人综合婷婷国产精品久久免费| 亚洲人成网站在线| 欧美一区二视频| 国产福利一区在线| 亚洲黄一区二区三区| 欧美一区二区免费观在线| 高清免费成人av| 亚洲综合丝袜美腿| 亚洲精品在线观| 色综合天天综合| 日本不卡免费在线视频| 国产片一区二区三区| 欧美性高清videossexo| 国产一区视频导航| 一区二区成人在线视频| 精品国产露脸精彩对白| 色先锋aa成人| 国产综合久久久久久鬼色| 亚洲欧美一区二区三区孕妇| 日韩三级伦理片妻子的秘密按摩| 成人av资源站| 日本人妖一区二区| 亚洲欧洲日产国码二区| 欧美一二三区在线观看| 99re亚洲国产精品| 麻豆精品新av中文字幕| 亚洲视频一区二区在线观看| 日韩免费高清视频| 在线免费观看不卡av| 精品一区免费av| 一区二区三国产精华液| 久久久亚洲午夜电影| 欧美日韩亚洲综合在线| 成人免费视频一区| 久久不见久久见免费视频7| 亚洲第一电影网| 中文字幕欧美三区| 日韩欧美在线1卡| 欧美视频精品在线观看| 国产高清成人在线| 蜜桃免费网站一区二区三区| 一区二区三区中文字幕在线观看| 久久久噜噜噜久久中文字幕色伊伊| 欧美性一级生活| hitomi一区二区三区精品| 另类调教123区| 天堂蜜桃一区二区三区| 亚洲美女在线一区| 日本一区二区不卡视频| 精品少妇一区二区三区在线视频| 欧美性极品少妇| 色一区在线观看| 成人短视频下载| 国产精品一区二区在线观看不卡 | 91丨porny丨在线| 国产精品18久久久| 久久国产尿小便嘘嘘| 五月天精品一区二区三区| 亚洲精品免费电影| 亚洲三级理论片| 国产精品乱码一区二区三区软件| 欧美精品一区二区三区四区 | 欧美不卡一区二区| 欧美妇女性影城| 欧美日韩精品是欧美日韩精品| 97精品久久久久中文字幕| 成人午夜碰碰视频| 国产成人超碰人人澡人人澡| 麻豆91在线播放| 国产欧美一区二区三区网站 | 精品久久久久久久久久久久包黑料 | 精品国产乱码久久久久久闺蜜| 欧美日韩国产美女| 欧美日韩精品免费观看视频| 在线免费观看成人短视频| 日本国产一区二区| 91久久免费观看| 色94色欧美sute亚洲线路一久| 色哟哟亚洲精品| 在线视频一区二区三| 日本久久精品电影| 欧美在线色视频| 欧美中文字幕一区| 欧美三级资源在线| 欧美午夜不卡视频| 欧美探花视频资源| 欧美日本一区二区| 91精品啪在线观看国产60岁| 91精品欧美久久久久久动漫 | 亚洲黄色尤物视频| 亚洲综合成人在线| 亚洲男人的天堂在线观看| 久久综合网色—综合色88| 日韩欧美高清一区| 精品盗摄一区二区三区| 日韩女优av电影| 亚洲精品一区二区三区福利| 久久久99精品久久| 中文字幕第一区第二区| 亚洲欧洲日本在线| 一区二区三区毛片| 视频一区二区中文字幕| 久久99久久99| 国产成人精品亚洲777人妖| 99热国产精品| 在线观看一区不卡| 欧美色综合天天久久综合精品| 欧美日韩成人综合在线一区二区| 国产自产视频一区二区三区| 久久99国产乱子伦精品免费| 亚洲福利视频导航| 美女爽到高潮91| 国产裸体歌舞团一区二区| 成人av动漫在线| 欧美视频在线不卡| 欧美成人一区二区三区在线观看 | 国产三级一区二区| 国产精品久久久久影院色老大| 亚洲精品视频观看| 日韩精品高清不卡| 91精品国产乱| xvideos.蜜桃一区二区| 国产精品色一区二区三区| 一区二区三区精品在线观看| 日本三级亚洲精品| 成人蜜臀av电影| 欧美日韩国产乱码电影| 欧美精品一区二区三区在线播放 | 久久色成人在线| 日本一区二区在线不卡| 欧美午夜精品久久久| 日韩三级电影网址| 中文字幕不卡在线播放| 亚洲国产日韩一级| 激情综合五月天| 色婷婷激情一区二区三区| 555夜色666亚洲国产免| 国产拍欧美日韩视频二区| 另类中文字幕网| 激情综合网最新| 精品999在线播放| 国产欧美一区二区三区鸳鸯浴| 亚洲香肠在线观看| 成人性生交大片| 欧美卡1卡2卡| 中文字幕在线不卡| 青青草97国产精品免费观看无弹窗版| 国产一区二区三区在线观看免费视频| 91福利国产成人精品照片| 久久综合狠狠综合久久综合88 | 久久er精品视频| 91污在线观看|