Commit Graph

236 Commits (bc3d454dd6f46292f08f4f724203de22a85800ca)

Author SHA1 Message Date
Kim Alvefur 9234948602 util.ringbuffer: Fix typo in comment [codespell] 8 years ago
Kim Alvefur e698dcfc66 Add makefiles compatible with BSD make 8 years ago
Kim Alvefur 5b30abd000 util.signal: Fix loop (fixes #1047) 8 years ago
Kim Alvefur 4b1e3a2b85 util.signal: Use a static array to keep track of pending signals (fixes #1029) 8 years ago
Kim Alvefur df4e8ebbef Rename Makefile -> GNUmakefile to reflect dependency on GNU Make 8 years ago
Kim Alvefur 190964ec3e util.ringbuffer: Add method for discarding buffered data without returning it to lua 8 years ago
Kim Alvefur c4db055134 util.ringbuffer: Add various comments 8 years ago
Kim Alvefur 442fb34ca0 util.crand: Return early if a zero bytes are requested 8 years ago
Kim Alvefur b11baf8702 util.crand: Throw an error for sizes smaller than 1 byte 8 years ago
Kim Alvefur 49ac287d45 util.crand: Make it possible to use arc4random on Linux (needs libbsd) 8 years ago
Kim Alvefur a2f2567e8f util.crand: Use a small buffer on the stack for small pieces of random, should be faster 8 years ago
Kim Alvefur fa07c8f62b util.crand: Remove unneeded cast 8 years ago
Kim Alvefur 8d02dff4fd util.crand: Silence signedness warning 8 years ago
Kim Alvefur fb2b113803 util.crand: Only keep return value of getrandom() as the others don't return partial results 8 years ago
Kim Alvefur 1539346aad util.crand: Try getrandom() again until buffer is filled 8 years ago
Kim Alvefur d16e9db45c util.net: Add bindings to inet_ntop and inet_pton 8 years ago
Kim Alvefur c814174167 util.crand: Add comments about defines 8 years ago
Kim Alvefur 988c66bad6 util.crand: Apply formatter 8 years ago
Kim Alvefur 1138703ced util.crand: Reorder includes so system ones are first 8 years ago
Kim Alvefur ac6e7808c2 util.crand: Always include stdlib to be sure __GLIBC_PREREQ is defined 8 years ago
Kim Alvefur 45464dfc20 util.encodings: Use the 'idx' argument correctly [-Wunused-parameter] 8 years ago
Kim Alvefur 42cd234969 util.crand: Build with musl/non-glibc (can't have undefined argument-taking macros?) 9 years ago
Kim Alvefur 8866031922 util.encodings: Make limit lookup table a const (from Lua f2a813ae) 9 years ago
Kim Alvefur 1ea889fd17 util.signal: Enable all GNU features, _DEFAULT_SOURCE doesn't have the desired effect before glibc 2.19 9 years ago
Kim Alvefur 509f5da82d util.signal: Restore non-standard GNU "default" behaviour of signal(2) 9 years ago
Kim Alvefur d367c8c3ce util-src: Specify size of various tables to be allocated 9 years ago
Kim Alvefur 014ceb2aa3 util.pposix: Use correct type for limits [-Wconstant-conversion] 9 years ago
Kim Alvefur 8a9a5fe783 util.pposix: Limit meminfo to Linux until we can figure out how to get this info on other platforms 9 years ago
Kim Alvefur bfe1994258 util.ringbuffer: Change types of length related variables to size_t [-Wsign-compare] 9 years ago
Kim Alvefur db1a815198 Backed out changeset a3a4ed0d34f4 C99 is ok 9 years ago
Kim Alvefur 9956699193 util.crand: Only include getrandom shiv with glibc older than 2.25 9 years ago
Kim Alvefur 7fc0bff0d7 util.crand: Change argumen names to match some man page 9 years ago
Kim Alvefur 52968a85da util.crand: Move comment block 9 years ago
Kim Alvefur 2652d5d058 util.pposix, configure: Move _GNU_SOURCE macro into source files 9 years ago
Kim Alvefur 6c9aa91cf7 util.pposix: Expose ENOENT constant (usually 2, but you never know) 9 years ago
Kim Alvefur e7a2ecb01e util.pposix: Remove fallocate 9 years ago
Kim Alvefur 6e638c213f util.pposix: Add function for atomically appending data to a file 9 years ago
Kim Alvefur ecf80c11c1 util.pposix: Fix typo in comment 9 years ago
Kim Alvefur c6898e082b util.crand: Clarify that lua_error does not return 9 years ago
Kim Alvefur 0b7b8b674b util.crand: Throw error if OpenSSLs RNG is not seeded 9 years ago
Kim Alvefur 88eb09fba6 util-src/*.c: Attach pointer * to name instead of type 9 years ago
Kim Alvefur 233b8f217e util.ringbuffer: Remove address of buffer itself from __tostring since is now in the same struct 9 years ago
Kim Alvefur 5f26a96cc4 util-src: Make C modules assert that the Lua runtime matches what it was compiled for 9 years ago
Kim Alvefur 5b23d4ddc2 util.pposix: rfork() seems to be FreeBSD only (fixes #412) 9 years ago
Kim Alvefur 8cd92db7e6 util-src/*.c: Squeeze repeated blank lines 9 years ago
Kim Alvefur 11d31ff179 util.crand: TODOs 9 years ago
Kim Alvefur 6adfe1e743 util.crand: Comment about getrandom 9 years ago
Kim Alvefur 3a33321db7 util.crand: Add comment describing purpose of module 9 years ago
Kim Alvefur 600814a0f6 util.crand: Update copyright header 9 years ago
Kim Alvefur 8b8bf98c35 util.ringbuffer: Allocate buffer itself as part of userdata (simpler, single allocation, no need for __gc) 9 years ago