diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-27 21:23:02 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-27 21:23:02 -0500 |
| commit | bda71e49191384bf80b31db8f4245ca454109608 (patch) | |
| tree | 2b8bc753f3c9b9524f4b33734140c1d83cd5906b | |
| parent | 208ad2d53d09926f2adf60ba930393ad4a5fd0cf (diff) | |
handle CTYPE
| -rw-r--r-- | src/nonstd/__libc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nonstd/__libc.c b/src/nonstd/__libc.c index e1d64c6d..d48d6714 100644 --- a/src/nonstd/__libc.c +++ b/src/nonstd/__libc.c @@ -29,6 +29,14 @@ void *__libc(LIBC_INTERNAL variable) r = &locale; break; + case CTYPE: + r = __libc_per_thread(THREAD_LOCALE); + if (!r) { + r = &locale; + } + r = ((struct __locale_t*)r)->ctype; + break; + case SYSCALL_LOOKUP: r = (void*)__syscall_lookup; break; |
