《UNIX网络编程 卷2》读书笔记(五)
摘要:
void my_lock(int fd){ struct flock lock; lock.l_type = F_WRLCK; lock.l_whence = SEEK_SET; lock.l_start = 0; lock.l_len = 0; /**//* write lock entire file */ Fcntl(f... 阅读全文
posted @ 2008-05-29 22:11 Phinecos(洞庭散人) 阅读(800) 评论(0) 推荐(0) 编辑