For example, if a function returns an unsigned char value but calculated a result of 256 or more (or -1 or less), errno would be set to ERANGE and the function would return some irrelevant value.
例如,如果函数返回unsignedchar值,但计算的结果为256或更多(或者是- 1或更少),则errno将被设置为ERANGE且函数会返回一些不相关的值。
The return value of the write call is the number of bytes written before the interruption, and the errno will be set to success.
write的返回值是在被中断前已写的字节数,全局变量errno设置为成功。
The return value of the write call is the number of bytes written before the interruption, and the errno will be set to success.
write的返回值是在被中断前已写的字节数,全局变量errno设置为成功。
应用推荐