Hi there 👋
Welcome to my blog
# 定时器timerfd 相关函数 #include <sys/timerfd.h> int timerfd_create(int clockid, int flags); int timerfd_settime(int fd, int flags, const struct itimerspec *new_value, struct itimerspec *old_value); int timerfd_gettime(int fd, struct itimerspec *curr_value); timerfd_create timerfd_create() 创建一个定时器描述付timerfd clockid CLOCK_REAL...
问题背景 小组使用C++开发,使用libcurl封装了Http请求模块。由于项目需求实现gzip压缩,便通过libcurl压缩选项实现了该功能...
编译 1、获取源代码, 下载地址 https://jaist.dl.sourceforge.net/project/libuuid/libuuid-1.0.3.tar.gz 2、解压文件,创建build文件夹 3、进入源代码文件下,(交叉编译才需要补充参数) ./configure –prefix...
unique_ptr C++11引入了std::unique_ptr主要是为了提供一种在资源管理方面更为安全和高效的替代方案。std::unique_ptr是一...
一、静态库和动态库 Linux的库文件一般分为静态库和动态库: 静态库(.a): 库文件以.a为后缀,程序在编译链接的时候把库的代码链接到可执行文...