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
2023-12-18CMakeLists.txt: bump minimum cmake versionHEADmasterFelix Fietkau
Removes warnings and fixes rpath issues on macOS Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-11-29link librt if needed for shm_openFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-11-27udebug: add udebug library codeFelix Fietkau
Copied and adapted from udebug.git Signed-off-by: Felix Fietkau <nbd@nbd.name>
2020-01-20cmake: add a possibility to set library versionPetr Štetiar
Add a new `ABIVERSION` define which allows to control the SOVERSION used for the built shared library. This is needed for downstream packaging to properly track breaking ABI changes when updating to newer versions of the library. Suggested-by: Jo-Philipp Wich <jo@mein.io> Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-12-25tests: add unit tests covered with Clang sanitizersPetr Štetiar
Currently we run all tests via Valgrind. This patch adds 2nd batch of tests which are compiled with Clang AddressSanitizer[1], LeakSanitizer[2] and UndefinedBehaviorSanitizer[3] in order to catch more issues during QA on CI. AddressSanitizer is a fast memory error detector. The tool can detect the following types of bugs: * Out-of-bounds accesses to heap, stack and globals * Use-after-free, use-after-return, use-after-scope * Double-free, invalid free LeakSanitizer is a run-time memory leak detector. It can be combined with AddressSanitizer to get both memory error and leak detection, or used in a stand-alone mode. UndefinedBehaviorSanitizer (UBSan) is a fast undefined behavior detector. UBSan modifies the program at compile-time to catch various kinds of undefined behavior during program execution, for example: * Using misaligned or null pointer * Signed integer overflow * Conversion to, from, or between floating-point types which would overflow the destination 1. http://clang.llvm.org/docs/AddressSanitizer.html 2. http://http://clang.llvm.org/docs/LeakSanitizer.html 3. http://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-12-25cmake: add more hardening compiler flagsPetr Štetiar
In order to spot possible issues with direct impact on security during QA on CI (GCC version 6 and higher). Ref: https://developers.redhat.com/blog/2018/03/21/compiler-and-linker-flags-gcc/ Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-12-01cmake: use extra compiler warnings only on gcc6+Petr Štetiar
gcc version 4.8.4 (Ubuntu 14.04) and -Wextra produces following: json_script.c:124:3: error: missing initializer for field 'name' of 'struct blobmsg_policy' [-Werror=missing-field-initializers] Reported-by: Jonas Gorski <jonas.gorski@gmail.com> Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-11-24add cram based unit testsPetr Štetiar
For improved QA etc. For the start with initial test cases for avl, base64, jshn and list components. Moved runqueue and blobmsg from examples to tests. Converted just a few first test cases from json-script example into the new cram based unit test, more to come. Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-11-20enable extra compiler checksPetr Štetiar
Let's enforce additional automatic checks enforced by the compiler in order to catch possible errors during compilation. Signed-off-by: Petr Štetiar <ynezz@true.cz>
2015-09-09Build static version of libblobmsg_jsonBachtin, Dmitri
Signed-off-by: Dmitri Bachtin <dbachtin@init-ka.de>
2015-06-14libubox: cmake: Add BUILD_EXAMPLES optionNikolay Dimitrov
Add ability to skip building the examples. The default value is ON to follow the original cmake behavior. Signed-off-by: Nikolay Dimitrov <picmaster@mail.bg>
2015-05-10ubox: CMake: fix json-c detectionYegor Yefremov
Use PKG_SEARCH_MODULE() to detect json-c library, otherwise the search fails, if both json-c and json are not present in pkg-config database. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2015-05-08add a base64 implementation (based on FreeBSD code)Felix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2015-02-26ulog: introduce new simple logging apiJo-Philipp Wich
The ulog api is intended to be used by procd, fstools, ubox etc. to provide a generic logging api for early boot messages and automatic switching between syslog / kmsg / stdout depending on the way the process is executed. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-12-11examples: fix build.Yousong Zhou
- runqueue-example.c: fix include path for in-tree build. - blobmsg-example.c: add inttypes.h for using PRIu64. - add examples/ subdirectory to main CMakeLists.txt Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2014-12-11lua: do not hardcode /opt/local/include for Apple.Yousong Zhou
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2014-12-11libubox: drop legacy json-c supportYousong Zhou
The cmake logic is wrong (E.G. PKG_CHECK_FOR_MODULES fails unless all modules are found), and the legacy libjson.so name is also used by the other libjson (http://sourceforge.net/projects/libjson/) which provides an incompatible API, so just drop it. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2014-08-04jshn: pretty print indented output with jshn -i -wJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-06-11build a static version of libuboxJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-04-12kvlist: add a simply key/value store implementationFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-11-19add md5.c to libuboxJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2013-05-09runqueue: add a simple task queueing/completion tracking implementationFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-05-07libubox: Allow to build against libjson-c > 0.9Helmut Schaa
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
2013-03-18safe_list: add a new linked list variantFelix Fietkau
Use this linked list implementation as a replacement for list.h if you want to allow deleting arbitrary list entries from within one or more recursive iterator calling context Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-03-05add pkgconfig support for json-cThomas Gstädtner
this includes a fallback for legacy support
2013-03-01add json_script, a minimalistic JSON based script interpreterFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-02-10blobmsg_json: prefer to link against libjson-c over libjson (the new library ↵Felix Fietkau
name in git versions of json-c) Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-23build: remove install prefix overrideFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-06uloop: use clock_gettime with the monotonic clock instead of using ↵Felix Fietkau
gettimeofday() Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-12-31add utils.c, containing a calloc-like function to allocate multiple chunks ↵Felix Fietkau
with different sizes in one block and return pointers Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2012-10-22add -Wmissing-declarations to cflagsFelix Fietkau
2012-10-22add ustream, an api for stream buffer managementFelix Fietkau
2012-09-27add lua binding for uloop (written by John Crispin)Felix Fietkau
2012-05-26add vlist (from netifd)Felix Fietkau
2012-05-26add avl_strcmpFelix Fietkau
2011-05-24add jshnFelix Fietkau
2011-03-27support building without json supportFelix Fietkau
2011-02-13change minimum cmake version to 2.6Felix Fietkau
2011-02-06remove hash.[ch] - i don't think we will need itFelix Fietkau
2011-02-06remove uhtbl - i don't think we will need itFelix Fietkau
2011-02-06add a json to blobmsg parsing libraryFelix Fietkau
2011-01-31add back usockFelix Fietkau
2011-01-31remove unlFelix Fietkau
2011-01-31link against libnl-tinyFelix Fietkau
2011-01-31convert to cmakeFelix Fietkau