Makefile: Add dist target.
Update .gitignore, improved filtering *.o, .*.d, *~
Rename uev_t --> uev_ctx_t and uev_watcher_t --> uev_t

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Major refactor: API change, code cleanup, remove calloc()/free()

- Rename all _create() functions --> _init()
- Rename all _delete() functions --> _stop()
- Watchers are automatically started, except
- Timer watchers are automatically started by uev_run()
- Allow I/O watchers to watch either EV_READ/EV_WRITE or both events
- Extend callbacks with a received events field
- Remove calloc()/free(), let user handle this
- Make event has-a context when initializing it => simplifies API
- Internal uev_watcher_*() API mostly handles epoll stop/start

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Add support for UEV_ONCE and UEV_NONBLOCK run flags to uev_run()

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Add support for make check using Sparse

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Import Niels Provos bench.c, this version from http://libev.schmorp.de/bench.c

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Reindent bench.c to Linux coding style

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
Adapt bench.c (from libev) to libuev, no libev/libevent API wrappers available

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>