11
|
R.. GitHub STOP HELPING ICE · 技术社区 · 14 年前 |
![]() |
1
10
这个
|
![]() |
2
3
可以使用fstat(),然后使用stat结构的mode字段上的S\u ISREG宏来检查它是否是常规文件;普通档案, per definiton 但是,检查lseek()和errno==ESPIPE的返回值也应该有效。原则上, the effect of lseek() on devices which are incapable of seeking is implementation-defined |
|
Spring fancy · 为什么linux中不混合标准输入? 7 年前 |
|
Gordon · 在Linux中读取和写入同一文件描述符时出现问题 7 年前 |
![]() |
Alexander Mills · 向下传递手柄管道 7 年前 |
![]() |
Bilow · 如何处理open()返回1 7 年前 |
![]() |
Dov · 调试Mac/Cococa文件描述符泄漏 10 年前 |
![]() |
Sergey L. · perl多管CLOEXEC 11 年前 |