Re: Question about portability guidelines

2017-01-03 Thread Paul Eggert
On 01/03/2017 04:16 PM, Ben Pfaff wrote: > One strategy is to use PRIdPTR for ptrdiff_t and PRIdMAX or PRIuMAX > (plus a cast) for other types. PRIdPTR is for intptr_t, not for ptrdiff_t. (An aside: It's typically safer in C to assign to a typed temporary than to cast to the type, as casts are to

Re: Question about portability guidelines

2017-01-03 Thread Ben Pfaff
On Mon, Jan 02, 2017 at 04:09:59PM -0800, Paul Eggert wrote: > Bruno Haible wrote: > >I would vote for removing this sentence "Gnulib code can assume that standard > >internal types like size_t are no wider than long." The fix is easy nowadays > >(since MSVC now has ): Use intptr_t or ptrdiff_t or

Re: Test-lock hang (not 100% reproducible) on GNU/Linux

2017-01-03 Thread Bruno Haible
Pavel Raiskup wrote: > POSIX says (for pthread_rwlock_wrlock()): > > Implementations may favor writers over readers to avoid writer starvation. > > But that's too far from 'shall favor' spelling. You must be looking at an old version of POSIX [1]. POSIX:2008 specifies [2]: [TPS] If ... the

Re: FYI: giving Assaf Gordon commit rights to the gnulib repository

2017-01-03 Thread Paul Eggert
On 01/03/2017 09:36 AM, Jim Meyering wrote: Welcome, Assaf! Likewise, and thanks Assaf.

Re: FYI: giving Assaf Gordon commit rights to the gnulib repository

2017-01-03 Thread Bruno Haible
Jim Meyering wrote: > IMHO, Assaf Gordon has been doing enough fine work for long enough > that it is time to give him commit/push access to gnulib. +1 Welcome, Assaf! Bruno

FYI: giving Assaf Gordon commit rights to the gnulib repository

2017-01-03 Thread Jim Meyering
IMHO, Assaf Gordon has been doing enough fine work for long enough that it is time to give him commit/push access to gnulib. He is in the unusual position (savannah admin) of being able to grant himself that access, so I've just told him he is welcome to do that. Welcome, Assaf! Jim

Re: Test-lock hang (not 100% reproducible) on GNU/Linux

2017-01-03 Thread Pavel Raiskup
Hello Berny, On Monday, January 2, 2017 8:02:03 PM CET Bernhard Voelker wrote: > On 01/02/2017 05:37 PM, Pavel Raiskup wrote: > > On Monday, January 2, 2017 4:50:28 PM CET Bruno Haible wrote: > >> Especially since the problem occurs only on one architecture. > > > > I've been able to reproduce th