摘要: 转载自:http://blog.chinaunix.net/uid-26782198-id-3242120.html 系统# uname -a # 查看内核/操作系统/CPU信息# head -n 1 /etc/issue # 查看操作系统版本# cat /proc/cpuinfo # 查看CPU信 阅读全文
posted @ 2018-06-04 14:58 Malphite 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 在C++中,静态成员是属于整个类的而不是某个对象,静态成员变量只存储一份供所有对象共用。所以在所有对象中都可以共享它。使用静态成员变量实现多个对象之间的数据共享不会破坏隐藏的原则,保证了安全性还可以节省内存。 静态成员的定义或声明要加个关键static。静态成员可以通过双冒号来使用即<类名>::<静 阅读全文
posted @ 2018-05-16 11:22 Malphite 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 本文是本人对OpenWrt的Makefile的理解,并非转载。OpenWrt是一个典型的嵌入式Linux工程,了解OpenWrt的Makefile的工作过程对提高嵌入式Linux工程的开发能力有极其重要意义。OpenWrt的主Makefile文件只有100行,可以简单分为三部分,1~17行为前导部分 阅读全文
posted @ 2018-05-14 17:17 Malphite 阅读(3224) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include int main() { int inet_sock; struct ifreq ifr; char addr[16]={0}; char *getaddr= NULL; ... 阅读全文
posted @ 2018-03-27 22:49 Malphite 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 1、安装 nfs server sudo apt-get install nfs-kernel-server 2、配置/etc/exports 文件 sudo vi /etc/exports /home/xxx *(rw,sync,no_subtree_check,no_root_squash) x 阅读全文
posted @ 2018-03-05 23:49 Malphite 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1、添加log printf("\033[1;43m %s,%s,%d\033[0m\n",__FILE__,__FUNCTION__,__LINE__); FILE:文件名 FUNCTION:函数名 LINE:代码所在文件行数 阅读全文
posted @ 2018-02-26 17:21 Malphite 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1、execve执行脚本 execve.c 阅读全文
posted @ 2018-02-26 00:36 Malphite 阅读(167) 评论(0) 推荐(0) 编辑
摘要: script.cscript_runreason(const struct interface *ifp, const char *reason)elen = (size_t)make_env(ifp, reason, &env);pid = exec_script(ifp->ctx, argv, 阅读全文
posted @ 2018-01-29 18:21 Malphite 阅读(382) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/luckyapple1028/article/details/50839395 http://blog.csdn.net/luckyapple1028/article/details/50936563 https://www.ibm.com/develope 阅读全文
posted @ 2018-01-21 22:21 Malphite 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 1、sqlite数据库数据类型 Integer 整型 varchar(10) 字符数组 float 浮点型 double 双精度浮点型 char(10) 字符型 text 文本型 2、sql语法 2.1 创建表语句 create table 表名(字段名称 数据类型 约束,字段名称 数据类型 约束. 阅读全文
posted @ 2018-01-21 12:47 Malphite 阅读(711) 评论(0) 推荐(0) 编辑