1 #ifndef _LINUX_STRING_H_
2 #define _LINUX_STRING_H_
4 /* We don't want strings.h stuff being user by user stuff by accident */
8 #include <linux/compiler.h> /* for inline */
9 #include <linux/types.h> /* for size_t */
10 #include <linux/stddef.h> /* for NULL */
16 extern char * strpbrk(const char *,const char *);
17 extern char * strsep(char **,const char *);
18 extern __kernel_size_t
strspn(const char *,const char *);
19 extern __kernel_size_t
strcspn(const char *,const char *);
22 * Include machine specific inline routines
24 #include <asm/string.h>
26 #ifndef __HAVE_ARCH_STRCPY
27 extern char * strcpy(char *,const char *);
29 #ifndef __HAVE_ARCH_STRNCPY
30 extern char * strncpy(char *,const char *, __kernel_size_t
);
32 #ifndef __HAVE_ARCH_STRLCPY
33 size_t strlcpy(char *, const char *, size_t);
35 #ifndef __HAVE_ARCH_STRCAT
36 extern char * strcat(char *, const char *);
38 #ifndef __HAVE_ARCH_STRNCAT
39 extern char * strncat(char *, const char *, __kernel_size_t
);
41 #ifndef __HAVE_ARCH_STRLCAT
42 extern size_t strlcat(char *, const char *, __kernel_size_t
);
44 #ifndef __HAVE_ARCH_STRCMP
45 extern int strcmp(const char *,const char *);
47 #ifndef __HAVE_ARCH_STRNCMP
48 extern int strncmp(const char *,const char *,__kernel_size_t
);
50 #ifndef __HAVE_ARCH_STRNICMP
51 extern int strnicmp(const char *, const char *, __kernel_size_t
);
53 #ifndef __HAVE_ARCH_STRCHR
54 extern char * strchr(const char *,int);
56 #ifndef __HAVE_ARCH_STRNCHR
57 extern char * strnchr(const char *, size_t, int);
59 #ifndef __HAVE_ARCH_STRRCHR
60 extern char * strrchr(const char *,int);
62 #ifndef __HAVE_ARCH_STRSTR
63 extern char * strstr(const char *,const char *);
65 #ifndef __HAVE_ARCH_STRLEN
66 extern __kernel_size_t
strlen(const char *);
68 #ifndef __HAVE_ARCH_STRNLEN
69 extern __kernel_size_t
strnlen(const char *,__kernel_size_t
);
72 #ifndef __HAVE_ARCH_MEMSET
73 extern void * memset(void *,int,__kernel_size_t
);
75 #ifndef __HAVE_ARCH_MEMCPY
76 extern void * memcpy(void *,const void *,__kernel_size_t
);
78 #ifndef __HAVE_ARCH_MEMMOVE
79 extern void * memmove(void *,const void *,__kernel_size_t
);
81 #ifndef __HAVE_ARCH_MEMSCAN
82 extern void * memscan(void *,int,__kernel_size_t
);
84 #ifndef __HAVE_ARCH_MEMCMP
85 extern int memcmp(const void *,const void *,__kernel_size_t
);
87 #ifndef __HAVE_ARCH_MEMCHR
88 extern void * memchr(const void *,int,__kernel_size_t
);
96 #endif /* _LINUX_STRING_H_ */