Re: Reentrant versions of localtime and gmtime.

Oct. 31, 1995
4:03 p.m.
## From eggert@twinsun.com Mon Oct 30 20:06:39 1995 ## ## Date: Mon, 30 Oct 1995 17:13:53 -0800 ## From: "J.T. Conklin" <jtc@cygnus.com> ## ## struct tm * ## + localtime_r(timep, res) ## + const time_t * const timep; ## + struct tm * tm; ## + { ## + tzset(); ## + localsub(timep, 0L, tm); ## + return tm; ## + } ## ## That isn't reentrant, since tzset() isn't reentrant. Solaris solves this problem with a mutex lock that is acquired by all functions, including the _r versions. joel
10843
Age (days ago)
10843
Last active (days ago)
0 comments
1 participants
participants (1)
-
Joel.Tornatore@Eng.Sun.COM