Commit Graph

386 Commits

Author SHA1 Message Date
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 5756ccfbef Merge branch 'master' of ssh://box/var/lib/git/libucore 2014-02-19 00:40:33 +01:00
Nils O. Selåsdal b49fd5a475 Fix orders of members in UCKeepConfig 2014-02-19 00:40:13 +01:00
Nils O. Selåsdal f1b1ceadca Merge branch 'master' into dev 2014-01-26 00:59:08 +01:00
Nils O. Selåsdal 7c271c1b52 Support libcheck version 0.9.8 as shipped on RHEL 6.4 2014-01-26 00:58:11 +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 c1a04820f4 Fix @prefix in subst_info 2014-01-03 00:45:22 +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 ca2b2be2ee Fix UC_NOT_REACHED 2013-12-31 03:00:39 +01:00
Nils O. Selåsdal 145f3c26ab Add readme file 2013-12-29 23:50:04 +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 a147b868c0 Fix macros 2013-12-24 14:11:11 +01:00
Nils O. Selåsdal ae8e53bd65 Ifnore vim *.swo files 2013-12-24 06:42:53 +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 423c21bee2 Use a separate variable for the exit condition 2013-12-24 02:30:22 +01:00
Nils O. Selåsdal 89802286c4 Add iomux_wake example 2013-12-24 01:56:42 +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 ebb2640180 Do typedef after the enum declaration, for C++ compatibility. 2013-12-23 23:25:37 +01:00
Nils O. Selåsdal 4225dd4ed1 Compile with -Wno-unused-parameter 2013-12-22 15:44:44 +01:00
Nils O. Selåsdal ddf82372e1 Include test when NDEBUG is not defined (checking for DEBUG was
the wrong thing to do when building in release with assertions on)
2013-12-18 18:40:55 +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 a681e9044f Use UC_TAILQ in udp_heartbeat 2013-12-10 23:08:05 +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