comparison src/syssignal.h @ 74:54cc21c15cbb r20-0b32

Import from CVS: tag r20-0b32
author cvs
date Mon, 13 Aug 2007 09:04:33 +0200
parents 131b0175ea99
children c7528f8e288d
comparison
equal deleted inserted replaced
73:e2d7a37b7c8d 74:54cc21c15cbb
86 just signal() for the standard signal-setting operation. 86 just signal() for the standard signal-setting operation.
87 Perhaps we should change this to EMACS_SIGNAL(), but that runs 87 Perhaps we should change this to EMACS_SIGNAL(), but that runs
88 the risk of someone forgetting this convention and calling 88 the risk of someone forgetting this convention and calling
89 signal() directly. */ 89 signal() directly. */
90 90
91 typedef SIGTYPE (*signal_handler_t) (int);
92
91 #if defined (HAVE_SIGPROCMASK) 93 #if defined (HAVE_SIGPROCMASK)
92 94
93 /* The POSIX way (sigaction, sigprocmask, sigpending, sigsuspend) */ 95 /* The POSIX way (sigaction, sigprocmask, sigpending, sigsuspend) */
94 96
95 typedef SIGTYPE (*signal_handler_t) (int);
96 extern signal_handler_t sys_do_signal (int signal_number, 97 extern signal_handler_t sys_do_signal (int signal_number,
97 signal_handler_t action); 98 signal_handler_t action);
98 /* Provide our own version of signal(), that calls sigaction(). The 99 /* Provide our own version of signal(), that calls sigaction(). The
99 name is not sys_signal() because a function of that name exists in 100 name is not sys_signal() because a function of that name exists in
100 libenergize.a */ 101 libenergize.a */