[vlc-devel] commit: strerror(errno) is not thread-safe, use %m ( Rémi Denis-Courmont )

Rémi Denis-Courmont remi at remlab.net
Wed Oct 7 20:45:03 CEST 2009


Le mercredi 7 octobre 2009 21:37:19 Måns Rullgård, vous avez écrit :
> > sure, but it just is not thread safe so you shouldn't use it in VLC
> 
> POSIX also has strerror_r(), which is thread safe.  That isn't C99
> though.

...which is what VLC message queues use internally. But it's a much more 
convenient to call %m (which comes from POSIX syslog, before GNU printf).

-- 
Rémi Denis-Courmont
http://www.remlab.net/



More information about the vlc-devel mailing list