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 |
|
Nils O. Selåsdal
|
fe7c152631
|
Use nonblocking pipes
|
2014-05-07 22:48:56 +02:00 |
|
Nils O. Selåsdal
|
0014ca5c2e
|
Move UC_LOG_DESTINATION enum to logging.c, it's
not a public type
|
2014-04-25 19:57:59 +02:00 |
|
Nils O. Selåsdal
|
f267b66bbe
|
Use snprintf over sprintf
|
2014-04-23 22:40:37 +02:00 |
|
Nils O. Selåsdal
|
93a195f0e8
|
Fix size rotating, so filenames are in the order of newest to oldest
|
2014-04-23 22:38:04 +02:00 |
|
Nils O. Selåsdal
|
8abf8068c3
|
Fix raw loggin use of uninitialized value introduced in previous commit
|
2014-04-23 02:21:54 +02:00 |
|
Nils O. Selåsdal
|
0e35ecbc29
|
Initial attempt of log rotation based on file sizes
|
2014-04-23 02:04:08 +02:00 |
|
Nils O. Selåsdal
|
bc27ed462b
|
Keep track of bytes written to a file
|
2014-04-22 23:16:57 +02:00 |
|
Nils O. Selåsdal
|
f6351aacbb
|
fix indentation
|
2014-04-19 00:37:55 +02:00 |
|
Nils O. Selåsdal
|
bb1b152fd0
|
Slight refactor of checking if a destination exists
|
2014-04-19 00:36:24 +02:00 |
|
Nils O. Selåsdal
|
0fe19af6b6
|
Use TailQ instead of sys/queue.h in the logging module
|
2014-04-19 00:20:44 +02:00 |
|
Nils O. Selåsdal
|
c9656fbb3c
|
no need for clamping to funds + 1, just to funds
|
2014-03-18 22:33:32 +01:00 |
|
Nils O. Selåsdal
|
b93e5b6d5b
|
add uc_read_fd function
|
2014-03-13 23:16:50 +01:00 |
|
Nils O. Selåsdal
|
092074bbfc
|
Fix read_file in case file size if > SSIZE_MAX
|
2014-03-13 23:07:57 +01:00 |
|
Nils O. Selåsdal
|
325c36435f
|
Tidy up whitespace
|
2014-03-10 22:02:44 +01:00 |
|
Nils O. Selåsdal
|
15a3cbb59a
|
Small refactoring of ratelimit code to make more sense
|
2014-03-09 23:54:48 +01:00 |
|
Nils O. Selåsdal
|
8fca5333d9
|
Implement generalied IOMux implementation operations
Fix serious bug in iomix_timers_run
|
2014-03-02 06:00:05 +01:00 |
|
Nils O. Selåsdal
|
c3a900ea53
|
Change library suffix from _debug to D for debug build.
And no suffix for a release build.
|
2014-03-02 03:59:18 +01:00 |
|
Nils O. Selåsdal
|
0c3fc0f31d
|
Add a string/string mapper struct
|
2014-02-04 20:51:47 +01:00 |
|
Nils O. Selåsdal
|
3119016172
|
Rename the value string functions to be a bit mroe sensible
|
2014-02-04 15:15:17 +01:00 |
|
Nils O. Selåsdal
|
a1da276cf5
|
cosmetic cleanup
|
2014-02-04 01:45:02 +01:00 |
|
Nils O. Selåsdal
|
c2af5db86e
|
Add an unsigned int/string pair type, modelled on the value string of
wireshark
|
2014-02-04 01:37:27 +01:00 |
|
Nils O. Selåsdal
|
3e313932af
|
Add BSD compatible strlcpy function (uc_strlcpy)
|
2014-01-08 00:37:33 +01:00 |
|
Nils O. Selåsdal
|
0e2d4f07c3
|
Adhere to coding style in logging module (struct uc_log_destination->
struct UCLogDestination, and similar for other structs)
|
2014-01-07 23:39:01 +01:00 |
|
Nils O. Selåsdal
|
74b6a65bd2
|
Add build_type string to version.c
|
2014-01-03 00:53:37 +01:00 |
|
Nils O. Selåsdal
|
2a66973098
|
Refactor timer execution into its own function
|
2013-12-31 03:00:58 +01:00 |
|
Nils O. Selåsdal
|
0bb42dc235
|
Have iomux_update_events be a no-op if the events didn't change
|
2013-12-26 03:20:47 +01:00 |
|
Nils O. Selåsdal
|
9756ca0aeb
|
Create header tile for timeutils, rename tval.c to time.c
|
2013-12-25 19:42:40 +01:00 |
|
Nils O. Selåsdal
|
293ce4460f
|
Add accessor function to the uclock of an IOMux
|
2013-12-24 06:21:13 +01:00 |
|
Nils O. Selåsdal
|
b83d2fb2cf
|
Decouple the signalling into a struct IOMuxSignaller
|
2013-12-24 01:51:40 +01:00 |
|
Nils O. Selåsdal
|
277900b08e
|
Add IOMuxWaker
|
2013-12-23 23:26:10 +01:00 |
|
Nils O. Selåsdal
|
f9f4f3192a
|
rename uc_strvec_expand->uc_strvec_check_expand, and clarify
docs
|
2013-12-18 00:03:11 +01:00 |
|
Nils O. Selåsdal
|
607cc8cd9b
|
const parameter
|
2013-12-17 23:14:43 +01:00 |
|
Nils O. Selåsdal
|
52addceff2
|
Assert fd->fd >= 0
|
2013-12-17 23:11:58 +01:00 |
|
Nils O. Selåsdal
|
2dc5242fc0
|
Use TailQ in mbuf
|
2013-12-10 01:11:31 +01:00 |
|
Nils O. Selåsdal
|
6891a77ba9
|
Make delim const
|
2013-12-08 22:28:25 +01:00 |
|
Nils O. Selåsdal
|
6a8ba36c23
|
Assert on API violation
|
2013-12-07 01:30:08 +01:00 |
|
Nils O. Selåsdal
|
784dc1cecb
|
Teach uc_hex_decode to skip spaces
|
2013-12-06 23:10:32 +01:00 |
|
Nils O. Selåsdal
|
59b4c3f57e
|
Implement uc_hex_encode_delim without snprintf, fix length of
uc_hex_encode_delim when truncated output.
|
2013-12-06 22:47:16 +01:00 |
|
Nils O. Selåsdal
|
25f83f36ee
|
debugging aid to uc_dstr_destroy too
|
2013-12-06 21:46:46 +01:00 |
|
Nils O. Selåsdal
|
e679ad969d
|
Add debugging aid to uc_dstr_reset
|
2013-12-06 21:43:06 +01:00 |
|
Nils O. Selåsdal
|
20f28273d6
|
epoll_wait, use max 64 events
|
2013-12-05 21:02:59 +01:00 |
|
Nils O. Selåsdal
|
565de6ace7
|
Add uc_dstr_copy
|
2013-12-05 01:24:41 +01:00 |
|
Nils O. Selåsdal
|
9723a579cc
|
Clarift uc_dstr_ensure
|
2013-12-04 23:46:45 +01:00 |
|
Nils O. Selåsdal
|
b24f27ec9f
|
Mask the upper bits of dscp instead of failing if the user
supplied a too big value
|
2013-12-04 23:21:30 +01:00 |
|
Nils O. Selåsdal
|
b5e1d086a4
|
Add DStr sprintf
|
2013-12-04 21:33:16 +01:00 |
|
Nils O. Selåsdal
|
bbbe912fba
|
Initial version of struct DStr
|
2013-12-04 19:58:38 +01:00 |
|
Nils O. Selåsdal
|
2f93ea8ad2
|
Limit overallocation to [8-256] bytes
|
2013-12-03 19:43:27 +01:00 |
|
Nils O. Selåsdal
|
4caf2573fb
|
Check of count or size is 0 in heapsort
|
2013-12-03 14:29:57 +01:00 |
|