Commit Graph

171 Commits (71d2dced8dd98ce1b1bf67e2ebbae981cf85287c)

Author SHA1 Message Date
Kim Alvefur b6caeb1f93 Add util.ringbuffer, a ringbuffer with a file handle like interface 10 years ago
Kim Alvefur 8e63a2bd3b util.pposix: Expose the uname GNU extension field 'domainname' 10 years ago
Kim Alvefur 01328b1495 configure,util-src/Makefile: Make a variable that includes -l for OpenSSL (like with IDNA_LIBS) 10 years ago
Kim Alvefur bc6588bd31 util-src/Makefile: Remove redundant variables (set in config.unix already) 10 years ago
Kim Alvefur b07b24137f util-src/Makefile: Don't make exceptions for how to build .so for util.hashes and util.encodings 10 years ago
Kim Alvefur 409f3ed357 util-src/Makefile: Tell Make how to build .so from .o in a modern way (Let built-in rules handle .o) 10 years ago
Kim Alvefur b8d80dfd49 util-src/Makefile: Move Lua include path into CFLAGS variable 10 years ago
Kim Alvefur 9234cc7541 configure, util-src/Makefile: Move OS X deployment flag to an C compiler argument set by configure 10 years ago
Kim Alvefur d23458ef67 util-src/Makefile: Use variables for install binary and target directory 10 years ago
Kim Alvefur 2d99e30374 util-src/Makefile: Move list of .so files in a variable 10 years ago
Kim Alvefur 7c8cc6aa13 util.encodings: Expose UTF-8 validation and length checking functions 11 years ago
Kim Alvefur b21d24e5cb util.encodings: Perform validation of UTF-8 strings before passing to libidn (Based on code from the utf8 library in Lua 5.3) 11 years ago
Kim Alvefur eb66dffc26 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 c62c48c5e3 util.pposix: Fix error reporting from posix_fallocate, it doesn't use errno (thanks pro) 12 years ago
Kim Alvefur 85a8a66744 util-src/*.c: Invert Lua 5.2 compat to be 5.2+ by default and a macro to support 5.1 11 years ago
Kim Alvefur 7c5e79fe04 util.encodings: Move declarations to top of function [pedantic] 11 years ago
Kim Alvefur ad9d518ec1 util.pposix: Return error from ftruncate if that fails too (but what would we do here?) 11 years ago
Florian Zeitz 5a53fb4df8 util-src/*.c: Per convention call luaL_error() as argument to return 11 years ago
Kim Alvefur 7e460fd43f 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
Matthew Wild df5f4d1112 util.table, Makefile: New C module that allows pre-allocation of tables to improve performance and decrease memory fragmentation 11 years ago
Kim Alvefur 140603714f util-src/*.c: Add macro for compiling with Lua 5.2 11 years ago
Kim Alvefur 110fb5576b util-src/*.c: Use the more concise lua_setfield 11 years ago
Kim Alvefur bcab7a928a util-src/*.c: Don't create globals when loaded 11 years ago
Kim Alvefur dc9c8be60a util.pposix: Verify that file handle is open 12 years ago
Waqas Hussain 6a0511c5eb util.windows: Incorrect output buffer size passed to ReadConsoleOutputAttribute (fixes issue#362, thanks yanjun). 12 years ago
Kim Alvefur 5eebc0a42f util.pposix: Fix building on non-Linux with glibc 13 years ago
Kim Alvefur 164db2e06a util.net: Fix s2sout on Windows (return 0.0.0.0 and :: instead of an empty list) 13 years ago
Kim Alvefur 3bacda05be util.pposix: Fix overflow in rlimit argument conversion (thanks gcc, now be quiet please) 13 years ago
Kim Alvefur 4041ef0137 util.hashes: Silence compiler warning about pointer signedness 13 years ago
Kim Alvefur 8e182dcbb6 util.hashes: Correct argument order 13 years ago
Matthew Wild 09c3308b84 util.net: Fix compilation on Windows (outputs an empty list of addresses for now) (tested only in my head) 13 years ago
Matthew Wild 0aa0615b97 util.net: Include missing header needed for successful compiltion on FreeBSD 13 years ago
Matthew Wild d9d3fda27d util.pposix: Correctly handle 'unlimited' limits (RLIM_INFINITY), by returning and accepting the string 'unlimited' in get/setrlimit() 13 years ago
Matthew Wild 701a556a1c util.pposix: setrlimit(): Add missing return on error when an incorrect number of arguments are passed 13 years ago
Matthew Wild a3a07bfbc1 util.net: Add util.net, containing local_addresses() (removed from LuaSocket 3.0) 13 years ago
Waqas Hussain bff6662fd6 util.hashes: inttypes.h not available with MS Windows SDK, use MS specific __int32 instead. 13 years ago
Florian Zeitz a4390dda1d util.hashes, util.sasl.scram: Implement SCRAM-SHA1's Hi in C 13 years ago
Florian Zeitz cb793c9eb1 util.hmac, util.hashes: Implement HMAC functions in C, and move to util.hashes 13 years ago
Matthew Wild 4031be743b mod_posix, util.pposix: Bump version for API change 13 years ago
Matthew Wild 84b29550d6 util.pposix: syslog(): Support an optional source parameter (producing messages of the form '<source>: <message>' 13 years ago
Matthew Wild c35eabfe0d util.pposix: Allow fetching RLIMIT_NICE when available 13 years ago
Kim Alvefur c70a761d64 util.pposix: Prevent FDs 0, 1 and 2 from being assigned to connections 13 years ago
Kim Alvefur 56c30635cc util.pposix: Put the warning back, mention how we might still use posix_fallocate() 14 years ago
Kim Alvefur 4c936ac70e util.pposix: Try posix_fallocate() if fallocate() is unsupported by the file system 14 years ago
Kim Alvefur dbfa0c8ce7 util.pposix: Warn about posix_fallocate 14 years ago
Kim Alvefur 5d4399e9a5 util.pposix: Add fallocate method, backed by either posix_fallocate() or Linux fallocate() 14 years ago
Matthew Wild b3048f56eb util.pposix: Add comments to mallinfo fields we use, so I don't forget tomorrow what they mean 14 years ago
Matthew Wild 518414dbf7 util.pposix: Add meminfo() binding to memory allocation stats provided by mallinfo() [compilation tested on Ubuntu...] 14 years ago
Kim Alvefur 70d751fdfe util.pposix: Add setenv() 14 years ago
Kim Alvefur 0b7dc871a3 util.hashes: Add sha224, sha384, sha512 14 years ago