2017年1月9日
摘要: 部分转自http://www.cnblogs.com/zht-blog/p/4025903.html int ioctl(int d, int request, ...); ioctl用来控制特殊设备文件的属性,第一个参数fd必须是一个已经打开的文件描述符, 第三个参数一般为char *argp,它 阅读全文
posted @ 2017-01-09 17:59 邶风 阅读(2499) 评论(0) 推荐(0) 编辑
摘要: FILE * popen ( const char * command , const char * type ); int pclose ( FILE * stream ); type 参数只能是读或者写中的一种,"r" "w" 得到的返回值(标准 I/O 流)也具有和 type 相应的只读或只写 阅读全文
posted @ 2017-01-09 16:00 邶风 阅读(376) 评论(0) 推荐(0) 编辑