随笔分类 -  c

openwrt 的依赖找不到问题
摘要:Openwrt报告库找不到Package * is missing dependencies for the following libraries: libc.so.6 或其他先检查系统里面有没有这个库存在,如果没有,安装 (在/lib /lib64 等目录找)之后添加库openwrt的编译环境修... 阅读全文

posted @ 2014-08-06 16:30 liushan 阅读(8870) 评论(0) 推荐(0)

wifidog 配置中文说明
摘要:#网关IDGatewayID default#外部网卡ExternalInterface eth0#无线网卡GatewayInterface eth0#无线IPGatewayAddress 192.168.1.1#路由状态HTMLHtmlMessageFile wifidog-msg.html #验... 阅读全文

posted @ 2014-07-06 16:59 liushan 阅读(2804) 评论(0) 推荐(0)

线程笔记
摘要:##线程 pthread#线程概念 进程中的所有信息在线程中都是共享的 编译参数 最后加上 -lpthread 判断是否支持线程 sysconf(_SC_THREADS) 线程ID是pthread_t 数据类型,各个平台的结构不相同 每个线程都有errno副本#基本线程函... 阅读全文

posted @ 2013-12-21 18:19 liushan 阅读(276) 评论(0) 推荐(0)

hashtable 实现
摘要:#include #include #include typedef struct _hashnode{ int val; char * key; struct _hashnode * next;} hashnode;//存储hash表大小#define HASHTABLE_MAX... 阅读全文

posted @ 2013-08-02 16:10 liushan 阅读(364) 评论(0) 推荐(0)