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_BCOPY
24 char *bcopy(const char *src, char *dest, int count);
27 #ifndef __HAVE_ARCH_STRCPY
28 extern char * strcpy(char *,const char *);
30 #ifndef __HAVE_ARCH_STRNCPY
31 extern char * strncpy(char *,const char *, __kernel_size_t);
33 #ifndef __HAVE_ARCH_STRLCPY
34 size_t strlcpy(char *, const char *, size_t);
36 #ifndef __HAVE_ARCH_STRCAT
37 extern char * strcat(char *, const char *);
39 #ifndef __HAVE_ARCH_STRNCAT
40 extern char * strncat(char *, const char *, __kernel_size_t);
42 #ifndef __HAVE_ARCH_STRCMP
43 extern int strcmp(const char *,const char *);
45 #ifndef __HAVE_ARCH_STRNCMP
46 extern int strncmp(const char *,const char *,__kernel_size_t);
48 #ifndef __HAVE_ARCH_STRCASECMP
49 int strcasecmp(const char *s1, const char *s2);
51 #ifndef __HAVE_ARCH_STRNCASECMP
52 extern int strncasecmp(const char *s1, const char *s2, __kernel_size_t len);
54 #ifndef __HAVE_ARCH_STRCHR
55 extern char * strchr(const char *,int);
57 #ifndef __HAVE_ARCH_STRRCHR
58 extern char * strrchr(const char *,int);
60 #include <linux/linux_string.h>
61 #ifndef __HAVE_ARCH_STRSTR
62 extern char * strstr(const char *,const char *);
64 #ifndef __HAVE_ARCH_STRLEN
65 extern __kernel_size_t strlen(const char *);
67 #ifndef __HAVE_ARCH_STRNLEN
68 extern __kernel_size_t strnlen(const char *,__kernel_size_t);
70 #ifndef __HAVE_ARCH_STRDUP
71 extern char * strdup(const char *);
73 #ifndef __HAVE_ARCH_STRSWAB
74 extern char * strswab(const char *);
77 #ifndef __HAVE_ARCH_MEMSET
78 extern void * memset(void *,int,__kernel_size_t);
80 #ifndef __HAVE_ARCH_MEMCPY
81 extern void * memcpy(void *,const void *,__kernel_size_t);
83 #ifndef __HAVE_ARCH_MEMMOVE
84 extern void * memmove(void *,const void *,__kernel_size_t);
86 #ifndef __HAVE_ARCH_MEMSCAN
87 extern void * memscan(void *,int,__kernel_size_t);
89 #ifndef __HAVE_ARCH_MEMCMP
90 extern int memcmp(const void *,const void *,__kernel_size_t);
92 #ifndef __HAVE_ARCH_MEMCHR
93 extern void * memchr(const void *,int,__kernel_size_t);
95 #ifndef __HAVE_ARCH_MEMCHR_INV
96 void *memchr_inv(const void *, int, size_t);
99 unsigned long ustrtoul(const char *cp, char **endp, unsigned int base);
100 unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base);
106 #endif /* _LINUX_STRING_H_ */