X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fstring.h;h=efdc44593b522054dda0454f105fb0636b8ec0c2;hb=2fff58fce14701e27d5e8a50fa73caef9a6907f5;hp=836062b7582a95d23878b994144f5cba85d4ce34;hpb=40b42f1ebf653cd72c32eb1a1a0b9fea2dfbfd7d;p=linux-2.6 diff --git a/include/linux/string.h b/include/linux/string.h index 836062b758..efdc44593b 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); /* @@ -111,9 +109,7 @@ extern void *kmemdup(const void *src, size_t len, gfp_t gfp); extern char **argv_split(gfp_t gfp, const char *str, int *argcp); extern void argv_free(char **argv); -#ifdef __cplusplus -} -#endif +extern bool sysfs_streq(const char *s1, const char *s2); #endif #endif /* _LINUX_STRING_H_ */