This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
strerror_r() between fork and exec?
- From: Ian Pilcher <arequipeno at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Mon, 08 Sep 2014 16:38:11 -0500
- Subject: strerror_r() between fork and exec?
- Authentication-results: sourceware.org; auth=none
It seems like this would be an FAQ, but I haven't been able to find
anything useful ...
Since sys_errlist and sys_nerr are deprecated, how is one supposed to
convert errno values to error messages in an async-safe manner? As far
as I can tell strerror_r() is not async-safe.
I am using sys_errlist and sys_nerr as part of the error reporting
between fork() and execv() in a multi-threaded program, so (as I now
know) I can only use async-safe functions.
Thanks!
--
========================================================================
Ian Pilcher arequipeno@gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================