关于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.
发布时间: 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.