diff options
author | tegge <tegge@FreeBSD.org> | 2001-02-15 22:17:04 +0000 |
---|---|---|
committer | tegge <tegge@FreeBSD.org> | 2001-02-15 22:17:04 +0000 |
commit | af67e8b5e143511f03edb5afb24c8a755bdfc44f (patch) | |
tree | e4b1e65680c3d095007695b71996f195d0216366 /lib | |
parent | 6a8ad1fd29cf8b7da27cdd40b7f2561db02f67a4 (diff) | |
download | FreeBSD-src-af67e8b5e143511f03edb5afb24c8a755bdfc44f.zip FreeBSD-src-af67e8b5e143511f03edb5afb24c8a755bdfc44f.tar.gz |
Don't depend on lcl_mutex being a recursive mutex.
Reviewed by: deischen
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdtime/localtime.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/stdtime/localtime.c b/lib/libc/stdtime/localtime.c index e336414..92541c5 100644 --- a/lib/libc/stdtime/localtime.c +++ b/lib/libc/stdtime/localtime.c @@ -965,7 +965,7 @@ tzset_basic(void) name = getenv("TZ"); if (name == NULL) { - tzsetwall(); + tzsetwall_basic(); return; } @@ -1069,7 +1069,7 @@ const time_t * const timep; struct tm *p_tm; { _MUTEX_LOCK(&lcl_mutex); - tzset(); + tzset_basic(); localsub(timep, 0L, p_tm); _MUTEX_UNLOCK(&lcl_mutex); return(p_tm); @@ -1100,12 +1100,12 @@ const time_t * const timep; _pthread_setspecific(localtime_key, p_tm); } _pthread_mutex_lock(&lcl_mutex); - tzset(); + tzset_basic(); localsub(timep, 0L, p_tm); _pthread_mutex_unlock(&lcl_mutex); return(p_tm); } else { - tzset(); + tzset_basic(); localsub(timep, 0L, &tm); return(&tm); } @@ -1608,7 +1608,7 @@ struct tm * const tmp; { time_t mktime_return_value; _MUTEX_LOCK(&lcl_mutex); - tzset(); + tzset_basic(); mktime_return_value = time1(tmp, localsub, 0L); _MUTEX_UNLOCK(&lcl_mutex); return(mktime_return_value); |