From f2149f697a3a5339a30dd6931864a7f5f6904085 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 17 Oct 1995 09:00:50 +0000 Subject: * hurd/hurd/signal.h: Declare hurd_preempt_signals and hurd_unpreempt_signals. * stdio/stdio.h: Declare __snprintf and __vsnprintf. --- hurd/hurd/signal.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'hurd') diff --git a/hurd/hurd/signal.h b/hurd/hurd/signal.h index 6a188bd774..b494f4922e 100644 --- a/hurd/hurd/signal.h +++ b/hurd/hurd/signal.h @@ -357,5 +357,18 @@ struct hurd_signal_preempt extern struct hurd_signal_preempt *_hurd_signal_preempt[NSIG]; extern struct mutex _hurd_signal_preempt_lock; +/* Install a signal preempter for the given signal and range. + The caller is responsible for the storage for PREEMPTER. */ +extern int hurd_preempt_signals (struct hurd_signal_preempt *preempter, + int signo, int first_code, int last_code, + sighandler_t (*handler) (thread_t, + int, long int, int)); + +/* Remove the signal preempter previously installed by calling + `hurd_preempt_signals' with PREEMPTER and SIGNO. */ +extern int hurd_unpreempt_signals (struct hurd_signal_preempt *preempter, + int signo); + + #endif /* hurd/signal.h */ -- cgit v1.2.3