Commit Graph

102 Commits (ea2f97e9ed8317dc9a62e45d9a807dca7e3700a5)

Author SHA1 Message Date
Matthew Wild a3b71e8fc9 util.pposix: Add fdopen() to return a Lua file object from an fd 1 year ago
Matthew Wild 6480651a93 util.pposix: Add pipe() (with support for pipe2() flags on Linux) 1 year ago
Kim Alvefur 048b064fcd util.pposix: Add remove_blocks() for deleting parts of files 3 years ago
Kim Alvefur b7b65435f7 util.pposix: Use Lua enum API for resource limit name argument 3 years ago
Kim Alvefur 8136aa749a util: Add compat for prosody module name change to C sources 3 years ago
Kim Alvefur dff4beae02 util-src: Remove Lua 5.1 compat macros 4 years ago
Kim Alvefur d3bd9f9be5 util.pposix: Use mallinfo2() on glibc 2.33, fix #1649 4 years ago
Kim Alvefur b93398ce79 util.pposix: Bind isatty(3) 5 years ago
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