]> git.ipfire.org Git - location/libloc.git/commit
stringpool: Implement mmap as optional
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Aug 2022 17:26:26 +0000 (17:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Aug 2022 17:26:26 +0000 (17:26 +0000)
commite4b6ca4256182b86b7efea297cbafa8576af2ec7
treee2c8950869420e24988d67dc8bcc2f1ae10d1134
parenta27e1f3d69b8567e9cb261f0acf8d31ac35534ae
stringpool: Implement mmap as optional

This patch will allow mmap() to fail and will make the reader
fall back to read from the given file descriptor.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/stringpool.c