Commit Graph

94 Commits (bc402b6409639f130f2ef7f13c9e240194de859c)

Author SHA1 Message Date
Kim Alvefur 625ec0a93f util-src: Use the luaL_pushfail API added in Lua 5.4 to highlight all failure conditions 6 years ago
Kim Alvefur 8055c8f7d7 util.pposix,signal: Pass around various OS numbers as integers [Lua 5.3] 6 years ago
Emmanuel Gil Peyrot a149dda0e3 util.*.c: Add static qualifiers everywhere 6 years ago
Kim Alvefur c4c38d2f01 util.pposix: Avoid overflow of malloc info at 2GB (fixes #1445 until 4GB) 6 years ago
Kim Alvefur 530a9f9c8e util.pposix: Fix or silence a warning on OS X (#1202) 7 years ago
Kim Alvefur b78f1d3da1 util.pposix: Fix building on OS X (#1202) 8 years ago
Kim Alvefur 2f939029ef util.pposix: Allow _DARWIN_C_SOURCE to be overriden 7 years ago
Kim Alvefur 6391242937 util.pposix: Restrict use of malloc_info to glibc 7 years ago
Kim Alvefur 53c20a796e util.pposix: Do not attempt to assign to stdio variables [pedantic] 7 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 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 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 40d8e257d8 util-src/*.c: Attach pointer * to name instead of type 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 01a15bfbe2 util.pposix: Ask for shared file descriptor table using rfork() on *BSD (fixes #412) 10 years ago
Kim Alvefur c8454e9180 util.pposix: Expose the uname GNU extension field 'domainname' 10 years ago
Kim Alvefur d1a264a39a util.pposix: Return error from ftruncate if that fails too (but what would we do here?) 11 years ago
Kim Alvefur ddeed6873e util-src/*.c: Invert Lua 5.2 compat to be 5.2+ by default and a macro to support 5.1 11 years ago
Florian Zeitz 4d46c2e866 util-src/*.c: Per convention call luaL_error() as argument to return 11 years ago
Kim Alvefur e866ef555a util-src/*.c: astyle --indent=tab --brackets=attach --indent-switches --break-blocks --pad-oper --unpad-paren --add-brackets --align-pointer=type --lineend=linux 11 years ago
Kim Alvefur 8affcc3ff7 util-src/*.c: Add macro for compiling with Lua 5.2 11 years ago
Kim Alvefur c57e98cd7d util-src/*.c: Don't create globals when loaded 11 years ago
Kim Alvefur 92ed3576fc util.pposix: Fix error reporting from really old Linux fallocate() that did not use errno for some reason (thanks pro) 12 years ago
Kim Alvefur 15b883a2f5 util.pposix: Fix error reporting from posix_fallocate, it doesn't use errno (thanks pro) 12 years ago
Kim Alvefur 6d5db18948 util.pposix: Verify that file handle is open 12 years ago
Kim Alvefur 25d7ead6bb util.pposix: Fix building on non-Linux with glibc 13 years ago
Kim Alvefur e350fb8478 util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be quiet please) 13 years ago
Matthew Wild 5adcad1a43 util.pposix: Correctly handle 'unlimited' limits (RLIM_INFINITY), by returning and accepting the string 'unlimited' in get/setrlimit() 13 years ago
Matthew Wild accb25e18f util.pposix: setrlimit(): Add missing return on error when an incorrect number of arguments are passed 13 years ago
Matthew Wild f1adfcc147 mod_posix, util.pposix: Bump version for API change 13 years ago
Matthew Wild 844700e023 util.pposix: syslog(): Support an optional source parameter (producing messages of the form '<source>: <message>' 13 years ago
Matthew Wild a2a4f805cd util.pposix: Allow fetching RLIMIT_NICE when available 13 years ago
Kim Alvefur acbda76a75 util.pposix: Prevent FDs 0, 1 and 2 from being assigned to connections 13 years ago
Matthew Wild f68b6612f8 util.pposix: Don't define POSIX_C_SOURCE on FreeBSD to ensure visibility of initgroups() 7 years ago
Kim Alvefur 4b640bb161 util.pposix: Put the warning back, mention how we might still use posix_fallocate() 14 years ago
Kim Alvefur 534b0bc771 util.pposix: Try posix_fallocate() if fallocate() is unsupported by the file system 14 years ago
Kim Alvefur 8578efc0b9 util.pposix: Warn about posix_fallocate 14 years ago
Kim Alvefur fd2ce1e761 util.pposix: Add fallocate method, backed by either posix_fallocate() or Linux fallocate() 14 years ago
Matthew Wild 1c1baa42c8 util.pposix: Add comments to mallinfo fields we use, so I don't forget tomorrow what they mean 14 years ago