aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
Commit message (Collapse)AuthorAgeFilesLines
...
* util.crand: Move comment blockKim Alvefur2017-03-011-4/+4
|
* util.pposix, configure: Move _GNU_SOURCE macro into source filesKim Alvefur2017-03-014-12/+17
|
* 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.crand: Clarify that lua_error does not returnKim Alvefur2017-02-251-1/+1
|
* util.crand: Throw error if OpenSSLs RNG is not seededKim Alvefur2017-02-251-4/+6
|
* util-src/*.c: Attach pointer * to name instead of typeKim Alvefur2017-02-128-138/+162
|
* util.ringbuffer: Remove address of buffer itself from __tostring since is ↵Kim Alvefur2017-02-121-1/+1
| | | | now in the same struct
* util-src/*.c: Squeeze repeated blank linesKim Alvefur2017-01-235-8/+0
|
* util.crand: TODOsKim Alvefur2017-01-221-1/+2
|
* util.crand: Comment about getrandomKim Alvefur2017-01-221-1/+4
|
* util.crand: Add comment describing purpose of moduleKim Alvefur2017-01-221-0/+6
|
* util.crand: Update copyright headerKim Alvefur2017-01-221-3/+3
|
* util.ringbuffer: Allocate buffer itself as part of userdata (simpler, single ↵Kim Alvefur2017-01-221-19/+3
| | | | allocation, no need for __gc)
* util.ringbuffer: Remove unused macrosKim Alvefur2017-01-221-3/+0
|
* util.crand: Raise hard errorsKim Alvefur2017-01-201-7/+3
|
* util.crand: Remove seedingKim Alvefur2017-01-201-20/+0
|
* util.crand: Let Lua handle allocation, freeing and error handling for bufferKim Alvefur2017-01-201-40/+3
|
* util.crand: Switch to luaL_checkinteger since checkint is deprecated in Lua 5.3Kim Alvefur2017-01-201-1/+2
|
* util-src: Make C modules assert that the Lua runtime matches what it was ↵Kim Alvefur2017-01-089-0/+27
| | | | compiled for
* util.pposix: rfork() seems to be FreeBSD only (fixes #412)Kim Alvefur2016-12-191-2/+2
|
* configure: Move -ggdb flag here from util-src/MakeKim Alvefur2016-08-191-1/+1
|
* Move C compiler flag -pedantic from Makefile to configureKim Alvefur2016-08-191-1/+1
|
* util-src/Makefile: Remove redundant -Wall (already set by configure)Kim Alvefur2016-08-191-1/+1
|
* util.table: Move loop variable to top of function for C89 compatibilityKim Alvefur2016-08-071-1/+2
|
* util.table: Add pack() function (this is already available in Lua 5.2+)Matthew Wild2016-07-271-0/+15
|
* util.pposix: Ask for shared file descriptor table using rfork() on *BSD ↵Kim Alvefur2016-05-251-0/+13
| | | | (fixes #412)
* util.crand: Silence compiler warningKim Alvefur2016-05-251-1/+1
|
* util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias)Kim Alvefur2016-02-221-1/+1
|
* util.crand: C binding to one of OpenSSL, Linux getrandom() or OpenBSD ↵Kim Alvefur2016-02-222-1/+164
| | | | arc4random() CSPRNG
* Add util.ringbuffer, a ringbuffer with a file handle like interfaceKim Alvefur2016-02-022-2/+234
|
* util.pposix: Expose the uname GNU extension field 'domainname'Kim Alvefur2015-11-251-0/+4
|
* configure,util-src/Makefile: Make a variable that includes -l for OpenSSL ↵Kim Alvefur2015-09-271-1/+1
| | | | (like with IDNA_LIBS)
* util-src/Makefile: Remove redundant variables (set in config.unix already)Kim Alvefur2015-09-271-8/+0
|
* util-src/Makefile: Don't make exceptions for how to build .so for ↵Kim Alvefur2015-09-271-4/+2
| | | | util.hashes and util.encodings
* util-src/Makefile: Tell Make how to build .so from .o in a modern way (Let ↵Kim Alvefur2015-09-271-6/+2
| | | | built-in rules handle .o)
* util-src/Makefile: Move Lua include path into CFLAGS variableKim Alvefur2015-09-271-2/+2
|
* configure, util-src/Makefile: Move OS X deployment flag to an C compiler ↵Kim Alvefur2015-09-261-3/+0
| | | | argument set by configure
* util-src/Makefile: Use variables for install binary and target directoryKim Alvefur2015-09-261-1/+4
|
* util-src/Makefile: Move list of .so files in a variableKim Alvefur2015-09-261-6/+6
|
* util-src/*.c: Invert Lua 5.2 compat to be 5.2+ by default and a macro to ↵Kim Alvefur2015-04-266-21/+21
| | | | support 5.1
* util.encodings: Move declarations to top of function [pedantic]Kim Alvefur2015-05-021-2/+3
|
* 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-033-5/+6
|
* util-src/*.c: astyle --indent=tab --brackets=attach --indent-switches ↵Kim Alvefur2015-04-037-716/+846
| | | | --break-blocks --pad-oper --unpad-paren --add-brackets --align-pointer=type --lineend=linux
* util.table, Makefile: New C module that allows pre-allocation of tables to ↵Matthew Wild2015-03-312-2/+16
| | | | improve performance and decrease memory fragmentation
* Merge 0.9->0.10 againKim Alvefur2015-03-271-3/+94
|\
| * util.encodings: Expose UTF-8 validation and length checking functionsKim Alvefur2015-03-231-0/+28
| |
| * util.encodings: Perform validation of UTF-8 strings before passing to libidn ↵Kim Alvefur2015-03-231-3/+67
| | | | | | | | (Based on code from the utf8 library in Lua 5.3)
* | util-src/*.c: Add macro for compiling with Lua 5.2Kim Alvefur2014-09-176-0/+24
| |