From b33fc8298f7e13226b9895abc57c9bfce5e3fa2d Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sun, 8 Jan 2017 00:13:18 -0900 Subject: bcache in userspace; userspace fsck --- include/linux/string.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/linux/string.h (limited to 'include/linux/string.h') diff --git a/include/linux/string.h b/include/linux/string.h new file mode 100644 index 0000000..abc191e --- /dev/null +++ b/include/linux/string.h @@ -0,0 +1,15 @@ +#ifndef _TOOLS_LINUX_STRING_H_ +#define _TOOLS_LINUX_STRING_H_ + +#include +#include +#include /* for size_t */ + +extern size_t strlcpy(char *dest, const char *src, size_t size); +extern char *skip_spaces(const char *); +extern char *strim(char *); +extern void memzero_explicit(void *, size_t); + +#define kstrndup(s, n, gfp) strndup(s, n) + +#endif /* _LINUX_STRING_H_ */ -- cgit v1.2.3