libsmbclient - Thread Saftey
olaf at cbk.poznan.pl
Mon Oct 6 14:50:55 GMT 2008
On Mon, 2008-10-06 at 10:43 -0400, Derrell Lipman wrote:
> > froggy> cat libsmbclient.report
> > atof - convert string to double-precision number
> > MT-Level: MT-Safe as long as setlocale(3C) is not
> > called to change the locale.
> How in the world can atof() be non-thread-safe? Why would locale have
> anything to do with it? It returns a double and I can't think of any reason
> why it would need to use any non-thread-safe features...??? Is strtod()
> deemed to be more thread safe?
The character that separates the integer part from the fractional part
can vary depending on locale. Eg. in en_US it is ".", in pl_PL it is
Olaf Frączyk <olaf at cbk.poznan.pl>
More information about the samba-technical