diff options
author | Florian Weimer <fweimer@redhat.com> | 2020-05-28 11:19:04 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2020-05-28 11:40:13 +0200 |
commit | 6321f9e5e8a7953095183c1ae41ed3ccf5a0cdd3 (patch) | |
tree | a4bb2e921d2d50d950723821d663716cc42be05f /sysdeps/hurd | |
parent | a9175662f8cdce65aa9e2c54ea09cbebd1215f7a (diff) | |
download | glibc-6321f9e5e8a7953095183c1ae41ed3ccf5a0cdd3.tar.gz glibc-6321f9e5e8a7953095183c1ae41ed3ccf5a0cdd3.tar.xz glibc-6321f9e5e8a7953095183c1ae41ed3ccf5a0cdd3.zip |
Hurd: Move <hurd/sigpreempt.h> internals into wrapper header
_hurdsig_preemptors and _hurdsig_preempted_set are not ABI symbols, so do not declare them. HURD_PREEMPT_SIGNAL_P is an implementation detail, so move it as well. Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'sysdeps/hurd')
-rw-r--r-- | sysdeps/hurd/include/hurd/sigpreempt.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sysdeps/hurd/include/hurd/sigpreempt.h b/sysdeps/hurd/include/hurd/sigpreempt.h new file mode 100644 index 0000000000..fc0fdfd5e8 --- /dev/null +++ b/sysdeps/hurd/include/hurd/sigpreempt.h @@ -0,0 +1,32 @@ +/* Preemption of Hurd signals before POSIX.1 semantics take over. Wrapper. + Copyright (C) 1996-2020 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 */ |