Re: sig2str and str2sig use in C++

2013-06-05 Thread Thien-Thi Nguyen
() Daniel J Sebald () Tue, 04 Jun 2013 12:35:00 -0500 > I seem to recall a paper several years back that argued against > this approach based on ldso issues. Drat, can't dredge the > details... I tried searching the Internet for such issues, but couldn't find any. What do you rec

Re: test-fdutimensat racy?

2013-06-05 Thread Bernhard Voelker
On 06/05/2013 01:33 AM, Pádraig Brady wrote: > On 06/04/2013 09:20 PM, Bernhard Voelker wrote: >> Subject: [PATCH] tests/nap.h: avoid race > > That's a bit terse. I'd instead say: > tests/nap.h: use an adaptive delay to avoid ctime update issues Fixed - see complete patch below. > It might be wo

FreeBSD has setenv but not clearenv

2013-06-05 Thread Colin Watson
Hi, I've had multiple reports (https://savannah.nongnu.org/bugs/?36848, https://bugs.gentoo.org/show_bug.cgi?id=244517) telling me that FreeBSD is missing the clearenv function, even though it has setenv. It would be very helpful if Gnulib could handle this. Is "environ = NULL;" portable, or doe

Re: test-fdutimensat racy?

2013-06-05 Thread Pádraig Brady
On 06/05/2013 08:37 AM, Bernhard Voelker wrote: >/* Return the greater of the ctime and the mtime differences, or > zero if it cannot be determined, or INT_MAX if either overflows. */ > - cdiff = diff_timespec (get_stat_ctime (st), get_stat_ctime (&old_st)); > - if (cdiff != 0) > -

Re: FreeBSD has setenv but not clearenv

2013-06-05 Thread Eric Blake
On 06/05/2013 03:10 AM, Colin Watson wrote: > Hi, > > I've had multiple reports (https://savannah.nongnu.org/bugs/?36848, > https://bugs.gentoo.org/show_bug.cgi?id=244517) telling me that FreeBSD > is missing the clearenv function, even though it has setenv. It would > be very helpful if Gnulib c

Re: FreeBSD has setenv but not clearenv

2013-06-05 Thread Colin Watson
On Wed, Jun 05, 2013 at 06:13:50AM -0600, Eric Blake wrote: > On 06/05/2013 03:10 AM, Colin Watson wrote: > > I've had multiple reports (https://savannah.nongnu.org/bugs/?36848, > > https://bugs.gentoo.org/show_bug.cgi?id=244517) telling me that FreeBSD > > is missing the clearenv function, even th

Re: FreeBSD has setenv but not clearenv

2013-06-05 Thread Eric Blake
On 06/05/2013 06:36 AM, Colin Watson wrote: >> >> clearenv() is non-standard (it is a glibc extension); but yes, glibc >> documents that "environ = NULL" is a portable alternative. > > Hm, that's not in my libc.info. Do you just mean the code? I found it in 'man clearenv' on a Linux system; so m

Re: sig2str and str2sig use in C++

2013-06-05 Thread Daniel J Sebald
On 06/04/2013 12:35 PM, Daniel J Sebald wrote: On 06/04/2013 02:47 AM, Thien-Thi Nguyen wrote: () Paul Eggert () Mon, 03 Jun 2013 15:28:24 -0700 extern char const allsigstr[]; This would consist of a concatenation of null-terminated strings, one per name, terminated by an empty string. [compi

Re: sig2str and str2sig use in C++

2013-06-05 Thread Daniel J Sebald
On 06/05/2013 02:17 AM, Thien-Thi Nguyen wrote: () Daniel J Sebald () Tue, 04 Jun 2013 12:35:00 -0500 > I seem to recall a paper several years back that argued against > this approach based on ldso issues. Drat, can't dredge the > details... I tried searching the Internet fo

Re: FreeBSD has setenv but not clearenv

2013-06-05 Thread Colin Watson
On Wed, Jun 05, 2013 at 06:59:24AM -0600, Eric Blake wrote: > On 06/05/2013 06:36 AM, Colin Watson wrote: > > Eric Blake wrote: > >> clearenv() is non-standard (it is a glibc extension); but yes, glibc > >> documents that "environ = NULL" is a portable alternative. > > > > Hm, that's not in my lib