![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux编程
文章平均质量分 61
Megahertz66
前武警战士,现嵌入式壮士。
展开
-
Cmake练习2 error: ‘mysqrt‘ was not declared in this scope
cmake practical2 step2 error: ‘mysqrt’ was not declared in this scope在 cmake 官方练习2中出现了 error: 'mysqrt' was not declared in this scope错误,我对照了步骤看了好几遍,觉得哪里都没有和教程上有出入。但是还是出现了报错。原创 2024-04-26 23:37:15 · 259 阅读 · 0 评论 -
Cmake入门学习指南
cmake 的官方的教程,里面的内容很简单,并且有简单的习题帮助你理解 cmake。原创 2024-04-25 23:17:17 · 340 阅读 · 0 评论 -
cmake practice no such file or directory
cmake 出现 no such file or directory 时的解决思路。原创 2024-04-25 23:15:30 · 437 阅读 · 0 评论 -
使用select注意事项
使用select注意事项,监测的文件描述符一定要处理![待更新-] 为何会产生这种现象!今天在实际使用timerfd 以及select过程中,发现FD_ISSET并不能有效检测文件描述符。实际现象就是一直可以进这个if。后来终于发现,如果你不使用read等将文件描述符的内容进行读出,那么select函数会认为这个描述符始终处于置位状态,进而导致了这个现象。下面的代码,可以实际的测试一下,重点观察注释掉read前后的差异。如果注掉read就会无限进入判断。注意,初始超时时间,是指第一次到期的时间#原创 2021-06-06 23:59:37 · 427 阅读 · 0 评论 -
原创-非转 KMP学习总结
KMP学习总结看《大话数据结构》里面有关于字符串搜索算法KMP, 自己实验了书上的代码也不太正常,可能是我的问题,期待各位小伙伴验证。看了好多网上的好文我才明白究竟是怎么回事。原因估计就是我比较菜吧~KMP算法这里推荐一篇知乎上的文章,里面有动图对于原理理解特别棒。labuladong的算法专栏 - KMP 算法详解还有一篇csdn的大佬的文章从头到尾彻底理解KMP(2014年8月...原创 2020-02-25 17:22:18 · 129 阅读 · 0 评论 -
str 开头库函数
str 开头库函数strpbrkstrset & strnsetstrlwrstrstrstrcatstrcmp & strcmpistrcoll & stricollstrcspn & strspnstrtofstrtokstrtolstrtoldstrtollstrtoulstruprstrcfrmstrdupstrerrp...原创 2020-02-11 12:13:32 · 1116 阅读 · 0 评论 -
linux域套接字(domain socket)
Unix domain socketliux中的一种进程间通信方式就是通过网络套接字进行通讯的。UNIX domain sockets are used to communicate with processes running on the same machine. Although Internet domain sockets can be used for this same pu...原创 2020-02-05 14:11:30 · 1622 阅读 · 0 评论 -
Tcpdump使用记录
How To Use TcpdumpParameter Description-i specify the network card. (E.g eth0) -c specify the numbers of packets that the Tcpdump can capture -v it can produce more detailed data-e it can pr...原创 2020-02-05 14:08:25 · 237 阅读 · 0 评论 -
在一行上使用多条shell命令
在一行上使用多条shell命令[ ; ]如果被分号(;)所分隔的命令会连续的执行下去,就算是错误的命令也会继续执行后面的命令。[root@localhost etc]# lld ; echo “ok” ; lok -bash: lld: command not found ok -bash: lok: command not found [ && ]如果命...原创 2020-01-12 21:30:16 · 3102 阅读 · 0 评论 -
如何使用TCPDUMP(持续。。。)
How To Use TcpdumpParameter Description-i specify the network card. (E.g eth0) -c specify the numbers of packets that the Tcpdump can capture -v it can produce more detailed data-e it can pr...原创 2020-01-12 21:25:55 · 288 阅读 · 0 评论 -
DNSmasq
DNSmasq 代码分析代码流程分析遇到的知识点od shell命令/dev/urandom实现引导时启动setjump & longjump jump_bufSLAACgetopt & getopt_long 函数DHCP服务器如何知道 DNS server and route 6.4节ACD技术PXE(Preboot Execution Envirom...原创 2020-01-12 21:19:05 · 2767 阅读 · 1 评论 -
各种printf详解
各种printf详解The functions in the printf() family produce output according to a format as described below. The functions printf() and vprintf() write output to stdout, the standard output ...原创 2019-08-22 22:12:03 · 267 阅读 · 0 评论