aboutsummaryrefslogtreecommitdiffstats
path: root/src/include
Commit message (Collapse)AuthorAgeFilesLines
* Refactor cdbmake, add cdbmake_addv, cdb_hashvLaurent Bercot2023-07-031-4/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Apply fixes suggested by jjkLaurent Bercot2023-06-231-0/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Fix iter_func type; add tain_earliestLaurent Bercot2023-06-132-1/+7
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Better posixishard.hLaurent Bercot2023-06-091-1/+4
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add SKALIBS_NAME_MAXLaurent Bercot2023-06-091-0/+6
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Typo fixesLaurent Bercot2023-06-091-3/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add devino, refactor openwrite(v)ncloseLaurent Bercot2023-06-093-24/+52
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Still declare hiercopy_tmpLaurent Bercot2023-06-021-0/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Refactor to add hiercopy_loose (for s6-l-i)Laurent Bercot2023-06-011-1/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* More more avltree macro fixesLaurent Bercot2023-05-181-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* More avltree macro fixesLaurent Bercot2023-05-181-2/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add slurpn, refactor slurp, fix avltree/cdbmake bugs, add strerr_warnfLaurent Bercot2023-05-184-2/+62
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add selfpipe_fd(), refactor selfpipeLaurent Bercot2023-04-071-0/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* bugfix: typo in unix-timed.hLaurent Bercot2023-03-231-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add sals, several refactorsLaurent Bercot2023-02-091-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Define SKALIBS_PATH_MAXLaurent Bercot2023-01-311-0/+6
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Remove stdarg functions from strerr, everything is __VA_ARGS__ nowLaurent Bercot2023-01-131-5/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* More strerr.h fixesLaurent Bercot2022-12-181-4/+4
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* strerr.h fixesLaurent Bercot2022-12-181-12/+12
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Much better strerr revamp, with __VA_ARGS__Laurent Bercot2022-11-301-325/+210
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 2.13.0.0, revamp strerrLaurent Bercot2022-11-295-384/+356
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 2.12.1.0; add buffer_timed_put(s)Laurent Bercot2022-10-282-1/+5
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Better NSIG detection and fixLaurent Bercot2022-09-052-9/+13
| | | | | | | Incredibly enough, OpenBSD defines NSIG correctly, so our workaround was not accurate. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Export random_devurandom, fix APIsLaurent Bercot2022-06-082-3/+5
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Clean up / homogenize openreadnclose() familyLaurent Bercot2022-06-082-1/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add blake2s implementation to stdcryptoLaurent Bercot2022-06-012-0/+33
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add openc_*at functionsLaurent Bercot2022-05-301-8/+14
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add waitn_posix() and waitn_reap_posix()Laurent Bercot2022-04-151-0/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Remove uint32_func definitionLaurent Bercot2022-04-091-3/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 2.12.0.0. librandom revamp.Laurent Bercot2022-04-092-10/+24
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Bloat envdir with a noclamp optionLaurent Bercot2022-02-251-0/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add gccattr_nonstring, modernize gccattributes.hLaurent Bercot2021-12-191-12/+14
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add opendir_at, prepare for 2.11.1.0Laurent Bercot2021-12-041-0/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Axe iobufferLaurent Bercot2021-09-253-123/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add ipc_bind_reuse_permsLaurent Bercot2021-08-221-1/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add tain_infiniteLaurent Bercot2021-08-181-0/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add sig_altignore()2.11.0.0Laurent Bercot2021-07-291-0/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Huge incompatible changes.Laurent Bercot2021-07-2868-661/+536
| | | | | | | | | | | | - Obsolete skalibs/environ.h and skalibs/getpeereid.h removed. - rc4 and md5 removed. - All *_t types renamed to avoid treading on POSIX namespace. - subgetopt() renamed to lgetopt(). - signal functions reworked; skasigaction removed; sig_stack removed - Various functions removed: skaoffsetof(), selfpipe_untrap() - New posixplz function: munmap_void. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Hide cdb_find_state in the common caseLaurent Bercot2021-07-241-1/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add cdb_init_at and cdb_init_fromfd, rename cdb_readerLaurent Bercot2021-07-241-6/+7
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* New 2.11.0.0 branch with several modificationsLaurent Bercot2021-07-235-63/+62
| | | | | | | | - libbiguint removed - cdb_make changed to cdbmake (because different ui) - cdb redesigned Signed-off-by: Laurent Bercot <ska@appnovation.com>
* cdb always mmapsLaurent Bercot2021-06-291-5/+4
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* gccattributes.h: define gccattr_returns_twiceLaurent Bercot2021-06-141-0/+3
| | | | Signed-off-by: Jesse Young <jlyo@jlyo.org>
* doc: allreadwrite: document scatter/gatter functionsLaurent Bercot2021-06-141-3/+2
| | | | Signed-off-by: Jesse Young <jlyo@jlyo.org>
* Align infinity on 2^61Laurent Bercot2021-01-271-1/+1
|
* bugfix: genqdyn_n() definitionLaurent Bercot2021-01-121-3/+3
|
* Add mkptemp2()Laurent Bercot2020-12-091-0/+1
|
* Get rid of webipc.h and DJBUNIX_FLAG_*Laurent Bercot2020-12-094-94/+77
| | | | | | | | | | | | | | Decent semantic header separation is hard. It's always an ongoing process. Here socket.h always included webipc.h for listen(), and webipc.h always included djbunix.h for socket_internal() and socketpair_internal(). That's ugh. Just move all the socket stuff into one socket header. Of course, djbunix.h is still needed most of the time for fd_close() and other operations on fds, but those are generic anyway. Also, O_CLOEXEC exists everywhere now, so we can use it as well as O_NONBLOCK instead of redefining the flags in djbunix.h.
* Add documenting comments to exec.hLaurent Bercot2020-12-041-26/+19
|
* Revamp lock primitives; prepare for 2.10.0.0 instead of 2.9.4.0Laurent Bercot2020-11-292-7/+7
| | | | | | | | | | | flock() doesn't have a way to test for a lock without taking it. lockf() doesn't have shared locks. The only way to have both is fcntl(). So I rewrote all the locking stuff around fcntl(), and used the opportunity to change the interface. The point of changing the interface is to stop having to bother with the old one, so to hell with compatibility, let's just do a major bump.