2017年2月14日

摘要: 1.错误处理 - fprintf() - perror() 2.通用I/O模型 - fd = open(pathname, flags, mode) - numread = read(fd, buffer, count) - numwritten = write(fd, buffer, count) 阅读全文
posted @ 2017-02-14 23:05 Mr_ox 阅读(953) 评论(0) 推荐(0) 编辑

2017年2月13日

摘要: 1.操作系统提供的服务: - 进程调度 - 内存管理 - 磁盘管理 - 网络服务 - 设备管理 - 提供应用程序编程接口 2.shell是什么? shell是一种具有特殊用途的程序,主要用于读取用户输入的命令,并执行相应的程序以相应命令。也被称为命令解释器。 3.Linux系统的文件类型有哪些? b 阅读全文
posted @ 2017-02-13 22:03 Mr_ox 阅读(74) 评论(0) 推荐(0) 编辑
 
摘要: 错误一: 1.问题:make命令版本过高,出现该错误 2.解决:参考http://www.linuxidc.com/Linux/2012-01/52368.htm 将makefile中的 config %config: scripts_basic outputmakefile FORCE 修改为 % 阅读全文
posted @ 2017-02-13 18:11 Mr_ox 阅读(321) 评论(0) 推荐(0) 编辑

2017年2月12日

摘要: 1.重要数据结构 - struct file_operaions - struct inode - struct file 2.杂设备驱动模板:struct miscdevice - 注册:int misc_register(struct miscdevice *misc) - 注销:int mis 阅读全文
posted @ 2017-02-12 22:53 Mr_ox 阅读(112) 评论(0) 推荐(0) 编辑
 
摘要: 1.显示转换:类型说明符(表达式),如a = int(z) 2.枚举类型enum:专门用来解决对数据的合法性检查问题,如一星期七天,如果用int/char等数据类型描述时,则需要对数据的合法性检查。声明形式为: enum 枚举类型名 {变量值列表} 注意:- 对枚举元素按常理处理,不能对其赋值 - 阅读全文
posted @ 2017-02-12 22:28 Mr_ox 阅读(348) 评论(0) 推荐(0) 编辑

2017年1月26日

摘要: 错误一: 1.解决参考:http://blog.csdn.net/u010445505/article/details/39299855 2.下载得到文件__gnu_mcount_nc_patch.patch.gz后,使用命令:gzip -dc __gnu_mcount_nc_patch.patch 阅读全文
posted @ 2017-01-26 19:26 Mr_ox 阅读(1225) 评论(0) 推荐(0) 编辑

2016年12月4日

摘要: 使用iconv库函数进行utf-8转gb2312时,移植iconv库 阅读全文
posted @ 2016-12-04 19:37 Mr_ox 阅读(409) 评论(0) 推荐(0) 编辑