Mercurial > hg > xemacs-beta
comparison src/syssignal.h @ 398:74fd4e045ea6 r21-2-29
Import from CVS: tag r21-2-29
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:13:30 +0200 |
parents | 8626e4521993 |
children | de805c49cfc1 |
comparison
equal
deleted
inserted
replaced
397:f4aeb21a5bad | 398:74fd4e045ea6 |
---|---|
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 _XEMACS_SYSSIGNAL_H_ | 23 #ifndef INCLUDED_syssignal_h_ |
24 #define _XEMACS_SYSSIGNAL_H_ | 24 #define INCLUDED_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 |
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 WINDOWSNT | 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 | 237 #ifdef WINDOWSNT |
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 *msw_sighandler) (int); |
240 msw_sighandler msw_sigset (int sig, msw_sighandler handler); | 240 msw_sighandler msw_sigset (int sig, msw_sighandler handler); |
241 int msw_sighold (int nsig); | 241 int msw_sighold (int nsig); |
242 int msw_sigrelse (int nsig); | 242 int msw_sigrelse (int nsig); |
243 int msw_sigpause (int nsig); | 243 int msw_sigpause (int nsig); |
244 int msw_raise (int nsig); | 244 int msw_raise (int nsig); |
245 #endif /* _WIN32 */ | 245 #endif /* _WIN32 */ |
246 | 246 |
247 #endif /* _XEMACS_SYSSIGNAL_H_ */ | 247 #endif /* INCLUDED_syssignal_h_ */ |