关于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.