1 /** \file signals.c
2 * \brief Architecture-dependant signal handling
3 *
4 * \author Marco van den Heuvel <blackystardust68@yahoo.com>
5 */
6
7 /*
8 * This file is part of VICE, the Versatile Commodore Emulator.
9 * See README for copyright notice.
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
24 * 02111-1307 USA.
25 *
26 */
27
28 #include "vice.h"
29
30 #include "archdep.h"
31 #include "signals.h"
32
33 /** \brief Initialize signal handling
34 *
35 * Used once at init time to setup all signal handlers.
36 *
37 * \param[in] do_core_dumps do core dumps. appearantly
38 */
signals_init(int do_core_dumps)39 void signals_init(int do_core_dumps)
40 {
41 archdep_signals_init(do_core_dumps);
42 }
43
44 /*
45 * These two are used for socket send/recv. in this case we might
46 * get SIGPIPE if the connection is unexpectedly closed.
47 */
48
49
50 /** \brief Call another function
51 */
signals_pipe_set(void)52 void signals_pipe_set(void)
53 {
54 archdep_signals_pipe_set();
55 }
56
57
58 /** \brief Call another function
59 */
signals_pipe_unset(void)60 void signals_pipe_unset(void)
61 {
62 archdep_signals_pipe_unset();
63 }
64