Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-06-26Fix various memory management issuesMatthias Schiffer
Consistently handle allocation failures. Some functions are changed to return bool or int instead of void to allow returning an error. Also fix a buffer size miscalculation in lua/uloop and use _exit() instead of exit() on errors after forking. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2015-06-14ustream: tweak ustream_prepare_buf() a bit.Yousong Zhou
No functional change. - Reuse existing NULL check on buf. - Add some comments for ease of reading the code. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-01-21ustream: add function ustream_read().Yousong Zhou
It can be used to fill caller-specified buffer with data already in ustream read buffer. Useful in the following use pattern. int available = ustream_pending_data(s, false); if (available >= sizeof(struct msghdr)) { struct msghdr h; ustream_read(s, &h, sizeof(h)); } Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2014-04-12ustream: remove unnecessary initializationFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-10-19ustream: properly clear fields to fix ustream reuseFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-06-21ustream: return NULL in ustream_get_read_buf if there's a buffer, but no dataFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-05-31ustream: only report a write error once via state_change callbackFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-03ustream: increment receive buffer countFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-12-30ustream: avoid calling s->poll from a write path to avoid looping back ↵Felix Fietkau
through the notify_write cb Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-12-30ustream: fix polling for write buffer availability after buffering writesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-12-30ustream: suppress write attempts in ustream_printf and ustream_vprintf if a ↵Felix Fietkau
write error was flagged Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-10-30ustream: make notify_state optional as wellFelix Fietkau
2012-10-30ustream: fix variable initializationFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-10-22ustream: make ustream_init_buf staticFelix Fietkau
2012-10-22add ustream, an api for stream buffer managementFelix Fietkau