diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-01-08 00:13:18 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-01-20 09:07:08 -0900 |
commit | b33fc8298f7e13226b9895abc57c9bfce5e3fa2d (patch) | |
tree | a3d2a5a909b6372f7777c1c5c18cef5f81d123a9 /include/linux/string.h | |
parent | 7f4191a202ea4558ca2d5eb8a47daea33c9999c7 (diff) |
bcache in userspace; userspace fsck
Diffstat (limited to 'include/linux/string.h')
-rw-r--r-- | include/linux/string.h | 15 |
1 files changed, 15 insertions, 0 deletions
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 <stdlib.h> +#include <string.h> +#include <linux/types.h> /* 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_ */ |