aboutsummaryrefslogtreecommitdiff
path: root/liberty.c
Commit message (Collapse)AuthorAgeFilesLines
* Add helper functions for reading binary numbersPřemysl Eric Janouch2024-02-101-17/+59
| | | | And make use of them.
* Comment on write_file_safe()'s actual safetyPřemysl Eric Janouch2024-02-101-0/+2
|
* Allow for overriding feature test macrosPřemysl Eric Janouch2022-09-111-1/+6
|
* Add some consts to function argumentsPřemysl Eric Janouch2022-09-011-2/+2
|
* Fix up the PEG change from the last commitPřemysl Eric Janouch2022-08-141-2/+2
| | | | This is not a regular expression.
* Extend string syntax in configPřemysl Eric Janouch2022-08-141-6/+46
| | | | And actually test the results of string parsing.
* Use kqueue on Darwin as wellPřemysl Eric Janouch2021-09-291-4/+3
| | | | | | | | | | Since poll() is implemented in terms of kqueue() there, it doesn't seem like this could have improved anything. Besides man 3 ev, libevent code, and [1], I haven't managed to find much relevant information. [1] https://daniel.haxx.se/blog/2016/10/11/poll-on-mac-10-12-is-broken/
* Ignore empty XDG_*_DIRS env. variablesPřemysl Eric Janouch2021-09-261-2/+2
| | | | | | | | As the specification says we should. GLib does this as well. It is still possible to achieve an empty set by using ":", which are two non-absolute paths that should be ignored. GLib doesn't implement this. Thus, we're now better than GLib.
* Escape DEL character in config_item_write_string()Přemysl Eric Janouch2020-10-311-7/+9
|
* Fix validation of overlong UTF-8Přemysl Eric Janouch2020-10-241-6/+2
| | | | | It was too strict and Egyptian dicks didn't want to pass, so we'll do it half-arsedly for a subset.
* Fix config PEG grammar to match strtoll()Přemysl Eric Janouch2020-10-241-1/+1
|
* Split out utf8_validate_cp(), adhere to RFC 3629Přemysl Eric Janouch2020-10-211-1/+8
|
* Reject overlong UTF-8 sequencesPřemysl Eric Janouch2020-10-211-0/+5
|
* Fix optional arguments in --help outputPřemysl Eric Janouch2020-10-131-1/+1
| | | | An equals sign is necessary.
* Improve the UTF-8 APIPřemysl Eric Janouch2020-10-121-29/+25
| | | | We need to be able to detect partial sequences.
* Fix crashes in the config parserPřemysl Eric Janouch2020-10-121-6/+9
| | | | | It had a duality between not requiring null-terminated input and relying on it, depending on where you looked.
* Import xwrite(), cstr_set(), resolve_..._template()Přemysl Eric Janouch2020-10-101-9/+58
| | | | From degesch and json-rpc-shell.
* Rename cstr_transform() argumentPřemysl Eric Janouch2020-10-101-2/+2
| | | | It does not always have to be tolower().
* Mark some issuesPřemysl Eric Janouch2020-10-101-0/+2
|
* Bump copyright yearsPřemysl Eric Janouch2020-10-021-1/+1
|
* Add iscntrl_ascii()Přemysl Eric Janouch2020-10-021-0/+6
| | | | It's too easy to miss the DEL character.
* Add a slogan of sortsPřemysl Eric Janouch2020-08-011-0/+3
|
* Name changePřemysl Eric Janouch2020-08-011-1/+1
|
* Improve setjmp safety in config parserPřemysl Janouch2020-04-191-5/+7
|
* Allow aborting the FastCGI protocol parserPřemysl Janouch2018-10-181-1/+1
|
* Add missing include for "struct iovec"Přemysl Janouch2018-06-241-0/+1
|
* Relicense to 0BSD, update mail addressPřemysl Janouch2018-06-211-3/+2
| | | | | | | | | I've come to the conclusion that copyright mostly just stands in the way of software development. In my jurisdiction I cannot give up my own copyright and 0BSD seems to be the closest thing to public domain. The updated mail address, also used in my author/committer lines, is shorter and looks nicer. People rarely interact anyway.
* Describe syntax of advanced configuration w/ PEGPřemysl Janouch2018-04-191-0/+26
|
* Improve simple_config_update_from_file()Přemysl Janouch2017-06-221-45/+18
| | | | | | | | | | - considerably shorter - catch file read errors as we should - better error messages, now including the filename - disallow empty keys as they are never used - allow whitespace before start of comment NUL characters stop processing now, though. If anyone cares.
* _init() -> _make() where possiblePřemysl Janouch2017-06-221-193/+153
|
* Make config_item_clone() staticPřemysl Janouch2017-06-121-1/+1
|
* Improve read_line()Přemysl Janouch2017-06-121-13/+9
| | | | One less useless boolean variable.
* Make socket_io_try_*() actually use read/writePřemysl Janouch2017-05-071-5/+5
| | | | So that they can be used with pipes.
* Add a warning comment to "poller_fd::closed"Přemysl Janouch2017-05-061-0/+3
|
* Fix broken toupper_ascii()Přemysl Janouch2017-05-061-1/+1
| | | | Update copyright years.
* Fix and update LICENSEPřemysl Janouch2017-02-031-1/+0
|
* Fixes to the previous batch of commitsPřemysl Janouch2017-01-231-4/+4
|
* Rename strv_add*() to strv_append*()Přemysl Janouch2017-01-231-12/+12
| | | | Consistency.
* Rename str_ensure_space() to str_reserve()Přemysl Janouch2017-01-231-4/+4
| | | | Let's not invent our own terminology.
* join_strv() -> strv_join(), take a string argumentPřemysl Janouch2017-01-231-2/+2
|
* Rename "struct str_vector" to "struct strv"Přemysl Janouch2017-01-231-36/+36
| | | | Short names for things used often.
* Add ARRAY convenience macrosPřemysl Janouch2017-01-231-0/+17
| | | | Because dynamically allocated arrays in C are a pain.
* Add some consts to function argumentsPřemysl Janouch2016-10-231-9/+9
|
* Make error_set() return NULL for conveniencePřemysl Janouch2016-10-101-19/+12
| | | | This often eliminates the need for a block where one line is enough.
* Merge cstr_split() and cstr_split_ignore_empty()Přemysl Janouch2016-10-091-20/+7
|
* Add some constness to str_map methodsPřemysl Janouch2016-10-051-3/+3
|
* Fix a commentPřemysl Janouch2016-10-041-1/+1
|
* Use CLOCK_MONOTONIC_RAW for timers if availablePřemysl Janouch2016-10-041-1/+4
| | | | Should make timers work more precisely on Linux.
* Add config_read_from_file()Přemysl Janouch2016-10-011-0/+21
|
* Add socket_io_*() functionsPřemysl Janouch2016-10-011-0/+71
|