摘要: https://www.cnblogs.com/huxiao-tee/p/4660352.html 阅读全文
posted @ 2021-06-12 18:27 lypbendlf 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 转自:https://zhuanlan.zhihu.com/p/57397746 1.c语言中打开文件的demo: 2.内核文件描述符表 1. 进程级的文件描述符表 2. 系统级的打开文件描述符表 3. 文件系统的i-node表 3.文件句柄与文件描述符 也就是说通过文件描述符可以找到文件句柄,同时 阅读全文
posted @ 2021-06-12 17:57 lypbendlf 阅读(264) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000002655852 阅读全文
posted @ 2021-06-12 01:45 lypbendlf 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1.EAGIN https://blog.csdn.net/memo_weiwei/article/details/7691226 在非阻塞操作中常见的错误。 例如,以O_NONBLOCK非阻塞的标志打开文件/socket/FIFO,如果你连续做read操作而没有数据可读。此时程序不会阻塞起来等待数 阅读全文
posted @ 2021-06-12 00:47 lypbendlf 阅读(88) 评论(0) 推荐(0) 编辑