aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstddjb
Commit message (Collapse)AuthorAgeFilesLines
...
* Do not free on failure to reallocate to size 0 (lol.)Laurent Bercot2024-01-181-1/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Fix bitarray_not when within a single byteOlivier Brunel2024-01-021-1/+1
| | | | | | | Notably when a=0 (i.e. start on the first bit) it would affect the entire byte (all 8 bits). Signed-off-by: Olivier Brunel <jjk@jjacky.com>
* cspawn can use open3() over open() for consistencyLaurent Bercot2024-01-021-3/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* env_mergen() should not fail, by policyLaurent Bercot2023-12-202-2/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* and one moreLaurent Bercot2023-12-181-1/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Fix more small UBsLaurent Bercot2023-12-182-1/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Don't smash 1 byte 1/8th of the timeLaurent Bercot2023-12-181-2/+5
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Actually add autosurf_name; fix cspawn leak in error pathLaurent Bercot2023-12-181-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Try to accommodate AIX more?... maybe maybe?Laurent Bercot2023-12-131-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* socket_recv46 was never workingLaurent Bercot2023-12-112-0/+48
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 2.14.0.1. Better ip6_scan().Laurent Bercot2023-11-171-22/+74
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Modify string_quote/unquote to allow encoding of space as \sLaurent Bercot2023-10-264-19/+14
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add UINT??_BSWAP as constexp macro; rip off typedef uint?? bandaidLaurent Bercot2023-10-124-20/+6
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Revamp case functions, add strcasestr() fallbackLaurent Bercot2023-09-226-45/+17
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* New sysdeps for st.st_atim etc., timespec_cmpLaurent Bercot2023-09-121-0/+13
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add waitid() sysdep, and fuck OpenBSDLaurent Bercot2023-09-121-1/+6
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add POSIX_SPAWN_SETSID_NP supportLaurent Bercot2023-09-111-2/+6
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Don't forget to uncoeLaurent Bercot2023-09-111-0/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add gcspawnLaurent Bercot2023-09-111-0/+48
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add posix_spawn_file_actions_addchdir() supportLaurent Bercot2023-09-111-8/+46
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Fix cspawn when lack of flags or actionsLaurent Bercot2023-09-111-4/+9
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Remove deprecated *writeclose_unsafe stuffLaurent Bercot2023-09-118-104/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add POSIX_SPAWN_SETSID support to cspawnLaurent Bercot2023-09-101-71/+97
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Revamp cspawn, part 2Laurent Bercot2023-09-091-55/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* cspawn revamp, part 1. Prepare for 2.14.0.0.Laurent Bercot2023-09-0912-717/+290
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Make child_spawn_workaround publicLaurent Bercot2023-09-088-43/+14
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Fix back slurpnLaurent Bercot2023-08-081-10/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* More jjk fixesLaurent Bercot2023-07-061-3/+4
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Refactor cdbmake, add cdbmake_addv, cdb_hashvLaurent Bercot2023-07-0311-55/+151
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* posix_spawn workaround fixesLaurent Bercot2023-06-291-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add workaround for bad QoI posix_spawn()Laurent Bercot2023-06-287-268/+425
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Apply fixes suggested by jjkLaurent Bercot2023-06-233-7/+9
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Fix iter_func type; add tain_earliestLaurent Bercot2023-06-132-0/+17
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add devino, refactor openwrite(v)ncloseLaurent Bercot2023-06-0923-168/+258
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Refactor to add hiercopy_loose (for s6-l-i)Laurent Bercot2023-06-015-82/+107
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Grab as many signals as possible in sig_tableLaurent Bercot2023-05-251-0/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add slurpn, refactor slurp, fix avltree/cdbmake bugs, add strerr_warnfLaurent Bercot2023-05-184-32/+50
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add selfpipe_fd(), refactor selfpipeLaurent Bercot2023-04-079-299/+187
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Tables should be constLaurent Bercot2023-02-121-2/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add sals, several refactorsLaurent Bercot2023-02-093-78/+68
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* QoL: subgetopt should return ? on --longLaurent Bercot2023-01-211-10/+9
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Remove stdarg functions from strerr, everything is __VA_ARGS__ nowLaurent Bercot2023-01-134-91/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add siovec doc, fix siovec_trunc, credit ErmineLaurent Bercot2023-01-041-5/+5
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* bugfix: uint16_pack and uint16_pack for big-endianLaurent Bercot2022-12-052-2/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Much better strerr revamp, with __VA_ARGS__Laurent Bercot2022-11-308-0/+154
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 2.13.0.0, revamp strerrLaurent Bercot2022-11-299-64/+7
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Better NSIG detection and fixLaurent Bercot2022-09-052-8/+3
| | | | | | | Incredibly enough, OpenBSD defines NSIG correctly, so our workaround was not accurate. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Include mitigation for BSD disease in sigaction wrapperLaurent Bercot2022-09-031-1/+15
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Fix allread errno managementLaurent Bercot2022-07-183-8/+11
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Clean up / homogenize openreadnclose() familyLaurent Bercot2022-06-083-25/+28
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>