[NET]: Add some sparse annotations to network driver stack.
[linux-2.6/history.git] / include / linux / string.h
blob6ad4e5c32f2285669495fad2cdc80e184e2cbcfc
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 */
6 #ifdef __KERNEL__
8 #include <linux/types.h> /* for size_t */
9 #include <linux/stddef.h> /* for NULL */
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
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 *);
27 #endif
28 #ifndef __HAVE_ARCH_STRNCPY
29 extern char * strncpy(char *,const char *, __kernel_size_t);
30 #endif
31 #ifndef __HAVE_ARCH_STRLCPY
32 size_t strlcpy(char *, const char *, size_t);
33 #endif
34 #ifndef __HAVE_ARCH_STRCAT
35 extern char * strcat(char *, const char *);
36 #endif
37 #ifndef __HAVE_ARCH_STRNCAT
38 extern char * strncat(char *, const char *, __kernel_size_t);
39 #endif
40 #ifndef __HAVE_ARCH_STRLCAT
41 extern size_t strlcat(char *, const char *, __kernel_size_t);
42 #endif
43 #ifndef __HAVE_ARCH_STRCMP
44 extern int strcmp(const char *,const char *);
45 #endif
46 #ifndef __HAVE_ARCH_STRNCMP
47 extern int strncmp(const char *,const char *,__kernel_size_t);
48 #endif
49 #ifndef __HAVE_ARCH_STRNICMP
50 extern int strnicmp(const char *, const char *, __kernel_size_t);
51 #endif
52 #ifndef __HAVE_ARCH_STRCHR
53 extern char * strchr(const char *,int);
54 #endif
55 #ifndef __HAVE_ARCH_STRNCHR
56 extern char * strnchr(const char *, size_t, int);
57 #endif
58 #ifndef __HAVE_ARCH_STRRCHR
59 extern char * strrchr(const char *,int);
60 #endif
61 #ifndef __HAVE_ARCH_STRSTR
62 extern char * strstr(const char *,const char *);
63 #endif
64 #ifndef __HAVE_ARCH_STRLEN
65 extern __kernel_size_t strlen(const char *);
66 #endif
67 #ifndef __HAVE_ARCH_STRNLEN
68 extern __kernel_size_t strnlen(const char *,__kernel_size_t);
69 #endif
71 #ifndef __HAVE_ARCH_MEMSET
72 extern void * memset(void *,int,__kernel_size_t);
73 #endif
74 #ifndef __HAVE_ARCH_MEMCPY
75 extern void * memcpy(void *,const void *,__kernel_size_t);
76 #endif
77 #ifndef __HAVE_ARCH_MEMMOVE
78 extern void * memmove(void *,const void *,__kernel_size_t);
79 #endif
80 #ifndef __HAVE_ARCH_MEMSCAN
81 extern void * memscan(void *,int,__kernel_size_t);
82 #endif
83 #ifndef __HAVE_ARCH_MEMCMP
84 extern int memcmp(const void *,const void *,__kernel_size_t);
85 #endif
86 #ifndef __HAVE_ARCH_MEMCHR
87 extern void * memchr(const void *,int,__kernel_size_t);
88 #endif
90 #ifdef __cplusplus
92 #endif
94 #endif
95 #endif /* _LINUX_STRING_H_ */