This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: noreentrant functions on Linux Advance Server 2.1 using gcc 2.96
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Jyotirmoy Das <Jyotirmoy_Das at infosys dot com>, gcc-help at gcc dot gnu dot org
- Date: Fri, 26 Mar 2004 06:44:00 -0600
- Subject: Re: noreentrant functions on Linux Advance Server 2.1 using gcc 2.96
- References: <2B721C6525F0D411B1E900B0D0226BDD044C73D9@mohmsg01.ad.infosys.com>
Hi Jyotirmoy,
The thread unsafe ones are all the ones that return a pointer to an
internal buffer.
The corresponding thread safe versions have the same name with a suffix of
_r (for "re-entrant").
For instance, ctime() and ctime_r().
Bionic Buffalo lists these thread safe / unsafe functions:
<http://www.tatanka.com/doc/technote/tn0105.pdf>
HTH,
--Eljay