wdenk | 2262cfe | 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 | 3ef96de | 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 | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 10 | |
wdenk | b2184c3 | 2002-11-19 23:01:07 +0000 | [diff] [blame] | 11 | #undef __HAVE_ARCH_STRRCHR |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 12 | extern char * strrchr(const char * s, int c); |
| 13 | |
wdenk | b2184c3 | 2002-11-19 23:01:07 +0000 | [diff] [blame] | 14 | #undef __HAVE_ARCH_STRCHR |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 15 | extern char * strchr(const char * s, int c); |
| 16 | |
Graeme Russ | b2c2a03 | 2011-12-27 22:46:39 +1100 | [diff] [blame] | 17 | #define __HAVE_ARCH_MEMCPY |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 18 | extern void * memcpy(void *, const void *, __kernel_size_t); |
| 19 | |
wdenk | b2184c3 | 2002-11-19 23:01:07 +0000 | [diff] [blame] | 20 | #undef __HAVE_ARCH_MEMMOVE |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 21 | extern void * memmove(void *, const void *, __kernel_size_t); |
| 22 | |
wdenk | b2184c3 | 2002-11-19 23:01:07 +0000 | [diff] [blame] | 23 | #undef __HAVE_ARCH_MEMCHR |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 24 | extern void * memchr(const void *, int, __kernel_size_t); |
| 25 | |
Gabe Black | dbaef6e | 2011-11-14 14:47:18 +0000 | [diff] [blame] | 26 | #define __HAVE_ARCH_MEMSET |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 27 | extern void * memset(void *, int, __kernel_size_t); |
| 28 | |
wdenk | b2184c3 | 2002-11-19 23:01:07 +0000 | [diff] [blame] | 29 | #undef __HAVE_ARCH_MEMZERO |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 30 | extern void memzero(void *ptr, __kernel_size_t n); |
| 31 | |
| 32 | #endif |