Mercurial > hg > xemacs-beta
comparison src/syssignal.h @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 8de8e3f6228a |
children | 023b83f4e54b |
comparison
equal
deleted
inserted
replaced
441:72a7cfa4a488 | 442:abe6d1db359e |
---|---|
207 | 207 |
208 #endif | 208 #endif |
209 | 209 |
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 HAVE_KILLPG |
213 #define EMACS_KILLPG(gid, signo) killpg (gid, signo) | 213 #define EMACS_KILLPG(pid, signo) killpg (pid, signo) |
214 #else | 214 #else |
215 #ifdef WINDOWSNT | 215 #ifdef WIN32_NATIVE |
216 #define EMACS_KILLPG(gid, signo) kill (gid, signo) | 216 #define EMACS_KILLPG(pid, signo) kill (pid, signo) |
217 #else | 217 #else |
218 #define EMACS_KILLPG(gid, signo) kill (-(gid), signo) | 218 #define EMACS_KILLPG(pid, signo) kill (-(pid), signo) |
219 #endif | 219 #endif |
220 #endif | 220 #endif |
221 | 221 |
222 #ifndef NSIG | 222 #ifndef NSIG |
223 # define NSIG (SIGUSR2+1) /* guess how many elements are in sys_siglist... */ | 223 # define NSIG (SIGUSR2+1) /* guess how many elements are in sys_siglist... */ |
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 WINDOWSNT | 237 #ifdef WIN32_NATIVE |
238 /* Prototypes for signal functions, see nt.c */ | 238 /* Prototypes for signal functions, see nt.c */ |
239 typedef void (__cdecl *msw_sighandler) (int); | 239 typedef void (__cdecl *mswindows_sighandler) (int); |
240 msw_sighandler msw_sigset (int sig, msw_sighandler handler); | 240 mswindows_sighandler mswindows_sigset (int sig, mswindows_sighandler handler); |
241 int msw_sighold (int nsig); | 241 int mswindows_sighold (int nsig); |
242 int msw_sigrelse (int nsig); | 242 int mswindows_sigrelse (int nsig); |
243 int msw_sigpause (int nsig); | 243 int mswindows_sigpause (int nsig); |
244 int msw_raise (int nsig); | 244 int mswindows_raise (int nsig); |
245 #endif /* _WIN32 */ | 245 #endif /* WIN32_NATIVE */ |
246 | 246 |
247 #endif /* INCLUDED_syssignal_h_ */ | 247 #endif /* INCLUDED_syssignal_h_ */ |