[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: vma-iter: Improvements for BSD platforms
From: |
Bruno Haible |
Subject: |
Re: vma-iter: Improvements for BSD platforms |
Date: |
Sat, 07 Oct 2017 14:10:02 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-96-generic; KDE/5.18.0; x86_64; ; ) |
I did this:
> 2017-09-26 Bruno Haible <address@hidden>
>
> 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.
But on Linux (and not on the BSD systems), this has the effect that
vma_iterate() produces a truncated list of VMAs. This fixes it.
2017-10-07 Bruno Haible <address@hidden>
vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
* lib/vma-iter.c (MIN_LEFTOVER): New macro.
(STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
(rof_open): On Linux, do multiple read() calls and make sure
MIN_LEFTOVER bytes are left when read() returns.
0001-vma-iter-Fix-truncated-result-on-Linux-regression-fr.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: vma-iter: Improvements for BSD platforms,
Bruno Haible <=