comparison src/syssignal.h @ 412:697ef44129c6 r21-2-14

Import from CVS: tag r21-2-14
author cvs
date Mon, 13 Aug 2007 11:20:41 +0200
parents de805c49cfc1
children 11054d720c21
comparison
equal deleted inserted replaced
411:12e008d41344 412:697ef44129c6
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */ 19 Boston, MA 02111-1307, USA. */
20 20
21 /* Synched up with: FSF 19.30. */ 21 /* Synched up with: FSF 19.30. */
22 22
23 #ifndef INCLUDED_syssignal_h_ 23 #ifndef _XEMACS_SYSSIGNAL_H_
24 #define INCLUDED_syssignal_h_ 24 #define _XEMACS_SYSSIGNAL_H_
25 25
26 /* In the old world, one could not #include <signal.h> here. The party line 26 /* In the old world, one could not #include <signal.h> here. The party line
27 was that that header should always be #included before <config.h>, because 27 was that that header should always be #included before <config.h>, because
28 some configuration files (like s/hpux.h) indicate that SIGIO doesn't work 28 some configuration files (like s/hpux.h) indicate that SIGIO doesn't work
29 by #undef-ing SIGIO, and if this file #includes <signal.h>, then that will 29 by #undef-ing SIGIO, and if this file #includes <signal.h>, then that will
210 /* On bsd, [man says] kill does not accept a negative number to kill a pgrp. 210 /* On bsd, [man says] kill does not accept a negative number to kill a pgrp.
211 Must do that using the killpg call. */ 211 Must do that using the killpg call. */
212 #ifdef BSD 212 #ifdef BSD
213 #define EMACS_KILLPG(gid, signo) killpg (gid, signo) 213 #define EMACS_KILLPG(gid, signo) killpg (gid, signo)
214 #else 214 #else
215 #ifdef WIN32_NATIVE 215 #ifdef WINDOWSNT
216 #define EMACS_KILLPG(gid, signo) kill (gid, signo) 216 #define EMACS_KILLPG(gid, signo) (kill (gid, signo))
217 #else 217 #else
218 #define EMACS_KILLPG(gid, signo) kill (-(gid), signo) 218 #define EMACS_KILLPG(gid, signo) kill (-(gid), signo)
219 #endif 219 #endif
220 #endif 220 #endif
221 221
225 225
226 /* SYS_SIGLIST_DECLARED is determined by configure. On Linux, it seems, 226 /* SYS_SIGLIST_DECLARED is determined by configure. On Linux, it seems,
227 configure incorrectly fails to find it, so s/linux.h defines 227 configure incorrectly fails to find it, so s/linux.h defines
228 HAVE_SYS_SIGLIST. */ 228 HAVE_SYS_SIGLIST. */
229 #if !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_SYS_SIGLIST) 229 #if !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_SYS_SIGLIST)
230 extern const char *sys_siglist[]; 230 extern CONST char *sys_siglist[];
231 #endif 231 #endif
232 232
233 #ifdef SIGDANGER 233 #ifdef SIGDANGER
234 SIGTYPE memory_warning_signal (int sig); 234 SIGTYPE memory_warning_signal (int sig);
235 #endif 235 #endif
236 236
237 #ifdef WIN32_NATIVE 237 #ifdef _WIN32
238 /* Prototypes for signal functions, see nt.c */ 238 /* Prototypes for signal functions, see nt.c */
239 typedef void (__cdecl *mswindows_sighandler) (int); 239 typedef void (__cdecl *msw_sighandler) (int);
240 mswindows_sighandler mswindows_sigset (int sig, mswindows_sighandler handler); 240 msw_sighandler msw_sigset (int sig, msw_sighandler handler);
241 int mswindows_sighold (int nsig); 241 int msw_sighold (int nsig);
242 int mswindows_sigrelse (int nsig); 242 int msw_sigrelse (int nsig);
243 int mswindows_sigpause (int nsig); 243 int msw_sigpause (int nsig);
244 int mswindows_raise (int nsig); 244 int msw_raise (int nsig);
245 #endif /* WIN32_NATIVE */ 245 #endif /* _WIN32 */
246 246
247 #endif /* INCLUDED_syssignal_h_ */ 247 #endif /* _XEMACS_SYSSIGNAL_H_ */