Date: Wed, 4 Feb 1998 21:07:12 -0500 (EST) Message-Id: <199802050207.VAA13971@delorie.com> From: DJ Delorie To: eliz AT is DOT elta DOT co DOT il CC: djgpp-workers AT delorie DOT com In-reply-to: (message from Eli Zaretskii on Wed, 4 Feb 1998 17:25:13 +0200 (IST)) Subject: Re: NSIG ? Precedence: bulk > 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;