Commit Graph
100 Commits
Author SHA1 Message Date
Nils O. Selåsdal 8200aaab21 Add a test case for reading /dev/null 2013-07-06 21:15:51 +02:00
Nils O. Selåsdal c68ba45846 Build doxygen docs from include/ dir instead of src/ 2013-07-06 20:47:37 +02:00
Nils O. Selåsdal 65c32810cb Add test for uc_mbuf-copy_data 2013-07-02 21:22:38 +02:00
Nils O. Selåsdal bc65b3c421 Check for backtrace_fd returning NULL 2013-07-02 21:22:03 +02:00
Nils O. Selåsdal d8376338fa Improve doxygen comments 2013-07-02 21:21:27 +02:00
Nils O. Selåsdal 6d77b78b41 use unsigned long long for uc_ms2tv() 2013-07-01 23:02:24 +02:00
Nils O. Selåsdal 764dfc563c Don't trt yo be smart with the comma operator 2013-07-01 23:00:19 +02:00
Nils O. Selåsdal bf9802e565 First iteration of mbuf, message buffer api 2013-06-30 21:42:02 +02:00
Nils O. Selåsdal 89232426e0 Properly use return value of select to count the number of events 2013-06-30 14:34:19 +02:00
Nils O. Selåsdal 1e0e840ee5 Get rid of aligment warning on CONTAINER_OF in clang 2013-06-27 20:58:43 +02:00
Nils O. Selåsdal a8dcf6edff Get rid of inline warning from clang 2013-06-27 20:58:23 +02:00
Nils O. Selåsdal 9b7db5440e Allow CC shell environment to override compiler 2013-06-27 20:58:07 +02:00
Nils O. Selåsdal bcf0d66e4e Add LL_NONE test 2013-06-20 20:15:19 +02:00
Nils O. Selåsdal 4aadb0ab2d Clean up main logging function 2013-06-20 20:11:07 +02:00
Nils O. Selåsdal 84153e90db Make UC_LL_NONE work 2013-06-20 19:55:09 +02:00
Nils O. Selåsdal 012a5b1377 move iomux_impl.h to src/ dir, it's an implementation detail 2013-06-19 18:51:12 +02:00
Nils O. Selåsdal b4f9ecafe2 add C++ guards 2013-06-19 18:48:45 +02:00
Nils O. Selåsdal 6268e6ac8e update comments 2013-06-19 18:48:27 +02:00
Nils O. Selåsdal e03b9a9f80 Update docs 2013-06-19 18:47:45 +02:00
Nils O. Selåsdal b219136d6e fix UC_ATOMIC_DEC 2013-06-17 20:32:15 +02:00
Nils O. Selåsdal 7d4f1f16c2 Add header for simple atomic operations 2013-06-17 20:28:15 +02:00
Nils O. Selåsdal f79f41fb62 .gitignore tags file, 2013-06-13 17:27:20 +02:00
Nils O. Selåsdal 496818b7b5 Fix UC_DEBUGFR in debug mode 2013-06-13 01:10:23 +02:00
Nils O. Selåsdal 74b59a3a38 Implement setting log mask string on a destination.
Improve logging docs
2013-06-12 21:50:59 +02:00
Nils O. Selåsdal 504ee1315b Clear the fd from pending events after it's been processed 2013-06-11 00:05:25 +02:00
Nils O. Selåsdal 150edaeada Rework RBTree to use RBNode in the compare function 2013-06-10 23:00:24 +02:00
Nils O. Selåsdal eba7590e6c Add CONST_CONTAINER_OF for const pointers 2013-06-10 22:55:30 +02:00
Nils O. Selåsdal d1eded3f9d grap log lock when initializing a destination 2013-06-05 21:17:18 +02:00
Nils O. Selåsdal f8116643af Add uc_log_destination_set_log_location, fix signed/unsigned use 2013-06-05 21:09:35 +02:00
Nils O. Selåsdal 9125f6128a Merge branch 'dev' of ssh://box.fiane.intra/var/lib/git/libucore into dev 2013-06-05 20:52:16 +02:00
Nils O. Selåsdal 972381bf13 Use static array for log level strings 2013-06-05 20:51:53 +02:00
Nils O. Selåsdal 032e50e1cd Remove setting log level for a module, implement
setting log level for a destination
2013-06-01 23:45:14 +02:00
Nils O. Selåsdal 10e717fc7d Preserve errno if opening log file fails 2013-05-31 03:49:54 +02:00
Nils O. Selåsdal 1b43ef0299 Fix test/logging.c 2013-05-31 03:45:28 +02:00
Nils O. Selåsdal af8cab5034 Prepare for having per destination module log levels 2013-05-31 03:40:33 +02:00
Nils O. Selåsdal 5a427007d6 Add fd_utils 2013-05-30 22:38:56 +02:00
Nils O. Selåsdal cfc7cae5c0 Remove erronous UNUSED attribuute 2013-05-29 22:03:26 +02:00
Nils O. Selåsdal 1e34c11265 Name uc_timers_XXX consistently 2013-05-28 01:05:38 +02:00
Nils O. Selåsdal ecc9218e7c Add tests for UCTimers 2013-05-28 00:26:12 +02:00
Nils O. Selåsdal 2eaf50d19b Add note about O(n) of uc_timers_count() 2013-05-28 00:10:02 +02:00
Nils O. Selåsdal f2bbca8718 Improve documentation 2013-05-21 00:24:07 +02:00
Nils O. Selåsdal 120299d7c3 Add macro guards 2013-05-20 23:09:54 +02:00
Nils O. Selåsdal 86c16a3c4c Add documentation 2013-05-20 23:09:42 +02:00
Nils O. Selåsdal ce0f28c04a Remove murmur hash, it's endian dependent and has unreasonable alignment
requirements
2013-05-17 03:27:09 +02:00
Nils O. Selåsdal 92da4bbd28 Added saturating math functions 2013-05-17 03:16:28 +02:00
Nils O. Selåsdal d58779848a randomize the initial contact 2013-04-26 00:10:14 +02:00
Nils O. Selåsdal 88baa855a7 Missed from previus commit 2013-04-25 23:08:39 +02:00
Nils O. Selåsdal 4e1bd8a5a7 Add test case for seq.h 2013-04-25 23:07:20 +02:00
Nils O. Selåsdal 8f61118e0d Get rid of warning: declaration of 'clock' shadows a global declaration
on some platforms
2013-04-13 03:43:43 +02:00
Nils O. Selåsdal ad8181cf4d Add UC_ROUND_DOWN, fix duplicated UC_ROUND_UP 2013-04-08 22:24:19 +02:00
Nils O. Selåsdal 08ea383dd6 Merge branch 'master' into dev
Conflicts:
	include/ucore/utils.h
2013-04-01 23:50:07 +02:00
Nils O. Selåsdal ab4e1895d4 Add a few or handy macros 2013-04-01 23:47:01 +02:00
Nils O. Selåsdal 2e226d561b Add UC_ASSERT 2013-03-17 22:13:57 +01:00
Nils O. Selåsdal ad72894380 Use macro in one of the tests 2013-03-07 21:40:43 +01:00
Nils O. Selåsdal 40f34b2bcd Fix comments. add convenience macro 2013-03-07 21:38:07 +01:00
Nils O. Selåsdal b80c2f633f prefix global variables with g_ 2013-03-07 21:11:16 +01:00
Nils O. Selåsdal 5e376d47fc Namespace the bitvec functions 2013-03-07 18:15:20 +01:00
Nils O. Selåsdal 8badeaf857 Remove ucore_ prefix from headers and source files 2013-03-06 22:22:04 +01:00
Nils O. Selåsdal ee8d9ae19d Add a uc_backtrace_buf() functio 2013-03-06 21:58:56 +01:00
Nils O. Selåsdal e1bd10208e Fix sporadic failure of threadqueue test 2013-03-02 22:00:40 +01:00
Nils O. Selåsdal 54678cf94b Convert iomux to use an UCoreClock 2013-03-02 21:42:19 +01:00
Nils O. Selåsdal b0e9988aa5 Convert UCTimers to use UCoreClock 2013-03-02 21:16:22 +01:00
Nils O. Selåsdal 42269a8a91 CamelCase the Clock structs 2013-03-02 20:31:26 +01:00
Nils O. Selåsdal 9f22f7153b Don't shadow the global clock function 2013-03-02 18:45:32 +01:00
Nils O. Selåsdal a6d8d56052 Add clock test, and fix ucore_clock.h header 2013-03-02 18:39:52 +01:00
Nils O. Selåsdal aaae376d13 clock abstraction 2013-03-02 17:23:49 +01:00
Nils O. Selåsdal 3f6193914f Cosmetic ucore_bcd changes 2013-02-21 21:51:35 +01:00
Nils O. Selåsdal df041ccae4 Document ucore_timers.h 2013-02-20 21:11:21 +01:00
Nils O. Selåsdal a413572f3c More timers example 2013-02-20 20:47:04 +01:00
Nils O. Selåsdal d6faa0a3e2 Added timers.c demo for uc_timers 2013-02-20 20:41:25 +01:00
Nils O. Selåsdal 02542f31e3 Fix sending 2013-01-21 23:14:35 +01:00
Nils O. Selåsdal de9eab51a5 Add udp heartbeat mux example 2013-01-21 23:11:36 +01:00
Nils O. Selåsdal b378b205c9 Make it clear whcih member s are internal and external 2013-01-21 23:11:13 +01:00
Nils O. Selåsdal 2d5d4a5749 Doc notes about salloc alignment 2013-01-16 21:19:14 +01:00
Nils O. Selåsdal 5f68608e88 More sallog_align test 2013-01-16 21:10:53 +01:00
Nils O. Selåsdal 283be0fc17 Added salloc_align manual test 2013-01-16 21:04:21 +01:00
Nils O. Selåsdal 128fabd741 Refactor uc_log_reopen_files 2013-01-15 21:15:21 +01:00
Nils O. Selåsdal 6de7a854ec Fix TRACEF macro. Addition to test_logging.c 2013-01-15 19:09:26 +01:00
Nils O. Selåsdal b5a8796ab9 Make _get and _add function inline instead of defines 2013-01-02 21:24:59 +01:00
Nils O. Selåsdal 22d15ea1a1 Update to new code 2013-01-02 21:21:15 +01:00
Nils O. Selåsdal 3e7fd8a34b Implement tryadd, adding itmes with a timeout 2013-01-02 16:54:20 +01:00
Nils O. Selåsdal dbe91d2d13 Rename uc_thread_queue_get to uc_thread_queue_tryget, introduce
uc_thread_queue_get macro
2013-01-01 21:13:29 +01:00
Nils O. Selåsdal 1b5645ae47 Convert to a table of function pointers for the suites 2012-12-27 23:11:13 +01:00
Nils O. Selåsdal 86b5a81a90 rename ucore_phi.c phi.c 2012-12-27 23:02:13 +01:00
Nils O. Selåsdal 690b6ba18a align the debug level in the output 2012-12-18 00:17:44 +01:00
Nils O. Selåsdal c29b467dca Add more gbuf tests 2012-11-22 23:13:58 +01:00
Nils O. Selåsdal c260602890 Add gcc printf attribute to gbuf_printf.
More gbuf tests
2012-11-18 14:12:05 +01:00
Nils O. Selåsdal 9bf56c1756 Fix and clarify gnuf_printf 2012-11-18 14:04:57 +01:00
Nils O. Selåsdal 65a6c67277 Add test for gbuf 2012-11-18 13:45:52 +01:00
Nils O. Selåsdal 9547730c9e Fix unitintialized msgtype in threadqueue test 2012-11-18 13:45:02 +01:00
Nils O. Selåsdal 3d982a580a Merge branch 'dev' 2012-11-15 18:26:57 +01:00
Nils O. Selåsdal 90bbad4346 Reorganize headers again 2012-11-15 18:26:31 +01:00
Nils O. Selåsdal 61eda493bf Reorganize headers again 2012-11-15 18:26:03 +01:00
Nils O. Selåsdal 4dca24953f readd include dir 2012-11-15 17:30:40 +01:00
Nils O. Selåsdal 1d47f9d078 Move headers to include/ dir 2012-11-14 23:49:28 +01:00
Nils O. Selåsdal 0afea336ef More threadqueue docs & tests 2012-11-14 19:23:05 +01:00
Nils O. Selåsdal 82c0761782 Add UC_ALIGN macro, docs in verson.h 2012-11-14 18:41:38 +01:00
Nils O. Selåsdal bd6a285896 More thread queue tests 2012-11-12 22:36:41 +01:00
Nils O. Selåsdal 1eda2f8a53 Add thread queue tests 2012-11-12 22:18:04 +01:00
Nils O. Selåsdal a4c80d1c76 Fix typos 2012-11-12 21:55:06 +01:00