|
11
|
| R.. GitHub STOP HELPING ICE · 技术社区 · 15 年前 |
|
|
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 |