摘要: 摘自:https://www.cnblogs.com/y-c-y/p/12187422.html 这篇文章介绍了关于blobmsg的内容,属于libubox库,是libubus的依赖库,在关于消息的传递中会使用到相关内容(https://www.cnblogs.com/embedded-linux/ 阅读全文
posted @ 2020-12-28 20:38 LiuYanYGZ 阅读(3171) 评论(2) 推荐(0) 编辑
摘要: 摘自:https://www.cnblogs.com/klb561/p/9135642.html DBUS是一种高级的进程间通信机制。DBUS支持进程间一对一和多对多的对等通信,在多对多的通讯时,需要后台进程的角色去分转消息,当一个进程发消息给另外一个进程时,先发消息到后台进程,再通过后台进程将信息 阅读全文
posted @ 2020-12-28 17:54 LiuYanYGZ 阅读(769) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://openwrt.org/zh/docs/techref/uci 摘自:https://openwrt.org/docs/guide-user/base-system/uci UCI (统一配置接口) 功能组件和库文件的项目管理界面 UCI适用于R10367 (trunk)以后的 阅读全文
posted @ 2020-12-28 17:28 LiuYanYGZ 阅读(880) 评论(0) 推荐(0) 编辑
摘要: 摘自:http://www.openwrt.pro/post-37.html OpenWRT UCI API的使用 LUCI配置文件简介 LUCI的配置文件一般存储在 /etc/config目录下。比如网络配置文件则是 /etc/config/network 无线的配置文件是 /etc/config 阅读全文
posted @ 2020-12-28 17:21 LiuYanYGZ 阅读(3457) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://blog.csdn.net/sweetfather/article/details/79457261 百度了一圈setsid的作用,基本都是一个抄袭一个,真的是太桑心,引用百度百科原话: 当进程是会话的领头进程时setsid()调用失败并返回(-1)。 setsid()调用成功 阅读全文
posted @ 2020-12-28 15:49 LiuYanYGZ 阅读(711) 评论(0) 推荐(1) 编辑
摘要: 摘自:https://blog.csdn.net/liangdsing/article/details/53201410 uloop.c是libubox的一个小模块,简化了编程 1. socket 使用 #include "" struct uloop_fd ufd; //创建uloop_fd全局变 阅读全文
posted @ 2020-12-28 14:49 LiuYanYGZ 阅读(913) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://my.oschina.net/u/1777349/blog/599651 摘自:https://blog.csdn.net/chengxing6375/article/details/100838511 libubox是openwrt新版本中的一个基础库,在openwrt.14 阅读全文
posted @ 2020-12-28 14:34 LiuYanYGZ 阅读(1312) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://openwrt.org/docs/techref/libubox libubox It's one of the core libraries used within openwrt because it's a set of utilities, mostly wrapper 阅读全文
posted @ 2020-12-28 14:25 LiuYanYGZ 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://segmentfault.com/a/1190000012086550 usock即是对网络套接字连接的简单封装。 类型标志: #define USOCK_TCP 0 #define USOCK_UDP 1 #define USOCK_SERVER 0x0100 #define 阅读全文
posted @ 2020-12-28 14:16 LiuYanYGZ 阅读(837) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://www.cnblogs.com/laoxiaobaiup/p/9366880.html 1. libubox概述 libubox是openwrt新版本中的一个基础库,有很多应用是基于libubox开发的,如uhttpd,netifd,ubusd等。 libubox主要提供以下两 阅读全文
posted @ 2020-12-28 14:14 LiuYanYGZ 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://www.cnblogs.com/ohmygirl/p/random.html 1. 基本介绍 /dev/random和/dev/urandom是Linux系统中提供的随机伪设备,这两个设备的任务,是提供永不为空的随机字节数据流。很多解密程序与安全应用程序(如SSH Keys,S 阅读全文
posted @ 2020-12-28 14:06 LiuYanYGZ 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://blog.csdn.net/yhtoo/article/details/46943727 asprintf 第一个参数是指向指针的指针,它会在heap中自动申请空间(最后要手动free)。使用asprintf ,要加上 #define _GNU_SOURCE int aspri 阅读全文
posted @ 2020-12-28 13:47 LiuYanYGZ 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://blog.csdn.net/huangxiaohu_coder/article/details/7475156 经常要写点Linux下命令行的测试程序,都需要对命令行参数做一些处理,以前都是自己来写参数的处理,不只每次写的都不一样,而且每次还浪费时间去做参数的判断,而且写出来的 阅读全文
posted @ 2020-12-28 11:12 LiuYanYGZ 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 摘自:https://www.cnblogs.com/qingergege/p/5914218.html 更多请参考:https://blog.csdn.net/huangxiaohu_coder/article/details/7475156 最近在弄Linux C编程,本科的时候没好好学啊,希望 阅读全文
posted @ 2020-12-28 09:59 LiuYanYGZ 阅读(578) 评论(0) 推荐(0) 编辑