Commit Graph

290 Commits

Author SHA1 Message Date
Nils O. Selåsdal 2278080b69 Update tests for cmake 2025-07-16 19:51:06 +02:00
Nils O. Selåsdal b74a4ab663 Fix const warnings 2025-07-16 09:02:33 +02:00
Nils O. Selåsdal 0f6f6d4ccc Merge branch 'master' of https://sdal.tech/gitea/noselasd/libucore into cmake 2025-07-16 00:10:44 +02:00
Nils O. Selåsdal 97bf06b2e8 Refactor SAlloc 2025-07-05 20:09:12 +02:00
Nils O. Selåsdal 1f6dee3a9a Tidy up ringbuf and make tests 2025-07-05 20:03:24 +02:00
Nils O. Selåsdal 7373a93f9b Fix SAlloc warnings 2025-07-05 20:03:00 +02:00
Nils O. Selåsdal fb8979d695 Update tests for new check library & osx 2025-06-28 00:56:58 +02:00
Nils O. Selåsdal 9d2ed015f3 Better naming in iomux 2025-06-28 00:11:32 +02:00
Nils O. Selåsdal a6a7b67d72 build on osx 2025-06-27 23:29:09 +02:00
Nils O. Selåsdal f0685abf62 Support bsd in fd_utils 2025-06-27 23:14:38 +02:00
Nils O. Selåsdal 01db95842d Inline alloc the SAlloc struct 2025-06-27 23:05:56 +02:00
Nils O. Selåsdal 43f3a3372e Allow wquque to use callback to free an mbuf - so
mbufs can be reused/pooled
2016-12-07 20:58:39 +01:00
Nils O. Selåsdal a6fe01978c Propagate error back from iomux_select_update_events 2016-12-07 20:57:59 +01:00
Nils O. Selåsdal 55846a0e42 Initial conversion to CMake 2016-10-02 21:39:02 +02:00
Nils O. Selåsdal c520b6caec Leave to SConscript files to decide default targets 2016-03-14 12:18:31 +01:00
Nils O. Selåsdal 21703ded30 prefux gettokens/getfields with uc_ 2016-03-09 00:10:23 +01:00
Nils O. Selåsdal fae2a60203 Small cmd progress 2016-03-07 22:18:15 +01:00
Nils O. Selåsdal 28d56d64f6 Merge branch 'dev' of ssh://box/var/lib/git/libucore into dev 2016-03-07 22:14:07 +01:00
Nils O. Selåsdal a686ba1975 Add gettokens() string function 2016-01-08 09:43:04 +01:00
Nils O. Selåsdal 433fdd0a4b IMplement help system. Though it need refactoring. 2015-12-15 22:26:59 +01:00
Nils O. Selåsdal f107898919 Prepare for handling descriptions 2015-12-12 20:42:18 +01:00
Nils O. Selåsdal e902b04996 Implement completion 2015-12-10 22:47:41 +01:00
Nils O. Selåsdal db78689015 Add uc_strv_reverse 2015-12-10 19:13:16 +01:00
Nils O. Selåsdal 9b70b64729 Implement argument collecting 2015-12-10 18:52:09 +01:00
Nils O. Selåsdal d4619418f0 Add support for lists 2015-12-10 18:52:09 +01:00
Nils O. Selåsdal 8adec5408e Progress on cmd 2015-12-10 18:52:09 +01:00
Nils O. Selåsdal c87137cb4f Fix redundant setting of events in iomux_update_events 2015-12-10 12:30:21 +01:00
Nils O. Selåsdal 94dcd522aa Pass the wqueue directly to the wqueue callback functions 2015-12-04 22:25:57 +01:00
Nils O. Selåsdal fb5b5f0692 Handle case of uc_wqueue_handle_write operating on an empty queue 2015-12-04 21:49:53 +01:00
Nils O. Selåsdal 4d8aeee671 Fix return value of unregister signal if it failed 2015-12-01 22:56:22 +01:00
Nils O. Selåsdal a8dffbc71e Add unix signal integration with the iomux 2015-11-29 21:51:26 +01:00
Nils O. Selåsdal 9bb7cc335a Add uc_wqueue_flush() to immedately preform mbuf writes 2015-11-29 01:05:40 +01:00
Nils O. Selåsdal c9aff6f910 Tidy up uc_iomux_waker_init 2015-11-28 21:51:19 +01:00
Nils O. Selåsdal 9416c58457 Check snprintf for -1 2015-11-25 09:40:21 +01:00
Nils O. Selåsdal 4ce1c24610 Enable specifying no events when registring with the iomux 2015-11-10 21:35:16 +01:00
Nils O. Selåsdal 7d9ebd7211 Return value of uc_wqueue_clear wasn't initialized 2015-11-10 21:27:08 +01:00
Nils O. Selåsdal 2b51f1d7f8 Use iomux_add_event/iomux_clear_event in wqueue instead of manually
doing this
2015-11-10 19:42:53 +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 e517c33da9 Fix iomux_update_events(), it didn't actually update the events ! 2015-11-10 19:41:46 +01:00
Nils O. Selåsdal 7dd159aa6a Add TODO comment to iomux impl 2015-05-11 23:36:23 +02:00
Nils O. Selåsdal a87558047b Fix iomux_select_recalc_max, it went to an infinite loop. 2015-05-11 23:09:40 +02:00
Nils O. Selåsdal a7516141dd Fix dstr_own() when the dstr already holds a string. 2015-05-06 21:33:23 +02:00
Nils O. Selåsdal 5e2b1e2d0d Add mbuf enqueue/dequeue functions 2015-05-05 00:06:28 +02:00
Nils O. Selåsdal 2eacf252b7 Fix typo 2015-04-05 13:14:16 +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 db21dc4100 use %u instead of %d in file name format string 2015-02-11 22:20:07 +01:00
Nils O. Selåsdal c90ad5e257 There's no good reason to not always reset the file size
after re-opening
2015-02-10 21:46:08 +01:00
Nils O. Selåsdal 83ce414beb make array parameter const 2015-02-10 20:57:36 +01:00
Nils O. Selåsdal aeee4de26a Remove main() function 2015-02-10 20:45:40 +01:00