This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

strerror_r() between fork and exec?


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" --------
========================================================================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]