2002-11-18 00:14:45 +00:00
|
|
|
#ifndef __ASM_I386_STRING_H
|
|
|
|
#define __ASM_I386_STRING_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* We don't do inline string functions, since the
|
|
|
|
* optimised inline asm versions are not small.
|
|
|
|
*/
|
2008-09-06 21:08:42 +00:00
|
|
|
#undef __HAVE_ARCH_STRNCPY
|
|
|
|
extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n);
|
2002-11-18 00:14:45 +00:00
|
|
|
|
2002-11-19 23:01:07 +00:00
|
|
|
#undef __HAVE_ARCH_STRRCHR
|
2019-01-23 01:42:39 +00:00
|
|
|
extern char *strrchr(const char *s, int c);
|
2002-11-18 00:14:45 +00:00
|
|
|
|
2002-11-19 23:01:07 +00:00
|
|
|
#undef __HAVE_ARCH_STRCHR
|
2019-01-23 01:42:39 +00:00
|
|
|
extern char *strchr(const char *s, int c);
|
|
|
|
|
|
|
|
#ifdef CONFIG_X86_64
|
|
|
|
|
|
|
|
#undef __HAVE_ARCH_MEMCPY
|
|
|
|
extern void *memcpy(void *, const void *, __kernel_size_t);
|
|
|
|
|
|
|
|
#undef __HAVE_ARCH_MEMMOVE
|
|
|
|
extern void *memmove(void *, const void *, __kernel_size_t);
|
|
|
|
|
|
|
|
#undef __HAVE_ARCH_MEMSET
|
|
|
|
extern void *memset(void *, int, __kernel_size_t);
|
|
|
|
|
|
|
|
#else
|
2002-11-18 00:14:45 +00:00
|
|
|
|
2011-12-27 11:46:39 +00:00
|
|
|
#define __HAVE_ARCH_MEMCPY
|
2019-01-23 01:42:39 +00:00
|
|
|
extern void *memcpy(void *, const void *, __kernel_size_t);
|
2002-11-18 00:14:45 +00:00
|
|
|
|
2016-10-06 02:42:10 +00:00
|
|
|
#define __HAVE_ARCH_MEMMOVE
|
2019-01-23 01:42:39 +00:00
|
|
|
extern void *memmove(void *, const void *, __kernel_size_t);
|
2002-11-18 00:14:45 +00:00
|
|
|
|
2011-11-14 14:47:18 +00:00
|
|
|
#define __HAVE_ARCH_MEMSET
|
2019-01-23 01:42:39 +00:00
|
|
|
extern void *memset(void *, int, __kernel_size_t);
|
|
|
|
|
|
|
|
#endif /* CONFIG_X86_64 */
|
|
|
|
|
|
|
|
#undef __HAVE_ARCH_MEMCHR
|
|
|
|
extern void *memchr(const void *, int, __kernel_size_t);
|
2002-11-18 00:14:45 +00:00
|
|
|
|
2002-11-19 23:01:07 +00:00
|
|
|
#undef __HAVE_ARCH_MEMZERO
|
2002-11-18 00:14:45 +00:00
|
|
|
extern void memzero(void *ptr, __kernel_size_t n);
|
|
|
|
|
|
|
|
#endif
|