make oldconfig will rebuild these...
[linux-2.4.21-pre4.git] / include / linux / string.h
1 #ifndef _LINUX_STRING_H_
2 #define _LINUX_STRING_H_
3
4 /* We don't want strings.h stuff being user by user stuff by accident */
5
6 #ifdef __KERNEL__
7
8 #include <linux/types.h>        /* for size_t */
9 #include <linux/stddef.h>       /* for NULL */
10
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 extern char * ___strtok;
16 extern char * strpbrk(const char *,const char *);
17 extern char * strtok(char *,const char *);
18 extern char * strsep(char **,const char *);
19 extern __kernel_size_t strspn(const char *,const char *);
20
21
22 /*
23  * Include machine specific inline routines
24  */
25 #include <asm/string.h>
26
27 #ifndef __HAVE_ARCH_STRCPY
28 extern char * strcpy(char *,const char *);
29 #endif
30 #ifndef __HAVE_ARCH_STRNCPY
31 extern char * strncpy(char *,const char *, __kernel_size_t);
32 #endif
33 #ifndef __HAVE_ARCH_STRCAT
34 extern char * strcat(char *, const char *);
35 #endif
36 #ifndef __HAVE_ARCH_STRNCAT
37 extern char * strncat(char *, const char *, __kernel_size_t);
38 #endif
39 #ifndef __HAVE_ARCH_STRCMP
40 extern int strcmp(const char *,const char *);
41 #endif
42 #ifndef __HAVE_ARCH_STRNCMP
43 extern int strncmp(const char *,const char *,__kernel_size_t);
44 #endif
45 #ifndef __HAVE_ARCH_STRNICMP
46 extern int strnicmp(const char *, const char *, __kernel_size_t);
47 #endif
48 #ifndef __HAVE_ARCH_STRCHR
49 extern char * strchr(const char *,int);
50 #endif
51 #ifndef __HAVE_ARCH_STRRCHR
52 extern char * strrchr(const char *,int);
53 #endif
54 #ifndef __HAVE_ARCH_STRSTR
55 extern char * strstr(const char *,const char *);
56 #endif
57 #ifndef __HAVE_ARCH_STRLEN
58 extern __kernel_size_t strlen(const char *);
59 #endif
60 #ifndef __HAVE_ARCH_STRNLEN
61 extern __kernel_size_t strnlen(const char *,__kernel_size_t);
62 #endif
63
64 #ifndef __HAVE_ARCH_MEMSET
65 extern void * memset(void *,int,__kernel_size_t);
66 #endif
67 #ifndef __HAVE_ARCH_MEMCPY
68 extern void * memcpy(void *,const void *,__kernel_size_t);
69 #endif
70 #ifndef __HAVE_ARCH_MEMMOVE
71 extern void * memmove(void *,const void *,__kernel_size_t);
72 #endif
73 #ifndef __HAVE_ARCH_MEMSCAN
74 extern void * memscan(void *,int,__kernel_size_t);
75 #endif
76 #ifndef __HAVE_ARCH_MEMCMP
77 extern int memcmp(const void *,const void *,__kernel_size_t);
78 #endif
79 #ifndef __HAVE_ARCH_MEMCHR
80 extern void * memchr(const void *,int,__kernel_size_t);
81 #endif
82
83 #ifdef __cplusplus
84 }
85 #endif
86
87 #endif
88 #endif /* _LINUX_STRING_H_ */