libc_syms.c 913 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #include <rtm.h>
  15. /* some export routines for module */
  16. RTM_EXPORT(strstr);
  17. RTM_EXPORT(strlen);
  18. RTM_EXPORT(strchr);
  19. RTM_EXPORT(strcpy);
  20. RTM_EXPORT(strncpy);
  21. RTM_EXPORT(strcmp);
  22. RTM_EXPORT(strncmp);
  23. RTM_EXPORT(strcat);
  24. RTM_EXPORT(strtol);
  25. RTM_EXPORT(memcpy);
  26. RTM_EXPORT(memcmp);
  27. RTM_EXPORT(memmove);
  28. RTM_EXPORT(memset);
  29. RTM_EXPORT(memchr);
  30. RTM_EXPORT(toupper);
  31. RTM_EXPORT(atoi);
  32. #ifdef RT_USING_RTC
  33. RTM_EXPORT(localtime);
  34. RTM_EXPORT(time);
  35. #endif
  36. /* import the full stdio for printf */
  37. #if defined(RT_USING_MODULE) && defined(__MICROLIB)
  38. #error "[RT_USING_LIBC] Please use standard libc but not microlib."
  39. #endif
  40. RTM_EXPORT(puts);
  41. RTM_EXPORT(printf);