您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ tty_init函数代码示例

51自学网 2021-06-03 09:00:23
  C++
这篇教程C++ tty_init函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中tty_init函数的典型用法代码示例。如果您正苦于以下问题:C++ tty_init函数的具体用法?C++ tty_init怎么用?C++ tty_init使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了tty_init函数的29个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: UART_Init

void UART_Init(int id, UINT32 baud){    if (id == 0) {	uart[0] = 0; // open("/dev/tty", O_RDWR);	tty_init(uart[0], baud);    }    else if (id == 1) {	uart[1] = open("/dev/ttys000", O_RDWR);	tty_init(uart[1], baud);    }    // UART_SetBaud(id, baud);}
开发者ID:toxicgumbo,项目名称:m1,代码行数:12,


示例2: cisco_decrypt

u_charcisco_decrypt(void){     u_char retval;     time_t start, stop;     tty_init();     time(&start);     /* check if the arg is a valid md5 cisco IOS password */     if (cisco_is_ios_md5crypt(usr_opt.decryptopt.cipher))          cipher_engine = cisco_ios_cipher;     /* check if the arg is a valid md5 PIX password */     else if (cisco_is_pix_md5crypt(usr_opt.decryptopt.cipher))          cipher_engine = cisco_pix_cipher;     else          tty_error(ERR_USAGE,                    "neither a Cisco IOS nor a PIX password -- `%s'",                    usr_opt.decryptopt.cipher);     retval = (usr_opt.action == decrypt_wl || usr_opt.action == resume_wl) ?              wordlist() : bruteforce();     time(&stop);     if (usr_opt.verbose)          tty_message("scan time: %g second(s)/n/n", difftime(stop, start));     return retval;}
开发者ID:madrisan,项目名称:cisco5crack,代码行数:29,


示例3: sef_cb_init_fresh

/*===========================================================================* *		            sef_cb_init_fresh                                * *===========================================================================*/static int sef_cb_init_fresh(int UNUSED(type), sef_init_info_t *UNUSED(info)){/* Initialize the tty driver. */  int r;  char val[CONS_ARG];  /* Get kernel environment (protected_mode, pc_at and ega are needed). */   if (OK != (r=sys_getmachine(&machine))) {    panic("Couldn't obtain kernel environment: %d", r);  }  if (env_get_param("console", val, sizeof(val)) == OK) {	set_console_line(val);  }  if ((r = env_get_param("kernelclr", val, sizeof(val))) == OK) {	set_kernel_color(val);  }  /* Initialize the TTY driver. */  tty_init();  /* Final one-time keyboard initialization. */  kb_init_once();  /* Register for diagnostics notifications. */  sys_diagctl_register();  return(OK);}
开发者ID:Hooman3,项目名称:minix,代码行数:33,


示例4: console_init

/* * Init */static intconsole_init(void){	struct bootinfo *bootinfo;	machine_bootinfo(&bootinfo);	cols = bootinfo->video.text_x;	rows = bootinfo->video.text_y;	esc_index = 0;	attrib = 0x0F;	vram = phys_to_virt((void *)VID_RAM);	reset_cursor();#if defined(DEBUG) && defined(CONFIG_DIAG_SCREEN)	debug_attach(console_puts);#endif	tty_init(&console_tty);	/* init data */	console_tty.t_oproc = console_start;	console_tty.t_winsize.ws_row = (u_short)rows;	console_tty.t_winsize.ws_col = (u_short)cols;	console_dev = tty_attach("console", &console_tty);	tty_dev = tty_attach("tty", &console_tty);	ASSERT(tty_dev);	return 0;}
开发者ID:AndrewD,项目名称:prex,代码行数:31,


万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。