04 2015 档案
获取主机硬件资源 函数
摘要:1、NAME statfs, fstatfs - get file system statisticsSYNOPSIS #include /* or */ int statfs(const char *path, struct statfs *buf); int fstatfs... 阅读全文
posted @ 2015-04-16 08:39 醉依危栏听松涛 阅读(194) 评论(0) 推荐(0)
readdir() 获取文件类型
摘要:readdir()获取文件类型//// 字符设备文件type =2, filename207=tty0crw-rw---- 1 root root 4,0 04-10 16:28 tty0//// 目录文件type =4, filename213=shmdrwxrwxrwt 2 root root ... 阅读全文
posted @ 2015-04-15 09:01 醉依危栏听松涛 阅读(532) 评论(0) 推荐(0)
linux xargs
摘要:Task: 遍历当前目录及子目录, 找出 含"sprintf" 的语句Note1: grep -n 只能找出 当前目录下的文件, 子目录就无能为力了Note2: 借助xargs, find ./* -name "*.c" |xargs grep -n "sprintf" 即可;===========... 阅读全文
posted @ 2015-04-14 13:10 醉依危栏听松涛 阅读(129) 评论(0) 推荐(0)
iLBC 压缩比
摘要:*---------------------------------------------------** ** iLBC test program ** ** ... 阅读全文
posted @ 2015-04-14 11:40 醉依危栏听松涛 阅读(219) 评论(0) 推荐(0)
Linux下tmpfs介绍及使用
摘要:[日期:2013-12-09] 来源:Linux社区 作者:haibusuanyuntmpfs介绍tmpfs是一种虚拟内存文件系统,而不是块设备。是基于内存的文件系统,创建时不需要使用mkfs等初始化它最大的特点就是它的存储空间在VM(virtual memory),VM是由linux内核里面的vm... 阅读全文
posted @ 2015-04-11 14:44 醉依危栏听松涛 阅读(402) 评论(0) 推荐(0)
char,short ,int ,long,long long,unsigned long long数据范围
摘要:char,short ,int ,long,long long,unsigned long long数据范围http://www.cnblogs.com/A123456A/archive/2013/01/25/2876634.html速查表:char -128 ~ +127 (1 Byte)shor... 阅读全文
posted @ 2015-04-10 17:56 醉依危栏听松涛 阅读(329) 评论(0) 推荐(0)
linux tee 命令详解
摘要:linux tee 命令详解功能说明:读取标准输入的数据,并将其内容输出成文件。语 法:tee [-ai][--help][--version][文件...]补充说明:tee指令会从标准输入设备读取数据,将其内容输出到标准输出设备,同时保存成文件。参 数: -a或--append 附加到既有文... 阅读全文
posted @ 2015-04-10 08:50 醉依危栏听松涛 阅读(291) 评论(0) 推荐(0)
Qmake 工具编译调试
摘要:Qmake 工具编译调试2015年4月9日星期四 18:38:061、 确定qmaek 路径[root@roger ~]# which qmake/usr/lib/qt-3.3/bin/qmake[root@roger ~]# which qmake-3520a/usr/local/qt-4.5.3... 阅读全文
posted @ 2015-04-09 19:25 醉依危栏听松涛 阅读(493) 评论(0) 推荐(0)