Commit Graph

230 Commits

Author SHA1 Message Date
Nils O. Selåsdal 6a2ecdf2f4 Fix the wqueue header, and update example 2015-11-12 18:05:41 +01:00
Nils O. Selåsdal 74701edf31 Add documentation for the wqueue 2015-11-11 21:41:21 +01:00
Nils O. Selåsdal e7720cb232 Implement write queue for iomux 2015-11-10 19:42:53 +01:00
Nils O. Selåsdal 11939065fb Fix the iomux_add/clear events. Also properly remember
the events in the IOMuxFD
2015-11-10 19:42:53 +01:00
Nils O. Selåsdal bb426bfecd Don't undef UC_INLINE in pack.h 2015-05-06 18:28:05 +02:00
Nils O. Selåsdal 5e2b1e2d0d Add mbuf enqueue/dequeue functions 2015-05-05 00:06:28 +02:00
Nils O. Selåsdal e922e60849 Fix uc_tailq_empty. It did not work prior to this. 2015-05-05 00:05:27 +02:00
Nils O. Selåsdal 4a42c9a8de Improve mbuf documentation 2015-05-04 22:57:49 +02:00
Nils O. Selåsdal c6318c079d Re-format code to avoid overly long lines and declarations 2015-04-04 23:29:27 +02:00
Nils O. Selåsdal d187c1d63b Clarify that uc_read_fd always close() the descriptor 2015-02-10 21:00:57 +01:00
Nils O. Selåsdal 83ce414beb make array parameter const 2015-02-10 20:57:36 +01:00
Nils O. Selåsdal 7e1114c09b Use function names that make more sense 2015-02-10 20:45:14 +01:00
Nils O. Selåsdal 617ba23c39 Make the clock_now interface const 2015-02-10 11:03:44 +01:00
Nils O. Selåsdal 603d86bb61 Remove stdio.h from utils.h. Manually include stdio.h if using the
TRACEF() macro from utils.h
2015-01-03 01:52:53 +01:00
Nils O. Selåsdal a367e84b00 Move UC_INLINE to utils.h 2015-01-03 01:51:18 +01:00
Nils O. Selåsdal 33287ea987 Merge branch 'cmd' into dev
Conflicts:
	include/ucore/atomic.h
	include/ucore/dstr.h
2014-12-07 15:46:06 +01:00
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 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 749c5ef0df Correct a few comments in threadqueue 2014-09-29 16:16:40 +02:00
Nils O. Selåsdal 045d7c2463 Improve doxygen comments 2014-09-15 21:13:43 +02:00
Nils O. Selåsdal 131bfc5da6 Add uc_restart_counter concept 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 f686c299a3 Better atomic support for gcc and clang 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 22f6c1e043 Improve doxygen documentation. 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 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 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 7bd1074c1d Initial attempt of log rotation based on file sizes 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 d831ab9510 Small refactoring of ratelimit code to make more sense 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 03d66f8698 Merge branch 'cmd' of ssh://box/var/lib/git/libucore into cmd 2014-09-08 22:24:36 +02:00
Nils O. Selåsdal b446022e6d Fix RATE_LIMIT_INITIALIZER 2014-09-08 22:24:08 +02:00
Nils O. Selåsdal e45a4d5643 Improve doxygen documentation. 2014-08-26 21:38:09 +02:00