aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Full errno paranoia in selfpipe signal handlerLaurent Bercot2022-02-171-0/+3
| | | | 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-043-2/+19
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Don't return voidLaurent Bercot2021-10-301-1/+1
| | | | | | | Error by: Studio 12.6 Sun C 5.15 SunOS_i386 2017/05/30 Reported by schmonz Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Axe iobufferLaurent Bercot2021-09-2520-641/+27
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Don't forget child_spawn eitherLaurent Bercot2021-09-025-22/+22
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Don't forget textclient_commandvLaurent Bercot2021-09-021-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Make textclient_command work with errno > 127Laurent Bercot2021-09-021-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Infinite recursion my ass cheeksLaurent Bercot2021-09-021-1/+1
| | | | | | Sometimes clang warnings have a point. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* fix selfpipe_tophalf typeLaurent Bercot2021-08-261-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add ipc_bind_reuse_permsLaurent Bercot2021-08-223-3/+22
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add tain_infiniteLaurent Bercot2021-08-182-0/+6
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add some ip46 macrosLaurent Bercot2021-08-182-0/+26
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add sig_altignore()2.11.0.0Laurent Bercot2021-07-292-0/+16
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Huge incompatible changes.Laurent Bercot2021-07-28364-1687/+1065
| | | | | | | | | | | | - 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>
* Don't use dirfd as an identifierLaurent Bercot2021-07-241-2/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Hide cdb_find_state in the common caseLaurent Bercot2021-07-243-52/+62
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add cdb_init_at and cdb_init_fromfd, rename cdb_readerLaurent Bercot2021-07-246-31/+54
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* New 2.11.0.0 branch with several modificationsLaurent Bercot2021-07-2349-736/+240
| | | | | | | | - libbiguint removed - cdb_make changed to cdbmake (because different ui) - cdb redesigned Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Save errno when freeing a cdbLaurent Bercot2021-07-211-1/+8
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* bugfix: offset in cdb mmapLaurent Bercot2021-06-302-3/+3
| | | | | | | An offset of -1 worked because most OSes treat it as 0, but DS9k would fail on it. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* cdb always mmapsLaurent Bercot2021-06-294-43/+29
| | | | 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>
* Cosmetic fixesLaurent Bercot2021-05-143-10/+9
|
* bugfix: ipc_bind_reuse_lock must ignore umaskLaurent Bercot2021-02-131-1/+2
|
* Align infinity on 2^61Laurent Bercot2021-01-271-1/+1
|
* Don't touch /dev/urandom when getrandom() existsLaurent Bercot2021-01-151-9/+8
|
* bugfix: genqdyn_n() definitionLaurent Bercot2021-01-121-3/+3
|
* Add chroot sysdep, fix endianness sysdep string in .hLaurent Bercot2020-12-141-0/+20
|
* Add mkptemp2()Laurent Bercot2020-12-093-15/+26
|
* Get rid of webipc.h and DJBUNIX_FLAG_*Laurent Bercot2020-12-0929-141/+139
| | | | | | | | | | | | | | 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.
* Some trivial bugfixes and cleanupsLaurent Bercot2020-12-079-8/+14
|
* Fix iobufferk_init on recent Linux; remove last superfluous coeLaurent Bercot2020-12-043-20/+9
|
* 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-2912-191/+74
| | | | | | | | | | | 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.
* Do not use skalibs/environ.hLaurent Bercot2020-11-261-9/+9
|
* trivial bugfixLaurent Bercot2020-11-261-1/+1
|
* child_spawn cleanup, configure cleanupLaurent Bercot2020-11-255-119/+119
|
* Fix typosLaurent Bercot2020-11-251-9/+9
|
* Complete revamp of the pathexec functionsLaurent Bercot2020-11-2451-181/+392
| | | | | | | | | | | | | | | | | - pathexec_run is now called exec_ae a for provided file name (default: argv[0]) e for provided envp (default: environ) - pathexec is now called mexec. m for merge environment. Option letters are: a for provided file name (default: argv[0]) e for provided envp (default: environ) f for provided envp *and* length of the envp m for provided modif string plus its length (the length is always needed because the modifs are null-terminated) n for provided modif string, length *and* number of modifs - functions have a foo0 version for _exit(0) when argv[0] is null - functions have a xfoo version to die if the exec fails - and a xfoo0 - Compatibility #defines and #includes are there until the next major bump
* Save syscalls on coe and ndelay_onLaurent Bercot2020-11-234-6/+4
|
* Add fd_shutdown()Laurent Bercot2020-11-202-0/+15
|
* Add ipc_bind_reuse_lock, rewrite ipc_bind_reuse to use itLaurent Bercot2020-11-083-7/+31
|
* remove non-working links in libbiguintLaurent Bercot2020-11-082-2/+1
|
* Refactor textmessage/textclient with channel creation around ancil_*Laurent Bercot2020-10-268-73/+115
|
* Separate and expose ancil_recv_fd/ancil_send_fdLaurent Bercot2020-10-2626-115/+157
| | | | | | | The goal is to make late channel creation easy, as opposed to textclient which always creates a new channel at start time. This commit also moves posixishard.h inclusions as late as possible.
* Change new function names to openc_*; update deps.makLaurent Bercot2020-10-2614-23/+23
|
* Prepare for 2.9.4.0; add open*coe() functions.Laurent Bercot2020-10-2614-6/+99
|
* Add stralloc_readyplus_tuned, fix overflow on stralloc_readyplusLaurent Bercot2020-09-172-1/+14
|