2023年2月27日

文件锁

摘要: #include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <string.h> int wlock(int fd, int wait) { struct flock lock; // 操作类型 F_RDLCK 读锁, F_W 阅读全文

posted @ 2023-02-27 11:40 信奉上帝的小和尚 阅读(8) 评论(0) 推荐(0) 编辑

导航