读书人

关于read()的有关问题

发布时间: 2012-08-16 12:02:15 作者: rapoo

关于read()的问题
read()函数在什么情况下返回的是负数

[解决办法]
Upon successful completion, read() and pread() shall return a non-negative integer indicating the number of bytes actually read. Otherwise, the functions shall return -1 and set errno to indicate the error.

读书人网 >UNIXLINUX

热点推荐