Archived
1
0
Fork 0
Commit graph

153 commits

Author SHA1 Message Date
Henrik Hautakoski
09b6a37cc4 strbuf.c: use strbuf_setlen in strbuf_* functions. 2011-02-05 14:32:48 +01:00
Henrik Hautakoski
1b3035b249 path: added mkpath 2011-02-05 14:13:17 +01:00
Henrik Hautakoski
9c73f8f867 strbuf: strbuf_append_va 2011-02-05 14:10:59 +01:00
Henrik Hautakoski
e67e03aceb strbuf: added strbuf_avail and strbuf_appendf. 2011-02-04 17:18:21 +01:00
Henrik Hautakoski
6538fd9369 strbuf: added strbuf_setlen 2011-02-04 16:27:39 +01:00
Henrik Hautakoski
3ed80a13ae path.c: declare path_normalize as 'unsigned dir' instead of 'unsigned char dir' 2011-02-04 15:59:58 +01:00
Henrik Hautakoski
d64f14af4e rbtree: remove unused arguments from INIT macro. 2011-02-01 12:00:07 +01:00
Henrik Hautakoski
b5f0c3117c rbtree: move delete_fn from the structure to argument. 2011-02-01 11:51:54 +01:00
Henrik Hautakoski
ae3dec912a rbtree.c: don't call delete_fn in rbtree_insert, return a value on duplicate keys instead.
for design reasons, it's more flexible to not use callbacks for this purpose.
2011-02-01 10:53:17 +01:00
Henrik Hautakoski
7dcfd815ee rbtree.h: get rid of update_fn, we don't use it. 2011-02-01 10:29:01 +01:00
Henrik Hautakoski
442e912835 rbtree.c: return key instead of using callback. 2011-02-01 10:21:57 +01:00
Henrik Hautakoski
9e185ea920 strbuf.h: style fix for prototype 2011-02-01 09:56:41 +01:00
Henrik Hautakoski
440e5ed7d2 inotify-map.c: return a copy of a path list in lookup functions.
Becouse it is possible to change the a list stored by the API while traversing it, a bug can couse a infinite loop.
lets be strict about this and only return a copy of the list, so it can't be changed by calls to the API.
2011-01-30 15:55:51 +01:00
Henrik Hautakoski
cb5eef43b2 str-list.h: added str_list_export prototype. 2011-01-30 13:27:54 +01:00
Henrik Hautakoski
c2da15baba fscrawl.c: remove unneeded function 2011-01-29 11:13:19 +01:00
Henrik Hautakoski
383be0aee2 log.c: util.h and xalloc.h, used but not included. 2011-01-29 11:08:49 +01:00
Henrik Hautakoski
c37f720989 rbtree.c: fix uninitialized value. 2011-01-29 11:02:26 +01:00
Henrik Hautakoski
6714397d10 path.c: remove unneeded function. 2011-01-29 10:54:20 +01:00
Henrik Hautakoski
5ef26e412f inotify-map.c: include string.h 2011-01-29 10:53:06 +01:00
Henrik Hautakoski
bd74a7ad0c inotify.c: skip logging EACCES when adding watches. 2011-01-27 17:46:22 +01:00
Henrik Hautakoski
4440831f19 queue.c: fixed bug where dequeue returns a invalid pointer. 2011-01-27 17:38:54 +01:00
Henrik Hautakoski
a49efe7bdc updated copyright notices. 2011-01-26 19:19:05 +01:00
Henrik Hautakoski
ad06c58ba5 inotify.c: close fscrawl. 2011-01-20 09:16:58 +01:00
Henrik Hautakoski
1c6f66d58d fscrawl.c: use FTS to handle symlink-loops. 2011-01-20 09:13:54 +01:00
Henrik Hautakoski
72bdd8bb03 inotify.c: use inotify-map. 2011-01-26 08:29:46 +01:00
Henrik Hautakoski
cc590370bf inotify: breakup mapping into a module. 2011-01-25 15:38:06 +01:00
Henrik Hautakoski
51dd9eac43 compat/string.h: Added header-guards 2011-01-13 14:54:19 +01:00
Henrik Hautakoski
ff1d4862a1 Removed unneeded includes. 2011-01-13 14:53:04 +01:00
Henrik Hautakoski
e7ebbd30ec rbtree.c: make rbnode an ADT. 2011-01-08 08:10:23 +01:00
Henrik Hautakoski
41a253a00a rbtree.c: moved tree assertion from the test. 2011-01-07 10:53:08 +01:00
Henrik Hautakoski
50c53e79bf rbtree.c: small cleanup 2011-01-07 09:23:32 +01:00
Henrik Hautakoski
6514462cdb rbtree.c: changed return values in insert/delete. 2011-01-05 10:17:22 +01:00
Henrik Hautakoski
0fba36440c rbtree.c: rbtree_walk: pass rbnode->key instead of rbnode to callback function 2011-01-05 09:11:56 +01:00
Henrik Hautakoski
246ea7854e rbtree.c: fixed bug with tree not being empty when removing root node. 2010-12-28 18:29:06 +01:00
Henrik Hautakoski
3671888b8b rbtree.c: search: return key instead of node. 2010-12-27 15:14:20 +01:00
Henrik Hautakoski
027bf154a7 rbtree.c: use generic keys.
to make the rbtree more usefull. allow generic keys and user defined compare functions.
2010-12-27 10:17:01 +01:00
Henrik Hautakoski
f76f494dcc added str-list.c 2011-01-22 04:20:55 +01:00
Henrik Hautakoski
4c080dd248 inotify.c: log errors from inotify 2010-12-20 20:08:09 +01:00
Henrik Hautakoski
e2ff9d98df log.c: small fixes. 2010-12-20 19:42:20 +01:00
Henrik Hautakoski
f973e29668 src/queue.c: don't deallocate the last block when queue becomes empty.
always keep one block in the queue so that in situations when the queue becomes empty
frequently. performance dosent blow up by calls to malloc/free.
2011-01-13 15:37:00 +01:00
Henrik Hautakoski
e36fb981f2 archived.c: support for log levels in config 2011-01-13 15:37:00 +01:00
Henrik Hautakoski
80ad7d0daa log.c: added logstrtolvl 2011-01-13 15:36:59 +01:00
Henrik Hautakoski
b6ab5c88a8 strbuf.c: added strbuf_explode 2011-01-13 15:36:59 +01:00
Henrik Hautakoski
ce520fc35b src/queue.c: minor stuff. uint16_t -> unsigned int and a NULL check. 2011-01-13 15:36:59 +01:00
Henrik Hautakoski
463d432104 src/queue.c: use xalloc. 2011-01-13 15:36:59 +01:00
Henrik Hautakoski
2e2d6c7eee use stdlib.h instead of malloc.h 2011-01-13 15:36:58 +01:00
Henrik Hautakoski
ae3ff5faae strbuf.c: use memrchr in strbuf_rchop 2011-01-13 15:36:58 +01:00
Henrik Hautakoski
de032e9b33 compat: Added memrchr implementation 2011-01-13 15:36:58 +01:00
Henrik Hautakoski
5dd6f89946 xalloc.c: cleaning up and better error messages. 2010-11-24 21:50:02 +01:00
Henrik Hautakoski
3cdbc3aa57 archived.c: changed the usage string abit. 2010-12-22 14:51:29 +01:00