libc_syms.c 753 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <ctype.h>
  5. #include <time.h>
  6. #include <rtm.h>
  7. /* some export routines for module */
  8. RTM_EXPORT(strstr);
  9. RTM_EXPORT(strlen);
  10. RTM_EXPORT(strchr);
  11. RTM_EXPORT(strcpy);
  12. RTM_EXPORT(strncpy);
  13. RTM_EXPORT(strcmp);
  14. RTM_EXPORT(strncmp);
  15. RTM_EXPORT(strcat);
  16. RTM_EXPORT(strtol);
  17. RTM_EXPORT(memcpy);
  18. RTM_EXPORT(memcmp);
  19. RTM_EXPORT(memmove);
  20. RTM_EXPORT(memset);
  21. RTM_EXPORT(memchr);
  22. RTM_EXPORT(toupper);
  23. RTM_EXPORT(atoi);
  24. #ifdef RT_USING_RTC
  25. RTM_EXPORT(localtime);
  26. RTM_EXPORT(time);
  27. #endif
  28. /* import the full stdio for printf */
  29. #if defined(RT_USING_MODULE) && defined(__MICROLIB)
  30. #error "[RT_USING_LIBC] Please use standard libc but not microlib."
  31. #endif
  32. RTM_EXPORT(puts);
  33. RTM_EXPORT(printf);