Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util-src: Use the luaL_pushfail API added in Lua 5.4 to highlight all ↵ | Kim Alvefur | 2020-06-07 | 1 | -11/+14 |
| | | | | | | | failure conditions Actually just an alias of pushnil, but it does make it more obvious where the failure conditions are, which is good for readability. | ||||
* | util.pposix,signal: Pass around various OS numbers as integers [Lua 5.3] | Kim Alvefur | 2020-05-04 | 1 | -7/+10 |
| | | | | | | | Passing around PIDs, UIDs etc as integers makes it more sane in Lua 5.3. Getting 1234.0 as PID is silly. Shouldn't change any behavior as these are all integers on the C side and the integral floats are accepted as integers when passed back from Lua into C. | ||||
* | util.*.c: Add static qualifiers everywhere | Emmanuel Gil Peyrot | 2019-12-01 | 1 | -26/+26 |
| | |||||
* | Merge 0.11->trunk | Kim Alvefur | 2019-11-16 | 1 | -0/+4 |
|\ | |||||
| * | util.pposix: Don't define POSIX_C_SOURCE on FreeBSD to ensure visibility of ↵ | Matthew Wild | 2018-12-04 | 1 | -0/+4 |
| | | | | | | | | initgroups() | ||||
* | | util.pposix: Avoid overflow of malloc info at 2GB (fixes #1445 until 4GB) | Kim Alvefur | 2019-11-16 | 1 | -5/+5 |
|/ | |||||
* | util.pposix: Allow _DARWIN_C_SOURCE to be overriden | Kim Alvefur | 2018-09-08 | 1 | -0/+2 |
| | | | | Like the others there | ||||
* | Merge 0.10->trunk | Kim Alvefur | 2018-09-08 | 1 | -0/+3 |
|\ | |||||
| * | util.pposix: Fix or silence a warning on OS X (#1202) | Kim Alvefur | 2018-09-08 | 1 | -0/+3 |
| | | |||||
* | | Merge 0.10->trunk | Kim Alvefur | 2018-09-08 | 1 | -1/+1 |
|\| | |||||
| * | util.pposix: Fix building on OS X (#1202) | Kim Alvefur | 2018-08-18 | 1 | -1/+1 |
| | | |||||
* | | util.pposix: Restrict use of malloc_info to glibc | Kim Alvefur | 2018-09-07 | 1 | -1/+1 |
| | | | | | | | | Fixes build on musl based distros like Alpine linux | ||||
* | | util.pposix: Do not attempt to assign to stdio variables [pedantic] | Kim Alvefur | 2018-09-07 | 1 | -3/+3 |
| | | | | | | | | | | | | Fixes build on gcc 6.4.0 See also https://stackoverflow.com/a/586416 | ||||
* | | pposix: Generate an error when a passed string isn?t "unlimited". | Emmanuel Gil Peyrot | 2018-08-08 | 1 | -0/+1 |
| | | |||||
* | | pposix, signal: Ignore unused arguments. | Emmanuel Gil Peyrot | 2018-08-08 | 1 | -0/+2 |
| | | |||||
* | | net, pposix, signal: Check for redefined defines, fix warnings. | Emmanuel Gil Peyrot | 2018-08-08 | 1 | -0/+6 |
| | | |||||
* | | util.pposix: Use freopen(3) when replacing standard IO streams (thanks ↵ | Kim Alvefur | 2018-07-12 | 1 | -7/+3 |
|/ | | | | | | ratchetfreak) Man page says this is what freopen(3) is for. | ||||
* | util.pposix: Remove fallocate | Kim Alvefur | 2017-02-28 | 1 | -60/+1 |
| | |||||
* | util.pposix: Add function for atomically appending data to a file | Kim Alvefur | 2017-03-01 | 1 | -1/+64 |
| | |||||
* | util-src: Specify size of various tables to be allocated | Kim Alvefur | 2017-03-09 | 1 | -2/+2 |
| | |||||
* | util.pposix: Use correct type for limits [-Wconstant-conversion] | Kim Alvefur | 2017-03-07 | 1 | -1/+1 |
| | |||||
* | util.pposix: Limit meminfo to Linux until we can figure out how to get this ↵ | Kim Alvefur | 2017-03-07 | 1 | -1/+1 |
| | | | | info on other platforms | ||||
* | util.pposix, configure: Move _GNU_SOURCE macro into source files | Kim Alvefur | 2017-03-01 | 1 | -12/+12 |
| | |||||
* | util.pposix: Expose ENOENT constant (usually 2, but you never know) | Kim Alvefur | 2017-03-01 | 1 | -0/+5 |
| | |||||
* | util.pposix: Fix typo in comment | Kim Alvefur | 2017-02-26 | 1 | -1/+1 |
| | |||||
* | util-src/*.c: Attach pointer * to name instead of type | Kim Alvefur | 2017-02-12 | 1 | -33/+45 |
| | |||||
* | util-src/*.c: Squeeze repeated blank lines | Kim Alvefur | 2017-01-23 | 1 | -2/+0 |
| | |||||
* | util-src: Make C modules assert that the Lua runtime matches what it was ↵ | Kim Alvefur | 2017-01-08 | 1 | -0/+3 |
| | | | | compiled for | ||||
* | util.pposix: rfork() seems to be FreeBSD only (fixes #412) | Kim Alvefur | 2016-12-19 | 1 | -2/+2 |
| | |||||
* | util.pposix: Ask for shared file descriptor table using rfork() on *BSD ↵ | Kim Alvefur | 2016-05-25 | 1 | -0/+13 |
| | | | | (fixes #412) | ||||
* | util.pposix: Expose the uname GNU extension field 'domainname' | Kim Alvefur | 2015-11-25 | 1 | -0/+4 |
| | |||||
* | util-src/*.c: Invert Lua 5.2 compat to be 5.2+ by default and a macro to ↵ | Kim Alvefur | 2015-04-26 | 1 | -3/+3 |
| | | | | support 5.1 | ||||
* | util.pposix: Return error from ftruncate if that fails too (but what would ↵ | Kim Alvefur | 2015-05-02 | 1 | -1/+4 |
| | | | | we do here?) | ||||
* | util-src/*.c: Per convention call luaL_error() as argument to return | Florian Zeitz | 2015-04-03 | 1 | -1/+1 |
| | |||||
* | util-src/*.c: astyle --indent=tab --brackets=attach --indent-switches ↵ | Kim Alvefur | 2015-04-03 | 1 | -264/+291 |
| | | | | --break-blocks --pad-oper --unpad-paren --add-brackets --align-pointer=type --lineend=linux | ||||
* | util-src/*.c: Add macro for compiling with Lua 5.2 | Kim Alvefur | 2014-09-17 | 1 | -0/+4 |
| | |||||
* | util-src/*.c: Don't create globals when loaded | Kim Alvefur | 2014-09-16 | 1 | -1/+2 |
| | |||||
* | Merge 0.9->0.10 | Kim Alvefur | 2014-04-27 | 1 | -3/+9 |
|\ | |||||
| * | util.pposix: Fix error reporting from really old Linux fallocate() that did ↵ | Kim Alvefur | 2014-04-25 | 1 | -1/+5 |
| | | | | | | | | not use errno for some reason (thanks pro) | ||||
| * | util.pposix: Fix error reporting from posix_fallocate, it doesn't use errno ↵ | Kim Alvefur | 2014-04-25 | 1 | -2/+4 |
| | | | | | | | | (thanks pro) | ||||
* | | Merge 0.9->0.10 | Kim Alvefur | 2013-11-28 | 1 | -0/+2 |
|\| | |||||
| * | util.pposix: Verify that file handle is open | Kim Alvefur | 2013-11-28 | 1 | -0/+2 |
| | | |||||
* | | Merge 0.9->trunk | Matthew Wild | 2013-09-03 | 1 | -2/+2 |
|\| | |||||
| * | util.pposix: Fix building on non-Linux with glibc | Kim Alvefur | 2013-09-02 | 1 | -2/+2 |
| | | |||||
| * | util.pposix: setrlimit(): Add missing return on error when an incorrect ↵ | Matthew Wild | 2013-06-28 | 1 | -0/+1 |
| | | | | | | | | number of arguments are passed | ||||
* | | util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be ↵ | Kim Alvefur | 2013-08-10 | 1 | -1/+1 |
| | | | | | | | | quiet please) | ||||
* | | util.pposix: Correctly handle 'unlimited' limits (RLIM_INFINITY), by ↵ | Matthew Wild | 2013-06-29 | 1 | -32/+43 |
|/ | | | | returning and accepting the string 'unlimited' in get/setrlimit() | ||||
* | mod_posix, util.pposix: Bump version for API change | Matthew Wild | 2013-04-08 | 1 | -1/+1 |
| | |||||
* | util.pposix: syslog(): Support an optional source parameter (producing ↵ | Matthew Wild | 2013-04-08 | 1 | -4/+5 |
| | | | | messages of the form '<source>: <message>' | ||||
* | util.pposix: Allow fetching RLIMIT_NICE when available | Matthew Wild | 2013-03-22 | 1 | -0/+3 |
| |