libc_syms.c 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * File : libc_syms.c
  3. * Brief : exported symbols for libc.
  4. *
  5. * This file is part of RT-Thread RTOS
  6. * COPYRIGHT (C) 2006 - 2017, RT-Thread Development Team
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License along
  19. * with this program; if not, write to the Free Software Foundation, Inc.,
  20. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  21. *
  22. * Change Logs:
  23. * Date Author Notes
  24. * 2017/10/15 bernard the first version
  25. */
  26. #include <rtthread.h>
  27. #include <rtm.h>
  28. #include <string.h>
  29. #include <stdio.h>
  30. #include <stdlib.h>
  31. RTM_EXPORT(strcpy);
  32. RTM_EXPORT(strncpy);
  33. RTM_EXPORT(strlen);
  34. RTM_EXPORT(strcat);
  35. RTM_EXPORT(strstr);
  36. RTM_EXPORT(strchr);
  37. RTM_EXPORT(strcmp);
  38. RTM_EXPORT(strtol);
  39. RTM_EXPORT(strtoul);
  40. RTM_EXPORT(strncmp);
  41. RTM_EXPORT(memcpy);
  42. RTM_EXPORT(memcmp);
  43. RTM_EXPORT(memmove);
  44. RTM_EXPORT(memset);
  45. RTM_EXPORT(memchr);
  46. RTM_EXPORT(putchar);
  47. RTM_EXPORT(puts);
  48. RTM_EXPORT(printf);
  49. RTM_EXPORT(sprintf);
  50. RTM_EXPORT(snprintf);
  51. RTM_EXPORT(fwrite);
  52. #include <time.h>
  53. RTM_EXPORT(localtime);
  54. RTM_EXPORT(time);
  55. #include <setjmp.h>
  56. RTM_EXPORT(longjmp);
  57. RTM_EXPORT(setjmp);
  58. RTM_EXPORT(exit);
  59. RTM_EXPORT(abort);
  60. RTM_EXPORT(rand);
  61. #include <assert.h>
  62. RTM_EXPORT(__assert_func);