Mercurial > emacs
comparison src/sysdep.c @ 2913:409c1022bad5
Some changes from Michael K. Johnson for Linux.
* sysdep.c (sys_siglist): Don't define this if HAVE_SYS_SIGLIST is
#defined. That lets the system provide it, if it has it.
* syssignal.h (sigmask): Only define this if <signal.h> hasn't
given us a definition already.
* syssignal.h (sys_sigpause): Fix argument in prototype.
* sysdep.c (init_signals): The masks are called empty_mask and
full_mask, not signal_empty_mask and signal_full_mask.
(signal_handler_t): Moved ....
* syssignal.h: ... to here.
* systty.h (EMACS_SET_TTY_PGRP): Call tcsetpgrp with the correct
arguments.
* emacs.c (main): Don't try to establish signal handlers for
SIGBUS and SIGSYS unless they're actually #defined.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Wed, 19 May 1993 22:01:35 +0000 |
parents | f1cd54cf1b67 |
children | 34492be68ced |
comparison
equal
deleted
inserted
replaced
2912:32106dbf6d01 | 2913:409c1022bad5 |
---|---|
2038 sigset_t old_mask, empty_mask, full_mask, temp_mask; | 2038 sigset_t old_mask, empty_mask, full_mask, temp_mask; |
2039 static struct sigaction new_action, old_action; | 2039 static struct sigaction new_action, old_action; |
2040 | 2040 |
2041 init_signals () | 2041 init_signals () |
2042 { | 2042 { |
2043 #ifdef POSIX_SIGNALS | 2043 sigemptyset (&empty_mask); |
2044 sigemptyset (&signal_empty_mask); | 2044 sigfillset (&full_mask); |
2045 sigfillset (&signal_full_mask); | 2045 } |
2046 #endif | |
2047 } | |
2048 | |
2049 int (*signal_handler_t) (); | |
2050 | 2046 |
2051 signal_handler_t | 2047 signal_handler_t |
2052 sys_signal (int signal_number, signal_handler_t action) | 2048 sys_signal (int signal_number, signal_handler_t action) |
2053 { | 2049 { |
2054 #ifdef DGUX | 2050 #ifdef DGUX |
2415 * system calls to a single occurance in the source. Sure, this | 2411 * system calls to a single occurance in the source. Sure, this |
2416 * adds an extra level of function call overhead but it is almost | 2412 * adds an extra level of function call overhead but it is almost |
2417 * always negligible. Fred Fish, Unisoft Systems Inc. | 2413 * always negligible. Fred Fish, Unisoft Systems Inc. |
2418 */ | 2414 */ |
2419 | 2415 |
2416 #ifndef HAVE_SYS_SIGLIST | |
2420 char *sys_siglist[NSIG + 1] = | 2417 char *sys_siglist[NSIG + 1] = |
2421 { | 2418 { |
2422 #ifdef AIX | 2419 #ifdef AIX |
2423 /* AIX has changed the signals a bit */ | 2420 /* AIX has changed the signals a bit */ |
2424 "bogus signal", /* 0 */ | 2421 "bogus signal", /* 0 */ |
2475 "death of a child", /* 18 SIGCLD */ | 2472 "death of a child", /* 18 SIGCLD */ |
2476 "power-fail restart", /* 19 SIGPWR */ | 2473 "power-fail restart", /* 19 SIGPWR */ |
2477 #endif /* not AIX */ | 2474 #endif /* not AIX */ |
2478 0 | 2475 0 |
2479 }; | 2476 }; |
2477 #endif HAVE_SYS_SIGLIST | |
2480 | 2478 |
2481 /* | 2479 /* |
2482 * Warning, this function may not duplicate 4.2 action properly | 2480 * Warning, this function may not duplicate 4.2 action properly |
2483 * under error conditions. | 2481 * under error conditions. |
2484 */ | 2482 */ |