summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2022-06-23 Add runtime fallback for GRND_INSECURELaurent Bercot
The grndinsecure sysdep is only build-time tested and returns yes if the kernel headers declare GRND_INSECURE. That is a problem because the kernel headers are most likely provided by the toolchain and do not reflect the exact capabilities of the run-time kernel. If the run-time kernel doesn't support that option, getrandom() fails. That made random_buf_early() busyloop. To avoid that, we now fallback to random_devurandom() as an implementation of random_buf_early() if getrandom() fails when used with GRND_INSECURE. This adds a slight amount of overhead to random_buf_early(), so it's probably better to just disable the sysdep at build time if you're making binaries that will run on older kernels. Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-06-08 Export random_devurandom, fix APIsLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-06-08 Clean up / homogenize openreadnclose() familyLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-06-04 Remove unused variable in generic selfpipe_trapLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-06-01 Add blake2s implementation to stdcryptoLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-06-01 Rework endianness conversion primitivesLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-05-30 Add openc_*at functionsLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-04-15 Add waitn_posix() and waitn_reap_posix()Laurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-04-09 Remove uint32_func definitionLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-04-09 Prepare for 2.12.0.0. librandom revamp.Laurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-03-27 Add sysdep for GRND_INSECURELaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-03-27 Don't write to /dev/urandom. (It's useless or even harmful.)Laurent Bercot
2022-02-27 Fix envdir_noclampLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-02-25 Bloat envdir with a noclamp optionLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-02-25 Don't autoshrink after slurpingLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-02-17 Full errno paranoia in selfpipe signal handlerLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-12-19 Add gccattr_nonstring, modernize gccattributes.hLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-12-04 Add opendir_at, prepare for 2.11.1.0Laurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-10-30 Don't return voidLaurent Bercot
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>
2021-09-25 Axe iobufferLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-09-02 Don't forget child_spawn eitherLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-09-02 Don't forget textclient_commandvLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-09-02 Make textclient_command work with errno > 127Laurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-09-02 Infinite recursion my ass cheeksLaurent Bercot
Sometimes clang warnings have a point. Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-08-26 fix selfpipe_tophalf typeLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-08-22 Add ipc_bind_reuse_permsLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-08-18 Add tain_infiniteLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-08-18 Add some ip46 macrosLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-07-29 Add sig_altignore()2.11.0.0Laurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-07-28 Huge incompatible changes.Laurent Bercot
- 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>
2021-07-24 Don't use dirfd as an identifierLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-07-24 Hide cdb_find_state in the common caseLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-07-24 Add cdb_init_at and cdb_init_fromfd, rename cdb_readerLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-07-23 New 2.11.0.0 branch with several modificationsLaurent Bercot
- libbiguint removed - cdb_make changed to cdbmake (because different ui) - cdb redesigned Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-07-21 Save errno when freeing a cdbLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-06-30 bugfix: offset in cdb mmapLaurent Bercot
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>
2021-06-29 cdb always mmapsLaurent Bercot
Signed-off-by: Laurent Bercot <ska@appnovation.com>
2021-06-14 gccattributes.h: define gccattr_returns_twiceLaurent Bercot
Signed-off-by: Jesse Young <jlyo@jlyo.org>
2021-06-14 doc: allreadwrite: document scatter/gatter functionsLaurent Bercot
Signed-off-by: Jesse Young <jlyo@jlyo.org>
2021-05-14 Cosmetic fixesLaurent Bercot
2021-02-13 bugfix: ipc_bind_reuse_lock must ignore umaskLaurent Bercot
2021-01-27 Align infinity on 2^61Laurent Bercot
2021-01-15 Don't touch /dev/urandom when getrandom() existsLaurent Bercot
2021-01-12 bugfix: genqdyn_n() definitionLaurent Bercot
2020-12-14 Add chroot sysdep, fix endianness sysdep string in .hLaurent Bercot
2020-12-09 Add mkptemp2()Laurent Bercot
2020-12-09 Get rid of webipc.h and DJBUNIX_FLAG_*Laurent Bercot
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.
2020-12-07 Some trivial bugfixes and cleanupsLaurent Bercot
2020-12-04 Fix iobufferk_init on recent Linux; remove last superfluous coeLaurent Bercot
2020-12-04 Add documenting comments to exec.hLaurent Bercot