On 06/04/2013 12:35 PM, Daniel J Sebald wrote:
On 06/04/2013 02:47 AM, Thien-Thi Nguyen wrote:
() Paul Eggert<egg...@cs.ucla.edu>
() 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.

[compile time wins]

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 recall as being the loader problem? The "extern" part? Or
use of a null string for termination?

I'm just thinking, Paul, if the null termination/index pointer idea were
used throughout the string array, one could continue to use the

int sig2str (int, char *);

function in a backward compatible way.

What was I thinking? That wouldn't be backward compatible. sig2str is copying onto the passed into character string pointer.

Dan

Reply via email to