aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* random_init: do not fail if we can't write to /dev/urandomLaurent Bercot2016-11-031-4/+3
|
* More strict test for SKALIBS_HASTIMER (must have struct itimerspec and ↵Laurent Bercot2016-10-241-2/+4
| | | | struct sigevent too)
* Add the alarm library, first draft.Laurent Bercot2016-10-2410-2/+266
|
* This one escaped the previous commit: random_init changesLaurent Bercot2016-10-241-10/+14
|
* Better random_uint32 uniformity algorithmLaurent Bercot2016-10-191-30/+9
|
* Add child_spawn2Laurent Bercot2016-10-192-0/+160
|
* bugfix: child_spawn() error path now closes the right amount of fdsLaurent Bercot2016-10-191-1/+2
|
* Fix headers in random_init.c; add a workaround for (pathological) ↵Laurent Bercot2016-10-161-0/+6
| | | | getrandom() without /dev/urandom
* More typo fixingLaurent Bercot2016-10-142-1/+2
|
* Add a cast to arc4random_addrandom invocation to make clang happyLaurent Bercot2016-10-141-1/+1
|
* Include skalibs/nonposix.h so BSDs can find arc4randomLaurent Bercot2016-10-143-0/+4
|
* Clean up and modernize librandom.Laurent Bercot2016-10-1463-992/+334
| | | | | | | | | | | | | | | | | | | | | | Correct random number generation has historically been suprisingly painful to achieve. There was no standard, every system behaved in a subtly different way, and there were a few userland initiatives to get decent randomness, all incompatible of course. The situation is a bit better now, we're heading towards some standardization. The arc4random() series of functions is a good API, and available on a lot of systems - unfortunately not Linux, but on Linux the new getrandom() makes using /dev/random obsolete. So I removed the old crap in librandom, dropped EGD support, dropped dynamic backend selection, made a single API series (random_* instead of goodrandom_* and badrandom_*), added an arc4random backend and a getrandom backend, and defaulted to /dev/urandom backed up by SURF in the worst case. This should be much smaller and logical. However, it's a major API break, so the skarnet.org stack will be changed to adapt.
* ipc_timed_send workaround for the usual OpenBSD braindead headersLaurent Bercot2016-07-241-1/+4
|
* Actually call ipc_timed_recv ipc_timed_recvLaurent Bercot2016-07-202-3/+3
|
* Add ipc_timed_recvLaurent Bercot2016-07-203-0/+33
|
* Add ipc_timed_sendLaurent Bercot2016-07-202-0/+34
|
* add new leap second: 2016-12-31 23:59:60 UTCLaurent Bercot2016-07-171-3/+4
|
* bitarray_not: Fix skipping a byteOlivier Brunel2016-05-141-1/+1
| | | | Signed-off-by: Olivier Brunel <jjk@jjacky.com>
* Fix tryfutimens.c header inclusion. The test should be good now...Laurent Bercot2016-04-271-0/+4
|
* Help Solaris finds its own futimens() in its own assLaurent Bercot2016-04-272-3/+6
|
* Even less standards for futimes()Laurent Bercot2016-04-271-0/+2
|
* futimes() is not POSIX, so add some ftmsLaurent Bercot2016-04-272-1/+8
|
* Add new sysdeps for futimens() and futimes(), adapt touch() implementationLaurent Bercot2016-04-273-0/+60
|
* Bugfix: exec the child when not SKALIBS_HASPOSIXSPAWN in child_spawn0 ↵Laurent Bercot2016-04-221-1/+1
| | | | (thanks eto)
* Fix closecb support wherever a unixmessage may get dropped; add closecb ↵Laurent Bercot2016-04-228-15/+25
| | | | support to unixconnection
* Tentative re-commit of the closecb featureLaurent Bercot2016-02-025-11/+39
|
* Revert " Add support for advanced closing callbacks to ↵Laurent Bercot2016-02-025-39/+11
| | | | | | | | unixmessage_sender_flush." This reverts commit c9c7e241a7b68f67e0cc8a7d3874510dced532d6. (something is segfaulting, reverting until I find the fix)
* Add support for advanced closing callbacks to unixmessage_sender_flush.Laurent Bercot2016-01-185-11/+39
| | | | | (Typically, this will be used for refcounting when broadcasting copies of the same fd.)
* Fix/clarify utilisations of 'char' (thanks Esben Haabendal)Laurent Bercot2016-01-145-10/+10
|
* Add bitarray_first{clear,set}_skip (thx jjk)Laurent Bercot2016-01-053-0/+35
| | | | version: rc for 2.3.9.0 after Makefile fix
* Fix incorrect clear/set when b&7 = 0 in bitarray_clearsetn (thx jjk)Laurent Bercot2016-01-051-1/+1
|
* Remove printing of useless nonvariable option char in sgetopt (thx Michael Zuo)Laurent Bercot2015-11-041-2/+0
|
* Fix comments in make-leapseconds_tableLaurent Bercot2015-10-211-1/+1
|
* - Remove /etc/leapsecs.datv2.3.8.0Laurent Bercot2015-10-1412-91/+59
| | | | | | - Publish tools to create the leap second table as a .c - Simplify functions using leap seconds - rc for 2.3.8.0
* - Fix double macro expansion bug in cbuffer_get* and cbuffer_put*Laurent Bercot2015-10-054-4/+12
| | | | - rc for 2.3.7.1
* Add touch, filecopy_unsafe, filecopy_suffixLaurent Bercot2015-08-255-27/+72
|
* Add atomic_rm_rf and atomic_rm_rf_tmpLaurent Bercot2015-08-134-2/+46
|
* Bugfix: wrong storage size in socket_local46 (thanks Jesse Young)v2.3.6.0Laurent Bercot2015-07-261-4/+4
|
* - fd_close fixLaurent Bercot2015-07-203-17/+24
| | | | | - add openreadnclose_nb - rc for 2.3.6.0
* - sysdeps for strnlen (Solaris... sigh)Laurent Bercot2015-07-132-1/+12
| | | | - rc for 2.3.5.2
* Appease compiler on .sun_family in ipc_recvLaurent Bercot2015-06-251-1/+1
|
* - Update leap second tablev2.3.5.1Laurent Bercot2015-06-081-0/+0
| | | | - version: 2.3.5.1
* Bugfix: remove overflow checking in tai?_add/subv2.3.5.0Laurent Bercot2015-06-035-18/+17
| | | | (because it doesn't work with relative times, duh!)
* Turn non-linear buffer macros calling str_len() into functions. >.>Laurent Bercot2015-06-027-6/+60
|
* C macros suck. Rewrote the case_diffb thing.Laurent Bercot2015-05-162-13/+4
|
* Typo fixes in case_diff*Laurent Bercot2015-05-162-3/+1
|
* - add bitarray_countLaurent Bercot2015-05-164-0/+48
| | | | | - add openwritevnclose_at - rc for 2.3.5.0
* OpenBSD sucks, but everyone knew this already.v2.3.4.0Laurent Bercot2015-05-051-0/+3
|
* - add stat_atLaurent Bercot2015-05-059-13/+118
| | | | | | - make case_diff* work as a function is more cases - make sig_number case-insensitive - make child signal unblocking work in child_spawn*
* - added str_nlen()Laurent Bercot2015-04-0816-35/+25
| | | | - various fixes for --enable-libc-replacements