摘要: 转:https://blog.csdn.net/SLN2432713617/article/details/89138731 解释信号丢失问题:阻塞,sigaction 函数有阻塞的功能,比如 SIGINT 信号来了,进入信号处理函数,默认情况下,在信号处理函数未完成之前,如果又来了一个 SIGIN 阅读全文
posted @ 2022-12-21 10:53 ainingxiaoguai 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 转:https://blog.csdn.net/chen1415886044/article/details/104537547 GCC编译过程: 上述gcc命令其实依次执行了四步操作: 1.预处理(Preprocessing)2.编译(Compilation),3.汇编(Assemble),4.链 阅读全文
posted @ 2022-09-19 10:08 ainingxiaoguai 阅读(131) 评论(0) 推荐(0) 编辑
摘要: objdump # 查看依赖的库objdump -x xxx.so | grep NEEDED # 查看可执行程序依赖的库objdump -x ./testTime | grep NEEDED readelf (https://blog.csdn.net/yfldyxl/article/detail 阅读全文
posted @ 2022-09-18 16:05 ainingxiaoguai 阅读(5407) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/weibo1230123/article/details/81410241 1.linux线程执行和windows不同,pthread有两种状态joinable状态和unjoinable状态,如果线程是joinable状态,当线程函数自己返回退出 阅读全文
posted @ 2022-07-20 15:30 ainingxiaoguai 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 转:http://m.biancheng.net/view/7421.html 中断调试是为了让程序运行时停在某一个或多个点上,然后进行调试操作,也就是分步调试程序。为什么要分步调试程序呢?具体可以归结为两个原因: 为了方便我们获取程序运行时的各个阶段的信息。通过这些信息,可以分析出程序中表达式的变 阅读全文
posted @ 2022-07-19 09:39 ainingxiaoguai 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 转: http://c.biancheng.net/view/7440.html 1. GDB默认调试的是父进程,我们可以设置调试的进程,使用命令: set follow-fork-mode <mode> 其中 mode 为设置调试的进程:可以是child,也可以是parent。当 mode 为 p 阅读全文
posted @ 2022-07-19 09:31 ainingxiaoguai 阅读(1342) 评论(0) 推荐(0) 编辑
摘要: 1 int cmp(const void ** a, const void **b) 2 { 3 int **p = (int **)a, **q = (int **)b; 4 return (*p)[1] - (*q)[1]; 5 } 6 7 int eraseOverlapIntervals(i 阅读全文
posted @ 2022-07-10 17:22 ainingxiaoguai 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 1 int candy(int* ratings, int ratingsSize) { 2 int *candys = NULL; 3 int resulte = 0; 4 5 candys = (int *)malloc(sizeof(int)*ratingsSize); 6 if (NULL 阅读全文
posted @ 2022-07-10 16:54 ainingxiaoguai 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1 int cmp(const void *a, const void *b) 2 { 3 int *p = (int*)a, *q = (int *)b; 4 return *p - *q; 5 } 6 int findContentChildren(int* g, int gSize, int* 阅读全文
posted @ 2022-07-10 16:10 ainingxiaoguai 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 转:https://blog.csdn.net/andylau00j/article/details/54583769 这里是一个加密套件的例子: TLS _ECDHE_ RSA _ WITH_AES_128_GCM _ SHA256 TLS是协议。从ECDHE开始,在握手期间,密钥将通过临时ECD 阅读全文
posted @ 2022-07-05 15:55 ainingxiaoguai 阅读(1173) 评论(0) 推荐(1) 编辑