[Patch, libfortran] PR47375 GETLOG thread safety

Tobias Burnus burnus@net-b.de
Thu Jan 27 16:23:00 GMT 2011


On 01/27/2011 03:41 PM, Rainer Orth wrote:
>> the attached patch makes the GETLOG intrinsic thread safe by using the
>> POSIX getpwuid_r() function, if available.
> This patch broke Solaris bootstrap:
>
> The problem is that<pwd.h>  declares two different variants of
> getpwuid_r:

I have filled a tracking bug: PR 47491.

And I have a question to you, Rainer: There are similar patches for 
ctime_r and for ttyname_r. Do they work as is on Solaris or is also 
special care required?

See: http://gcc.gnu.org/ml/fortran/2011-01/msg00225.html and 
http://gcc.gnu.org/ml/fortran/2011-01/msg00224.html

Tobias



More information about the Gcc-patches mailing list