aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
Commit message (Collapse)AuthorAgeFilesLines
...
* | util.ringbuffer: Fix typo in comment [codespell]Kim Alvefur2018-04-061-1/+1
| |
* | Add makefiles compatible with BSD makeKim Alvefur2018-03-111-0/+44
| |
* | Rename Makefile -> GNUmakefile to reflect dependency on GNU MakeKim Alvefur2017-10-311-1/+1
| |
* | util.ringbuffer: Add method for discarding buffered data without returning ↵Kim Alvefur2018-02-241-0/+23
| | | | | | | | it to lua
* | util.ringbuffer: Add various commentsKim Alvefur2018-02-241-0/+19
| |
* | util.crand: Return early if a zero bytes are requestedKim Alvefur2017-12-031-1/+5
| |
* | util.crand: Throw an error for sizes smaller than 1 byteKim Alvefur2017-12-031-1/+3
| |
* | util.crand: Make it possible to use arc4random on Linux (needs libbsd)Kim Alvefur2017-12-031-1/+5
| |
* | util.crand: Use a small buffer on the stack for small pieces of random, ↵Kim Alvefur2017-12-031-1/+11
| | | | | | | | should be faster
* | util.crand: Remove unneeded castKim Alvefur2017-12-031-1/+1
| |
* | util.crand: Silence signedness warningKim Alvefur2017-12-031-1/+1
| |
* | util.crand: Only keep return value of getrandom() as the others don't return ↵Kim Alvefur2017-12-021-14/+6
| | | | | | | | partial results
* | util.crand: Try getrandom() again until buffer is filledKim Alvefur2017-12-021-5/+15
| |
* | Merge 0.10->trunkKim Alvefur2017-12-011-2/+2
|\|
| * util.signal: Fix loop (fixes #1047)Kim Alvefur2017-11-301-2/+2
| | | | | | | | | | A pre-commit version probably started with i = nsig and counted down, then an incomplete change to counting up was done
* | util.net: Add bindings to inet_ntop and inet_ptonKim Alvefur2017-11-261-0/+63
| |
* | util.crand: Add comments about definesKim Alvefur2017-12-011-0/+2
| |
* | util.crand: Apply formatterKim Alvefur2017-12-011-0/+1
| |
* | util.crand: Reorder includes so system ones are firstKim Alvefur2017-12-011-3/+2
| |
* | util.crand: Always include stdlib to be sure __GLIBC_PREREQ is definedKim Alvefur2017-12-011-3/+3
|/
* util.signal: Use a static array to keep track of pending signals (fixes #1029)Kim Alvefur2017-11-141-23/+12
|
* util.encodings: Use the 'idx' argument correctly [-Wunused-parameter]Kim Alvefur2017-10-051-1/+1
|
* util.crand: Build with musl/non-glibc (can't have undefined argument-taking ↵Kim Alvefur2017-04-251-0/+4
| | | | macros?)
* util.pposix: Remove fallocateKim Alvefur2017-02-281-60/+1
|
* util.pposix: Add function for atomically appending data to a fileKim Alvefur2017-03-011-1/+64
|
* util.encodings: Make limit lookup table a const (from Lua f2a813ae)Kim Alvefur2017-03-221-1/+1
|
* util.signal: Enable all GNU features, _DEFAULT_SOURCE doesn't have the ↵Kim Alvefur2017-03-121-1/+1
| | | | desired effect before glibc 2.19
* util.signal: Restore non-standard GNU "default" behaviour of signal(2)Kim Alvefur2017-03-111-1/+1
|
* util-src: Specify size of various tables to be allocatedKim Alvefur2017-03-095-7/+7
|
* util.pposix: Use correct type for limits [-Wconstant-conversion]Kim Alvefur2017-03-071-1/+1
|
* util.pposix: Limit meminfo to Linux until we can figure out how to get this ↵Kim Alvefur2017-03-071-1/+1
| | | | info on other platforms
* util.ringbuffer: Change types of length related variables to size_t ↵Kim Alvefur2017-03-021-2/+2
| | | | [-Wsign-compare]
* Backed out changeset a3a4ed0d34f4 C99 is okKim Alvefur2017-03-021-2/+1
|
* util.crand: Only include getrandom shiv with glibc older than 2.25Kim Alvefur2017-03-021-1/+6
|
* util.crand: Change argumen names to match some man pageKim Alvefur2017-03-021-2/+2
|
* util.crand: Move comment blockKim Alvefur2017-03-011-4/+4
|
* util.pposix, configure: Move _GNU_SOURCE macro into source filesKim Alvefur2017-03-014-12/+17
|
* util.pposix: Expose ENOENT constant (usually 2, but you never know)Kim Alvefur2017-03-011-0/+5
|
* util.pposix: Fix typo in commentKim Alvefur2017-02-261-1/+1
|
* util.crand: Clarify that lua_error does not returnKim Alvefur2017-02-251-1/+1
|
* util.crand: Throw error if OpenSSLs RNG is not seededKim Alvefur2017-02-251-4/+6
|
* util-src/*.c: Attach pointer * to name instead of typeKim Alvefur2017-02-128-138/+162
|
* util.ringbuffer: Remove address of buffer itself from __tostring since is ↵Kim Alvefur2017-02-121-1/+1
| | | | now in the same struct
* util-src/*.c: Squeeze repeated blank linesKim Alvefur2017-01-235-8/+0
|
* util.crand: TODOsKim Alvefur2017-01-221-1/+2
|
* util.crand: Comment about getrandomKim Alvefur2017-01-221-1/+4
|
* util.crand: Add comment describing purpose of moduleKim Alvefur2017-01-221-0/+6
|
* util.crand: Update copyright headerKim Alvefur2017-01-221-3/+3
|
* util.ringbuffer: Allocate buffer itself as part of userdata (simpler, single ↵Kim Alvefur2017-01-221-19/+3
| | | | allocation, no need for __gc)
* util.ringbuffer: Remove unused macrosKim Alvefur2017-01-221-3/+0
|