Re: Building the argp module fails

2013-06-10 Thread Brandon Invergo
Paul Eggert writes: > Looks like HAVE_CONFIG_H isn't defined? > argp is one of the few modules that's using > that obsolescent var (dunno why...). Yep, that's all it took. As I guessed: user error. Thanks for the help! Cheers, -brandon -- Brandon Invergo http://brandon.invergo.net pgpsr4z

Re: sig2str and str2sig use in C++

2013-06-10 Thread Paul Eggert
On 06/05/13 09:57, Daniel J Sebald wrote: > > > Well, taking this all into consideration, perhaps the easiest thing to do is > construct a table at runtime on the heap: I'd rather avoid the runtime overhead. How about something like this? enum { HUP_OFFSET = 0 }; #define HUP_STRING "string fo

Re: sig2str and str2sig use in C++

2013-06-10 Thread Daniel J Sebald
On 06/10/2013 05:47 PM, Paul Eggert wrote: On 06/05/13 09:57, Daniel J Sebald wrote: Well, taking this all into consideration, perhaps the easiest thing to do is construct a table at runtime on the heap: I'd rather avoid the runtime overhead. How about something like this? enum { HUP_OFFS

Re: sig2str and str2sig use in C++

2013-06-10 Thread Daniel J Sebald
On 06/10/2013 09:36 PM, Daniel J Sebald wrote: On 06/10/2013 05:47 PM, Paul Eggert wrote: On 06/05/13 09:57, Daniel J Sebald wrote: Well, taking this all into consideration, perhaps the easiest thing to do is construct a table at runtime on the heap: I'd rather avoid the runtime overhead.

Re: sig2str and str2sig use in C++

2013-06-10 Thread Paul Eggert
On 06/10/2013 07:50 PM, Daniel J Sebald wrote: > char sig_strings[] = { > #ifdef SIGHUP > HUP_STRING, '\0', > #endif Yes, that's better, though it should look more like this: char const sig_strings[] = #define HUP_OFFSET 0 #ifdef SIGHUP "HUP" "\0" # define INT_OFFSET (HUP_OFFSET + sizeof "HUP

Re: [PATCH] tests: don't assume getdtablesize () <= 10000000

2013-06-10 Thread Daiki Ueno
Hi, Paul Eggert writes: > + * tests/test-posix_spawn_file_actions_addclose.c: > + * tests/test-posix_spawn_file_actions_adddup2.c: > + * tests/test-posix_spawn_file_actions_addopen.c: > + Don't assume getdtablesize () <= 1000. Those changes are failing on Mac OS X: FAIL: te