1 #ifndef _LINUX_STRING_H_
2 #define _LINUX_STRING_H_
4 #include <linux/types.h> /* for size_t */
5 #include <linux/stddef.h> /* for NULL */
11 extern char * ___strtok;
12 extern char * strpbrk(const char *,const char *);
13 extern char * strtok(char *,const char *);
14 extern char * strsep(char **,const char *);
15 extern __kernel_size_t strspn(const char *,const char *);
19 * Include machine specific inline routines
21 #include <asm/string.h>
23 #ifndef __HAVE_ARCH_STRCPY
24 extern char * strcpy(char *,const char *);
26 #ifndef __HAVE_ARCH_STRNCPY
27 extern char * strncpy(char *,const char *, __kernel_size_t);
29 #ifndef __HAVE_ARCH_STRCAT
30 extern char * strcat(char *, const char *);
32 #ifndef __HAVE_ARCH_STRNCAT
33 extern char * strncat(char *, const char *, __kernel_size_t);
35 #ifndef __HAVE_ARCH_STRCMP
36 extern int strcmp(const char *,const char *);
38 #ifndef __HAVE_ARCH_STRNCMP
39 extern int strncmp(const char *,const char *,__kernel_size_t);
41 #ifndef __HAVE_ARCH_STRCASECMP
42 int strcasecmp(const char *s1, const char *s2);
44 #ifndef __HAVE_ARCH_STRNCASECMP
45 extern int strncasecmp(const char *s1, const char *s2, __kernel_size_t len);
47 #ifndef __HAVE_ARCH_STRCHR
48 extern char * strchr(const char *,int);
50 #ifndef __HAVE_ARCH_STRRCHR
51 extern char * strrchr(const char *,int);
53 #include <linux/linux_string.h>
54 #ifndef __HAVE_ARCH_STRSTR
55 extern char * strstr(const char *,const char *);
57 #ifndef __HAVE_ARCH_STRLEN
58 extern __kernel_size_t strlen(const char *);
60 #ifndef __HAVE_ARCH_STRNLEN
61 extern __kernel_size_t strnlen(const char *,__kernel_size_t);
63 #ifndef __HAVE_ARCH_STRDUP
64 extern char * strdup(const char *);
66 #ifndef __HAVE_ARCH_STRSWAB
67 extern char * strswab(const char *);
70 #ifndef __HAVE_ARCH_MEMSET
71 extern void * memset(void *,int,__kernel_size_t);
73 #ifndef __HAVE_ARCH_MEMCPY
74 extern void * memcpy(void *,const void *,__kernel_size_t);
76 #ifndef __HAVE_ARCH_MEMMOVE
77 extern void * memmove(void *,const void *,__kernel_size_t);
79 #ifndef __HAVE_ARCH_MEMSCAN
80 extern void * memscan(void *,int,__kernel_size_t);
82 #ifndef __HAVE_ARCH_MEMCMP
83 extern int memcmp(const void *,const void *,__kernel_size_t);
85 #ifndef __HAVE_ARCH_MEMCHR
86 extern void * memchr(const void *,int,__kernel_size_t);
88 #ifndef __HAVE_ARCH_MEMCHR_INV
89 void *memchr_inv(const void *, int, size_t);
96 #endif /* _LINUX_STRING_H_ */