Re: [PATCH] replace strerror() usage with threadsafe "%m" format string

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

 



On Mon, 2008-09-29 at 16:01 +0100, Alan Jenkins wrote:
> strerror() is not threadsafe.  It uses a buffer to build messages of the form
> "Unknown error 387689".
> 
> syslog() provides a %m format which is equivalent to strerror(errno).
> As a GNU extension, this is also accepted by printf and friends.
> At least in the current implementation, it is correctly threadsafe.

Great! Applied. Thanks,
Kay

--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux