1 #ifndef _LINUX_STRING_H_
2 #define _LINUX_STRING_H_
4 /* We don't want strings.h stuff being used by user stuff by accident */
10 #include <linux/compiler.h> /* for inline */
11 #include <linux/types.h> /* for size_t */
12 #include <linux/stddef.h> /* for NULL */
14 extern char *strndup_user(const char __user
*, long);
15 extern void *memdup_user(const void __user
*, size_t);
18 * Include machine specific inline routines
20 #include <asm/string.h>
22 #ifndef __HAVE_ARCH_STRCPY
23 extern char * strcpy(char *,const char *);
25 #ifndef __HAVE_ARCH_STRNCPY
26 extern char * strncpy(char *,const char *, __kernel_size_t
);
28 #ifndef __HAVE_ARCH_STRLCPY
29 size_t strlcpy(char *, const char *, size_t);
31 #ifndef __HAVE_ARCH_STRCAT
32 extern char * strcat(char *, const char *);
34 #ifndef __HAVE_ARCH_STRNCAT
35 extern char * strncat(char *, const char *, __kernel_size_t
);
37 #ifndef __HAVE_ARCH_STRLCAT
38 extern size_t strlcat(char *, const char *, __kernel_size_t
);
40 #ifndef __HAVE_ARCH_STRCMP
41 extern int strcmp(const char *,const char *);
43 #ifndef __HAVE_ARCH_STRNCMP
44 extern int strncmp(const char *,const char *,__kernel_size_t
);
46 #ifndef __HAVE_ARCH_STRNICMP
47 extern int strnicmp(const char *, const char *, __kernel_size_t
);
49 #ifndef __HAVE_ARCH_STRCASECMP
50 extern int strcasecmp(const char *s1
, const char *s2
);
52 #ifndef __HAVE_ARCH_STRNCASECMP
53 extern int strncasecmp(const char *s1
, const char *s2
, size_t n
);
55 #ifndef __HAVE_ARCH_STRCHR
56 extern char * strchr(const char *,int);
58 #ifndef __HAVE_ARCH_STRNCHR
59 extern char * strnchr(const char *, size_t, int);
61 #ifndef __HAVE_ARCH_STRRCHR
62 extern char * strrchr(const char *,int);
64 extern char * strstrip(char *);
65 #ifndef __HAVE_ARCH_STRSTR
66 extern char * strstr(const char *,const char *);
68 #ifndef __HAVE_ARCH_STRLEN
69 extern __kernel_size_t
strlen(const char *);
71 #ifndef __HAVE_ARCH_STRNLEN
72 extern __kernel_size_t
strnlen(const char *,__kernel_size_t
);
74 #ifndef __HAVE_ARCH_STRPBRK
75 extern char * strpbrk(const char *,const char *);
77 #ifndef __HAVE_ARCH_STRSEP
78 extern char * strsep(char **,const char *);
80 #ifndef __HAVE_ARCH_STRSPN
81 extern __kernel_size_t
strspn(const char *,const char *);
83 #ifndef __HAVE_ARCH_STRCSPN
84 extern __kernel_size_t
strcspn(const char *,const char *);
87 #ifndef __HAVE_ARCH_MEMSET
88 extern void * memset(void *,int,__kernel_size_t
);
90 #ifndef __HAVE_ARCH_MEMCPY
91 extern void * memcpy(void *,const void *,__kernel_size_t
);
93 #ifndef __HAVE_ARCH_MEMMOVE
94 extern void * memmove(void *,const void *,__kernel_size_t
);
96 #ifndef __HAVE_ARCH_MEMSCAN
97 extern void * memscan(void *,int,__kernel_size_t
);
99 #ifndef __HAVE_ARCH_MEMCMP
100 extern int memcmp(const void *,const void *,__kernel_size_t
);
102 #ifndef __HAVE_ARCH_MEMCHR
103 extern void * memchr(const void *,int,__kernel_size_t
);
106 extern char *kstrdup(const char *s
, gfp_t gfp
);
107 extern char *kstrndup(const char *s
, size_t len
, gfp_t gfp
);
108 extern void *kmemdup(const void *src
, size_t len
, gfp_t gfp
);
110 extern char **argv_split(gfp_t gfp
, const char *str
, int *argcp
);
111 extern void argv_free(char **argv
);
113 extern bool sysfs_streq(const char *s1
, const char *s2
);
115 extern ssize_t
memory_read_from_buffer(void *to
, size_t count
, loff_t
*ppos
,
116 const void *from
, size_t available
);
119 #endif /* _LINUX_STRING_H_ */
This page took 0.033622 seconds and 6 git commands to generate.