C utility functions for OpenWRT libraries
Find a file
Matthias Schiffer 1f019ceea1 Fix various memory management issues
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>
2016-06-26 12:53:51 +02:00
examples examples: add shunit2 tests for json_script 2016-02-20 13:36:08 +01:00
lua Fix various memory management issues 2016-06-26 12:53:51 +02:00
sh Revert "jshn: only keep UP_* variables around while they are needed" 2014-11-23 23:53:44 +01:00
.gitignore examples: add shunit2 tests for json_script 2016-02-20 13:36:08 +01:00
avl-cmp.c add avl_strcmp 2012-05-26 18:01:18 +02:00
avl-cmp.h add avl_strcmp 2012-05-26 18:01:18 +02:00
avl.c list_compat.h: remove 2014-03-20 23:06:42 +01:00
avl.h avl: add AVL_TREE macro to define an initialized struct avl_tree 2014-03-27 17:39:53 +01:00
base64.c b64_encode(): fixed input[] not initialized warn under gcc 4.4.5 2015-09-09 11:03:07 +02:00
blob.c blob: improve out-of-memory handling 2014-07-26 03:50:50 +02:00
blob.h blob: improve out-of-memory handling 2014-07-26 03:50:50 +02:00
blobmsg.c Fix various memory management issues 2016-06-26 12:53:51 +02:00
blobmsg.h Fix various memory management issues 2016-06-26 12:53:51 +02:00
blobmsg_json.c Fix various memory management issues 2016-06-26 12:53:51 +02:00
blobmsg_json.h blobmsg_json: avoid redefinition of json_object 2014-10-24 13:40:14 +02:00
CMakeLists.txt Build static version of libblobmsg_json 2015-09-09 11:02:49 +02:00
jshn.c Fix various memory management issues 2016-06-26 12:53:51 +02:00
json_script.c Fix various memory management issues 2016-06-26 12:53:51 +02:00
json_script.h json_script: add support for aborting script processing 2015-11-06 22:58:15 +01:00
kvlist.c Fix various memory management issues 2016-06-26 12:53:51 +02:00
kvlist.h Fix various memory management issues 2016-06-26 12:53:51 +02:00
list.h list.h: implement type safety for container_of() 2013-03-18 05:55:00 +01:00
md5.c md5: include utils.h instead of endian.h to fix portability issues 2015-06-29 16:13:08 +02:00
md5.h md5: add a new implementation under permissive license 2014-10-01 16:39:15 +02:00
runqueue.c libubox: runqueue: Cancel task timeout when completeing task 2014-01-29 03:32:30 +00:00
runqueue.h runqueue: add a function that allows adding jobs to the front of the runqueue 2013-11-18 12:25:21 +01:00
safe_list.c runqueue: add a function that allows adding jobs to the front of the runqueue 2013-11-18 12:25:21 +01:00
safe_list.h runqueue: add a function that allows adding jobs to the front of the runqueue 2013-11-18 12:25:21 +01:00
ulog.c ulog: avoid accidental /dev/kmsg creation 2015-09-15 07:29:59 +02:00
ulog.h ulog: introduce new simple logging api 2015-02-26 10:43:56 +01:00
uloop-epoll.c uloop: use a waker for notifying sigchld and loop cancel events 2016-06-15 11:54:37 +02:00
uloop-kqueue.c uloop: use a waker for notifying sigchld and loop cancel events 2016-06-15 11:54:37 +02:00
uloop.c uloop: add missing waker_pipe initialization 2016-06-15 15:14:51 +02:00
uloop.h uloop: Add flag to allow callback to be called on error conditions. 2014-02-23 18:18:32 +01:00
usock.c usock: implement usock_inet_timeout() with RFC6555 support 2016-01-28 12:07:25 +01:00
usock.h usock: implement usock_inet_timeout() with RFC6555 support 2016-01-28 12:07:25 +01:00
ustream-fd.c ustream-fd: handle ENOTCONN for read/write on not-yet-connected sockets 2016-01-15 21:35:48 +01:00
ustream.c Fix various memory management issues 2016-06-26 12:53:51 +02:00
ustream.h ustream: add function ustream_read(). 2015-01-21 20:00:39 +01:00
utils.c Fix various memory management issues 2016-06-26 12:53:51 +02:00
utils.h add a base64 implementation (based on FreeBSD code) 2015-05-08 14:34:29 +02:00
vlist.c vlist: constify key argument to vlist_add 2013-10-05 21:40:04 +02:00
vlist.h vlist: add static initializer macros 2014-06-05 15:28:45 +02:00