rework langinfo code for ABI compat and for use by time code
[musl] / src / internal / libc.c
1 #include "libc.h"
2
3 #ifdef USE_LIBC_ACCESSOR
4 struct __libc *__libc_loc()
5 {
6         static struct __libc __libc;
7         return &__libc;
8 }
9 #else
10 struct __libc __libc;
11 #endif
12
13 #ifdef BROKEN_VISIBILITY
14 __asm__(".hidden __libc");
15 #endif
16
17 size_t __hwcap;
18 size_t __sysinfo;
19 char *__progname=0, *__progname_full=0;
20
21 weak_alias(__progname, program_invocation_short_name);
22 weak_alias(__progname_full, program_invocation_name);