ILD

pipe is stream but POSIX define PIPE_BUF
2025-12-5
根据man 7 pipeThe communication channel provided by a pipe is a byte stream: there is no concept of message boundaries.但是POSIX定义了:POSIX.1 says that w

file mtime update granularity
2025-12-10
众所周知,mtime是文件的最后修改时间,Time of last modification在我们的一个项目中,使用mtime判断一个文件是否修改。缓存上一次的mtime,结果出现了文件修改了,但是mtime没变的情况。出现了bug。经过研究发现,两次极短的写入,mtime不会变化。写一个demo验

Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.