aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstddjb
Commit message (Collapse)AuthorAgeFilesLines
* Add the alarm library, first draft.Laurent Bercot2016-10-246-2/+230
|
* Add child_spawn2Laurent Bercot2016-10-191-0/+151
|
* bugfix: child_spawn() error path now closes the right amount of fdsLaurent Bercot2016-10-191-1/+2
|
* Clean up and modernize librandom.Laurent Bercot2016-10-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | 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.
* 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>
* Help Solaris finds its own futimens() in its own assLaurent Bercot2016-04-271-0/+1
|
* futimes() is not POSIX, so add some ftmsLaurent Bercot2016-04-271-1/+4
|
* Add new sysdeps for futimens() and futimes(), adapt touch() implementationLaurent Bercot2016-04-271-0/+37
|
* Bugfix: exec the child when not SKALIBS_HASPOSIXSPAWN in child_spawn0 ↵Laurent Bercot2016-04-221-1/+1
| | | | (thanks eto)
* 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-052-0/+30
| | | | 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-1411-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-254-27/+69
|
* Bugfix: wrong storage size in socket_local46 (thanks Jesse Young)v2.3.6.0Laurent Bercot2015-07-261-4/+4
|
* - fd_close fixLaurent Bercot2015-07-202-17/+23
| | | | | - add openreadnclose_nb - rc for 2.3.6.0
* Appease compiler on .sun_family in ipc_recvLaurent Bercot2015-06-251-1/+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-026-0/+54
|
* C macros suck. Rewrote the case_diffb thing.Laurent Bercot2015-05-161-10/+1
|
* Typo fixes in case_diff*Laurent Bercot2015-05-162-3/+1
|
* - add bitarray_countLaurent Bercot2015-05-161-0/+20
| | | | | - add openwritevnclose_at - rc for 2.3.5.0
* - add stat_atLaurent Bercot2015-05-056-7/+27
| | | | | | - 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-0813-31/+19
| | | | - various fixes for --enable-libc-replacements
* buffer_fill cosmetic fixLaurent Bercot2015-03-271-2/+1
|
* - added sha512 (buggy, need to commit to test somewhere else)Laurent Bercot2015-03-271-1/+1
| | | | | - version bump (not a rc yet) - bugfix: buffer_get returned -1 EPIPE on short reads w/o EOF
* Applied Roman Kimov's fixesv2.3.1.3Laurent Bercot2015-03-133-4/+4
|
* Jesus, that OpenBSD bug is FUCKING ANNOYING.Laurent Bercot2015-03-092-0/+14
|
* - reset all signals to default in child_spawn*Laurent Bercot2015-03-093-6/+33
| | | | | - cosmetic fix in INSTALL - version: rc for 2.3.1.2
* Bugfix: iopause must check for EOVERFLOW, not ERANGELaurent Bercot2015-03-062-2/+2
|
* Add hiercopy and hiercopy_tmpv2.3.1.0Laurent Bercot2015-02-232-0/+154
|
* Bugfix: SKALIBS_ETC undefined (djbtime-internal.h didn't include config.h)v2.3.0.0Laurent Bercot2015-02-151-0/+1
| | | | -> leapsecs_add failed. Thanks Gorka Lertxundi for the report.
* - Add siovec_truncLaurent Bercot2015-02-0523-112/+174
| | | | | | | | - Add openwritevnclose - replace buffer_read/write with fd_readsv/writesv - add localtmn_from_tain_g - refactor cdb_make - rewrite buffer_getvall and buffer_putvall, with a bugfix
* It will work better with the new files >.>Laurent Bercot2015-02-015-0/+61
|
* Add allreadwritev and friendsLaurent Bercot2015-02-012-6/+2
|
* Bugfixes:v2.2.1.0Laurent Bercot2015-01-231-4/+1
| | | | | | | - seek_set now uses SEEK_SET (those functions are useless now, they will go at the next major version update) - skaclient_server_init now correctly sanitizes unixmessage_timed_receive
* - Added unixconnectionLaurent Bercot2015-01-195-3/+123
| | | | | - Added sig_name & sig_number (suggestion from Olivier Brunel) - version bumped to 2.2.1.0, rc
* Everybody loves OpenBSD and its _BSD_SOURCE-guarded EOVERFLOWLaurent Bercot2015-01-094-0/+20
|
* tai conversion functions overhaul.Laurent Bercot2015-01-0943-182/+199
| | | | | API change -> rc for 2.2.0.0 Doc updated.
* Fix uintXX_fmtlist and uintXX_scanlist includesLaurent Bercot2015-01-064-4/+4
|
* Remove the --enable-right-tz configure option.Laurent Bercot2015-01-025-43/+42
| | | | | | Make it a run-time autodetection instead. Update doc. Thanks to Paul Jarc for the suggestion.
* child_spawn1_internal fix for noposixspawnLaurent Bercot2014-12-211-1/+1
|
* Lots of cosmetic fixes.Laurent Bercot2014-12-2029-46/+44
| | | | sha256 documented.
* Cosmetic fixes in iobuffer (was looking for a bug, but it wasn't there)Laurent Bercot2014-12-203-5/+5
|
* Fix fd management in new child_spawn1, make socket nb for skaclientLaurent Bercot2014-12-182-14/+18
|
* fd leak fix in child_spawn1_internalLaurent Bercot2014-12-181-2/+2
|