aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
Commit message (Collapse)AuthorAgeFilesLines
* util.pposix: Allow _DARWIN_C_SOURCE to be overridenKim Alvefur2018-09-081-0/+2
| | | | Like the others there
* Merge 0.10->trunkKim Alvefur2018-09-081-0/+3
|\
| * util.pposix: Fix or silence a warning on OS X (#1202)Kim Alvefur2018-09-081-0/+3
| |
* | Merge 0.10->trunkKim Alvefur2018-09-081-1/+1
|\|
| * util.pposix: Fix building on OS X (#1202)Kim Alvefur2018-08-181-1/+1
| |
* | util.pposix: Restrict use of malloc_info to glibcKim Alvefur2018-09-071-1/+1
| | | | | | | | Fixes build on musl based distros like Alpine linux
* | util.pposix: Do not attempt to assign to stdio variables [pedantic]Kim Alvefur2018-09-071-3/+3
| | | | | | | | | | | | Fixes build on gcc 6.4.0 See also https://stackoverflow.com/a/586416
* | util-src/makefile: Add util.time to BSD makefileKim Alvefur2018-08-111-1/+1
| |
* | util.time: Allow for already set constantKim Alvefur2018-08-111-0/+2
| |
* | util.time: Add monotonic timeKim Alvefur2017-03-091-0/+9
| |
* | util.time: Convert to CKim Alvefur2017-03-092-1/+25
| |
* | encodings: Explicitly say that base64 decoding falls through in a switch, ↵Emmanuel Gil Peyrot2018-08-081-0/+2
| | | | | | | | fixes a warning in gcc 7+.
* | pposix: Generate an error when a passed string isn’t "unlimited".Emmanuel Gil Peyrot2018-08-081-0/+1
| |
* | pposix, signal: Ignore unused arguments.Emmanuel Gil Peyrot2018-08-082-0/+3
| |
* | net, pposix, signal: Check for redefined defines, fix warnings.Emmanuel Gil Peyrot2018-08-083-0/+11
| |
* | util.pposix: Use freopen(3) when replacing standard IO streams (thanks ↵Kim Alvefur2018-07-121-7/+3
| | | | | | | | | | | | ratchetfreak) Man page says this is what freopen(3) is for.
* | util.ringbuffer: Fix typo in comment [codespell]Kim Alvefur2018-04-061-1/+1
| |
* | Add makefiles compatible with BSD makeKim Alvefur2018-03-111-0/+44
| |
* | Rename Makefile -> GNUmakefile to reflect dependency on GNU MakeKim Alvefur2017-10-311-1/+1
| |
* | util.ringbuffer: Add method for discarding buffered data without returning ↵Kim Alvefur2018-02-241-0/+23
| | | | | | | | it to lua
* | util.ringbuffer: Add various commentsKim Alvefur2018-02-241-0/+19
| |
* | util.crand: Return early if a zero bytes are requestedKim Alvefur2017-12-031-1/+5
| |
* | util.crand: Throw an error for sizes smaller than 1 byteKim Alvefur2017-12-031-1/+3
| |
* | util.crand: Make it possible to use arc4random on Linux (needs libbsd)Kim Alvefur2017-12-031-1/+5
| |
* | util.crand: Use a small buffer on the stack for small pieces of random, ↵Kim Alvefur2017-12-031-1/+11
| | | | | | | | should be faster
* | util.crand: Remove unneeded castKim Alvefur2017-12-031-1/+1
| |
* | util.crand: Silence signedness warningKim Alvefur2017-12-031-1/+1
| |
* | util.crand: Only keep return value of getrandom() as the others don't return ↵Kim Alvefur2017-12-021-14/+6
| | | | | | | | partial results
* | util.crand: Try getrandom() again until buffer is filledKim Alvefur2017-12-021-5/+15
| |
* | Merge 0.10->trunkKim Alvefur2017-12-011-2/+2
|\|
| * util.signal: Fix loop (fixes #1047)Kim Alvefur2017-11-301-2/+2
| | | | | | | | | | A pre-commit version probably started with i = nsig and counted down, then an incomplete change to counting up was done
* | util.net: Add bindings to inet_ntop and inet_ptonKim Alvefur2017-11-261-0/+63
| |
* | util.crand: Add comments about definesKim Alvefur2017-12-011-0/+2
| |
* | util.crand: Apply formatterKim Alvefur2017-12-011-0/+1
| |
* | util.crand: Reorder includes so system ones are firstKim Alvefur2017-12-011-3/+2
| |
* | util.crand: Always include stdlib to be sure __GLIBC_PREREQ is definedKim Alvefur2017-12-011-3/+3
|/
* util.signal: Use a static array to keep track of pending signals (fixes #1029)Kim Alvefur2017-11-141-23/+12
|
* util.encodings: Use the 'idx' argument correctly [-Wunused-parameter]Kim Alvefur2017-10-051-1/+1
|
* util.crand: Build with musl/non-glibc (can't have undefined argument-taking ↵Kim Alvefur2017-04-251-0/+4
| | | | macros?)
* util.pposix: Remove fallocateKim Alvefur2017-02-281-60/+1
|
* util.pposix: Add function for atomically appending data to a fileKim Alvefur2017-03-011-1/+64
|
* util.encodings: Make limit lookup table a const (from Lua f2a813ae)Kim Alvefur2017-03-221-1/+1
|
* util.signal: Enable all GNU features, _DEFAULT_SOURCE doesn't have the ↵Kim Alvefur2017-03-121-1/+1
| | | | desired effect before glibc 2.19
* util.signal: Restore non-standard GNU "default" behaviour of signal(2)Kim Alvefur2017-03-111-1/+1
|
* util-src: Specify size of various tables to be allocatedKim Alvefur2017-03-095-7/+7
|
* util.pposix: Use correct type for limits [-Wconstant-conversion]Kim Alvefur2017-03-071-1/+1
|
* util.pposix: Limit meminfo to Linux until we can figure out how to get this ↵Kim Alvefur2017-03-071-1/+1
| | | | info on other platforms
* util.ringbuffer: Change types of length related variables to size_t ↵Kim Alvefur2017-03-021-2/+2
| | | | [-Wsign-compare]
* Backed out changeset a3a4ed0d34f4 C99 is okKim Alvefur2017-03-021-2/+1
|
* util.crand: Only include getrandom shiv with glibc older than 2.25Kim Alvefur2017-03-021-1/+6
|