delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/02/04/21:07:40

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

> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019