aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* version: 2.12.0.1v2.12.0.1Laurent Bercot2022-06-231-0/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 2.12.0.1Laurent Bercot2022-06-234-2/+14
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add runtime fallback for GRND_INSECURELaurent Bercot2022-06-231-3/+13
| | | | | | | | | | | | | | | | | | | 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>
* version: 2.12.0.0v2.12.0.0Laurent Bercot2022-06-141-1/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Export random_devurandom, fix APIsLaurent Bercot2022-06-086-17/+9
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Clean up / homogenize openreadnclose() familyLaurent Bercot2022-06-089-42/+40
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Remove unused variable in generic selfpipe_trapLaurent Bercot2022-06-041-1/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add blake2s implementation to stdcryptoLaurent Bercot2022-06-018-1/+181
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Rework endianness conversion primitivesLaurent Bercot2022-06-0153-108/+174
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add openc_*at functionsLaurent Bercot2022-05-3019-18/+130
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add waitn_posix() and waitn_reap_posix()Laurent Bercot2022-04-159-21/+70
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Doc fixLaurent Bercot2022-04-111-1/+1
| | | | 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-0929-338/+279
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add sysdep for GRND_INSECURELaurent Bercot2022-03-272-0/+17
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Don't write to /dev/urandom. (It's useless or even harmful.)Laurent Bercot2022-03-272-7/+1
|
* Doc fixLaurent Bercot2022-03-201-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Doc fixesLaurent Bercot2022-03-163-5/+5
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* version: 2.11.2.0v2.11.2.0Laurent Bercot2022-03-081-1/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Fix envdir_noclampLaurent Bercot2022-02-271-3/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 2.11.2.0Laurent Bercot2022-02-254-2/+21
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Bloat envdir with a noclamp optionLaurent Bercot2022-02-256-78/+210
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Don't autoshrink after slurpingLaurent Bercot2022-02-251-12/+7
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Full errno paranoia in selfpipe signal handlerLaurent Bercot2022-02-171-0/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Apply user-provided CPPFLAGS, CFLAGS and LDFLAGS during autodetectionLaurent Bercot2022-01-242-2/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* genqdyn doc fix (thanks obarun)Laurent Bercot2022-01-021-9/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* version: 2.11.1.0v2.11.1.0Laurent Bercot2021-12-211-0/+1
| | | | 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>
* configure: add var control tweakLaurent Bercot2021-12-051-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add opendir_at, prepare for 2.11.1.0Laurent Bercot2021-12-048-5/+46
| | | | 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>
* Doc fixesLaurent Bercot2021-09-292-23/+122
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* version: 2.11.0.0v2.11.0.0Laurent Bercot2021-09-261-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Fix fd_cat/n docLaurent Bercot2021-09-261-2/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Axe iobufferLaurent Bercot2021-09-2525-689/+33
| | | | 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-224-4/+24
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add tain_infiniteLaurent Bercot2021-08-183-0/+7
| | | | 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-293-0/+17
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Huge incompatible changes.Laurent Bercot2021-07-28367-1726/+1091
| | | | | | | | | | | | - 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-244-53/+64
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add cdb_init_at and cdb_init_fromfd, rename cdb_readerLaurent Bercot2021-07-247-33/+57
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* New 2.11.0.0 branch with several modificationsLaurent Bercot2021-07-2358-1171/+285
| | | | | | | | - 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>