Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | move read_file_at to util.c | Leah Neukirchen | 2024-06-07 | 1 | -0/+3 |
| | |||||
* | Make `bbuf_get` result non-const, and add `bbuf_free`. | Heikki Kallasjoki | 2018-12-23 | 1 | -1/+3 |
| | | | | | | | | | | It's reasonable to want to modify the contents of the buffer in other ways than just plain appending, and the storage is already guaranteed contiguous. Drop the `const` from the `bbuf_get` return type, so it can be used to modify bytes in-place. The parallel request processing code may need to actually deallocate buffers as well, so add a `bbuf_free` function. | ||||
* | Rename `cbuf` to `bbuf` in byte buffer utilities. | Heikki Kallasjoki | 2018-12-22 | 1 | -10/+10 |
| | | | | | The `cbuf_alloc` and `cbuf_free` functions conflict with the OpenWrt `libubox` library naming. | ||||
* | Add a simple test harness and tests for the cpu collector. | Heikki Kallasjoki | 2018-12-12 | 1 | -0/+5 |
| | |||||
* | Add doc comments for the functions in util.h. | Heikki Kallasjoki | 2018-12-04 | 1 | -0/+39 |
| | |||||
* | Add support for matching with prefix in include/exclude lists. | Heikki Kallasjoki | 2018-11-30 | 1 | -0/+1 |
| | |||||
* | Add Apache License 2.0 headers and files. | Heikki Kallasjoki | 2018-11-30 | 1 | -0/+16 |
| | |||||
* | Remove prometheus- prefix from project name. | Heikki Kallasjoki | 2018-11-30 | 1 | -3/+3 |
| | |||||
* | Bugfix: cbuf_cmp handled prefixes incorrectly. | Heikki Kallasjoki | 2018-11-16 | 1 | -0/+1 |
| | | | | | | | The previous version returned 0 if the string to compare was either equal to or a prefix of the target buffer. This change fixes it to only return 0 when the string is actually equal. Otherwise, it follows the shortlex ordering, for convenience. | ||||
* | Add rudimentary (fake) HTTP server. | Heikki Kallasjoki | 2018-11-16 | 1 | -0/+2 |
| | |||||
* | Initial prototype. | Heikki Kallasjoki | 2018-08-05 | 1 | -0/+62 |