blob: 0ad612f6273af9be2e0137681076ab6f1bb4bef9 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#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 */
8#undef __HAVE_ARCH_STRNCPY
9extern char *strncpy(char *__dest, __const__ char *__src, __kernel_size_t __n);
10
11#undef __HAVE_ARCH_STRRCHR
12extern char * strrchr(const char * s, int c);
13
14#undef __HAVE_ARCH_STRCHR
15extern char * strchr(const char * s, int c);
16
17#define __HAVE_ARCH_MEMCPY
18extern void * memcpy(void *, const void *, __kernel_size_t);
19
20#undef __HAVE_ARCH_MEMMOVE
21extern void * memmove(void *, const void *, __kernel_size_t);
22
23#undef __HAVE_ARCH_MEMCHR
24extern void * memchr(const void *, int, __kernel_size_t);
25
26#define __HAVE_ARCH_MEMSET
27extern void * memset(void *, int, __kernel_size_t);
28
29#undef __HAVE_ARCH_MEMZERO
30extern void memzero(void *ptr, __kernel_size_t n);
31
32#endif