about summary refs log tree commit diff
path: root/sysdeps/hurd/include/hurd/sigpreempt.h
blob: 2983305dee80fbe973634990c59ec403de5589cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* Preemption of Hurd signals before POSIX.1 semantics take over.  Wrapper.
   Copyright (C) 1996-2024 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.

   The GNU C Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Lesser General Public License for more details.

   You should have received a copy of the GNU Lesser General Public
   License along with the GNU C Library; if not, see
   <https://www.gnu.org/licenses/>.  */

#ifndef _HURD_SIGPREEMPT_H
# include <hurd/hurd/sigpreempt.h>

# ifndef _ISOMAC
#  define HURD_PREEMPT_SIGNAL_P(preemptor, signo, sigcode) \
  (((preemptor)->signals & __sigmask (signo)) \
   && (sigcode) >= (preemptor)->first && (sigcode) <= (preemptor)->last)

/* Signal preemptors applying to all threads; locked by _hurd_siglock.  */
extern struct hurd_signal_preemptor *_hurdsig_preemptors;
extern sigset_t _hurdsig_preempted_set;

# endif /* _ISOMAC */
#endif /* _HURD_SIGPREEMPT_H */