UNIX环境高级编程 高级I/O

    相关函数列表 //调用open函数时指定O_NONBLOCK参数即可打开非阻塞I/O //记录锁 #include <fcntl.h> int fcntl(int fd, int cmd, ... /* struct flock *flockptr */ ); //锁记录的 flock结构体 struct flock { short l_type; //希望加锁
相关文章
相关标签/搜索