Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在调试一些代码,并且总是有 l_pid = 0 用于设置文件锁定..这对我来说似乎很奇怪..这是正确的吗?文档没有说关于 0 零值..
l_pidF_GETLK仅在使用;获取锁定状态时才有意义 设置锁时,如果成功,那么您就知道 pid 拥有它。:) (并且缓冲区未修改就返回失败。)
l_pid
F_GETLK