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/types.h> /* for size_t */
9 #include <linux/stddef.h> /* for NULL */
15 extern char * strpbrk(const char *,const char *);
16 extern char * strsep(char **,const char *);
17 extern __kernel_size_t
strspn(const char *,const char *);
18 extern __kernel_size_t
strcspn(const char *,const char *);
21 * Include machine specific inline routines
23 #include <asm/string.h>
25 #ifndef __HAVE_ARCH_STRCPY
26 extern char * strcpy(char *,const char *);
28 #ifndef __HAVE_ARCH_STRNCPY
29 extern char * strncpy(char *,const char *, __kernel_size_t
);
31 #ifndef __HAVE_ARCH_STRLCPY
32 size_t strlcpy(char *, const char *, size_t);
34 #ifndef __HAVE_ARCH_STRCAT
35 extern char * strcat(char *, const char *);
37 #ifndef __HAVE_ARCH_STRNCAT
38 extern char * strncat(char *, const char *, __kernel_size_t
);
40 #ifndef __HAVE_ARCH_STRLCAT
41 extern size_t strlcat(char *, const char *, __kernel_size_t
);
43 #ifndef __HAVE_ARCH_STRCMP
44 extern int strcmp(const char *,const char *);
46 #ifndef __HAVE_ARCH_STRNCMP
47 extern int strncmp(const char *,const char *,__kernel_size_t
);
49 #ifndef __HAVE_ARCH_STRNICMP
50 extern int strnicmp(const char *, const char *, __kernel_size_t
);
52 #ifndef __HAVE_ARCH_STRCHR
53 extern char * strchr(const char *,int);
55 #ifndef __HAVE_ARCH_STRNCHR
56 extern char * strnchr(const char *, size_t, int);
58 #ifndef __HAVE_ARCH_STRRCHR
59 extern char * strrchr(const char *,int);
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
);
71 #ifndef __HAVE_ARCH_MEMSET
72 extern void * memset(void *,int,__kernel_size_t
);
74 #ifndef __HAVE_ARCH_MEMCPY
75 extern void * memcpy(void *,const void *,__kernel_size_t
);
77 #ifndef __HAVE_ARCH_MEMMOVE
78 extern void * memmove(void *,const void *,__kernel_size_t
);
80 #ifndef __HAVE_ARCH_MEMSCAN
81 extern void * memscan(void *,int,__kernel_size_t
);
83 #ifndef __HAVE_ARCH_MEMCMP
84 extern int memcmp(const void *,const void *,__kernel_size_t
);
86 #ifndef __HAVE_ARCH_MEMCHR
87 extern void * memchr(const void *,int,__kernel_size_t
);
95 #endif /* _LINUX_STRING_H_ */