wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 1 | #ifndef __ASM_I386_STRING_H |
| 2 | #define __ASM_I386_STRING_H |
| 3 | |
| 4 | /* |
| 5 | * We don't do inline string functions, since the |
| 6 | * optimised inline asm versions are not small. |
| 7 | */ |
Graeme Russ | 2fe2a97 | 2008-09-07 07:08:42 +1000 | [diff] [blame] | 8 | #undef __HAVE_ARCH_STRNCPY |
| 9 | extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n); |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 10 | |
wdenk | 67ff36c | 2002-11-19 23:01:07 +0000 | [diff] [blame] | 11 | #undef __HAVE_ARCH_STRRCHR |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 12 | extern char * strrchr(const char * s, int c); |
| 13 | |
wdenk | 67ff36c | 2002-11-19 23:01:07 +0000 | [diff] [blame] | 14 | #undef __HAVE_ARCH_STRCHR |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 15 | extern char * strchr(const char * s, int c); |
| 16 | |
Graeme Russ | 1dd0b70 | 2011-12-27 22:46:39 +1100 | [diff] [blame] | 17 | #define __HAVE_ARCH_MEMCPY |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 18 | extern void * memcpy(void *, const void *, __kernel_size_t); |
| 19 | |
Simon Glass | 889111c | 2016-10-05 20:42:10 -0600 | [diff] [blame] | 20 | #define __HAVE_ARCH_MEMMOVE |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 21 | extern void * memmove(void *, const void *, __kernel_size_t); |
| 22 | |
wdenk | 67ff36c | 2002-11-19 23:01:07 +0000 | [diff] [blame] | 23 | #undef __HAVE_ARCH_MEMCHR |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 24 | extern void * memchr(const void *, int, __kernel_size_t); |
| 25 | |
Gabe Black | 0e49905 | 2011-11-14 14:47:18 +0000 | [diff] [blame] | 26 | #define __HAVE_ARCH_MEMSET |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 27 | extern void * memset(void *, int, __kernel_size_t); |
| 28 | |
wdenk | 67ff36c | 2002-11-19 23:01:07 +0000 | [diff] [blame] | 29 | #undef __HAVE_ARCH_MEMZERO |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 30 | extern void memzero(void *ptr, __kernel_size_t n); |
| 31 | |
| 32 | #endif |