always set optarg in getopt_long
[musl] / src / internal / libc.h
index fb4d9bc..2eef98e 100644 (file)
@@ -5,6 +5,14 @@
 #include <stdio.h>
 #include <limits.h>
 
+struct __locale_map;
+
+struct __locale_struct {
+       int ctype_utf8;
+       char *messages_name;
+       struct __locale_map *cat[4];
+};
+
 struct __libc {
        int has_thread_pointer;
        int can_do_threads;
@@ -16,6 +24,9 @@ struct __libc {
        int ofl_lock[2];
        size_t tls_size;
        size_t page_size;
+       volatile int uselocale_cnt;
+       volatile int bytelocale_cnt_minus_1;
+       struct __locale_struct global_locale;
 };
 
 extern size_t __hwcap;