Utility functions for C language. Features are described below:
basic data structures
: such as (singly|doubly)linked list, queue etc copied from freebsdlru
: LRU(Least Recently Used) based on doubly linked listhashmap
: Hashmap based on go1.1's implementation (simplified AND modified for getting rid of go runtime dependencies)slab
: slab allocator for fast memory management(malloc/free)cache
: simple cache implementation with LRU
- For Ubuntu 16.04
$ sudo apt-get install cmake check libsubunit-dev
- For Ubuntu/Debian
$ sudo apt-get install cmake check
- For RHEL/CentOS
$ sudo yum install cmake check check-devel
git clone git://github.com/leo-project/libcutil.git
cd libcutil
mkdir build
cd build
cmake ..
make
make test
sudo make install
LeoProject/LeoFS is sponsored by Rakuten, Inc. and supported by Rakuten Institute of Technology.