xref: /nrf52832-nimble/rt-thread/components/libc/compilers/armlibc/libc_syms.c (revision 104654410c56c573564690304ae786df310c91fc)
1 /*
2  * Copyright (c) 2006-2018, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  */
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <string.h>
12 #include <ctype.h>
13 #include <time.h>
14 
15 #include <rtm.h>
16 
17 /* some export routines for module */
18 
19 RTM_EXPORT(strstr);
20 RTM_EXPORT(strlen);
21 RTM_EXPORT(strchr);
22 RTM_EXPORT(strcpy);
23 RTM_EXPORT(strncpy);
24 RTM_EXPORT(strcmp);
25 RTM_EXPORT(strncmp);
26 RTM_EXPORT(strcat);
27 RTM_EXPORT(strtol);
28 
29 RTM_EXPORT(memcpy);
30 RTM_EXPORT(memcmp);
31 RTM_EXPORT(memmove);
32 RTM_EXPORT(memset);
33 RTM_EXPORT(memchr);
34 
35 RTM_EXPORT(toupper);
36 RTM_EXPORT(atoi);
37 
38 #ifdef RT_USING_RTC
39 RTM_EXPORT(localtime);
40 RTM_EXPORT(time);
41 #endif
42 
43 /* import the full stdio for printf */
44 #if defined(RT_USING_MODULE) && defined(__MICROLIB)
45 #error "[RT_USING_LIBC] Please use standard libc but not microlib."
46 #endif
47 
48 RTM_EXPORT(puts);
49 RTM_EXPORT(printf);
50