[Patch, libfortran] PR47375 GETLOG thread safety
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Thu Jan 27 16:45:00 GMT 2011
Hi Tobias,
> I have filled a tracking bug: PR 47491.
Thanks.
> 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
The only difference between the two ttyname_r variants is:
* full standard:
extern int ttyname_r(int, char *, size_t);
* draft standard:
extern char *ttyname_r(int, char *, int);
For ctime_r it's worse:
* full standard:
extern char *ctime_r(const time_t *, char *);
* draft standards:
extern char *ctime_r(const time_t *, char *, int);
So we should simply make sure that the standard versions are used.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Gcc-patches
mailing list