Commit Graph

  • a48211cf7b ncd: modules: file: add file_stat() and file_lstat() ambrop7 2012-07-05 23:45:07 +00:00
  • 98e139f2ce ncd: modules: runonce: document the do_setsid option ambrop7 2012-07-05 23:41:47 +00:00
  • e497b1776f misc: add substring.h ambrop7 2012-07-05 23:40:50 +00:00
  • 036c3f93a9 ncd: fix warning ambrop7 2012-06-21 13:44:19 +00:00
  • 3f040602ed update ChangeLog ambrop7 2012-06-19 22:00:56 +00:00
  • b76e6f901f version 1.999.122rc1 ambrop7 2012-06-19 12:21:53 +00:00
  • 176f2948fe ncd: tests: add regex ambrop7 2012-06-19 12:15:02 +00:00
  • d6d3221e1a ncd: modules: regex_match: fix the broken semantics of regex_replace() ambrop7 2012-06-19 12:14:34 +00:00
  • fb1a5903c3 ncd: cosmetic changes ambrop7 2012-06-19 10:25:07 +00:00
  • 5f17ad3ef1 ncd: NCDModule: make interpreter-side functions call backend functions directly, and remove a bunch of states made redundant ambrop7 2012-06-19 10:13:15 +00:00
  • 5f5edfb3cb version 1.999.121 ambrop7 2012-06-14 14:16:06 +00:00
  • fb52e48f79 ncd: improve error handling semantics. Previously, when a statement died with an error, we would not re-initialize this statement after retry_time has passed. This is not good when a stemement dies because of a broken dependency which is shortly after detected by one of the preceding statements doing down (gracefully). Fix this by keeping a single per-process error flag indicating whether to wait retry_time before initializing the next statement, and adjusting this flag appropriately. In particular, when a statement not scheduled for termination goes down, the error flag is cleared; similarly, if a statement dies with an error, the error flag is only set if the statement was not scheduled for termination. ambrop7 2012-06-14 14:14:55 +00:00
  • 876b29f225 ncd: modules: sys_watch_directory: handle errors on inotify fd, don't assert if close fails ambrop7 2012-06-14 13:14:13 +00:00
  • 26b8669af4 ncd: NCDInterfaceMonitor: handle file descriptor errors ambrop7 2012-06-14 13:06:04 +00:00
  • a0ff913867 ncd: modules: sys_evdev: fix assertion failure when we get an error from the file descriptor while we're processing an event ambrop7 2012-06-14 12:59:31 +00:00
  • 07f656ea89 ncd: cosmetic changes ambrop7 2012-06-14 10:49:33 +00:00
  • db615d09b2 misc: split_string: add implode_strings() ambrop7 2012-06-14 10:39:22 +00:00
  • 25fe09bf22 version 1.999.121rc2 ambrop7 2012-06-13 14:33:35 +00:00
  • 42d543212b ncd: port some modules to use preallocation ambrop7 2012-06-13 14:29:37 +00:00
  • 288834b8bd ncd: implement memory preallocation for statements ambrop7 2012-06-13 12:44:10 +00:00
  • c0004691ca misc: add maxalign ambrop7 2012-06-13 11:54:01 +00:00
  • 33d506a131 fix typo in man page ambrop7 2012-06-12 22:15:57 +00:00
  • 34a5c14ddb ncd: rename process_statement to statement ambrop7 2012-06-12 19:52:35 +00:00
  • cd0a213dae ncd: NCDModule: add flags field and migrate "can_resolve_when_down" field into a flag ambrop7 2012-06-12 19:39:41 +00:00
  • 97baafb594 ncd: NCDConfig: remove ambrop7 2012-06-12 19:11:13 +00:00
  • b1f6e3f1d6 ncd: NCDValueParser: refactor to how NCDConfigParser is implemented, and avoid using the old NCDConfig code ambrop7 2012-06-12 17:52:43 +00:00
  • 09eccc74ea ncd: cosmetic changes ambrop7 2012-06-10 23:25:48 +00:00
  • 02b1b8faae examples: ncdval_test: print maps ordered ambrop7 2012-06-10 21:50:42 +00:00
  • ee998e23d6 ncd: NCDVal: document that NCDVal_NewString() and NCDVal_NewStringBin() require the passed buffer is outside the memory object we're building a value in. Fix NCDVal_NewCopy() which failed in that respect. Add a test. ambrop7 2012-06-10 21:50:12 +00:00
  • 18862ab4df version 1.999.121rc1 ambrop7 2012-06-10 16:43:51 +00:00
  • 620fb57a3e ncd: tests: add value.ncd ambrop7 2012-06-10 16:14:38 +00:00
  • 577e83fa9c ncd: modules: add assert ambrop7 2012-06-10 15:26:14 +00:00
  • 77fa49af96 ncd: cosmetic changes ambrop7 2012-06-10 15:09:12 +00:00
  • 88c3e84891 ncd: NCDVal: store types as int not uint8_t ambrop7 2012-06-10 14:33:30 +00:00
  • 276905d47c ncd: NCDVal: Add documentation. Rename NCDVal_Map{First,Next} to NCDVal_MapOrdered{First,Next}, and implement the former as unordered iteration. Fix bug in NCDVal_Compare() for maps. ambrop7 2012-06-10 12:48:22 +00:00
  • 039ee161df examples: port stuff to NCDVal ambrop7 2012-06-10 10:28:34 +00:00
  • 8f4ede1dbb ncd: cosmetic changes ambrop7 2012-06-10 00:18:25 +00:00
  • 8a20ffa125 structure: IndexedList: add iteration functions ambrop7 2012-06-10 00:06:29 +00:00
  • 27c36e7859 ncd: make a new more efficient value storage object NCDVal, and migrate things from NCDValue to NCDVal ambrop7 2012-06-09 23:59:00 +00:00
  • f6660e120d ncd: NCDInterpValue: count list and map sizes ambrop7 2012-06-09 23:23:24 +00:00
  • 0daf6a52dd misc: bsize: fix division by zero in bsize_mul() ambrop7 2012-06-08 19:52:00 +00:00
  • 29e9c4b657 version 1.999.120rc4 ambrop7 2012-06-07 13:03:06 +00:00
  • 8df35491bd ncd: modules: net_iptables: add ebtables commands ambrop7 2012-06-07 13:01:50 +00:00
  • b3c5ff1cb8 ncd: modules: command_template: remove stray log channel include, cosmetic changes ambrop7 2012-06-07 12:06:56 +00:00
  • 3217f9c2b9 structure: IndexedList: use the new keys-are-indices feature of CAvl for more efficient implementation ambrop7 2012-06-06 21:00:56 +00:00
  • d89417a560 CAvl: add option to assume the keys are the indices of nodes, suitable for implementation of IndexedList ambrop7 2012-06-06 20:53:08 +00:00
  • 7e3da6f3f0 structure: IndexedList: fix an assert which should be stricter ambrop7 2012-06-06 00:19:45 +00:00
  • 4942374ad5 structure: IndexedList: use CAvl instead of BAVL ambrop7 2012-06-06 00:18:10 +00:00
  • 98c57a2886 structure: CAvl: fix CAvl_IndexOf() ambrop7 2012-06-06 00:08:29 +00:00
  • 1d9c9a1c14 structure: CAvl: add missing undef ambrop7 2012-06-05 23:48:47 +00:00
  • a0ebadd888 ncd: remove uneeded variable ambrop7 2012-06-05 18:56:08 +00:00
  • e17ce6d957 ncd: NCDModule: use just one BPending object instead of 4. Saves some memory. ambrop7 2012-06-05 16:31:16 +00:00
  • d7627bd2a5 ncd: NCDValue: use CAvl instead of BAVL for maps ambrop7 2012-06-05 16:00:38 +00:00
  • a5aa5517ab structure: add CAvl, a very generic and embeddable AVL tree ambrop7 2012-06-05 15:38:04 +00:00
  • 778f030dec ncd: remove the no-longer-needed "advance job" ambrop7 2012-06-05 14:10:02 +00:00
  • 26ebecb484 ncd: modules: alias: some performance improvements ambrop7 2012-06-03 20:31:27 +00:00
  • c2674d7077 ncd: NCDObject: add NCDObject_ResolveObjExprCompact() ambrop7 2012-06-03 20:17:19 +00:00
  • 3eac18b681 version 1.999.120rc3 ambrop7 2012-06-03 12:52:04 +00:00
  • 07ecc91235 ncd: NCDValue: use LinkedList1 not LinkedList2 (which is slower) ambrop7 2012-06-03 12:44:43 +00:00
  • c62ba20340 ncd: small performance improvement when not logging ambrop7 2012-06-03 12:07:20 +00:00
  • 8465f19096 ncd: NCDModuleIndex: use a hash table instead of AVL tree to lookup module names ambrop7 2012-06-03 11:45:54 +00:00
  • 093cce72a8 misc: add hashfun, and use it ambrop7 2012-06-03 10:43:09 +00:00
  • 89ea627530 structure: CHash: retrieve keys via a macro expression instead of expecting them to be directly in entries ambrop7 2012-06-03 10:06:48 +00:00
  • ecd4e5ed6c version 1.999.120rc2 ambrop7 2012-05-31 01:27:25 +00:00
  • 06ddc113d0 ncd: allocate process_statement's as a flexible array member, and simplify initialization ambrop7 2012-05-31 01:14:09 +00:00
  • 5ef2fc9f99 misc: bsize: add bsize_mul() ambrop7 2012-05-31 01:01:48 +00:00
  • 36cb33d1fc ncd: avoid a malloc on every method call ambrop7 2012-05-31 00:50:01 +00:00
  • 350eff55df ncd: make statement indices 'int', and reorder some fields to make structs smaller ambrop7 2012-05-31 00:30:36 +00:00
  • 02c1f7996d ncd: use NCDInterpValue's from NCDInterpBlock's instead of building them in process_new(). Introduces a significant performance gain. ambrop7 2012-05-31 00:20:25 +00:00
  • 12f5cbe1ee ncd: NCDInterpBlock: add NCDInterpBlock_StatementInterpValue() ambrop7 2012-05-31 00:17:43 +00:00
  • 2d98231088 add some missing file headers ambrop7 2012-05-31 00:04:06 +00:00
  • 540a8d7acd ncd: move arg_value to NCDInterpValue ambrop7 2012-05-30 23:52:46 +00:00
  • 73ca67e869 ncd: remove unneeded struct ambrop7 2012-05-30 23:05:38 +00:00
  • 0011694636 ncd: remove some malloc's ambrop7 2012-05-30 23:00:56 +00:00
  • a1b4d1aeee ncd: NCDInterpBlock: add NCDInterpBlock_StatementCmdName() and NCDInterpBlock_StatementObjNames() ambrop7 2012-05-30 22:59:30 +00:00
  • 6c14da508b misc: split_string: add count_strings(), free_strings() ambrop7 2012-05-30 22:45:13 +00:00
  • 4ec6bc22db ncd: fix compile in debug mode ambrop7 2012-05-30 22:32:14 +00:00
  • c89e412799 ncd: remove some malloc's ambrop7 2012-05-30 22:30:57 +00:00
  • a2745f4196 ncd: use NCDInterpBlock and NCDInterpProg to speed up looking up templates and variables ambrop7 2012-05-30 22:15:32 +00:00
  • 689d05c172 cosmetic changes ambrop7 2012-05-30 22:09:13 +00:00
  • eb7c4029b0 ncd: NCDInterpProg: fix bad return value ambrop7 2012-05-30 21:59:37 +00:00
  • a75e507a34 ncd: add NCDInterpBlock and NCDInterpProg, to be used for speeding up certain operations during interpretation ambrop7 2012-05-30 21:48:24 +00:00
  • 2e5d7264d5 ncd: NCDAst: add NCDProgram_NumProcesses() ambrop7 2012-05-30 21:45:46 +00:00
  • 713d1abd3e misc: add merge.h ambrop7 2012-05-30 21:42:13 +00:00
  • 7e67cc16e2 structure: add CHash, a generic hash table implemented with the help of the C preprocessor ambrop7 2012-05-30 21:39:46 +00:00
  • e743d7310c add missing file headers ambrop7 2012-05-30 11:49:13 +00:00
  • 46f5fc7f79 ncd: NCDValueGenerator: properly handle strings with null bytes ambrop7 2012-05-29 21:50:54 +00:00
  • db4e5cc1ce version 1.999.120rc1 ambrop7 2012-05-29 15:10:25 +00:00
  • caa96cfbea silence some clang warnings ambrop7 2012-05-29 15:08:47 +00:00
  • 89b93387bd change file forgotten in previous commit ambrop7 2012-05-29 14:53:13 +00:00
  • dd25051125 ncd: refactor parsing and implement if clauses ambrop7 2012-05-29 14:51:27 +00:00
  • 49e65392c9 ncd: ncd/NCDConfigTokenizer: add If, elif, else tokens. ambrop7 2012-05-29 13:22:14 +00:00
  • 03aac297ad ncd: NCDConfigParser, NCDValueParser: do not assert on unknown tokens ambrop7 2012-05-29 13:16:59 +00:00
  • 67f714314c ncd: NCDValueGenerator: handle variable values ambrop7 2012-05-29 13:08:06 +00:00
  • 54a1bb3eaf ncd: NCDValue: add variable values for future internal use in the AST ambrop7 2012-05-29 13:07:09 +00:00
  • e7ba5f8637 ncd: NCDValue: add NCDValue_ListPrepend() ambrop7 2012-05-29 12:59:27 +00:00
  • b188187974 misc: add split_string.h ambrop7 2012-05-29 12:52:36 +00:00
  • 302a2c7610 ncd: modules: call2: add embcall2_multif() ambrop7 2012-05-29 12:18:40 +00:00
  • 385ceeef2e ncd: NCDConfigParser: simplify grammar ambrop7 2012-05-27 09:49:54 +00:00
  • 64d6913dec ncd: NCDConfig: remove some redundant error checking ambrop7 2012-05-27 09:38:34 +00:00