tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[PATCH 2/6] put proper value to the _POSIX_TZNAME_MAX



The SUSv3 requires a value of the _POSIX_TZNAME_MAX should be 6.
---
 include/limits.h |    2 +-
 sys/sys/sysctl.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/limits.h b/include/limits.h
index 7a1985b..263c03a 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -64,7 +64,7 @@
 #define        _POSIX_THREAD_THREADS_MAX               64
 #define        _POSIX_TIMER_MAX        32
 #define        _POSIX_TTY_NAME_MAX     9
-#define        _POSIX_TZNAME_MAX       3
+#define        _POSIX_TZNAME_MAX       6
 
 #define        _POSIX2_BC_BASE_MAX     99
 #define        _POSIX2_BC_DIM_MAX      2048
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h
index 2fe9430..8cc2cdc 100644
--- a/sys/sys/sysctl.h
+++ b/sys/sys/sysctl.h
@@ -852,7 +852,7 @@ struct kinfo_file {
 #define        USER_POSIX2_SW_DEV      17      /* int: POSIX2_SW_DEV */
 #define        USER_POSIX2_UPE         18      /* int: POSIX2_UPE */
 #define        USER_STREAM_MAX         19      /* int: POSIX2_STREAM_MAX */
-#define        USER_TZNAME_MAX         20      /* int: POSIX2_TZNAME_MAX */
+#define        USER_TZNAME_MAX         20      /* int: _POSIX_TZNAME_MAX */
 #define        USER_ATEXIT_MAX         21      /* int: {ATEXIT_MAX} */
 #define        USER_MAXID              22      /* number of valid user ids */
 
-- 
1.5.2.5



Home | Main Index | Thread Index | Old Index