当前位置: 技术问答>linux和unix
关于read()的问题
来源: 互联网 发布时间:2017-02-01
本文导语: 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 a...
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.