Re: [PATCH] strerror: improve strerror_r description

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Apr 22, 2012 at 2:18 PM, Eric Blake <eblake@xxxxxxxxxx> wrote:
> On 04/21/2012 06:19 PM, Michael Kerrisk (man-pages) wrote:
>> Eric,
>>
>
>> In addition to the above, I added the following, and I'd be happy if
>> you could ack it.
>>
>> =====
>> --- a/man3/strerror.3
>> +++ b/man3/strerror.3
>> @@ -133,6 +133,19 @@ functions return
>>  the appropriate error description string,
>>  or an "Unknown error nnn" message if the error number is unknown.
>>
>> +POSIX.1-2001 and POSIX.1-2008 require that a successful call to
>> +.BR strerror (3)
>> +shall leave
>> +.I errno
>> +unchanged, and note that,
>> +since no function return value is reserved to indicate an error,
>> +an application that wishes to check for errors should initialize
>> +.I errno
>> +to zero before the call,
>> +and then check
>> +.I errno
>> +after the call.
>> +
>>  The XSI-compliant
>>  .BR strerror_r ()
>>  function returns 0 on success.
>> =====

Thanks Eric!

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux