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

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

?? tty_io.c

?? <Linux1.0核心游記>電子書+書后源碼+Linux1.0源碼
?? C
?? 第 1 頁 / 共 4 頁
字號:
		{			/*			 * It worked. Mark the vt to switch to and			 * return. The process needs to send us a			 * VT_RELDISP ioctl to complete the switch.			 */			vt_cons[fg_console].vt_newvt = new_console;			return;		}		/*		 * The controlling process has died, so we revert back to		 * normal operation. In this case, we'll also change back		 * to KD_TEXT mode. I'm not sure if this is strictly correct		 * but it saves the agony when the X server dies and the screen		 * remains blanked due to KD_GRAPHICS! It would be nice to do		 * this outside of VT_PROCESS but there is no single process		 * to account for and tracking tty count may be undesirable.		 */		vt_cons[fg_console].vc_mode = KD_TEXT;		clr_vc_kbd_mode(kbd_table + fg_console, VC_RAW);		clr_vc_kbd_mode(kbd_table + fg_console, VC_MEDIUMRAW);		vt_cons[fg_console].vt_mode.mode = VT_AUTO;		vt_cons[fg_console].vt_mode.waitv = 0;		vt_cons[fg_console].vt_mode.relsig = 0;		vt_cons[fg_console].vt_mode.acqsig = 0;		vt_cons[fg_console].vt_mode.frsig = 0;		vt_cons[fg_console].vt_pid = -1;		vt_cons[fg_console].vt_newvt = -1;		/*		 * Fall through to normal (VT_AUTO) handling of the switch...		 */	}	/*	 * Ignore all switches in KD_GRAPHICS+VT_AUTO mode	 */	if (vt_cons[fg_console].vc_mode == KD_GRAPHICS)		return;	complete_change_console(new_console);}void wait_for_keypress(void){	sleep_on(&keypress_wait);}void stop_tty(struct tty_struct *tty){	if (tty->stopped)		return;	tty->stopped = 1;	if (tty->link && tty->link->packet) {		tty->ctrl_status &= ~TIOCPKT_START;		tty->ctrl_status |= TIOCPKT_STOP;		wake_up_interruptible(&tty->link->secondary.proc_list);	}	if (tty->stop)		(tty->stop)(tty);	if (IS_A_CONSOLE(tty->line)) {		set_vc_kbd_led(kbd_table + fg_console, VC_SCROLLOCK);		set_leds();	}}void start_tty(struct tty_struct *tty){	if (!tty->stopped)		return;	tty->stopped = 0;	if (tty->link && tty->link->packet) {		tty->ctrl_status &= ~TIOCPKT_STOP;		tty->ctrl_status |= TIOCPKT_START;		wake_up_interruptible(&tty->link->secondary.proc_list);	}	if (tty->start)		(tty->start)(tty);	TTY_WRITE_FLUSH(tty);	if (IS_A_CONSOLE(tty->line)) {		clr_vc_kbd_led(kbd_table + fg_console, VC_SCROLLOCK);		set_leds();	}}/* Perform OPOST processing.  Returns -1 when the write_q becomes full   and the character must be retried. */static int opost(unsigned char c, struct tty_struct *tty){	if (FULL(&tty->write_q))		return -1;	if (O_OPOST(tty)) {		switch (c) {		case '\n':			if (O_ONLRET(tty))				tty->column = 0;			if (O_ONLCR(tty)) {				if (LEFT(&tty->write_q) < 2)					return -1;				put_tty_queue('\r', &tty->write_q);				tty->column = 0;			}			tty->canon_column = tty->column;			break;		case '\r':			if (O_ONOCR(tty) && tty->column == 0)				return 0;			if (O_OCRNL(tty)) {				c = '\n';				if (O_ONLRET(tty))					tty->canon_column = tty->column = 0;				break;			}			tty->canon_column = tty->column = 0;			break;		case '\t':			if (O_TABDLY(tty) == XTABS) {				if (LEFT(&tty->write_q) < 8)					return -1;				do					put_tty_queue(' ', &tty->write_q);				while (++tty->column % 8);				return 0;			}			tty->column = (tty->column | 7) + 1;			break;		case '\b':			if (tty->column > 0)				tty->column--;			break;		default:			if (O_OLCUC(tty))				c = toupper(c);			if (!iscntrl(c))				tty->column++;			break;		}	}	put_tty_queue(c, &tty->write_q);	return 0;}/* Must be called only when L_ECHO(tty) is true. */static void echo_char(unsigned char c, struct tty_struct *tty){	if (L_ECHOCTL(tty) && iscntrl(c) && c != '\t') {		opost('^', tty);		opost(c ^ 0100, tty);	} else		opost(c, tty);}static void eraser(unsigned char c, struct tty_struct *tty){	enum { ERASE, WERASE, KILL } kill_type;	int seen_alnums;	if (tty->secondary.head == tty->canon_head) {		/* opost('\a', tty); */		/* what do you think? */		return;	}	if (c == ERASE_CHAR(tty))		kill_type = ERASE;	else if (c == WERASE_CHAR(tty))		kill_type = WERASE;	else {		if (!L_ECHO(tty)) {			tty->secondary.head = tty->canon_head;			return;		}		if (!L_ECHOK(tty) || !L_ECHOKE(tty)) {			tty->secondary.head = tty->canon_head;			if (tty->erasing) {				opost('/', tty);				tty->erasing = 0;			}			echo_char(KILL_CHAR(tty), tty);			/* Add a newline if ECHOK is on and ECHOKE is off. */			if (L_ECHOK(tty))				opost('\n', tty);			return;		}		kill_type = KILL;	}	seen_alnums = 0;	while (tty->secondary.head != tty->canon_head) {		c = LAST(&tty->secondary);		if (kill_type == WERASE) {			/* Equivalent to BSD's ALTWERASE. */			if (isalnum(c) || c == '_')				seen_alnums++;			else if (seen_alnums)				break;		}		DEC(tty->secondary.head);		if (L_ECHO(tty)) {			if (L_ECHOPRT(tty)) {				if (!tty->erasing) {					opost('\\', tty);					tty->erasing = 1;				}				echo_char(c, tty);			} else if (!L_ECHOE(tty)) {				echo_char(ERASE_CHAR(tty), tty);			} else if (c == '\t') {				unsigned int col = tty->canon_column;				unsigned long tail = tty->canon_head;				/* Find the column of the last char. */				while (tail != tty->secondary.head) {					c = tty->secondary.buf[tail];					if (c == '\t')						col = (col | 7) + 1;					else if (iscntrl(c)) {						if (L_ECHOCTL(tty))							col += 2;					} else						col++;					INC(tail);				}				/* Now backup to that column. */				while (tty->column > col) {					/* Can't use opost here. */					put_tty_queue('\b', &tty->write_q);					tty->column--;				}			} else {				if (iscntrl(c) && L_ECHOCTL(tty)) {					opost('\b', tty);					opost(' ', tty);					opost('\b', tty);				}				if (!iscntrl(c) || L_ECHOCTL(tty)) {					opost('\b', tty);					opost(' ', tty);					opost('\b', tty);				}			}		}		if (kill_type == ERASE)			break;	}	if (tty->erasing && tty->secondary.head == tty->canon_head) {		opost('/', tty);		tty->erasing = 0;	}}static void isig(int sig, struct tty_struct *tty){	kill_pg(tty->pgrp, sig, 1);	if (!L_NOFLSH(tty)) {		flush_input(tty);		flush_output(tty);	}}static void copy_to_cooked(struct tty_struct * tty){	int c, special_flag;	unsigned long flags;	if (!tty) {		printk("copy_to_cooked: called with NULL tty\n");		return;	}	if (!tty->write) {		printk("copy_to_cooked: tty %d has null write routine\n",		       tty->line);	}	while (1) {		/*		 * Check to see how much room we have left in the		 * secondary queue.  Send a throttle command or abort		 * if necessary.		 */		c = LEFT(&tty->secondary);		if (tty->throttle && (c < SQ_THRESHOLD_LW)		    && !set_bit(TTY_SQ_THROTTLED, &tty->flags))			tty->throttle(tty, TTY_THROTTLE_SQ_FULL);		if (c == 0)			break;		save_flags(flags); cli();		if (!EMPTY(&tty->read_q)) {			c = tty->read_q.buf[tty->read_q.tail];			special_flag = clear_bit(tty->read_q.tail,						 &tty->readq_flags);			INC(tty->read_q.tail);			restore_flags(flags);		} else {			restore_flags(flags);			break;		}		if (special_flag) {			tty->char_error = c;			continue;		}		if (tty->char_error) {			if (tty->char_error == TTY_BREAK) {				tty->char_error = 0;				if (I_IGNBRK(tty))					continue;				/* A break is handled by the lower levels. */				if (I_BRKINT(tty))					continue;				if (I_PARMRK(tty)) {					put_tty_queue('\377', &tty->secondary);					put_tty_queue('\0', &tty->secondary);				}				put_tty_queue('\0', &tty->secondary);				continue;			}			if (tty->char_error == TTY_OVERRUN) {				tty->char_error = 0;				printk("tty%d: input overrun\n", tty->line);				continue;			}			/* Must be a parity or frame error */			tty->char_error = 0;			if (I_IGNPAR(tty)) {				continue;			}			if (I_PARMRK(tty)) {				put_tty_queue('\377', &tty->secondary);				put_tty_queue('\0', &tty->secondary);				put_tty_queue(c, &tty->secondary);			} else				put_tty_queue('\0', &tty->secondary);			continue;		}		if (I_ISTRIP(tty))			c &= 0x7f;		if (!tty->lnext) {			if (c == '\r') {				if (I_IGNCR(tty))					continue;				if (I_ICRNL(tty))					c = '\n';			} else if (c == '\n' && I_INLCR(tty))				c = '\r';		}		if (I_IUCLC(tty) && L_IEXTEN(tty))			c=tolower(c);		if (c == __DISABLED_CHAR)			tty->lnext = 1;		if (L_ICANON(tty) && !tty->lnext) {			if (c == ERASE_CHAR(tty) || c == KILL_CHAR(tty) ||			    (c == WERASE_CHAR(tty) && L_IEXTEN(tty))) {				eraser(c, tty);				continue;			}			if (c == LNEXT_CHAR(tty) && L_IEXTEN(tty)) {				tty->lnext = 1;				if (L_ECHO(tty)) {					if (tty->erasing) {						opost('/', tty);						tty->erasing = 0;					}					if (L_ECHOCTL(tty)) {						opost('^', tty);						opost('\b', tty);					}				}				continue;			}			if (c == REPRINT_CHAR(tty) && L_ECHO(tty) &&			    L_IEXTEN(tty)) {				unsigned long tail = tty->canon_head;				if (tty->erasing) {					opost('/', tty);					tty->erasing = 0;				}				echo_char(c, tty);				opost('\n', tty);				while (tail != tty->secondary.head) {					echo_char(tty->secondary.buf[tail],						  tty);					INC(tail);				}				continue;			}		}		if (I_IXON(tty) && !tty->lnext) {			if ((tty->stopped && I_IXANY(tty) && L_IEXTEN(tty)) ||			    c == START_CHAR(tty)) {				start_tty(tty);				continue;			}			if (c == STOP_CHAR(tty)) {				stop_tty(tty);				continue;			}		}		if (L_ISIG(tty) && !tty->lnext) {			if (c == INTR_CHAR(tty)) {				isig(SIGINT, tty);				continue;			}			if (c == QUIT_CHAR(tty)) {				isig(SIGQUIT, tty);				continue;			}			if (c == SUSP_CHAR(tty)) {				if (!is_orphaned_pgrp(tty->pgrp))					isig(SIGTSTP, tty);				continue;			}		}		if (tty->erasing) {			opost('/', tty);			tty->erasing = 0;		}		if (c == '\n' && !tty->lnext) {			if (L_ECHO(tty) || (L_ICANON(tty) && L_ECHONL(tty)))				opost('\n', tty);		} else if (L_ECHO(tty)) {			/* Don't echo the EOF char in canonical mode.  Sun			   handles this differently by echoing the char and			   then backspacing, but that's a hack. */			if (c != EOF_CHAR(tty) || !L_ICANON(tty) ||			    tty->lnext) {				/* Record the column of first canon char. */				if (tty->canon_head == tty->secondary.head)					tty->canon_column = tty->column;				echo_char(c, tty);			}		}		if (I_PARMRK(tty) && c == (unsigned char) '\377' &&		    (c != EOF_CHAR(tty) || !L_ICANON(tty) || tty->lnext))			put_tty_queue(c, &tty->secondary);		if (L_ICANON(tty) && !tty->lnext &&		    (c == '\n' || c == EOF_CHAR(tty) || c == EOL_CHAR(tty) ||		     (c == EOL2_CHAR(tty) && L_IEXTEN(tty)))) {			if (c == EOF_CHAR(tty))				c = __DISABLED_CHAR;			set_bit(tty->secondary.head, &tty->secondary_flags);			put_tty_queue(c, &tty->secondary);			tty->canon_head = tty->secondary.head;			tty->canon_data++;		} else			put_tty_queue(c, &tty->secondary);		tty->lnext = 0;	}	if (!EMPTY(&tty->write_q))		TTY_WRITE_FLUSH(tty);	if (L_ICANON(tty) ? tty->canon_data : !EMPTY(&tty->secondary))		wake_up_interruptible(&tty->secondary.proc_list);	if (tty->throttle && (LEFT(&tty->read_q) >= RQ_THRESHOLD_HW)	    && clear_bit(TTY_RQ_THROTTLED, &tty->flags))		tty->throttle(tty, TTY_THROTTLE_RQ_AVAIL);}int is_ignored(int sig)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人在线视频一区二区| 不卡一区二区在线| 国产一区二区精品久久91| 99久精品国产| 久久久亚洲高清| 秋霞电影一区二区| 欧美私人免费视频| 国产精品九色蝌蚪自拍| 精品在线免费视频| 91精品国产综合久久香蕉的特点| 国产拍揄自揄精品视频麻豆| 奇米色一区二区| 91成人免费在线| 亚洲欧洲性图库| 国产精品一区二区久久精品爱涩| 欧美三级在线播放| 亚洲精品福利视频网站| 成人国产精品免费网站| 欧美精品一区二区不卡| 免费成人av在线| 日韩一区二区视频| 日本成人中文字幕在线视频| 欧美日韩的一区二区| 亚洲乱码国产乱码精品精可以看| 成人久久18免费网站麻豆 | 亚洲一区二区欧美| 91一区二区在线观看| 国产精品色婷婷久久58| 国产黄色精品网站| 国产婷婷色一区二区三区在线| 久久国产福利国产秒拍| 精品国产区一区| 精品夜夜嗨av一区二区三区| 精品国产一区二区精华| 九九热在线视频观看这里只有精品| 91精品国产色综合久久久蜜香臀| 视频在线在亚洲| 91精品国产综合久久精品性色| 秋霞av亚洲一区二区三| 久久综合成人精品亚洲另类欧美| 国内成+人亚洲+欧美+综合在线| 日韩视频一区二区三区| 精品系列免费在线观看| 久久久久久久av麻豆果冻| 国产精品一二三区在线| 亚洲欧洲中文日韩久久av乱码| 91丨国产丨九色丨pron| 亚洲国产aⅴ天堂久久| 91精品蜜臀在线一区尤物| 久99久精品视频免费观看| 国产亚洲制服色| 91在线高清观看| 亚洲免费观看视频| 91电影在线观看| 久久电影网站中文字幕| 国产精品乱人伦中文| 在线国产电影不卡| 激情综合色丁香一区二区| 欧美经典三级视频一区二区三区| 91亚洲男人天堂| 青娱乐精品视频在线| 国产亚洲欧美日韩在线一区| 91亚洲精品久久久蜜桃网站| 日韩激情av在线| 日本一区二区三区久久久久久久久不 | 亚洲精品亚洲人成人网| 欧美日韩精品一区二区三区蜜桃| 美女精品自拍一二三四| 国产精品毛片高清在线完整版| 欧美色图天堂网| 国产一区二区三区高清播放| 一区二区三区精品| 精品动漫一区二区三区在线观看| 97久久精品人人做人人爽| 老司机免费视频一区二区三区| 国产精品每日更新| 精品少妇一区二区三区在线播放| 91一区二区三区在线观看| 精品一区二区综合| 亚洲国产精品精华液网站| 久久综合九色综合久久久精品综合 | 精品久久久久av影院| 日本韩国精品在线| 国产激情一区二区三区| 视频在线观看一区二区三区| 国产精品美女久久久久久久网站| 欧美一级视频精品观看| 色综合网色综合| 成人精品国产免费网站| 精品一区二区三区免费| 亚洲线精品一区二区三区| 国产精品日韩精品欧美在线| 久久久久国色av免费看影院| 91精品福利视频| a4yy欧美一区二区三区| 国内精品在线播放| 奇米影视在线99精品| 亚洲国产日韩在线一区模特 | 精品久久一区二区| 欧美日韩日日摸| 日本高清视频一区二区| www.欧美日韩国产在线| 国产一区二区不卡在线| 久久丁香综合五月国产三级网站 | 国产原创一区二区三区| 久久9热精品视频| 麻豆国产精品777777在线| 亚洲r级在线视频| 一区二区三区中文字幕电影| 中文字幕一区二区不卡| 欧美国产欧美亚州国产日韩mv天天看完整 | 国产亚洲欧美日韩在线一区| 日韩午夜在线观看| 3atv一区二区三区| 欧美久久免费观看| 日韩美女一区二区三区四区| 91麻豆精品91久久久久久清纯| 678五月天丁香亚洲综合网| 91精品国产丝袜白色高跟鞋| 欧美一区三区二区| 欧美精品一区二区三区很污很色的| 欧美mv日韩mv| 国产亚洲精品bt天堂精选| 亚洲国产高清不卡| 亚洲免费观看高清完整版在线观看熊| 亚洲欧美视频在线观看视频| 亚洲精品中文在线| 日韩精品电影一区亚洲| 亚洲美女视频一区| 性久久久久久久久久久久| 日韩成人av影视| 韩国中文字幕2020精品| 成人在线综合网站| 色综合久久中文字幕| 7878成人国产在线观看| 欧美一区二区播放| 国产欧美日韩亚州综合| 亚洲婷婷综合久久一本伊一区| 一区二区三区自拍| 黄色精品一二区| www.亚洲精品| 555www色欧美视频| 国产丝袜在线精品| 有坂深雪av一区二区精品| 日本美女视频一区二区| 成人免费毛片app| 在线日韩一区二区| 久久一区二区三区国产精品| 亚洲欧洲在线观看av| 视频一区二区中文字幕| 国产福利一区在线| 欧美日韩精品一区视频| 久久久久久黄色| 亚洲成人一区二区| 国产91精品在线观看| 欧美影院午夜播放| 久久婷婷一区二区三区| 夜夜精品浪潮av一区二区三区| 精品一区二区成人精品| 色婷婷国产精品综合在线观看| 精品伦理精品一区| 亚洲va中文字幕| 99视频精品在线| 精品av久久707| 亚洲成av人**亚洲成av**| 顶级嫩模精品视频在线看| 欧美日韩一级片网站| 亚洲三级在线观看| 国产一区视频导航| 欧美肥大bbwbbw高潮| 综合激情网...| 国产精品一区专区| 日韩欧美国产麻豆| 亚洲一级二级在线| eeuss鲁片一区二区三区 | 狠狠狠色丁香婷婷综合久久五月| 色欧美乱欧美15图片| 日本一区二区高清| 狠狠色丁香婷婷综合| 欧美久久久影院| 一个色在线综合| 色菇凉天天综合网| 亚洲欧美自拍偷拍色图| 国产麻豆视频一区| 久久亚洲免费视频| 另类调教123区| 日韩一区二区在线看| 性感美女极品91精品| 色婷婷久久一区二区三区麻豆| 国产精品美女久久久久久久| 国产iv一区二区三区| 久久精品视频免费| 国产乱一区二区| 欧美成人一区二区三区片免费| 日韩二区三区在线观看| 欧美浪妇xxxx高跟鞋交| 日韩成人一级片| 日韩一级片在线观看| 美女诱惑一区二区| 久久综合成人精品亚洲另类欧美 |