Log

util-src/pposix.c @ 11356:43e5429ab355

description author age
util-src: Use the luaL_pushfail API added in Lua 5.4 to highlight all failure conditions Kim Alvefur Sun, 07 Jun 2020 02:25:56 +0200
util.pposix,signal: Pass around various OS numbers as integers [Lua 5.3] Kim Alvefur Mon, 04 May 2020 21:51:30 +0200
util.*.c: Add static qualifiers everywhere Emmanuel Gil Peyrot Sun, 01 Dec 2019 20:25:20 +0100
Merge 0.11->trunk Kim Alvefur Sat, 16 Nov 2019 16:52:31 +0100
util.pposix: Avoid overflow of malloc info at 2GB (fixes #1445 until 4GB) 0.11 Kim Alvefur Sat, 16 Nov 2019 16:45:33 +0100
util.pposix: Don't define POSIX_C_SOURCE on FreeBSD to ensure visibility of initgroups() Matthew Wild Tue, 04 Dec 2018 12:11:58 +0000
util.pposix: Allow _DARWIN_C_SOURCE to be overriden Kim Alvefur Sat, 08 Sep 2018 11:52:44 +0200
Merge 0.10->trunk Kim Alvefur Sat, 08 Sep 2018 11:51:52 +0200
util.pposix: Fix or silence a warning on OS X (#1202) Kim Alvefur Sat, 08 Sep 2018 11:46:02 +0200
Merge 0.10->trunk Kim Alvefur Sat, 08 Sep 2018 11:42:22 +0200
util.pposix: Fix building on OS X (#1202) Kim Alvefur Sat, 18 Aug 2018 12:07:40 +0200
util.pposix: Restrict use of malloc_info to glibc Kim Alvefur Fri, 07 Sep 2018 15:50:12 +0200
util.pposix: Do not attempt to assign to stdio variables [pedantic] Kim Alvefur Fri, 07 Sep 2018 15:25:33 +0200
pposix: Generate an error when a passed string isn’t "unlimited". Emmanuel Gil Peyrot Wed, 08 Aug 2018 09:28:42 +0200
pposix, signal: Ignore unused arguments. Emmanuel Gil Peyrot Wed, 08 Aug 2018 09:28:04 +0200
net, pposix, signal: Check for redefined defines, fix warnings. Emmanuel Gil Peyrot Wed, 08 Aug 2018 09:27:34 +0200
util.pposix: Use freopen(3) when replacing standard IO streams (thanks ratchetfreak) Kim Alvefur Thu, 12 Jul 2018 20:42:22 +0200
util.pposix: Remove fallocate Kim Alvefur Tue, 28 Feb 2017 13:26:05 +0100
util.pposix: Add function for atomically appending data to a file Kim Alvefur Wed, 01 Mar 2017 01:33:00 +0100
util-src: Specify size of various tables to be allocated Kim Alvefur Thu, 09 Mar 2017 01:20:59 +0100
util.pposix: Use correct type for limits [-Wconstant-conversion] Kim Alvefur Tue, 07 Mar 2017 22:36:43 +0100
util.pposix: Limit meminfo to Linux until we can figure out how to get this info on other platforms Kim Alvefur Tue, 07 Mar 2017 22:33:57 +0100
util.pposix, configure: Move _GNU_SOURCE macro into source files Kim Alvefur Wed, 01 Mar 2017 22:27:11 +0100
util.pposix: Expose ENOENT constant (usually 2, but you never know) Kim Alvefur Wed, 01 Mar 2017 17:03:48 +0100
util.pposix: Fix typo in comment Kim Alvefur Sun, 26 Feb 2017 20:31:08 +0100
util-src/*.c: Attach pointer * to name instead of type Kim Alvefur Sun, 12 Feb 2017 16:42:29 +0100
util-src/*.c: Squeeze repeated blank lines Kim Alvefur Mon, 23 Jan 2017 18:33:35 +0100
util-src: Make C modules assert that the Lua runtime matches what it was compiled for Kim Alvefur Sun, 08 Jan 2017 14:21:08 +0100
util.pposix: rfork() seems to be FreeBSD only (fixes #412) Kim Alvefur Mon, 19 Dec 2016 08:51:50 +0100
util.pposix: Ask for shared file descriptor table using rfork() on *BSD (fixes #412) Kim Alvefur Wed, 25 May 2016 21:34:34 +0200
util.pposix: Expose the uname GNU extension field 'domainname' Kim Alvefur Wed, 25 Nov 2015 20:43:29 +0100
util-src/*.c: Invert Lua 5.2 compat to be 5.2+ by default and a macro to support 5.1 Kim Alvefur Sun, 26 Apr 2015 12:38:37 +0200
util.pposix: Return error from ftruncate if that fails too (but what would we do here?) Kim Alvefur Sat, 02 May 2015 14:41:56 +0200
util-src/*.c: Per convention call luaL_error() as argument to return Florian Zeitz Fri, 03 Apr 2015 20:30:14 +0200
util-src/*.c: astyle --indent=tab --brackets=attach --indent-switches --break-blocks --pad-oper --unpad-paren --add-brackets --align-pointer=type --lineend=linux Kim Alvefur Fri, 03 Apr 2015 19:52:48 +0200
util-src/*.c: Add macro for compiling with Lua 5.2 Kim Alvefur Wed, 17 Sep 2014 14:30:29 +0200
util-src/*.c: Don't create globals when loaded Kim Alvefur Tue, 16 Sep 2014 21:56:18 +0200
Merge 0.9->0.10 Kim Alvefur Sun, 27 Apr 2014 01:02:20 +0200
util.pposix: Fix error reporting from really old Linux fallocate() that did not use errno for some reason (thanks pro) Kim Alvefur Fri, 25 Apr 2014 02:41:55 +0200
util.pposix: Fix error reporting from posix_fallocate, it doesn't use errno (thanks pro) Kim Alvefur Fri, 25 Apr 2014 00:36:01 +0200
Merge 0.9->0.10 Kim Alvefur Thu, 28 Nov 2013 16:17:21 +0100
util.pposix: Verify that file handle is open Kim Alvefur Thu, 28 Nov 2013 16:12:40 +0100
Merge 0.9->trunk Matthew Wild Tue, 03 Sep 2013 00:20:28 +0100
util.pposix: Fix building on non-Linux with glibc Kim Alvefur Mon, 02 Sep 2013 18:19:38 +0200
util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be quiet please) Kim Alvefur Sat, 10 Aug 2013 19:02:52 +0200
Merge Matthew Wild Sat, 29 Jun 2013 14:45:47 +0100
util.pposix: Correctly handle 'unlimited' limits (RLIM_INFINITY), by returning and accepting the string 'unlimited' in get/setrlimit() Matthew Wild Sat, 29 Jun 2013 14:45:38 +0100
util.pposix: setrlimit(): Add missing return on error when an incorrect number of arguments are passed Matthew Wild Fri, 28 Jun 2013 20:16:43 +0100
mod_posix, util.pposix: Bump version for API change Matthew Wild Mon, 08 Apr 2013 16:57:59 +0100
util.pposix: syslog(): Support an optional source parameter (producing messages of the form '<source>: <message>' Matthew Wild Mon, 08 Apr 2013 16:56:40 +0100
util.pposix: Allow fetching RLIMIT_NICE when available Matthew Wild Fri, 22 Mar 2013 11:23:40 +0000
util.pposix: Prevent FDs 0, 1 and 2 from being assigned to connections Kim Alvefur Sat, 10 Nov 2012 23:41:53 +0100
util.pposix: Put the warning back, mention how we might still use posix_fallocate() Kim Alvefur Tue, 31 Jul 2012 23:43:34 +0200
util.pposix: Try posix_fallocate() if fallocate() is unsupported by the file system Kim Alvefur Tue, 31 Jul 2012 23:38:02 +0200
util.pposix: Warn about posix_fallocate Kim Alvefur Sun, 29 Jul 2012 22:21:58 +0200
util.pposix: Add fallocate method, backed by either posix_fallocate() or Linux fallocate() Kim Alvefur Sat, 28 Jul 2012 22:21:10 +0200
util.pposix: Add comments to mallinfo fields we use, so I don't forget tomorrow what they mean Matthew Wild Sun, 08 Jul 2012 18:54:30 +0100
util.pposix: Add meminfo() binding to memory allocation stats provided by mallinfo() [compilation tested on Ubuntu...] Matthew Wild Sun, 08 Jul 2012 18:47:05 +0100
util.pposix: Add setenv() Kim Alvefur Tue, 03 Jul 2012 15:43:46 +0200
util.pposix: Don't trust errno for success. Thanks Quince Kim Alvefur Fri, 18 Nov 2011 06:13:24 +0100
util.pposix: Remove extraneous semicolon Matthew Wild Sun, 26 Dec 2010 05:47:38 +0000
util.pposix: uname(): Fix to push nil,err in case of error Matthew Wild Tue, 31 Aug 2010 15:23:41 +0100
util.pposix: Add pposix.uname(), bump version Matthew Wild Tue, 31 Aug 2010 15:14:39 +0100
util.pposix, prosodyctl, mod_posix: Add initgroups() function, and bump module version. prosodyctl inits groups with the groups of prosody_user. (thanks dbb) Matthew Wild Sat, 28 Aug 2010 14:31:48 +0100
Merge 0.6->0.7 Matthew Wild Mon, 22 Mar 2010 17:24:55 +0000
Update copyright headers for 2010 Matthew Wild Mon, 22 Mar 2010 17:06:15 +0000
util.pposix: Fix return type of lc_abort to shush compiler warning Matthew Wild Sun, 10 Jan 2010 20:21:48 +0000
util.pposix, mod_posix, prosodyctl: Bump pposix version to 0.3.3 for mkdir Matthew Wild Tue, 12 Jan 2010 15:35:36 +0000
util.pposix: Add mkdir(path) Matthew Wild Sun, 10 Jan 2010 23:12:22 +0000
util.pposix: Replace the unwieldy module table generation with luaL_register() call - side effect - it now sets the pposix global to the module table Matthew Wild Sun, 10 Jan 2010 22:43:28 +0000
util.pposix: Add pposix.umask(), bump version to 0.3.2 (and do the same in mod_posix) Matthew Wild Sun, 10 Jan 2010 21:48:25 +0000
util.pposix: Fix return type of lc_abort to shush compiler warning Matthew Wild Sun, 10 Jan 2010 20:21:48 +0000
util.posix: Trailing whitespace Matthew Wild Sun, 10 Jan 2010 17:35:37 +0000
util.pposix: Add abort() function Matthew Wild Fri, 30 Oct 2009 01:18:38 +0000
util.pposix: Compatibility with Solaris systems (thanks Filip) Matthew Wild Tue, 29 Sep 2009 14:22:02 +0100
pposix, mod_posix: Bump pposix version number Matthew Wild Thu, 23 Jul 2009 03:47:06 +0100
pposix: Add setgid() function Matthew Wild Thu, 23 Jul 2009 03:40:01 +0100
pposix: Change LOG_EMERG -> LOG_CRIT, which makes more sense, thanks to intosi for reporting and an initial patch Matthew Wild Tue, 21 Jul 2009 13:21:52 +0100
Close std{in,out,err} when daemonizing 0.4.2 Matthew Wild Fri, 22 May 2009 14:48:34 +0100
0.3->0.4 Matthew Wild Fri, 20 Mar 2009 20:16:25 +0000
pposix: Standardize error messages Matthew Wild Tue, 03 Mar 2009 17:25:20 +0000
pposix: Small fix for copyright notice Matthew Wild Tue, 03 Mar 2009 17:24:56 +0000
Make the code actually build. Tobias Markmann Sun, 22 Feb 2009 20:57:57 +0100
Added missing code. Tobias Markmann Sun, 22 Feb 2009 20:55:06 +0100
Adding setrlimits() binding. Tobias Markmann Sun, 22 Feb 2009 20:35:41 +0100
util.pposix: Add getuid/setuid (we don't use them yet) Matthew Wild Sun, 15 Feb 2009 15:56:04 +0000
util.pposix: Fix incompatible pointer type compiler warnings Matthew Wild Fri, 13 Feb 2009 15:01:46 +0000
Licensing/version updates for some files (forgot to commit, doh...) Matthew Wild Mon, 02 Feb 2009 18:03:18 +0000
pposix: Remove debug line Matthew Wild Fri, 16 Jan 2009 05:22:28 +0000
pposix: Add syslog_setmask (use config: minimum_log_level = 'warn' etc.) Matthew Wild Fri, 16 Jan 2009 05:20:04 +0000
pposix: Add _NAME and _VERSION Matthew Wild Fri, 16 Jan 2009 04:57:36 +0000
mod_posix/pposix: Fix reporting of incorrect PID on daemonization. Log correct PID, and support writing a pidfile (pidfile = '/path/to/prosody.pid' in config). Added getpid() to pposix and improved function names. Matthew Wild Thu, 15 Jan 2009 20:59:36 +0000
mod_posix: Support for logging to syslog (log = 'syslog' in config) Matthew Wild Thu, 15 Jan 2009 20:06:41 +0000
Remove some debugging from pposix.c Matthew Wild Sat, 06 Dec 2008 23:22:35 +0000
Add posix support library, and adjust makefiles for it Matthew Wild Sat, 06 Dec 2008 23:20:59 +0000