X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=include%2Flinux%2Fstring.h;h=c5d3fcad7b57c87449d7de9085daa64cd80f984f;hb=57eb06e584be3b702d1ba5c39e0b57ddcdabdc66;hp=7f2eb6a477f9d60f6f85c49903612aa124b34f6d;hpb=d6454706c382ab74e2ecad7803c434cc6bd30343;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/string.h b/include/linux/string.h index 7f2eb6a477f..c5d3fcad7b5 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -3,16 +3,14 @@ /* We don't want strings.h stuff being user by user stuff by accident */ -#ifdef __KERNEL__ +#ifndef __KERNEL__ +#include +#else #include /* for inline */ #include /* for size_t */ #include /* for NULL */ -#ifdef __cplusplus -extern "C" { -#endif - extern char *strndup_user(const char __user *, long); /* @@ -105,11 +103,11 @@ extern void * memchr(const void *,int,__kernel_size_t); #endif extern char *kstrdup(const char *s, gfp_t gfp); +extern char *kstrndup(const char *s, size_t len, gfp_t gfp); extern void *kmemdup(const void *src, size_t len, gfp_t gfp); -#ifdef __cplusplus -} -#endif +extern char **argv_split(gfp_t gfp, const char *str, int *argcp); +extern void argv_free(char **argv); #endif #endif /* _LINUX_STRING_H_ */