1/*
2 * Copyright 2022, Trung Nguyen, trungnt282910@gmail.com
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5
6
7#include <ctype.h>
8
9
10// These functions are intended for scenarios where we cannot
11// link to the whole libroot and access pthread functions;
12// for example, when we're in the bootloader, kernel or the
13// runtime_loader.
14
15extern "C" const unsigned short**
16__ctype_b_loc()
17{
18	return &__ctype_b;
19}
20
21
22extern "C" const int**
23__ctype_tolower_loc()
24{
25	return &__ctype_tolower;
26}
27
28
29extern "C" const int**
30__ctype_toupper_loc()
31{
32	return &__ctype_toupper;
33}
34