Mail Archives: djgpp-workers/1998/02/04/21:07:40
> Is the _sys_siglist[] variety found on SysV Unices? What does SGI use?
> At least Sun/Solaris here has sys_siglist, but that might be for
> compatibility with SunOS 4.x which is BSD.
SGI defines _sys_siglist, but includes a weak symbol for sys_siglist.
One of the advantages of ELF, I mut say.
> The problem is that if I say ``char *foo = "foobar";'', GCC treats foo
> as const char *, and then complains when I say ``sys_siglist[i] = foo;''
> because sys_siglist is char [], not const char []. I couldn't find an
> easy way out of this, and I didn't want to use unconst since it is not
> really needed here.
char foo[] = "foobar";
_sys_siglist[i] = foo;
- Raw text -