Commit Graph

316 Commits (bc402b6409639f130f2ef7f13c9e240194de859c)

Author SHA1 Message Date
Kim Alvefur 592ccd8233 util.time: Allow for already set constant 8 years ago
Kim Alvefur 5485202439 util.signal: Fix loop (fixes #1047) 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 7f1be1b938 util.time: Add monotonic time 9 years ago
Kim Alvefur b0e0a1d487 util.time: Convert to C 9 years ago
Emmanuel Gil Peyrot 2363ba3749 encodings: Explicitly say that base64 decoding falls through in a switch, fixes a warning in gcc 7+. 8 years ago
Emmanuel Gil Peyrot c1be2da977 pposix: Generate an error when a passed string isn’t "unlimited". 8 years ago
Emmanuel Gil Peyrot 1a23a874bc pposix, signal: Ignore unused arguments. 8 years ago
Emmanuel Gil Peyrot 9d9392a941 net, pposix, signal: Check for redefined defines, fix warnings. 8 years ago
Kim Alvefur 39c7ba2a8f util.pposix: Use freopen(3) when replacing standard IO streams (thanks ratchetfreak) 8 years ago
Kim Alvefur 1eb7584483 util.ringbuffer: Fix typo in comment [codespell] 8 years ago
Kim Alvefur cdd71f28ac Add makefiles compatible with BSD make 8 years ago
Kim Alvefur e156c05ad4 Rename Makefile -> GNUmakefile to reflect dependency on GNU Make 8 years ago
Kim Alvefur 28ba10b6b4 util.ringbuffer: Add method for discarding buffered data without returning it to lua 8 years ago
Kim Alvefur a92cdf75b1 util.ringbuffer: Add various comments 8 years ago
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 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 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