Commit Graph

  • 0f0ae6dd1e Add uc_htable_remove + test Nils O. Selåsdal 2013-10-17 22:12:48 +02:00
  • 6c76759355 Add more htable tests Nils O. Selåsdal 2013-10-17 21:29:55 +02:00
  • 9f41543fb1 hash table test Nils O. Selåsdal 2013-10-17 21:00:57 +02:00
  • 4b13f1f1c9 Merge branch 'dev' of /var/lib/git/libucore into dev Nils O. Selåsdal 2013-10-17 21:00:32 +02:00
  • 987db2d096 First iteration of hash table Nils O. Selåsdal 2013-10-17 21:00:05 +02:00
  • b91d5870b8 Update rate_limit example Nils O. Selåsdal 2013-10-16 19:23:16 +02:00
  • 262958b8a0 Rework rate limit to only refill when needed Nils O. Selåsdal 2013-10-16 19:22:53 +02:00
  • 2d680052b2 Fix UC_DEBUGF Nils O. Selåsdal 2013-10-16 01:46:50 +02:00
  • ee3dd22b0e Convert logging to use UC_SRC_LOCATION Nils O. Selåsdal 2013-10-16 01:44:36 +02:00
  • 13567e3cd9 Add macro for stringifying __FILE__:__LINE__ Nils O. Selåsdal 2013-10-16 01:37:20 +02:00
  • 934088ca4a Remove ticket_cost member as it is no longer needed Nils O. Selåsdal 2013-10-15 22:31:57 +02:00
  • 0a36c669c6 More ratelimit optimizations Nils O. Selåsdal 2013-10-15 21:35:10 +02:00
  • c1ef4af4ad Changed test program Nils O. Selåsdal 2013-10-15 20:14:35 +02:00
  • 9c15b73774 Small optimization change when tickets < period Nils O. Selåsdal 2013-10-15 20:14:15 +02:00
  • 28514c0a57 More limits clarification Nils O. Selåsdal 2013-10-15 15:44:12 +02:00
  • c84d903b4f Assert that rate limit values are ok Nils O. Selåsdal 2013-10-15 15:27:25 +02:00
  • f4e7ad0fe6 Note the limits on tickets and period Nils O. Selåsdal 2013-10-15 15:23:32 +02:00
  • 763032fb04 Greatly improve the rate limit algorithm, so it is correct for a low ticket to period ratio. Nils O. Selåsdal 2013-10-15 15:03:27 +02:00
  • 41bb24bb61 Delete the silly bitvec _s functions Nils O. Selåsdal 2013-10-14 19:01:56 +02:00
  • 6058be1c07 Fix UC_STATIC_ASSERT Nils O. Selåsdal 2013-10-14 18:03:17 +02:00
  • 48678a9858 Use consisten header guard, prefixed with UC_ Nils O. Selåsdal 2013-10-13 17:37:28 +02:00
  • 52eb710db7 Add rate limit test Nils O. Selåsdal 2013-10-12 01:29:00 +02:00
  • 3d93ec6091 Bump scaling to 1000. Note the error in integer arithmetic Nils O. Selåsdal 2013-10-12 01:28:20 +02:00
  • 8a76210661 Comment rate_limit.h Nils O. Selåsdal 2013-10-11 23:54:37 +02:00
  • 9ca4a354ee Fix calculating available tickets. Help prevent overflow when there's long periods between calls Nils O. Selåsdal 2013-10-10 01:06:49 +02:00
  • 212fecae08 Move rate limit example to test/ Nils O. Selåsdal 2013-10-09 22:59:47 +02:00
  • 06083a054e Add rate limit API Nils O. Selåsdal 2013-10-09 22:55:29 +02:00
  • 08a50d8cfe fix UC_ASSERT writing to wrong fd, and unterminated if log more in UC_NOTREACHED Nils O. Selåsdal 2013-10-08 17:39:44 +02:00
  • 425062ad18 Add needed include files Nils O. Selåsdal 2013-10-08 17:34:58 +02:00
  • 1da7470e87 use UC_CONTAINER_OF Nils O. Selåsdal 2013-10-05 20:37:13 +02:00
  • bb5e21d29b add static strvec initializer macradd static strvec initializer macroo Nils O. Selåsdal 2013-10-05 20:36:11 +02:00
  • 1f4e41df3a Test inserting priority messages Nils O. Selåsdal 2013-10-05 00:56:41 +02:00
  • 3da0591cc3 introduce --with-assertions to build a release with assertions enabled Nils O. Selåsdal 2013-10-05 00:55:51 +02:00
  • f2f2ed247f Add assert for correct state when removing timer Nils O. Selåsdal 2013-10-05 00:55:21 +02:00
  • f4b1d81dcf test uc_thread_queue_clear Nils O. Selåsdal 2013-10-03 23:42:12 +02:00
  • d9517ad868 Make the thread queue walk function take a cookie to the callback and implement a _clear() function to clear out the queue Nils O. Selåsdal 2013-10-03 22:04:33 +02:00
  • 4310414b49 More comments in string.h Nils O. Selåsdal 2013-10-02 22:17:15 +02:00
  • 6456d8abe0 Include BCD length macros in test Nils O. Selåsdal 2013-10-02 22:15:55 +02:00
  • 41c58589a5 Fix harmless off by one when walking file descriptors Nils O. Selåsdal 2013-10-02 21:35:19 +02:00
  • 27aa7ef3d6 Some comment improving Nils O. Selåsdal 2013-10-02 21:33:10 +02:00
  • e12f2d3cfb Merge branch 'dev' Nils O. Selåsdal 2013-10-01 22:37:18 +02:00
  • d619d58ccd Fix overflow in strv_null_terminate, and don't make it increase .cnt Nils O. Selåsdal 2013-10-01 22:30:39 +02:00
  • dd517a5d85 Prefix CONTAINER_OF with UC_ Nils O. Selåsdal 2013-09-28 23:45:51 +02:00
  • ff0fd32ae1 Fix comment Nils O. Selåsdal 2013-09-26 22:22:19 +02:00
  • 5be46cd043 Add RTP sender test Nils O. Selåsdal 2013-09-26 22:22:05 +02:00
  • 4b8a49fb81 Exercise adding/removing timers a bit more Nils O. Selåsdal 2013-09-18 10:32:07 +02:00
  • 9988d8f4c0 Add uc_str_append_all function Nils O. Selåsdal 2013-09-15 00:01:19 +02:00
  • 03d700595b Improve docus Nils O. Selåsdal 2013-09-15 00:01:08 +02:00
  • 499517c2dd Move long runnign test to the end of the tests Nils O. Selåsdal 2013-09-15 00:00:39 +02:00
  • 9e919c1cde Add mbuf documentation. have mbuf_free handle NULL pointer Nils O. Selåsdal 2013-09-13 21:42:32 +02:00
  • a7e9effde5 Merge branch 'master' of /var/lib/git/libucore Nils O. Selåsdal 2013-09-13 20:42:23 +02:00
  • 88a20409cf Test removing a destination Nils O. Selåsdal 2013-09-04 18:33:40 +02:00
  • 1deb2bcce1 Test adding a destination twice Nils O. Selåsdal 2013-09-04 18:15:08 +02:00
  • 216dfe879d Added string vector(argv like) functions Nils O. Selåsdal 2013-09-04 18:10:26 +02:00
  • a5b8d53177 Fix goto label Nils O. Selåsdal 2013-08-30 19:34:33 +02:00
  • 1a85dd3231 Remove comments that was moved to .h file, rename goto label.. Nils O. Selåsdal 2013-08-28 23:30:37 +02:00
  • 110c843d9d Add supervisor Nils O. Selåsdal 2013-08-28 23:25:02 +02:00
  • 13108f1f48 Add doxygen groups Nils O. Selåsdal 2013-07-31 03:37:50 +02:00
  • 679b4b12e5 Fix UC_ATOMIC_ADD Nils O. Selåsdal 2013-07-19 20:53:36 +02:00
  • 6809a68060 Add tests for uc_sprintb/c/s/ll Nils O. Selåsdal 2013-07-18 00:04:38 +02:00
  • 69b7cfc38f Remove unneeded #undef Nils O. Selåsdal 2013-07-17 23:26:35 +02:00
  • ea0accdadf Fix indent Nils O. Selåsdal 2013-07-17 19:51:09 +02:00
  • 7a968ee77a Nuke the base64 code. It was wrong Nils O. Selåsdal 2013-07-12 21:13:22 +02:00
  • 6e3585e77c Remove a redundant assert.. Nils O. Selåsdal 2013-07-12 20:42:05 +02:00
  • c7d897c080 Enable some asserts for impossible conditions Nils O. Selåsdal 2013-07-12 20:40:46 +02:00
  • 1281533884 Add test to conver memmove cases now that memmove arn't always performed Nils O. Selåsdal 2013-07-12 20:36:17 +02:00
  • b6bd7fcaa6 Don't memmove the buffer content unless it's needed Nils O. Selåsdal 2013-07-12 20:27:31 +02:00
  • b475fae56b Add uc_set_tcp_keepalive_cfg too set keepalive options Nils O. Selåsdal 2013-07-08 22:15:56 +02:00
  • e1f16b3603 Correct spelling mistakes in comments Nils O. Selåsdal 2013-07-07 22:28:41 +02:00
  • 1d01e6dc7e INdent properly Nils O. Selåsdal 2013-07-07 22:14:56 +02:00
  • bc3a5ba2ca Print out URL to local coverage test results Nils O. Selåsdal 2013-07-07 22:11:00 +02:00
  • 2bd5f9f5b9 Add DBuf , buffer API Nils O. Selåsdal 2013-07-07 22:10:41 +02:00
  • 3c5688ad54 Add testcase for lowercase hex Nils O. Selåsdal 2013-07-07 19:44:51 +02:00
  • 648f963763 make output filename libucore.info Nils O. Selåsdal 2013-07-07 19:42:19 +02:00
  • ec9a53b3a6 Free the allocated bitvec in test Nils O. Selåsdal 2013-07-07 19:35:23 +02:00
  • 53dd99d32b Add another timer test case for more coverage Nils O. Selåsdal 2013-07-07 19:31:47 +02:00
  • 7706c7404d Ad dscript to gerneate html coverage report using the lcov tool Nils O. Selåsdal 2013-07-07 19:22:49 +02:00
  • 6f209912ae Test for mbuf_zero, for more coverage Nils O. Selåsdal 2013-07-07 19:22:21 +02:00
  • 8c42c26e6a Another mbuf test case for a static buffer Nils O. Selåsdal 2013-07-07 19:03:33 +02:00
  • f177d2149e Missed a test case Nils O. Selåsdal 2013-07-07 03:22:00 +02:00
  • a2a89cb49e Merge branch 'dev' of ssh://box.fiane.intra/var/lib/git/libucore into dev Nils O. Selåsdal 2013-07-07 03:19:12 +02:00
  • 16516d94b6 Add test for human_bytesz Nils O. Selåsdal 2013-07-07 03:17:34 +02:00
  • 24bf90b7e4 Another test for more coverage Nils O. Selåsdal 2013-07-06 22:25:06 +02:00
  • 42155cae39 Add another test for mroe coverage root 2013-07-06 22:18:09 +02:00
  • 8200aaab21 Add a test case for reading /dev/null Nils O. Selåsdal 2013-07-06 21:15:51 +02:00
  • c68ba45846 Build doxygen docs from include/ dir instead of src/ Nils O. Selåsdal 2013-07-06 20:47:37 +02:00
  • 4304e01343 Add --coverage option to SConstruct file to build with gcov coverage support root 2013-07-06 20:45:39 +02:00
  • 65c32810cb Add test for uc_mbuf-copy_data Nils O. Selåsdal 2013-07-02 21:22:38 +02:00
  • bc65b3c421 Check for backtrace_fd returning NULL Nils O. Selåsdal 2013-07-02 21:22:03 +02:00
  • d8376338fa Improve doxygen comments Nils O. Selåsdal 2013-07-02 21:21:27 +02:00
  • 6d77b78b41 use unsigned long long for uc_ms2tv() Nils O. Selåsdal 2013-07-01 23:02:24 +02:00
  • 764dfc563c Don't trt yo be smart with the comma operator Nils O. Selåsdal 2013-07-01 23:00:19 +02:00
  • bf9802e565 First iteration of mbuf, message buffer api Nils O. Selåsdal 2013-06-30 21:42:02 +02:00
  • 89232426e0 Properly use return value of select to count the number of events Nils O. Selåsdal 2013-06-30 14:34:19 +02:00
  • 1e0e840ee5 Get rid of aligment warning on CONTAINER_OF in clang Nils O. Selåsdal 2013-06-27 20:58:43 +02:00
  • a8dcf6edff Get rid of inline warning from clang Nils O. Selåsdal 2013-06-27 20:58:23 +02:00
  • 9b7db5440e Allow CC shell environment to override compiler Nils O. Selåsdal 2013-06-27 20:58:07 +02:00
  • e1834c22b1 Dop inline on uc_ll_2_str to avoid clang warning Nils O. Selåsdal 2013-06-23 23:04:23 +02:00
  • bcf0d66e4e Add LL_NONE test Nils O. Selåsdal 2013-06-20 20:15:19 +02:00
  • 4aadb0ab2d Clean up main logging function Nils O. Selåsdal 2013-06-20 20:11:07 +02:00