Archived
1
0
Fork 0
Commit graph

230 commits

Author SHA1 Message Date
Henrik Hautakoski
35008fa605 inotify-map: remove lookup_by_path function.
callers can write 'inotify_get_path(inotify_get_wd(path))' anyway.
2011-02-18 10:53:02 +01:00
Henrik Hautakoski
e0302e8ac4 inotify-map: rename lookup to get_path 2011-02-18 09:08:55 +01:00
Henrik Hautakoski
514a91b52e inotify-map: use inotify-watch to keep track of the filesystem hirarchy. 2011-02-16 16:07:31 +01:00
Henrik Hautakoski
a1a85267f0 path.c: dirname_s: allow 'path' to point to the static buffer.
feeding the function a pointer to sb.buf results in path also being cleared
by the call to strbuf_reduce and the information is lost.
2011-02-16 16:53:26 +02:00
Henrik Hautakoski
3c2436867e list.c: basic list implementation 2011-01-04 21:04:02 +01:00
Henrik Hautakoski
3b68160892 inotify-watch: Adding inotify watch datastructure. 2011-02-15 16:33:51 +01:00
Henrik Hautakoski
9e9321dc65 path.c: Added path_isparent function. 2011-02-15 16:23:54 +01:00
Henrik Hautakoski
171c764691 tree: Adding N-tree module. 2011-02-14 08:09:42 +01:00
Henrik Hautakoski
546e7c50f1 path.c: added dirname_s function. 2011-02-11 19:17:38 +01:00
Henrik Hautakoski
79f18e6671 strbuf.c: let strbuf_rchop return a value 2011-02-11 17:47:57 +01:00
Henrik Hautakoski
a1766126a2 inotify.c: refactoring addwatch function.
moving the "watch" code to it's own function.
this removes the need for a 'recursive' flag to addwatch.
2011-02-08 11:09:33 +01:00
Henrik Hautakoski
8f1f7c356c inotify-map: Make the compiler happy and remove the pointer to int casts. 2011-02-06 19:53:38 +01:00
Henrik Hautakoski
fc64c45e58 archived.c: include util.h for die() 2011-03-22 04:45:51 +01:00
Henrik Hautakoski
5aeb399ee4 archived.c: log-configuration: always read the settings from config file. 2011-02-06 19:37:19 +01:00
Henrik Hautakoski
ca73aa43ae config: move log settings to its own section. 2011-02-06 19:26:12 +01:00
Henrik Hautakoski
dfaa1be71f docs/technical/log.txt: fixed a typo. 2011-02-06 19:15:56 +01:00
Henrik Hautakoski
124d9ae438 config: added sample config. 2011-02-06 19:07:10 +01:00
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
33ceeca315 test/t_str-list.c: test export. 2011-01-30 13:28:19 +01:00
Henrik Hautakoski
cb5eef43b2 str-list.h: added str_list_export prototype. 2011-01-30 13:27:54 +01:00
Henrik Hautakoski
222f34aed0 test/t_inotify-map.c: test inotify_map_get_wd. 2011-01-29 11:40:05 +01:00
Henrik Hautakoski
b0bfbc3a0d test/t_inotify-map.c: test the right function. 2011-01-29 11:33:14 +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
d0a1ee2744 Makefile: compile but warn. 2011-01-29 10:49:13 +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
896c356d00 test/t_queue.c: rewritten, catches bug in dequeue. 2011-01-27 17:38:54 +01:00
Henrik Hautakoski
9ba3767e28 Makefile: remove archived target from phony. 2011-01-26 19:19:05 +01:00
Henrik Hautakoski
b0f473fb71 docs: adding str-list 2011-01-26 19:19:05 +01:00
Henrik Hautakoski
a49efe7bdc updated copyright notices. 2011-01-26 19:19:05 +01:00
Fredric N
605b0f607b docs: adding config 2011-01-26 19:19:05 +01:00
Fredric N
3c0e4e6470 Changed the documentation structure 2011-01-26 19:19:04 +01:00
Henrik Hautakoski
8be6c69e97 docs/fscrawl: read does not close anymore 2011-01-26 19:19:04 +01:00
Henrik Hautakoski
9378c5824e test/t_fscrawl.c: cleanup 2011-01-26 19:19:04 +01:00