Nils O. Selåsdal
|
ab70a2c5be
|
Make uc_log_init argument const
|
2014-12-02 23:38:24 +01:00 |
|
Nils O. Selåsdal
|
dd925b3654
|
int log_level->enum UC_LOG_LEVEL
|
2014-12-02 23:22:18 +01:00 |
|
Nils O. Selåsdal
|
8c36756170
|
Increase timeout on thread queue test to make it pass on the slow
raspberrypis
|
2014-11-10 21:05:45 +01:00 |
|
Nils O. Selåsdal
|
fe3e4d8e3c
|
Add missing prototypes and includes
|
2014-10-26 14:27:26 +01:00 |
|
Nils O. Selåsdal
|
9bd1336d26
|
have LOGF macros add a newline, so user code doesn't need to.
|
2014-10-06 21:52:28 +02:00 |
|
Nils O. Selåsdal
|
33b48c4276
|
More checks on test_mbuf_static
|
2014-09-29 21:29:02 +02:00 |
|
Nils O. Selåsdal
|
42136087b6
|
Add note about scons 2.3.0
|
2014-09-29 21:09:50 +02:00 |
|
Nils O. Selåsdal
|
6247bcbdfd
|
Also build a shared library
|
2014-09-29 20:51:29 +02:00 |
|
Nils O. Selåsdal
|
959d525938
|
Use correct return value on error
|
2014-09-29 16:16:55 +02:00 |
|
Nils O. Selåsdal
|
749c5ef0df
|
Correct a few comments in threadqueue
|
2014-09-29 16:16:40 +02:00 |
|
Nils O. Selåsdal
|
13e611c79d
|
Generalise the logging function to a function pointer
|
2014-09-16 13:30:51 +02:00 |
|
Nils O. Selåsdal
|
9ce3a4ebf8
|
Rework iomux_select, so it doesn't need to deald with
dynamically allocating space for the IOMuxFD's
|
2014-09-16 01:36:23 +02:00 |
|
Nils O. Selåsdal
|
b5465012ae
|
Doxygen, generate struct docs in same page as the module it's in
|
2014-09-16 01:36:22 +02:00 |
|
Nils O. Selåsdal
|
045d7c2463
|
Improve doxygen comments
|
2014-09-15 21:13:43 +02:00 |
|
Nils O. Selåsdal
|
f13a71e8ba
|
Merge branch 'dev' of ssh://box/var/lib/git/libucore into dev
|
2014-09-12 01:12:44 +02:00 |
|
Nils O. Selåsdal
|
711d734998
|
Open restart file in 0644 mode, fsync the file, don't
write to file if seek/truncate failed
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
5f89edc0d9
|
Fic includes to use "" instead of <>
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
b39cabc055
|
Link with libm and librt, required for older glibc. No harm on newer
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
131bfc5da6
|
Add uc_restart_counter concept
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
6689fa9969
|
Initialize the ticket lock
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
fbbd1344ab
|
Remove unused include
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
eacdd947e5
|
Add a few more UCStrVal functions
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
48563f553d
|
Fix RATE_LIMIT_INITIALIZER
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
9b3c1e370b
|
( ) around macro arguments..
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
7eb42cc538
|
fix UC_ROUND_UP()
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
a27711e3bd
|
Atomic example, used to inspect assembly code..
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
f686c299a3
|
Better atomic support for gcc and clang
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
c82620d59c
|
eait for max 32 epoll events. 54 is too much
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
33f8d3bbae
|
Add ATOMIC_GET
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
7ed9bb298f
|
Fix confusing if vec_len is bytes or number of elements
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
22f6c1e043
|
Improve doxygen documentation.
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
6c7cb5c0ab
|
Print error if no test cases are run
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
0741b42a44
|
Add a sched_yeild in tocket lock test..
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
6c8e403a38
|
Test heapsorting 1 element
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
157dca7997
|
Add test for ticket locks
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
cfb6022d42
|
More comments on the ticket lock code
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
dcc38151b1
|
pthread implementation of a ticket lock
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
1282f420a1
|
Get rid of clang warnings for UC_INLINE
|
2014-09-12 01:11:41 +02:00 |
|
Nils O. Selåsdal
|
b0ca62b878
|
Fix header guard in read_file.h
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
9199614f40
|
Fix header guard in buffer.h
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
a6d2a63f95
|
Fix uninitialized return value in iomux_update_events
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
b0ac867936
|
Remove a TRACF()
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
95749c5b7d
|
Add iomux_from_timers() function to recover an IOMux from
the associated UCTimers
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
0e296ce7e5
|
Add init method to dstr for initializing directyl from a string
Change the api so _put_ functions that copy in data are named "_append_"
instead.
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
5bd23d751f
|
Use restrict on pointers where it makes sense. (requires C99 support,
which we already assume)
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
a24aa93b73
|
Use nonblocking pipes
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
802462a5c0
|
Move UC_LOG_DESTINATION enum to logging.c, it's
not a public type
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
d9bb5315f8
|
Use snprintf over sprintf
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
10c0e37253
|
Fix size rotating, so filenames are in the order of newest to oldest
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
dc9e38b231
|
Fix raw loggin use of uninitialized value introduced in previous commit
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
7bd1074c1d
|
Initial attempt of log rotation based on file sizes
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
b75048ceef
|
Keep track of bytes written to a file
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
13c601f3b7
|
fix indentation
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
008004c6bd
|
Slight refactor of checking if a destination exists
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
edde6ec7b6
|
Use TailQ instead of sys/queue.h in the logging module
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
975b8ad1bc
|
no need for clamping to funds + 1, just to funds
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
f9fffbc4b0
|
Better error message for UC_STATIC_ASSERT. Also
require it to be terminated by a ;
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
5f06950fd0
|
add uc_read_fd function
|
2014-09-12 01:11:40 +02:00 |
|
Nils O. Selåsdal
|
c2fe3e5dc7
|
Fix read_file in case file size if > SSIZE_MAX
|
2014-09-12 01:11:39 +02:00 |
|
Nils O. Selåsdal
|
633635851d
|
Set errno to 0, for consistent results
|
2014-09-12 01:11:39 +02:00 |
|
Nils O. Selåsdal
|
813836dcac
|
Add -Winit-self flag
|
2014-09-12 01:11:39 +02:00 |
|
Nils O. Selåsdal
|
9a83dffde8
|
Add -Werror=implicit-function-declaration to CFLAGS
|
2014-09-12 01:11:39 +02:00 |
|
Nils O. Selåsdal
|
95a62617c0
|
Tidy up whitespace
|
2014-09-12 01:11:39 +02:00 |
|
Nils O. Selåsdal
|
d831ab9510
|
Small refactoring of ratelimit code to make more sense
|
2014-09-12 01:11:39 +02:00 |
|
Nils O. Selåsdal
|
a112b44c6e
|
Implement generalied IOMux implementation operations
Fix serious bug in iomix_timers_run
|
2014-09-12 01:11:39 +02:00 |
|
Nils O. Selåsdal
|
857c2018b9
|
Change library suffix from _debug to D for debug build.
And no suffix for a release build.
|
2014-09-12 01:11:39 +02:00 |
|
Nils O. Selåsdal
|
0f25a0f565
|
Add a string/string mapper struct
|
2014-09-12 01:11:39 +02:00 |
|
Nils O. Selåsdal
|
39290eefb7
|
Rename the value string functions to be a bit mroe sensible
|
2014-09-12 01:11:39 +02:00 |
|
Nils O. Selåsdal
|
eeed97e938
|
cosmetic cleanup
|
2014-09-12 01:11:39 +02:00 |
|
Nils O. Selåsdal
|
dfe219b649
|
Add an unsigned int/string pair type, modelled on the value string of
wireshark
|
2014-09-12 01:11:39 +02:00 |
|
Nils O. Selåsdal
|
1ec9cb38cb
|
Open restart file in 0644 mode, fsync the file, don't
write to file if seek/truncate failed
|
2014-09-11 23:09:41 +02:00 |
|
Nils O. Selåsdal
|
0588af093a
|
Fic includes to use "" instead of <>
|
2014-09-11 21:55:57 +02:00 |
|
Nils O. Selåsdal
|
1f83ec6741
|
Link with libm and librt, required for older glibc. No harm on newer
|
2014-09-11 21:43:34 +02:00 |
|
Nils O. Selåsdal
|
c3e46ce788
|
Add uc_restart_counter concept
|
2014-09-11 21:41:14 +02:00 |
|
Nils O. Selåsdal
|
37a0411fba
|
Initialize the ticket lock
|
2014-09-11 21:40:22 +02:00 |
|
Nils O. Selåsdal
|
b783d67f6d
|
Remove unused include
|
2014-09-10 23:58:15 +02:00 |
|
Nils O. Selåsdal
|
52feeb6644
|
Add a few more UCStrVal functions
|
2014-09-10 23:55:33 +02:00 |
|
Nils O. Selåsdal
|
267451f37f
|
Fix RATE_LIMIT_INITIALIZER
|
2014-09-08 22:27:28 +02:00 |
|
Nils O. Selåsdal
|
d75d0ee48c
|
( ) around macro arguments..
|
2014-09-06 04:05:54 +02:00 |
|
Nils O. Selåsdal
|
e18317d507
|
fix UC_ROUND_UP()
|
2014-09-06 04:03:20 +02:00 |
|
Nils O. Selåsdal
|
8763059c65
|
Atomic example, used to inspect assembly code..
|
2014-09-02 23:17:41 +02:00 |
|
Nils O. Selåsdal
|
ba79566ce9
|
Better atomic support for gcc and clang
|
2014-09-02 23:17:14 +02:00 |
|
Nils O. Selåsdal
|
e45be1a362
|
eait for max 32 epoll events. 54 is too much
|
2014-09-01 22:20:10 +02:00 |
|
Nils O. Selåsdal
|
db0d62c639
|
Add ATOMIC_GET
|
2014-09-01 22:19:54 +02:00 |
|
Nils O. Selåsdal
|
44ecb1ea7a
|
Fix confusing if vec_len is bytes or number of elements
|
2014-08-26 21:39:08 +02:00 |
|
Nils O. Selåsdal
|
225943aef7
|
Improve doxygen documentation.
|
2014-08-26 21:39:08 +02:00 |
|
Nils O. Selåsdal
|
f7c27648dc
|
Print error if no test cases are run
|
2014-07-11 16:27:36 +02:00 |
|
Nils O. Selåsdal
|
c949961e77
|
Add a sched_yeild in tocket lock test..
|
2014-06-25 19:53:46 +02:00 |
|
Nils O. Selåsdal
|
777a745428
|
Test heapsorting 1 element
|
2014-06-25 19:52:08 +02:00 |
|
Nils O. Selåsdal
|
32218b3dc7
|
Add test for ticket locks
|
2014-06-25 19:49:14 +02:00 |
|
Nils O. Selåsdal
|
0a6ce86779
|
More comments on the ticket lock code
|
2014-06-25 17:03:14 +02:00 |
|
Nils O. Selåsdal
|
06be01a708
|
pthread implementation of a ticket lock
|
2014-06-25 16:52:15 +02:00 |
|
Nils O. Selåsdal
|
d28288f048
|
Get rid of clang warnings for UC_INLINE
|
2014-06-23 02:24:27 +02:00 |
|
Nils O. Selåsdal
|
723ca5dcfb
|
Fix header guard in read_file.h
|
2014-06-23 02:15:26 +02:00 |
|
Nils O. Selåsdal
|
06ecc68ca7
|
Fix header guard in buffer.h
|
2014-06-23 02:14:20 +02:00 |
|
Nils O. Selåsdal
|
930c90b674
|
Fix uninitialized return value in iomux_update_events
|
2014-06-23 02:09:56 +02:00 |
|
Nils O. Selåsdal
|
b680671d2a
|
Remove a TRACF()
|
2014-06-22 23:11:54 +02:00 |
|
Nils O. Selåsdal
|
2d1e7efc3e
|
Add iomux_from_timers() function to recover an IOMux from
the associated UCTimers
|
2014-06-22 23:11:12 +02:00 |
|
Nils O. Selåsdal
|
2c264a76b4
|
Add init method to dstr for initializing directyl from a string
Change the api so _put_ functions that copy in data are named "_append_"
instead.
|
2014-06-18 15:57:51 +02:00 |
|
Nils O. Selåsdal
|
b3b1179c5a
|
Use restrict on pointers where it makes sense. (requires C99 support,
which we already assume)
|
2014-05-25 23:07:08 +02:00 |
|