These candy helpers are spin-offs from the development "Farm". I don't know when Farm will be released, so I think it would be useful for other dev to include these helerps in early. Most are taken from Linux kernel, git. Thanks, Yuan v2 changes: - drop simple slab allocator - drop hash_long(), use fnv_64a_buf() as kazum suggested. - add xpread, xpwrite helpers. Liu Yuan (4): sheep: modify Makefile.am for candy helpers. sheep: add some candy helpers in util.c sheep: add string buf candy helpers sheep: add hlist candy helpers include/list.h | 116 +++++++++++++++++++++++++ include/sheepdog_proto.h | 7 ++ include/util.h | 14 +++ sheep/Makefile.am | 4 +- sheep/strbuf.c | 192 +++++++++++++++++++++++++++++++++++++++++ sheep/strbuf.h | 95 ++++++++++++++++++++ sheep/util.c | 214 ++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 640 insertions(+), 2 deletions(-) |