[PATCH] timespec: fix resolution confusion

2018-09-10 Thread Paul Eggert
In normal usage, clock resolution is given in seconds, but the code was mistakenly using inverse seconds and calling it “resolution”. Fix this, partly by renaming two identifiers. The old names will be kept for a bit, to ease transition. * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ): New const

Re: [Qemu-devel] [Bug 1776920] Re: qemu-img convert on Mac OSX creates corrupt images

2018-09-10 Thread Eric Blake
On 9/7/18 5:44 PM, Bruno Haible wrote: Eric Blake wrote: MacOS comes along, and now both queries return a different offset than your input, but neither fails. If you optimized by calling SEEK_DATA first, you end up treating the current offset as a hole (data loss). And if you make both calls lo

Re: Introduce posix_spawn

2018-09-10 Thread Eric Blake
On 09/08/2018 02:24 AM, Bernhard Voelker wrote: On 09/08/18 00:15, Eric Blake wrote: Adding posix_spawn_file_actions_addchdir() is what avoids the need to lock in the parent, because now you do: A thought WRT the naming: while ..._addopen() can be called for more file descriptors, there's only