Commit Graph

  • 4ce1c24610 Enable specifying no events when registring with the iomux Nils O. Selåsdal 2015-11-10 21:35:16 +01:00
  • 7d9ebd7211 Return value of uc_wqueue_clear wasn't initialized Nils O. Selåsdal 2015-11-10 21:27:08 +01:00
  • 2b51f1d7f8 Use iomux_add_event/iomux_clear_event in wqueue instead of manually doing this Nils O. Selåsdal 2015-11-10 19:33:30 +01:00
  • e7720cb232 Implement write queue for iomux Nils O. Selåsdal 2015-11-10 19:28:12 +01:00
  • 1535edd21a Build with assertions on in release build Nils O. Selåsdal 2015-05-12 19:38:57 +02:00
  • f2fcb5e7e3 Add more checks to iomux test Nils O. Selåsdal 2015-05-12 19:31:15 +02:00
  • 11939065fb Fix the iomux_add/clear events. Also properly remember the events in the IOMuxFD Nils O. Selåsdal 2015-05-12 19:21:57 +02:00
  • e517c33da9 Fix iomux_update_events(), it didn't actually update the events ! Nils O. Selåsdal 2015-11-10 18:03:31 +01:00
  • 42f0493000 Use iomux_add_event/iomux_clear_event in wqueue instead of manually doing this Nils O. Selåsdal 2015-11-10 19:33:30 +01:00
  • 593d29e9fa Implement write queue for iomux Nils O. Selåsdal 2015-11-10 19:28:12 +01:00
  • 00b344e142 Fix iomux_update_events(), it didn't actually update the events ! Nils O. Selåsdal 2015-11-10 18:03:31 +01:00
  • faced685be Build with assertions on in release build Nils O. Selåsdal 2015-05-12 19:38:57 +02:00
  • 54de720e87 Add more checks to iomux test Nils O. Selåsdal 2015-05-12 19:31:15 +02:00
  • 5ecd083e7f Fix the iomux_add/clear events. Also properly remember the events in the IOMuxFD Nils O. Selåsdal 2015-05-12 19:21:57 +02:00
  • 96f0bffd27 Merge branch 'dev' Nils O. Selåsdal 2015-05-11 23:41:59 +02:00
  • 7dd159aa6a Add TODO comment to iomux impl Nils O. Selåsdal 2015-05-11 23:36:23 +02:00
  • 4134482fdb Add iomux tests Nils O. Selåsdal 2015-05-11 23:17:30 +02:00
  • a87558047b Fix iomux_select_recalc_max, it went to an infinite loop. Nils O. Selåsdal 2015-05-11 23:09:40 +02:00
  • a7516141dd Fix dstr_own() when the dstr already holds a string. Nils O. Selåsdal 2015-05-06 21:33:23 +02:00
  • bb426bfecd Don't undef UC_INLINE in pack.h Nils O. Selåsdal 2015-05-06 18:28:05 +02:00
  • 99297b153c add usage() to the test_runner Nils O. Selåsdal 2015-05-05 18:19:54 +02:00
  • d34bd6f3cb Fix uc_tailq_empty. It did not work prior to this. Nils O. Selåsdal 2015-05-05 00:05:27 +02:00
  • 70d5c2b600 Extend the mbuf queue test Nils O. Selåsdal 2015-05-05 00:08:47 +02:00
  • 5e2b1e2d0d Add mbuf enqueue/dequeue functions Nils O. Selåsdal 2015-05-05 00:06:28 +02:00
  • e922e60849 Fix uc_tailq_empty. It did not work prior to this. Nils O. Selåsdal 2015-05-05 00:05:27 +02:00
  • 4a42c9a8de Improve mbuf documentation Nils O. Selåsdal 2015-05-04 22:57:49 +02:00
  • 7f716e9ede Add a few more dbuf tests Nils O. Selåsdal 2015-04-30 16:36:29 +02:00
  • 72dcd6e82c Add not about the CK_FORK env variable Nils O. Selåsdal 2015-04-30 16:36:15 +02:00
  • 2eacf252b7 Fix typo Nils O. Selåsdal 2015-04-05 13:14:16 +02:00
  • c6318c079d Re-format code to avoid overly long lines and declarations Nils O. Selåsdal 2015-04-04 23:29:27 +02:00
  • a55139aba6 Work around the scons Package() VERSION attribute by specifying the target and source explicitly Nils O. Selåsdal 2015-02-15 23:56:31 +01:00
  • 610e4c89a7 Add comment: scons Paackage() bugs out if the VERSION does not end with a digit. Nils O. Selåsdal 2015-02-15 21:47:40 +01:00
  • 61cec258e3 Add tar.gz binary package target to scons. Invoke with scons --install_sandbox=XXX package Nils O. Selåsdal 2015-02-15 21:37:13 +01:00
  • 20a01e4913 Attempt at packagin the binary install Nils O. Selåsdal 2015-02-11 23:10:49 +01:00
  • db21dc4100 use %u instead of %d in file name format string Nils O. Selåsdal 2015-02-11 22:20:07 +01:00
  • c90ad5e257 There's no good reason to not always reset the file size after re-opening Nils O. Selåsdal 2015-02-10 21:46:08 +01:00
  • d187c1d63b Clarify that uc_read_fd always close() the descriptor Nils O. Selåsdal 2015-02-10 21:00:57 +01:00
  • 83ce414beb make array parameter const Nils O. Selåsdal 2015-02-10 20:57:36 +01:00
  • aeee4de26a Remove main() function Nils O. Selåsdal 2015-02-10 20:45:40 +01:00
  • 7e1114c09b Use function names that make more sense Nils O. Selåsdal 2015-02-10 20:45:14 +01:00
  • a522c55155 Finalize mkdirp Nils O. Selåsdal 2015-01-30 20:50:50 +01:00
  • 7dbdec1d5b Initial mkdir -p function Nils O. Selåsdal 2015-01-30 00:51:38 +01:00
  • 617ba23c39 Make the clock_now interface const Nils O. Selåsdal 2015-02-10 11:03:44 +01:00
  • f0c829a6c9 Added a main() to atomic.c Nils O. Selåsdal 2015-01-03 02:10:51 +01:00
  • 603d86bb61 Remove stdio.h from utils.h. Manually include stdio.h if using the TRACEF() macro from utils.h Nils O. Selåsdal 2015-01-03 01:52:53 +01:00
  • a367e84b00 Move UC_INLINE to utils.h Nils O. Selåsdal 2015-01-03 01:51:18 +01:00
  • 33287ea987 Merge branch 'cmd' into dev Nils O. Selåsdal 2014-12-07 15:46:06 +01:00
  • 0622c57d42 Initial attempt Nils O. Selåsdal 2014-12-07 15:39:32 +01:00
  • ab70a2c5be Make uc_log_init argument const Nils O. Selåsdal 2014-12-02 23:38:24 +01:00
  • dd925b3654 int log_level->enum UC_LOG_LEVEL Nils O. Selåsdal 2014-12-02 23:22:18 +01:00
  • 8c36756170 Increase timeout on thread queue test to make it pass on the slow raspberrypis Nils O. Selåsdal 2014-11-10 21:05:45 +01:00
  • fe3e4d8e3c Add missing prototypes and includes Nils O. Selåsdal 2014-10-26 14:27:26 +01:00
  • 9bd1336d26 have LOGF macros add a newline, so user code doesn't need to. Nils O. Selåsdal 2014-10-06 21:52:28 +02:00
  • 33b48c4276 More checks on test_mbuf_static Nils O. Selåsdal 2014-09-29 21:29:02 +02:00
  • 42136087b6 Add note about scons 2.3.0 Nils O. Selåsdal 2014-09-29 21:09:50 +02:00
  • 6247bcbdfd Also build a shared library Nils O. Selåsdal 2014-09-20 21:47:29 +02:00
  • 959d525938 Use correct return value on error Nils O. Selåsdal 2014-09-29 16:16:55 +02:00
  • 749c5ef0df Correct a few comments in threadqueue Nils O. Selåsdal 2014-09-29 16:16:40 +02:00
  • 13e611c79d Generalise the logging function to a function pointer Nils O. Selåsdal 2014-09-16 13:30:51 +02:00
  • 9ce3a4ebf8 Rework iomux_select, so it doesn't need to deald with dynamically allocating space for the IOMuxFD's Nils O. Selåsdal 2014-09-16 01:28:23 +02:00
  • b5465012ae Doxygen, generate struct docs in same page as the module it's in Nils O. Selåsdal 2014-09-16 01:11:32 +02:00
  • 045d7c2463 Improve doxygen comments Nils O. Selåsdal 2014-09-15 21:13:43 +02:00
  • f13a71e8ba Merge branch 'dev' of ssh://box/var/lib/git/libucore into dev Nils O. Selåsdal 2014-09-12 01:12:44 +02:00
  • 711d734998 Open restart file in 0644 mode, fsync the file, don't write to file if seek/truncate failed Nils O. Selåsdal 2014-09-11 23:09:41 +02:00
  • 5f89edc0d9 Fic includes to use "" instead of <> Nils O. Selåsdal 2014-09-11 21:55:57 +02:00
  • b39cabc055 Link with libm and librt, required for older glibc. No harm on newer Nils O. Selåsdal 2014-09-11 21:42:57 +02:00
  • 131bfc5da6 Add uc_restart_counter concept Nils O. Selåsdal 2014-09-11 21:41:14 +02:00
  • 6689fa9969 Initialize the ticket lock Nils O. Selåsdal 2014-09-11 21:40:22 +02:00
  • fbbd1344ab Remove unused include Nils O. Selåsdal 2014-09-10 23:58:15 +02:00
  • eacdd947e5 Add a few more UCStrVal functions Nils O. Selåsdal 2014-09-10 23:55:33 +02:00
  • 48563f553d Fix RATE_LIMIT_INITIALIZER Nils O. Selåsdal 2014-09-08 22:24:08 +02:00
  • 9b3c1e370b ( ) around macro arguments.. Nils O. Selåsdal 2014-09-06 04:05:54 +02:00
  • 7eb42cc538 fix UC_ROUND_UP() Nils O. Selåsdal 2014-09-06 04:03:20 +02:00
  • a27711e3bd Atomic example, used to inspect assembly code.. Nils O. Selåsdal 2014-09-02 23:17:41 +02:00
  • f686c299a3 Better atomic support for gcc and clang Nils O. Selåsdal 2014-09-02 23:17:14 +02:00
  • c82620d59c eait for max 32 epoll events. 54 is too much Nils O. Selåsdal 2014-09-01 22:20:10 +02:00
  • 33f8d3bbae Add ATOMIC_GET Nils O. Selåsdal 2014-09-01 22:19:54 +02:00
  • 7ed9bb298f Fix confusing if vec_len is bytes or number of elements Nils O. Selåsdal 2014-08-26 20:12:22 +02:00
  • 22f6c1e043 Improve doxygen documentation. Nils O. Selåsdal 2014-08-26 21:38:09 +02:00
  • 6c7cb5c0ab Print error if no test cases are run Nils O. Selåsdal 2014-07-11 16:27:36 +02:00
  • 0741b42a44 Add a sched_yeild in tocket lock test.. Nils O. Selåsdal 2014-06-25 19:53:46 +02:00
  • 6c8e403a38 Test heapsorting 1 element Nils O. Selåsdal 2014-06-23 22:58:27 +02:00
  • 157dca7997 Add test for ticket locks Nils O. Selåsdal 2014-06-25 19:49:14 +02:00
  • cfb6022d42 More comments on the ticket lock code Nils O. Selåsdal 2014-06-25 17:03:14 +02:00
  • dcc38151b1 pthread implementation of a ticket lock Nils O. Selåsdal 2014-06-25 16:48:42 +02:00
  • 1282f420a1 Get rid of clang warnings for UC_INLINE Nils O. Selåsdal 2014-06-23 02:24:27 +02:00
  • b0ca62b878 Fix header guard in read_file.h Nils O. Selåsdal 2014-06-23 02:15:26 +02:00
  • 9199614f40 Fix header guard in buffer.h Nils O. Selåsdal 2014-06-23 02:14:20 +02:00
  • a6d2a63f95 Fix uninitialized return value in iomux_update_events Nils O. Selåsdal 2014-06-23 02:09:56 +02:00
  • b0ac867936 Remove a TRACF() Nils O. Selåsdal 2014-06-22 23:11:54 +02:00
  • 95749c5b7d Add iomux_from_timers() function to recover an IOMux from the associated UCTimers Nils O. Selåsdal 2014-06-22 23:11:12 +02:00
  • 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. Nils O. Selåsdal 2014-06-18 15:57:51 +02:00
  • 5bd23d751f Use restrict on pointers where it makes sense. (requires C99 support, which we already assume) Nils O. Selåsdal 2014-05-25 23:07:08 +02:00
  • a24aa93b73 Use nonblocking pipes Nils O. Selåsdal 2014-05-07 22:48:56 +02:00
  • 802462a5c0 Move UC_LOG_DESTINATION enum to logging.c, it's not a public type Nils O. Selåsdal 2014-04-25 19:57:59 +02:00
  • d9bb5315f8 Use snprintf over sprintf Nils O. Selåsdal 2014-04-23 22:40:37 +02:00
  • 10c0e37253 Fix size rotating, so filenames are in the order of newest to oldest Nils O. Selåsdal 2014-04-23 22:38:04 +02:00
  • dc9e38b231 Fix raw loggin use of uninitialized value introduced in previous commit Nils O. Selåsdal 2014-04-23 02:21:54 +02:00
  • 7bd1074c1d Initial attempt of log rotation based on file sizes Nils O. Selåsdal 2014-04-23 02:04:08 +02:00
  • b75048ceef Keep track of bytes written to a file Nils O. Selåsdal 2014-04-22 23:16:57 +02:00