]> Savannah Git Hosting - gnulib.git/commit
vma-iter: Improvements for Linux and BSD platforms.
authorBruno Haible <bruno@clisp.org>
Tue, 26 Sep 2017 17:48:39 +0000 (19:48 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 26 Sep 2017 23:49:30 +0000 (01:49 +0200)
commit36ba2c05f02a7120be024b93e7b71af4972703a5
tree3a0b703d33e850707967a488cc5974fe78189e56
parentaadb66ea37db2e9e016b6f5ba63e843f684b96fe
vma-iter: Improvements for Linux and BSD platforms.

- Add support for DragonFly BSD.
- Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.

* lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
Read the entire file into memory in a single system call.
(vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
* lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
ChangeLog
lib/vma-iter.c
lib/vma-iter.h