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

Re: Bug#771052: fish: FTBFS on hurd-i386



David Adam, le Wed 26 Nov 2014 22:01:00 +0800, a écrit :
> Above the lines you have changed is a comment:
> 
> // In general, strerror is not async-safe, and therefore we cannot use it directly
> // So instead we have to grub through sys_nerr and sys_errlist directly
> 
> Do you know if this has changed in recent glibc? If not, I would caution 
> against changing this on all platforms.

It is always safe in the cases where one would be able to use
sys_errlist directly, actualy: in that case the glibc source code boils
down to return _sys_errlist_internal[errnum]).

Another way is to use strerror_r, which is standard since POSIX 2001.

Samuel


Reply to: