Rev 422 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
422 | giacomo | 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 * 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 *); |
||
19 | |||
20 | /* |
||
21 | * Include machine specific inline routines |
||
22 | */ |
||
23 | #include <asm/string.h> |
||
24 | |||
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_STRRCHR |
||
56 | extern char * strrchr(const char *,int); |
||
57 | #endif |
||
58 | #ifndef __HAVE_ARCH_STRSTR |
||
59 | extern char * strstr(const char *,const char *); |
||
60 | #endif |
||
61 | #ifndef __HAVE_ARCH_STRLEN |
||
62 | extern __kernel_size_t strlen(const char *); |
||
63 | #endif |
||
64 | #ifndef __HAVE_ARCH_STRNLEN |
||
65 | extern __kernel_size_t strnlen(const char *,__kernel_size_t); |
||
66 | #endif |
||
67 | |||
68 | #ifndef __HAVE_ARCH_MEMSET |
||
69 | extern void * memset(void *,int,__kernel_size_t); |
||
70 | #endif |
||
71 | #ifndef __HAVE_ARCH_MEMCPY |
||
72 | extern void * memcpy(void *,const void *,__kernel_size_t); |
||
73 | #endif |
||
74 | #ifndef __HAVE_ARCH_MEMMOVE |
||
75 | extern void * memmove(void *,const void *,__kernel_size_t); |
||
76 | #endif |
||
77 | #ifndef __HAVE_ARCH_MEMSCAN |
||
78 | extern void * memscan(void *,int,__kernel_size_t); |
||
79 | #endif |
||
80 | #ifndef __HAVE_ARCH_MEMCMP |
||
81 | extern int memcmp(const void *,const void *,__kernel_size_t); |
||
82 | #endif |
||
83 | #ifndef __HAVE_ARCH_MEMCHR |
||
84 | extern void * memchr(const void *,int,__kernel_size_t); |
||
85 | #endif |
||
86 | |||
87 | #ifdef __cplusplus |
||
88 | } |
||
89 | #endif |
||
90 | |||
91 | #endif |
||
92 | #endif /* _LINUX_STRING_H_ */ |