diff options
Diffstat (limited to 'src/kservice.c')
| -rw-r--r-- | src/kservice.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/kservice.c b/src/kservice.c index 8e2cf38336..49b787aafc 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -58,6 +58,7 @@ rt_err_t rt_get_errno(void) return tid->error; } +RTM_EXPORT(rt_get_errno); /* * This function will set errno @@ -86,6 +87,7 @@ void rt_set_errno(rt_err_t error) tid->error = error; } +RTM_EXPORT(rt_set_errno); /** * This function returns errno. @@ -105,6 +107,7 @@ int *_rt_errno(void) return (int *)&_errno; } +RTM_EXPORT(_rt_errno); /** * This function will set the content of memory to specified value @@ -186,6 +189,7 @@ void *rt_memset(void *s, int c, rt_ubase_t count) #undef TOO_SMALL #endif } +RTM_EXPORT(rt_memset); /** * This function will copy memory content from source address to destination @@ -259,6 +263,7 @@ void *rt_memcpy(void *dst, const void *src, rt_ubase_t count) #undef TOO_SMALL #endif } +RTM_EXPORT(rt_memcpy); /** * This function will move memory content from source address to destination @@ -290,6 +295,7 @@ void *rt_memmove(void *dest, const void *src, rt_ubase_t n) return dest; } +RTM_EXPORT(rt_memmove); /** * This function will compare two areas of memory @@ -311,6 +317,7 @@ rt_int32_t rt_memcmp(const void *cs, const void *ct, rt_ubase_t count) return res; } +RTM_EXPORT(rt_memcmp); /** * This function will return the first occurrence of a string. @@ -338,6 +345,7 @@ char *rt_strstr(const char *s1, const char *s2) return RT_NULL; } +RTM_EXPORT(rt_strstr); /** * This function will compare two strings while ignoring differences in case @@ -364,6 +372,7 @@ rt_uint32_t rt_strcasecmp(const char *a, const char *b) return ca - cb; } +RTM_EXPORT(rt_strcasecmp); /** * This function will copy string no more than n bytes. @@ -395,6 +404,7 @@ char *rt_strncpy(char *dst, const char *src, rt_ubase_t n) return (dst); } +RTM_EXPORT(rt_strncpy); /** * This function will compare two strings with specified maximum length @@ -418,6 +428,7 @@ rt_ubase_t rt_strncmp(const char *cs, const char *ct, rt_ubase_t count) return __res; } +RTM_EXPORT(rt_strncmp); /** * This function will compare two strings without specified length @@ -434,6 +445,7 @@ rt_ubase_t rt_strcmp(const char *cs, const char *ct) return (*cs - *ct); } +RTM_EXPORT(rt_strcmp); /** * This function will return the length of a string, which terminate will @@ -452,6 +464,7 @@ rt_ubase_t rt_strlen(const char *s) return sc - s; } +RTM_EXPORT(rt_strlen); #ifdef RT_USING_HEAP /** @@ -473,6 +486,7 @@ char *rt_strdup(const char *s) return tmp; } +RTM_EXPORT(rt_strdup); #endif /** @@ -485,6 +499,7 @@ void rt_show_version(void) rt_kprintf(" / | \\ %d.%d.%d build %s\n", RT_VERSION, RT_SUBVERSION, RT_REVISION, __DATE__); rt_kprintf(" 2006 - 2012 Copyright by rt-thread team\n"); } +RTM_EXPORT(rt_show_version); /* private function */ #define isdigit(c) ((unsigned)((c) - '0') < 10) @@ -947,6 +962,7 @@ rt_int32_t rt_snprintf(char *buf, rt_size_t size, const char *fmt, ...) return n; } +RTM_EXPORT(rt_snprintf); /** * This function will fill a formatted string to buffer @@ -959,6 +975,7 @@ rt_int32_t rt_vsprintf(char *buf, const char *format, va_list arg_ptr) { return vsnprintf(buf, (rt_size_t) -1, format, arg_ptr); } +RTM_EXPORT(rt_vsprintf); /** * This function will fill a formatted string to buffer @@ -977,6 +994,7 @@ rt_int32_t rt_sprintf(char *buf, const char *format, ...) return n; } +RTM_EXPORT(rt_sprintf); #ifdef RT_USING_CONSOLE @@ -990,6 +1008,7 @@ rt_device_t rt_console_get_device(void) { return _console_device; } +RTM_EXPORT(rt_console_get_device); /** * This function will set a device as console device. @@ -1024,6 +1043,7 @@ rt_device_t rt_console_set_device(const char *name) return old; } +RTM_EXPORT(rt_console_set_device); #endif #if defined(__GNUC__) || defined(__ADSPBLACKFIN__) @@ -1040,6 +1060,7 @@ void rt_hw_console_output(const char *str) { /* empty console output */ } +RTM_EXPORT(rt_hw_console_output); /** * This function will print a formatted string on system console @@ -1068,10 +1089,13 @@ void rt_kprintf(const char *fmt, ...) #endif va_end(args); } +RTM_EXPORT(rt_kprintf); #else void rt_kprintf(const char *fmt, ...) { } +RTM_EXPORT(rt_kprintf); + #endif #ifdef RT_USING_HEAP @@ -1116,6 +1140,7 @@ void* rt_malloc_align(rt_size_t size, rt_size_t align) return ptr; } +RTM_EXPORT(rt_malloc_align); /** * This function release the memory block, which is allocated by rt_malloc_align @@ -1130,6 +1155,7 @@ void rt_free_align(void *ptr) real_ptr = (void*)*(rt_uint32_t*)((rt_uint32_t)ptr - sizeof(void*)); rt_free(real_ptr); } +RTM_EXPORT(rt_free_align); #endif #if !defined (RT_USING_NEWLIB) && defined (RT_USING_MINILIBC) && defined (__GNUC__) |
