Commit Graph

268 Commits (c19a8ef9ff319d31991e1dd8a23bdd9efb9389bb)

Author SHA1 Message Date
Matthew Wild 3bc2c02797 util.xpcall, util.compat: Add non-hacky multi-argument xpcall() for Lua 5.1 7 years ago
Kim Alvefur 6d12622b2a net.server_epoll: Special handling of signal interrupts 7 years ago
Kim Alvefur ec7fb3ee61 net.server_epoll: Ignore ENOENT when deregitering socket 7 years ago
Kim Alvefur 6f088c5034 net.server_epoll: Graceful handling of registering already added socket 7 years ago
Kim Alvefur dd8a4ff498 util.poll: Fix inverted logic 7 years ago
Kim Alvefur ea072c9adb util.poll: Handle failed epoll FD creation 7 years ago
Kim Alvefur dc9800c929 util.poll: Early return from __gc in case of no valid epoll FD 7 years ago
Kim Alvefur 080fdb85d2 util.poll: Increase max epoll events per call 7 years ago
Kim Alvefur 34be9eaebf util.poll: Zero FD sets watched for errors on creation 7 years ago
Kim Alvefur e70b1af98a net.poll: Guard against negative or too large FDs 7 years ago
Kim Alvefur b39130c595 util.poll: Fix missing return for adding duplicate FD 7 years ago
Kim Alvefur 1da6bcc301 util.poll: Tweak metatable name field 7 years ago
Kim Alvefur 3e48ac275a util.poll: Fix monitoring of socket exceptions in select mode 7 years ago
Kim Alvefur 128f7d4593 util.poll: Lua 5.1 compat 7 years ago
Kim Alvefur afea46904d util.poll: Remove 'inline' from function declaration 7 years ago
Kim Alvefur e6797cc6b2 util.pposix: Fix or silence a warning on OS X (#1202) 7 years ago
Kim Alvefur 4d3ba7e407 util.pposix: Fix building on OS X (#1202) 8 years ago
Kim Alvefur a638626334 util.poll: Import poll library with epoll and select support 8 years ago
Kim Alvefur 90cb134f6d util.pposix: Allow _DARWIN_C_SOURCE to be overriden 7 years ago
Kim Alvefur 8d7eede4ac util.pposix: Restrict use of malloc_info to glibc 7 years ago
Kim Alvefur cc97b76304 util.pposix: Do not attempt to assign to stdio variables [pedantic] 7 years ago
Kim Alvefur bee67a5204 util-src/makefile: Add util.time to BSD makefile 8 years ago
Kim Alvefur ac035e9dc8 util.time: Allow for already set constant 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 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 943f1f1ea8 util.time: Add monotonic time 9 years ago
Kim Alvefur aa64aada46 util.time: Convert to C 9 years ago
Emmanuel Gil Peyrot b12af44abd encodings: Explicitly say that base64 decoding falls through in a switch, fixes a warning in gcc?7+. 8 years ago
Emmanuel Gil Peyrot c2e3322fc6 pposix: Generate an error when a passed string isn?t "unlimited". 8 years ago
Emmanuel Gil Peyrot a18251e4cd pposix, signal: Ignore unused arguments. 8 years ago
Emmanuel Gil Peyrot bae1d20e54 net, pposix, signal: Check for redefined defines, fix warnings. 8 years ago
Kim Alvefur 922039c0d6 util.pposix: Use freopen(3) when replacing standard IO streams (thanks ratchetfreak) 8 years ago
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 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