![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
syli哈哈
这个作者很懒,什么都没留下…
展开
-
管道通信示例
进程间通信--管道示例原创 2022-07-01 11:44:03 · 167 阅读 · 0 评论 -
scandir使用示例
cat scandir.c#include<stdio.h>#include<stdlib.h>#include<dirent.h>int main(){ char *str = "./"; char *dir_name; int n; struct dirent **entries = NULL; asprintf(&dir_name, "%s", str);原创 2022-05-31 20:01:18 · 277 阅读 · 0 评论 -
dlopen函数使用示例
cat dlopen.c#include <stdio.h>#include <dlfcn.h>int main(int argc, char *argv){ int index = -1; void *handle; int (*get_index)(int); int ret = -1; // 获取handle handle = dlopen("./liba.so", RTLD_NOW原创 2022-05-31 19:55:01 · 1099 阅读 · 0 评论 -
C语言解析文件内容,获取key、value
简单的C语言解析文件中的关键key和value原创 2022-05-31 19:47:09 · 1224 阅读 · 0 评论 -
crontab使用记录
crontab使用命令行相关crontab [ -u user ] filecrontab [ -u user ] [ -i ] { -e | -l | -r } crontab是一个程序,用来安装、卸载、显示定时任务列表,用于驱动cron守护进程。 每个用户都可以拥有自己的crontab,一般存放在/var/spool/cron/crontabs下,且以用户名作为文件名称,一般不建议直接编辑文件(可能定时任务无法生效),建议使用crontab -e-u 指定特定用户的crontab原创 2021-11-08 21:34:05 · 593 阅读 · 0 评论 -
常见的开源源码编译方式
原文链接:https://www.debian.org/doc/manuals/maint-guide/first.zh-cn.html#simplemake开源代码中,有一些是没有Makefile文件的,对于我们编译来讲,需要通过一系列操作生成对应的Makefile文件,步骤如下:autoreconf -i -f./configure && make详细流程如下:configure.ac-----+-> autoreconf -+-> configureMakef翻译 2021-09-18 10:42:56 · 633 阅读 · 0 评论 -
网络信息确认
网络丢包1.查看网卡驱动加载情况查找网卡驱动模块syli@syli-PC:~/work/tmp$ lspci -vvv# 找到网卡驱动模块00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (12) I219-V Subsystem: ASRock Incorporation Device 0d55 Control: I/O- Mem+ BusMaster+ SpecCycle- Me原创 2021-09-13 18:36:38 · 708 阅读 · 0 评论