Commit Graph

180 Commits (8370703ece4eef92aa1b96cc39f4886ae2af01ac)

Author SHA1 Message Date
Kim Alvefur cf3f198a22 configure: Move -ggdb flag here from util-src/Make 10 years ago
Kim Alvefur 0606152051 Move C compiler flag -pedantic from Makefile to configure 10 years ago
Kim Alvefur 7373788d27 util-src/Makefile: Remove redundant -Wall (already set by configure) 10 years ago
Kim Alvefur abc0f19d31 util.table: Move loop variable to top of function for C89 compatibility 10 years ago
Matthew Wild 63f6018ef9 util.table: Add pack() function (this is already available in Lua 5.2+) 10 years ago
Kim Alvefur 0fd7323ab7 util.pposix: Ask for shared file descriptor table using rfork() on *BSD (fixes #412) 10 years ago
Kim Alvefur be7652fe78 util.crand: Silence compiler warning 10 years ago
Kim Alvefur b480592504 util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias) 10 years ago
Kim Alvefur 6ee4f6f618 util.crand: C binding to one of OpenSSL, Linux getrandom() or OpenBSD arc4random() CSPRNG 10 years ago
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' 11 years ago
Kim Alvefur 01328b1495 configure,util-src/Makefile: Make a variable that includes -l for OpenSSL (like with IDNA_LIBS) 11 years ago
Kim Alvefur bc6588bd31 util-src/Makefile: Remove redundant variables (set in config.unix already) 11 years ago
Kim Alvefur b07b24137f util-src/Makefile: Don't make exceptions for how to build .so for util.hashes and util.encodings 11 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) 11 years ago
Kim Alvefur b8d80dfd49 util-src/Makefile: Move Lua include path into CFLAGS variable 11 years ago
Kim Alvefur 9234cc7541 configure, util-src/Makefile: Move OS X deployment flag to an C compiler argument set by configure 11 years ago
Kim Alvefur d23458ef67 util-src/Makefile: Use variables for install binary and target directory 11 years ago
Kim Alvefur 2d99e30374 util-src/Makefile: Move list of .so files in a variable 11 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 12 years ago
Kim Alvefur 110fb5576b util-src/*.c: Use the more concise lua_setfield 12 years ago
Kim Alvefur bcab7a928a util-src/*.c: Don't create globals when loaded 12 years ago
Kim Alvefur dc9c8be60a util.pposix: Verify that file handle is open 13 years ago
Waqas Hussain 6a0511c5eb util.windows: Incorrect output buffer size passed to ReadConsoleOutputAttribute (fixes issue#362, thanks yanjun). 13 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