277900b08e
Add IOMuxWaker
Nils O. Selåsdal
2013-12-23 23:26:10 +01:00
ebb2640180
Do typedef after the enum declaration, for C++ compatibility.
Nils O. Selåsdal
2013-12-23 23:25:37 +01:00
4225dd4ed1
Compile with -Wno-unused-parameter
Nils O. Selåsdal
2013-12-22 15:44:44 +01:00
ddf82372e1
Include test when NDEBUG is not defined (checking for DEBUG was the wrong thing to do when building in release with assertions on)
Nils O. Selåsdal
2013-12-18 18:40:55 +01:00
f9f4f3192a
rename uc_strvec_expand->uc_strvec_check_expand, and clarify docs
Nils O. Selåsdal
2013-12-18 00:03:11 +01:00
607cc8cd9b
const parameter
Nils O. Selåsdal
2013-12-17 23:14:43 +01:00
52addceff2
Assert fd->fd >= 0
Nils O. Selåsdal
2013-12-17 23:11:58 +01:00
a681e9044f
Use UC_TAILQ in udp_heartbeat
Nils O. Selåsdal
2013-12-10 23:08:05 +01:00
2dc5242fc0
Use TailQ in mbuf
Nils O. Selåsdal
2013-12-10 01:11:31 +01:00
6891a77ba9
Make delim const
Nils O. Selåsdal
2013-12-08 22:28:25 +01:00
f6badb41a2
Move UC_ASSERT/NOTREACHED to backtrace.h
Nils O. Selåsdal
2013-12-08 00:43:22 +01:00
f18de5f269
Test dbuf_take_fail aborting in DEBUG mode
Nils O. Selåsdal
2013-12-07 12:23:30 +01:00
6a8ba36c23
Assert on API violation
Nils O. Selåsdal
2013-12-07 01:30:08 +01:00
d26854a632
Fix docs for uc_hex_decode
Nils O. Selåsdal
2013-12-06 23:16:54 +01:00
784dc1cecb
Teach uc_hex_decode to skip spaces
Nils O. Selåsdal
2013-12-06 23:10:32 +01:00
42612803a1
More string.h docs, and fix style
Nils O. Selåsdal
2013-12-06 22:47:23 +01:00
59b4c3f57e
Implement uc_hex_encode_delim without snprintf, fix length of uc_hex_encode_delim when truncated output.
Nils O. Selåsdal
2013-12-06 22:47:16 +01:00
25f83f36ee
debugging aid to uc_dstr_destroy too
Nils O. Selåsdal
2013-12-06 21:46:46 +01:00
e679ad969d
Add debugging aid to uc_dstr_reset
Nils O. Selåsdal
2013-12-06 21:43:06 +01:00
20f28273d6
epoll_wait, use max 64 events
Nils O. Selåsdal
2013-12-05 21:02:59 +01:00
ec7425d86b
Merge branch 'dev'
Nils O. Selåsdal
2013-12-05 17:45:01 +01:00
565de6ace7
Add uc_dstr_copy
Nils O. Selåsdal
2013-12-05 01:24:41 +01:00
9723a579cc
Clarift uc_dstr_ensure
Nils O. Selåsdal
2013-12-04 23:46:45 +01:00
b24f27ec9f
Mask the upper bits of dscp instead of failing if the user supplied a too big value
Nils O. Selåsdal
2013-12-04 23:21:30 +01:00
b5e1d086a4
Add DStr sprintf
Nils O. Selåsdal
2013-12-04 21:33:16 +01:00
d81e9b760a
More docs. And test put_filter
Nils O. Selåsdal
2013-12-04 20:44:47 +01:00
8749270ca4
Add DStr docs. Small test changes
Nils O. Selåsdal
2013-12-04 20:32:06 +01:00
6fdaa83dee
Run DStr tests
Nils O. Selåsdal
2013-12-04 19:58:59 +01:00
bbbe912fba
Initial version of struct DStr
Nils O. Selåsdal
2013-12-04 19:58:38 +01:00
2f93ea8ad2
Limit overallocation to [8-256] bytes
Nils O. Selåsdal
2013-12-03 19:43:27 +01:00
f6afc8ba57
Allow UC_MIN(UC_MAX(x,y),z), though only one nesting can be done.
Nils O. Selåsdal
2013-12-03 19:42:43 +01:00
43a14a5149
Add comments to compare/swap function
Nils O. Selåsdal
2013-12-03 17:30:37 +01:00
2b022aeddc
Make the heapsort test comparison work..
Nils O. Selåsdal
2013-12-03 17:29:00 +01:00
4caf2573fb
Check of count or size is 0 in heapsort
Nils O. Selåsdal
2013-12-03 14:29:57 +01:00
70fb352656
Fix heapsort, add test
Nils O. Selåsdal
2013-12-03 11:30:09 +01:00
a5662a2edd
Revert "Remove the wrong heapsort implementation"
Nils O. Selåsdal
2013-12-03 10:59:56 +01:00
f30f2025f6
Merge branch 'dev'
Nils O. Selåsdal
2013-12-02 21:51:50 +01:00
aa04b6ae33
Remove the wrong heapsort implementation
Nils O. Selåsdal
2013-12-02 21:51:26 +01:00
96934d7cf7
minor name changes to make more sense
Nils O. Selåsdal
2013-12-01 21:12:18 +01:00
2ac412917a
Fix comment
Nils O. Selåsdal
2013-11-30 13:42:49 +01:00
6dc59ccbf8
Add macros for iterating the containing entry
Nils O. Selåsdal
2013-11-30 13:40:05 +01:00
bcafaace29
Fix the log level string of NONE.
Nils O. Selåsdal
2013-11-30 04:48:26 +01:00
ec63c1e88f
Guard the UC_DEBUGF/UC_DEBUGFR with do{}while(0)
Nils O. Selåsdal
2013-11-30 04:39:59 +01:00
6706d59b4b
undef UC_INLINE
Nils O. Selåsdal
2013-11-30 03:26:45 +01:00
ad90215452
Add UC_TAILQ_CONTAINER. Fix spelling error
Nils O. Selåsdal
2013-11-30 03:24:43 +01:00
f9ef8d620f
style cleanups
Nils O. Selåsdal
2013-11-28 23:30:44 +01:00
44b86f2fde
Add FIRST/NEXT/LAST/PREV macros, analogous to sys/queue.h
Nils O. Selåsdal
2013-11-28 23:21:56 +01:00
f5d918e77d
Add a _move_head and _move_tail function to move a node Also be more consisten in cometns about tailq instead of list
Nils O. Selåsdal
2013-11-28 22:50:03 +01:00
80d73629bf
add uc_tailq_link() and use it in uc_tailq_remove()
Nils O. Selåsdal
2013-11-28 20:01:25 +01:00
6156fcbbb5
Add tailq example
Nils O. Selåsdal
2013-11-28 18:30:14 +01:00
4a2c524e14
Add tailq linked list
Nils O. Selåsdal
2013-11-28 18:30:01 +01:00
04f101c699
initialize peer to Unknown
Nils O. Selåsdal
2013-11-26 23:58:50 +01:00
c4cc6f9e95
Merge branch 'dev'
Nils O. Selåsdal
2013-11-26 22:40:05 +01:00
66942b43dc
Initializze p1..p4_off, to silence a (wrong) compiler warning
Nils O. Selåsdal
2013-11-26 22:36:08 +01:00
e7d7f4b862
Add -k argument to test_runner to specify running only one test suite alter --xml of test_runner to just -x
Nils O. Selåsdal
2013-11-26 18:17:07 +01:00
59f6d99419
Remove a wrong test in test_mbuf.c
Nils O. Selåsdal
2013-11-25 23:41:53 +01:00
e911fcfa8b
Improve comments
Nils O. Selåsdal
2013-11-25 23:39:41 +01:00
dbe2f174a8
Add uc_mbuf_extend_headroom function, for growing an mbuf
Nils O. Selåsdal
2013-11-25 23:28:13 +01:00
306a3d2a90
Add uc_mbuf_head accessor function
Nils O. Selåsdal
2013-11-25 20:52:43 +01:00
9090de0663
tabs->spaces
Nils O. Selåsdal
2013-11-22 20:06:05 +01:00
3d2e0ce540
tabs->spaces
Nils O. Selåsdal
2013-11-22 20:06:05 +01:00
3e05476694
Fix typo
Nils O. Selåsdal
2013-11-22 17:35:50 +01:00
e808bcde4d
Fix typo
Nils O. Selåsdal
2013-11-22 17:35:50 +01:00
88032c6218
use a do{}while(0) guard in TRACEF when DEBUG is not defined
Nils O. Selåsdal
2013-11-22 14:24:32 +01:00
02c555bd6c
Fix uc_set_tcp_keepalive_cfg, it really wasnt working :-(
Nils O. Selåsdal
2013-11-21 21:31:33 +01:00
28177a092c
Fix uc_set_tcp_keepalive_cfg, it really wasnt working :-(
Nils O. Selåsdal
2013-11-21 21:31:33 +01:00
780a90d6da
Fix InstallPerm method so it will also work with --install-sandbox
Nils O. Selåsdal
2013-11-19 18:35:11 +01:00
8083fa54cf
Split uc_human_bytesz in uc_human_bytesz_dec/uc_human_bytesz_bin, for decimal and binary conversion (http://en.wikipedia.org/wiki/Megabyte)
Nils O. Selåsdal
2013-11-19 11:33:43 +01:00
ac95b1002c
use ck_assert_int_eq for a bit better debugging help
Nils O. Selåsdal
2013-11-18 23:48:58 +01:00
37ebc2a75b
Remove redundant assignment
Nils O. Selåsdal
2013-11-17 23:06:39 +01:00
0f88bb3190
Comment the UC_DIV_ROUND_UP macro
Nils O. Selåsdal
2013-11-17 21:44:19 +01:00
938ffe330d
Use unsigned types instead of long for threadqueue
Nils O. Selåsdal
2013-11-17 21:02:02 +01:00
0679a4a2ad
Fix undefined integer behavior due to promotion rules
Nils O. Selåsdal
2013-11-16 04:35:34 +01:00
9c440723e8
Add C++ guards
Nils O. Selåsdal
2013-11-14 13:30:21 +01:00
8fd26cd810
Add a compiler and hardware memory barrier macro
Nils O. Selåsdal
2013-11-13 23:18:42 +01:00
bae3027720
Merge branch 'dev' of ssh://box.fiane.intra/var/lib/git/libucore into dev
Nils O. Selåsdal
2013-11-13 18:16:46 +01:00
c46099c64e
use IPPROTO_TCP instead of SOL_TCP, for BSD compatibility (SOL_TCP == IPPROTO_TCP on linux)
Nils O. Selaasdal
2013-11-10 23:51:29 +01:00
1d709faf20
Add a note about being fragile..
Nils O. Selåsdal
2013-11-13 18:07:41 +01:00
11ac54ae6b
use IPPROTO_TCP instead of SOL_TCP, for BSD compatibility (SOL_TCP == IPPROTO_TCP on linux)
Nils O. Selaasdal
2013-11-10 23:51:29 +01:00
6b26812cf3
Only do one event at a time to a callback.
Nils O. Selåsdal
2013-11-09 11:06:19 +01:00
a4c6b65d5f
Replace goto with do while
Nils O. Selåsdal
2013-11-09 10:45:47 +01:00
9f563c0c7e
Reorder macro to be more consistent
Nils O. Selåsdal
2013-11-05 15:04:58 +01:00
410ae4ba81
Created a scripts folder
Nils O. Selåsdal
2013-10-29 22:27:50 +01:00
f0b4d46784
Generate the version string in scons, so it doesn't have to be defined several potential places
Nils O. Selåsdal
2013-10-29 22:23:09 +01:00
eceda7be70
Generalize the backing type of bitvec
Nils O. Selåsdal
2013-10-28 23:21:26 +01:00
215035190e
Add --32 to scons , to force building 32 bit code
Nils O. Selåsdal
2013-10-28 20:00:56 +01:00
678378c2f4
Generate scons substitute info in top file
Nils O. Selåsdal
2013-10-28 19:02:47 +01:00
a5c984e00b
Merge branch 'dev'
Nils O. Selåsdal
2013-10-27 13:33:56 +01:00
08fa852cf6
Merge branch 'master' of ssh://box.fiane.intra/var/lib/git/libucore
Nils O. Selåsdal
2013-10-27 13:25:17 +01:00
8a44b591de
Docs for mbuf.flags
Nils O. Selåsdal
2013-10-26 23:00:32 +02:00
1b563e797b
Have check get the fork status from env. variable (set CK_FORK_GETENV flag)
Nils O. Selåsdal
2013-10-24 22:28:17 +02:00
c1609c2a57
Poison the removed node in tests, to help ensure nothing fishy is going on
Nils O. Selåsdal
2013-10-24 22:14:41 +02:00
0acb4789b0
Add FOREACH_SAFE macros + tests
Nils O. Selåsdal
2013-10-24 22:13:16 +02:00
45ecb3c1e0
Revert "Add iterator API". Will try to find a better API
Nils O. Selåsdal
2013-10-24 21:28:35 +02:00
821399a61b
Add iterator API
Nils O. Selåsdal
2013-10-24 21:27:31 +02:00
03124601d8
Test failing to find a hash node
Nils O. Selåsdal
2013-10-24 21:18:27 +02:00
49503804dd
Allow user to always (not just in debug mode) compile in UC_DEBUGXXX log calls by defining UC_DEBUG_ALWAYS
Nils O. Selåsdal
2013-10-23 22:07:58 +02:00
2cd5d9d7a9
Comment the FOREACH macros
Nils O. Selåsdal
2013-10-18 19:43:05 +02:00
7ff33c113b
Test UC_HTABLE_FOR_EACH
Nils O. Selåsdal
2013-10-17 22:38:00 +02:00
b0172a365e
test uc_htable_clear. Add comments, fix uc_htable_next
Nils O. Selåsdal
2013-10-17 22:28:32 +02:00