Hi there 👋

Welcome to my blog

timerfd 相关函数介绍

# 定时器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...

May 5, 2024 · 2 min · 626 words · mm

libcurl报错 "Send failed since rewinding of the data stream failed"

问题背景 小组使用C++开发,使用libcurl封装了Http请求模块。由于项目需求实现gzip压缩,便通过libcurl压缩选项实现了该功能...

February 18, 2024 · 1 min · 402 words · mm

libuuid编译

编译 1、获取源代码, 下载地址 https://jaist.dl.sourceforge.net/project/libuuid/libuuid-1.0.3.tar.gz 2、解压文件,创建build文件夹 3、进入源代码文件下,(交叉编译才需要补充参数) ./configure –prefix...

January 31, 2024 · 2 min · 560 words · mm

【C++】智能指针

unique_ptr C++11引入了std::unique_ptr主要是为了提供一种在资源管理方面更为安全和高效的替代方案。std::unique_ptr是一...

January 17, 2024 · 6 min · 2859 words · mm

静态链接和动态链接

一、静态库和动态库 Linux的库文件一般分为静态库和动态库: 静态库(.a): 库文件以.a为后缀,程序在编译链接的时候把库的代码链接到可执行文...

January 16, 2024 · 3 min · 1199 words · mm