xref: /freebsd/sys/compat/linux/linux_signal.h (revision 794328fbc174360a09b6ad341624e9bce46f0d2e)
151705ff7SMarcel Moolenaar /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
37f2d13d6SPedro F. Giffuni  *
451705ff7SMarcel Moolenaar  * Copyright (c) 2000 Marcel Moolenaar
551705ff7SMarcel Moolenaar  * All rights reserved.
651705ff7SMarcel Moolenaar  *
751705ff7SMarcel Moolenaar  * Redistribution and use in source and binary forms, with or without
851705ff7SMarcel Moolenaar  * modification, are permitted provided that the following conditions
951705ff7SMarcel Moolenaar  * are met:
1051705ff7SMarcel Moolenaar  * 1. Redistributions of source code must retain the above copyright
11b1ed95fdSEd Maste  *    notice, this list of conditions and the following disclaimer.
1251705ff7SMarcel Moolenaar  * 2. Redistributions in binary form must reproduce the above copyright
1351705ff7SMarcel Moolenaar  *    notice, this list of conditions and the following disclaimer in the
1451705ff7SMarcel Moolenaar  *    documentation and/or other materials provided with the distribution.
1551705ff7SMarcel Moolenaar  *
16b1ed95fdSEd Maste  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17b1ed95fdSEd Maste  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18b1ed95fdSEd Maste  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19b1ed95fdSEd Maste  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20b1ed95fdSEd Maste  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21b1ed95fdSEd Maste  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22b1ed95fdSEd Maste  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23b1ed95fdSEd Maste  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24b1ed95fdSEd Maste  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25b1ed95fdSEd Maste  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26b1ed95fdSEd Maste  * SUCH DAMAGE.
2751705ff7SMarcel Moolenaar  */
2851705ff7SMarcel Moolenaar 
2951705ff7SMarcel Moolenaar #ifndef _LINUX_SIGNAL_H_
3051705ff7SMarcel Moolenaar #define _LINUX_SIGNAL_H_
3151705ff7SMarcel Moolenaar 
32b63dc6adSAlfred Perlstein int linux_do_sigaction(struct thread *, int, l_sigaction_t *, l_sigaction_t *);
33fe4ed1e7SDmitry Chagin void siginfo_to_lsiginfo(const siginfo_t *si, l_siginfo_t *lsi, l_int sig);
3493107373SDmitry Chagin int linux_copyin_sigset(struct thread *td, l_sigset_t *, l_size_t, sigset_t *,
3593107373SDmitry Chagin     sigset_t **);
3651705ff7SMarcel Moolenaar 
3751705ff7SMarcel Moolenaar #endif /* _LINUX_SIGNAL_H_ */
38