aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/pposix.c
Commit message (Collapse)AuthorAgeFilesLines
* util.pposix: Limit meminfo to Linux until we can figure out how to get this ↵Kim Alvefur2017-03-071-1/+1
| | | | info on other platforms
* util.pposix, configure: Move _GNU_SOURCE macro into source filesKim Alvefur2017-03-011-12/+12
|
* util.pposix: Expose ENOENT constant (usually 2, but you never know)Kim Alvefur2017-03-011-0/+5
|
* util.pposix: Fix typo in commentKim Alvefur2017-02-261-1/+1
|
* util-src/*.c: Attach pointer * to name instead of typeKim Alvefur2017-02-121-33/+45
|
* util-src/*.c: Squeeze repeated blank linesKim Alvefur2017-01-231-2/+0
|
* util-src: Make C modules assert that the Lua runtime matches what it was ↵Kim Alvefur2017-01-081-0/+3
| | | | compiled for
* util.pposix: rfork() seems to be FreeBSD only (fixes #412)Kim Alvefur2016-12-191-2/+2
|
* util.pposix: Ask for shared file descriptor table using rfork() on *BSD ↵Kim Alvefur2016-05-251-0/+13
| | | | (fixes #412)
* util.pposix: Expose the uname GNU extension field 'domainname'Kim Alvefur2015-11-251-0/+4
|
* util-src/*.c: Invert Lua 5.2 compat to be 5.2+ by default and a macro to ↵Kim Alvefur2015-04-261-3/+3
| | | | support 5.1
* util.pposix: Return error from ftruncate if that fails too (but what would ↵Kim Alvefur2015-05-021-1/+4
| | | | we do here?)
* util-src/*.c: Per convention call luaL_error() as argument to returnFlorian Zeitz2015-04-031-1/+1
|
* util-src/*.c: astyle --indent=tab --brackets=attach --indent-switches ↵Kim Alvefur2015-04-031-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.2Kim Alvefur2014-09-171-0/+4
|
* util-src/*.c: Don't create globals when loadedKim Alvefur2014-09-161-1/+2
|
* Merge 0.9->0.10Kim Alvefur2014-04-271-3/+9
|\
| * util.pposix: Fix error reporting from really old Linux fallocate() that did ↵Kim Alvefur2014-04-251-1/+5
| | | | | | | | not use errno for some reason (thanks pro)
| * util.pposix: Fix error reporting from posix_fallocate, it doesn't use errno ↵Kim Alvefur2014-04-251-2/+4
| | | | | | | | (thanks pro)
* | Merge 0.9->0.10Kim Alvefur2013-11-281-0/+2
|\|
| * util.pposix: Verify that file handle is openKim Alvefur2013-11-281-0/+2
| |
* | Merge 0.9->trunkMatthew Wild2013-09-031-2/+2
|\|
| * util.pposix: Fix building on non-Linux with glibcKim Alvefur2013-09-021-2/+2
| |
| * util.pposix: setrlimit(): Add missing return on error when an incorrect ↵Matthew Wild2013-06-281-0/+1
| | | | | | | | number of arguments are passed
* | util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be ↵Kim Alvefur2013-08-101-1/+1
| | | | | | | | quiet please)
* | util.pposix: Correctly handle 'unlimited' limits (RLIM_INFINITY), by ↵Matthew Wild2013-06-291-32/+43
|/ | | | returning and accepting the string 'unlimited' in get/setrlimit()
* mod_posix, util.pposix: Bump version for API changeMatthew Wild2013-04-081-1/+1
|
* util.pposix: syslog(): Support an optional source parameter (producing ↵Matthew Wild2013-04-081-4/+5
| | | | messages of the form '<source>: <message>'
* util.pposix: Allow fetching RLIMIT_NICE when availableMatthew Wild2013-03-221-0/+3
|
* util.pposix: Prevent FDs 0, 1 and 2 from being assigned to connectionsKim Alvefur2012-11-101-0/+4
|
* util.pposix: Put the warning back, mention how we might still use ↵Kim Alvefur2012-07-311-0/+4
| | | | posix_fallocate()
* util.pposix: Try posix_fallocate() if fallocate() is unsupported by the file ↵Kim Alvefur2012-07-311-10/+21
| | | | system
* util.pposix: Warn about posix_fallocateKim Alvefur2012-07-291-0/+1
|
* util.pposix: Add fallocate method, backed by either posix_fallocate() or ↵Kim Alvefur2012-07-281-0/+43
| | | | Linux fallocate()
* util.pposix: Add comments to mallinfo fields we use, so I don't forget ↵Matthew Wild2012-07-081-0/+6
| | | | tomorrow what they mean
* util.pposix: Add meminfo() binding to memory allocation stats provided by ↵Matthew Wild2012-07-081-0/+28
| | | | mallinfo() [compilation tested on Ubuntu...]
* util.pposix: Add setenv()Kim Alvefur2012-07-031-0/+33
|
* util.pposix: Don't trust errno for success. Thanks QuinceKim Alvefur2011-11-181-14/+18
|
* util.pposix: Remove extraneous semicolonMatthew Wild2010-12-261-1/+1
|
* util.pposix: uname(): Fix to push nil,err in case of errorMatthew Wild2010-08-311-0/+1
|
* util.pposix: Add pposix.uname(), bump versionMatthew Wild2010-08-311-1/+26
|
* util.pposix, prosodyctl, mod_posix: Add initgroups() function, and bump ↵Matthew Wild2010-08-281-1/+58
| | | | module version. prosodyctl inits groups with the groups of prosody_user. (thanks dbb)
* Merge 0.6->0.7Matthew Wild2010-03-221-3/+3
|\
| * Update copyright headers for 2010Matthew Wild2010-03-221-3/+3
| |
| * util.pposix: Fix return type of lc_abort to shush compiler warningMatthew Wild2010-01-101-1/+2
| |
* | util.pposix, mod_posix, prosodyctl: Bump pposix version to 0.3.3 for mkdirMatthew Wild2010-01-121-1/+1
| |
* | util.pposix: Add mkdir(path)Matthew Wild2010-01-101-0/+17
| |
* | util.pposix: Replace the unwieldy module table generation with ↵Matthew Wild2010-01-101-33/+18
| | | | | | | | luaL_register() call - side effect - it now sets the pposix global to the module table
* | util.pposix: Add pposix.umask(), bump version to 0.3.2 (and do the same in ↵Matthew Wild2010-01-101-1/+17
| | | | | | | | mod_posix)
* | util.pposix: Fix return type of lc_abort to shush compiler warningMatthew Wild2010-01-101-1/+2
| |