首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

关于read()的有关问题

2012-08-16 
关于read()的问题read()函数在什么情况下返回的是负数[解决办法]Upon successful completion, read()and p

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

热点排行