Commit Graph

231 Commits (d3bdcaeda0e621f05abaa6c8a86b52dc20a02859)

Author SHA1 Message Date
Kim Alvefur 36ff81d81a util.crand: Return early if a zero bytes are requested 8 years ago
Kim Alvefur 96d9651ece util.crand: Throw an error for sizes smaller than 1 byte 8 years ago
Kim Alvefur abb425e70f util.crand: Make it possible to use arc4random on Linux (needs libbsd) 8 years ago
Kim Alvefur da570eb0a4 util.crand: Use a small buffer on the stack for small pieces of random, should be faster 8 years ago
Kim Alvefur af554a9feb util.crand: Remove unneeded cast 8 years ago
Kim Alvefur bc2a2bbd4d util.crand: Silence signedness warning 8 years ago
Kim Alvefur ebeea12c82 util.crand: Only keep return value of getrandom() as the others don't return partial results 8 years ago
Kim Alvefur 991280175b util.crand: Try getrandom() again until buffer is filled 8 years ago
Kim Alvefur 5485202439 util.signal: Fix loop (fixes #1047) 8 years ago
Kim Alvefur 4816e879f8 util.net: Add bindings to inet_ntop and inet_pton 8 years ago
Kim Alvefur b60447fad6 util.crand: Add comments about defines 8 years ago
Kim Alvefur a29f404ece util.crand: Apply formatter 8 years ago
Kim Alvefur bfaca2ef00 util.crand: Reorder includes so system ones are first 8 years ago
Kim Alvefur a128e97e03 util.crand: Always include stdlib to be sure __GLIBC_PREREQ is defined 8 years ago
Kim Alvefur 27d99dd43b util.signal: Use a static array to keep track of pending signals (fixes #1029) 8 years ago
Kim Alvefur 8956f32a9c util.encodings: Use the 'idx' argument correctly [-Wunused-parameter] 8 years ago
Kim Alvefur 237f991e4f util.crand: Build with musl/non-glibc (can't have undefined argument-taking macros?) 9 years ago
Kim Alvefur 711e2c8713 util.encodings: Make limit lookup table a const (from Lua f2a813ae) 9 years ago
Kim Alvefur df46957185 util.signal: Enable all GNU features, _DEFAULT_SOURCE doesn't have the desired effect before glibc 2.19 9 years ago
Kim Alvefur bde567fd42 util.signal: Restore non-standard GNU "default" behaviour of signal(2) 9 years ago
Kim Alvefur 384687ffa4 util-src: Specify size of various tables to be allocated 9 years ago
Kim Alvefur 255423ab56 util.pposix: Use correct type for limits [-Wconstant-conversion] 9 years ago
Kim Alvefur 3c789f1ac7 util.pposix: Limit meminfo to Linux until we can figure out how to get this info on other platforms 9 years ago
Kim Alvefur 2246bd21b5 util.ringbuffer: Change types of length related variables to size_t [-Wsign-compare] 9 years ago
Kim Alvefur 3bf3935e78 Backed out changeset a3a4ed0d34f4 C99 is ok 9 years ago
Kim Alvefur 956c50882b util.crand: Only include getrandom shiv with glibc older than 2.25 9 years ago
Kim Alvefur 7dba99875f util.crand: Change argumen names to match some man page 9 years ago
Kim Alvefur dfb72918f3 util.crand: Move comment block 9 years ago
Kim Alvefur d205c78327 util.pposix, configure: Move _GNU_SOURCE macro into source files 9 years ago
Kim Alvefur 82755e48e8 util.pposix: Expose ENOENT constant (usually 2, but you never know) 9 years ago
Kim Alvefur d6184b31a3 util.pposix: Remove fallocate 9 years ago
Kim Alvefur e8b57d789b util.pposix: Add function for atomically appending data to a file 9 years ago
Kim Alvefur 2b4028fd7e util.pposix: Fix typo in comment 9 years ago
Kim Alvefur 4707d5665d util.crand: Clarify that lua_error does not return 9 years ago
Kim Alvefur a330175614 util.crand: Throw error if OpenSSLs RNG is not seeded 9 years ago
Kim Alvefur 40d8e257d8 util-src/*.c: Attach pointer * to name instead of type 9 years ago
Kim Alvefur 3e41ed8099 util.ringbuffer: Remove address of buffer itself from __tostring since is now in the same struct 9 years ago
Kim Alvefur 5b10d245e3 util-src: Make C modules assert that the Lua runtime matches what it was compiled for 9 years ago
Kim Alvefur 4bacd7b4fc util.pposix: rfork() seems to be FreeBSD only (fixes #412) 9 years ago
Kim Alvefur 0d28378a7a util-src/*.c: Squeeze repeated blank lines 9 years ago
Kim Alvefur 8bcfc38374 util.crand: TODOs 9 years ago
Kim Alvefur 2b7fcfdb13 util.crand: Comment about getrandom 9 years ago
Kim Alvefur d5a5325526 util.crand: Add comment describing purpose of module 9 years ago
Kim Alvefur 7b85ad2d53 util.crand: Update copyright header 9 years ago
Kim Alvefur c8e4e17b46 util.ringbuffer: Allocate buffer itself as part of userdata (simpler, single allocation, no need for __gc) 9 years ago
Kim Alvefur 26d03a9a1a util.ringbuffer: Remove unused macros 9 years ago
Kim Alvefur 13f287acb9 util.crand: Raise hard errors 9 years ago
Kim Alvefur 8e052e0857 util.crand: Remove seeding 9 years ago
Kim Alvefur a59ab44459 util.crand: Let Lua handle allocation, freeing and error handling for buffer 9 years ago
Kim Alvefur 41485b40ab util.crand: Switch to luaL_checkinteger since checkint is deprecated in Lua 5.3 9 years ago