summaryrefslogtreecommitdiff
path: root/plan9
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2006-11-06 13:58:56 +0000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2006-11-06 13:58:56 +0000
commitf025e94b3bdd286f2ee3dc88718b923af2a6e55d (patch)
tree410624df7e4f685c76e25179f7c78d4791c75e93 /plan9
parentdcb5c535ce9837c3fd7fcab63fad5d507cdd8eed (diff)
downloadperl-f025e94b3bdd286f2ee3dc88718b923af2a6e55d.tar.gz
The non-unix parts for localtime_r_needs_tzset
Plus forced Glossary entry. That is a TODO for automation p4raw-id: //depot/perl@29213
Diffstat (limited to 'plan9')
-rw-r--r--plan9/config.plan97
-rw-r--r--plan9/config_h.sample7
-rw-r--r--plan9/config_sh.sample1
3 files changed, 15 insertions, 0 deletions
diff --git a/plan9/config.plan9 b/plan9/config.plan9
index 99b41e0405..d194b8bbe7 100644
--- a/plan9/config.plan9
+++ b/plan9/config.plan9
@@ -1961,6 +1961,12 @@
* This symbol, if defined, indicates that the localtime_r routine
* is available to localtime re-entrantly.
*/
+/* LOCALTIME_R_NEEDS_TZSET:
+ * Many libc's localtime_r implementations do not call tzset,
+ * making them differ from localtime(), and making timezone
+ * changes using $ENV{TZ} without explicitly calling tzset
+ * impossible. This symbol makes us call tzset before localtime_r
+ */
/* LOCALTIME_R_PROTO:
* This symbol encodes the prototype of localtime_r.
* It is zero if d_localtime_r is undef, and one of the
@@ -1968,6 +1974,7 @@
* is defined.
*/
/*#define HAS_LOCALTIME_R / **/
+/*#define LOCALTIME_R_NEEDS_TZSET / **/
#define LOCALTIME_R_PROTO 0 /**/
/* HAS_LONG_DOUBLE:
diff --git a/plan9/config_h.sample b/plan9/config_h.sample
index 5709812049..02816711c4 100644
--- a/plan9/config_h.sample
+++ b/plan9/config_h.sample
@@ -1908,6 +1908,12 @@
* This symbol, if defined, indicates that the localtime_r routine
* is available to localtime re-entrantly.
*/
+/* LOCALTIME_R_NEEDS_TZSET:
+ * Many libc's localtime_r implementations do not call tzset,
+ * making them differ from localtime(), and making timezone
+ * changes using $ENV{TZ} without explicitly calling tzset
+ * impossible. This symbol makes us call tzset before localtime_r
+ */
/* LOCALTIME_R_PROTO:
* This symbol encodes the prototype of localtime_r.
* It is zero if d_localtime_r is undef, and one of the
@@ -1915,6 +1921,7 @@
* is defined.
*/
/*#define HAS_LOCALTIME_R / **/
+/*#define LOCALTIME_R_NEEDS_TZSET / **/
#define LOCALTIME_R_PROTO 0 /**/
/* HAS_LONG_DOUBLE:
diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample
index 8697741083..08d181bdf2 100644
--- a/plan9/config_sh.sample
+++ b/plan9/config_sh.sample
@@ -277,6 +277,7 @@ d_lchown='undef'
d_ldbl_dig='define'
d_link='define'
d_localtime_r='undef'
+d_localtime_r_needs_tzset='undef'
d_locconv='define'
d_lockf='undef'
d_longdbl='define'