
Linux
taoxp123456
这个作者很懒,什么都没留下…
展开
-
Linux 静态库-动态库-Makefile管理开发实例
Linux 静态库和动态库开发实例程序结构编写静态库和Makefile编写动态库和Makefile编写主程序和Makefile编写顶层Makefile设置动态库路径执行结果程序结构.├── inc│ ├── hello.h│ └── world.h├── liba│ ├── hello.c│ └── Makefile├── libso│ ├── Makefi...原创 2019-03-01 12:28:55 · 275 阅读 · 0 评论 -
LInux 内核模块开发实例
LInux 内核模块开发实例编写一个helloworld内核模块编写编译内核模块Makefile编写一个helloworld内核模块#include <linux/init.h>#include <linux/module.h>static void hello_init(void){ printk(KERN_ALERT,"Hello World...原创 2019-02-28 18:50:23 · 410 阅读 · 0 评论 -
Linux 线程同步-条件变量和互斥锁开发实例
Linux 线程条件变量和互斥锁开发实例代码执行结果代码main.c#include <stdio.h>#include <pthread.h>#include <stdio.h>#include <stdlib.h&原创 2019-03-06 11:08:00 · 211 阅读 · 0 评论 -
Linux 多线程-互斥锁-解析配置-回调函数开发实例
Linux 解析配置+ 多线程+互斥源码目录结构源码main.cssh.cssh.hconf.jsonMakefile执行结构查看线程查看执行结果源码目录结构..├── cfg│ └── conf.json├── inc│ ├── parson.h│ └── ssh.h├── Makefile└── src├── main.c├── parson.c└── s...原创 2019-03-04 14:26:51 · 288 阅读 · 0 评论 -
Linux C执行shell命令
Linux C执行shell命令popensystempopenBOOL runPopenCommand(char *cmd){ BOOL ret = FALSE; FILE *fp = popen(cmd, "r"); if(fp) { char buf[256] = {0}; if(fgets(buf, sizeof(buf), fp) != NULL) { ret...原创 2019-03-13 11:40:31 · 506 阅读 · 0 评论