![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
cool黑科技
这个作者很懒,什么都没留下…
展开
-
检测挂载的存储块是否写保护
检测挂载的存储块是否写保护,可使用如下方法:1.Opening the device file in write mode and see if it fails witherrnovalueEROFS(Read-only file system). 2.Opening the device file in read mode, then issueioctl()namedBLKROGET, and check if the result value is nonzero; this i...原创 2020-12-17 18:04:45 · 316 阅读 · 0 评论 -
libcurl使用注意
libcurl使用注意:注意点1:现象:http短连接超过一定次数后一直返回错误7,即CURLE_COULDNT_CONNECT过程有打印:Immediate connect fail for 114.116.228.34: Too many open files使用netstat查看发现有大量的TCP连接保持在CLOSE_WAIT状态:原因:也就是说,默认情况下libcurl完成一个任务以后,出于重用连接的考虑不会马上关闭如果没有新的TCP请求来重用这个连接,那么只能等到CLOSE_WAIT原创 2020-12-01 15:42:02 · 982 阅读 · 0 评论 -
编译脚本知识点记录
编译脚本知识点记录:1.LOCAL_CFLAGS用法:LOCAL_CFLAGS += -DXXX 相当于在所有源文件中增加一个宏定义#define XXX原创 2020-05-09 12:14:09 · 340 阅读 · 0 评论