Commit Graph

49 Commits (51549fe050a1aec00284d1e2599c93010bc763c2)

Author SHA1 Message Date
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
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
Matthew Wild 364fd69154 util.pposix: Add meminfo() binding to memory allocation stats provided by mallinfo() [compilation tested on Ubuntu...] 14 years ago
Kim Alvefur 0c7777aeb6 util.pposix: Add setenv() 14 years ago
Kim Alvefur 51e01dfd14 util.pposix: Don't trust errno for success. Thanks Quince 14 years ago
Matthew Wild ae079311da util.pposix: Remove extraneous semicolon 15 years ago
Matthew Wild 167b4e430f util.pposix: Remove extraneous semicolon 15 years ago
Matthew Wild c739eebe35 util.pposix: uname(): Fix to push nil,err in case of error 16 years ago
Matthew Wild 50b20f4af4 util.pposix: Add pposix.uname(), bump version 16 years ago
Matthew Wild b465aa90b9 util.pposix, prosodyctl, mod_posix: Add initgroups() function, and bump module version. prosodyctl inits groups with the groups of prosody_user. (thanks dbb) 16 years ago
Matthew Wild 2bc0606453 Update copyright headers for 2010 16 years ago
Matthew Wild cafffad5b8 util.pposix, mod_posix, prosodyctl: Bump pposix version to 0.3.3 for mkdir 16 years ago
Matthew Wild 238beb4df6 util.pposix: Add mkdir(path) 16 years ago
Matthew Wild 54f7dc1d2f util.pposix: Replace the unwieldy module table generation with luaL_register() call - side effect - it now sets the pposix global to the module table 16 years ago
Matthew Wild 4558719f38 util.pposix: Add pposix.umask(), bump version to 0.3.2 (and do the same in mod_posix) 16 years ago
Matthew Wild f2f2393a6a util.pposix: Fix return type of lc_abort to shush compiler warning 16 years ago
Matthew Wild 409189ec26 util.posix: Trailing whitespace 16 years ago
Matthew Wild 7a04ee2962 util.pposix: Fix return type of lc_abort to shush compiler warning 16 years ago
Matthew Wild 0dcc6dc478 util.pposix: Add abort() function 16 years ago
Matthew Wild d059f42d87 util.pposix: Compatibility with Solaris systems (thanks Filip) 17 years ago
Matthew Wild 59c0104106 pposix, mod_posix: Bump pposix version number 17 years ago
Matthew Wild 1e86adb619 pposix: Add setgid() function 17 years ago
Matthew Wild 015da98269 pposix: Change LOG_EMERG -> LOG_CRIT, which makes more sense, thanks to intosi for reporting and an initial patch 17 years ago
Matthew Wild b0c602ba74 Close std{in,out,err} when daemonizing 17 years ago
Matthew Wild c80f91dc02 0.3->0.4 17 years ago
Matthew Wild 8cb5eb1311 pposix: Standardize error messages 17 years ago
Matthew Wild c3ca79a8e4 pposix: Small fix for copyright notice 17 years ago
Tobias Markmann 3d1e7adbbc Make the code actually build. 17 years ago
Tobias Markmann 70e434d505 Added missing code. 17 years ago
Tobias Markmann 57ad1b3a49 Adding setrlimits() binding. 17 years ago
Matthew Wild 82d6c67565 util.pposix: Add getuid/setuid (we don't use them yet) 17 years ago
Matthew Wild 5f37a23f35 util.pposix: Fix incompatible pointer type compiler warnings 17 years ago
Matthew Wild 25d0df0a5b Licensing/version updates for some files (forgot to commit, doh...) 17 years ago
Matthew Wild dbbaf43f8c pposix: Remove debug line 17 years ago
Matthew Wild 26e856e3d1 pposix: Add syslog_setmask (use config: minimum_log_level = 'warn' etc.) 17 years ago
Matthew Wild 43c5e28558 pposix: Add _NAME and _VERSION 17 years ago
Matthew Wild b1f16033b0 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. 17 years ago
Matthew Wild 333914c98d mod_posix: Support for logging to syslog (log = 'syslog' in config) 17 years ago
Matthew Wild f53f472410 Remove some debugging from pposix.c 17 years ago
Matthew Wild 8b821c21d3 Add posix support library, and adjust makefiles for it 17 years ago