Commit Graph

217 Commits (0ff1619ea4e2a6702a3fb70135fb656efd64790b)

Author SHA1 Message Date
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 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 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 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 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 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
Kim Alvefur d4c65d2358 util.ringbuffer: Remove unused macros 9 years ago
Kim Alvefur d21acaaf66 util.crand: Raise hard errors 9 years ago
Kim Alvefur 7a55156061 util.crand: Remove seeding 9 years ago
Kim Alvefur 4645eae478 util.crand: Let Lua handle allocation, freeing and error handling for buffer 9 years ago
Kim Alvefur 7181ae5f4f util.crand: Switch to luaL_checkinteger since checkint is deprecated in Lua 5.3 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 cf3f198a22 configure: Move -ggdb flag here from util-src/Make 10 years ago
Kim Alvefur 0606152051 Move C compiler flag -pedantic from Makefile to configure 10 years ago
Kim Alvefur 7373788d27 util-src/Makefile: Remove redundant -Wall (already set by configure) 10 years ago
Kim Alvefur abc0f19d31 util.table: Move loop variable to top of function for C89 compatibility 10 years ago
Matthew Wild 63f6018ef9 util.table: Add pack() function (this is already available in Lua 5.2+) 10 years ago
Kim Alvefur 0fd7323ab7 util.pposix: Ask for shared file descriptor table using rfork() on *BSD (fixes #412) 10 years ago
Kim Alvefur be7652fe78 util.crand: Silence compiler warning 10 years ago
Kim Alvefur b480592504 util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias) 10 years ago
Kim Alvefur 6ee4f6f618 util.crand: C binding to one of OpenSSL, Linux getrandom() or OpenBSD arc4random() CSPRNG 10 years ago
Kim Alvefur b6caeb1f93 Add util.ringbuffer, a ringbuffer with a file handle like interface 10 years ago
Kim Alvefur 8e63a2bd3b util.pposix: Expose the uname GNU extension field 'domainname' 10 years ago
Kim Alvefur 01328b1495 configure,util-src/Makefile: Make a variable that includes -l for OpenSSL (like with IDNA_LIBS) 10 years ago
Kim Alvefur bc6588bd31 util-src/Makefile: Remove redundant variables (set in config.unix already) 10 years ago