X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=include%2Flinux%2Fstring.h;h=3c877d686375022f9b69773465e8b80eb92ac864;hb=8302294f43250dc337108c51882a6007f2b1e2e0;hp=8852739f36dfe94529ad3bdb09555741b0829b9e;hpb=4fe70410d9a219dabb47328effccae7e7f2a6e26;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/string.h b/include/linux/string.h index 8852739f36d..3c877d68637 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -10,6 +10,7 @@ #include /* for inline */ #include /* for size_t */ #include /* for NULL */ +#include extern char *strndup_user(const char __user *, long); extern void *memdup_user(const void __user *, size_t); @@ -112,6 +113,12 @@ extern void argv_free(char **argv); extern bool sysfs_streq(const char *s1, const char *s2); +#ifdef CONFIG_BINARY_PRINTF +int vbin_printf(u32 *bin_buf, size_t size, const char *fmt, va_list args); +int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf); +int bprintf(u32 *bin_buf, size_t size, const char *fmt, ...) __printf(3, 4); +#endif + extern ssize_t memory_read_from_buffer(void *to, size_t count, loff_t *ppos, const void *from, size_t available);