Print this page
2964 need POSIX 2008 locale object support

@@ -33,10 +33,12 @@
 
 static struct lc_time_T _time_locale;
 static int _time_using_locale;
 static char *time_locale_buf;
 
+struct xlocale_time __xlocale_global_time;
+
 #define LCTIME_SIZE (sizeof (struct lc_time_T) / sizeof (char *))
 
 static const struct lc_time_T   _C_time_locale = {
         {
                 "Jan", "Feb", "Mar", "Apr", "May", "Jun",

@@ -96,5 +98,16 @@
 {
         return (__part_load_locale(name, &_time_using_locale,
             &time_locale_buf, "LC_TIME", LCTIME_SIZE, LCTIME_SIZE,
             (const char **)&_time_locale));
 }
+
+void *
+__time_load(const char* name, locale_t loc)
+{
+        struct xlocale_time *new;
+
+        new = calloc(sizeof(struct xlocale_time), 1);
+        /* XXX */
+
+        return (new);
+}