Change Guile license to LGPLv3+
[bpt/guile.git] / libguile / scmsigs.h
1 /* classes: h_files */
2
3 #ifndef SCM_SCMSIGS_H
4 #define SCM_SCMSIGS_H
5
6 /* Copyright (C) 1995,1996,1997,1998,2000, 2002, 2006, 2007, 2008 Free Software Foundation, Inc.
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 3 of
11 * the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 * 02110-1301 USA
22 */
23
24 \f
25
26 #include "libguile/__scm.h"
27 #include "libguile/threads.h"
28
29 \f
30
31 SCM_API SCM scm_sigaction (SCM signum, SCM handler, SCM flags);
32 SCM_API SCM scm_sigaction_for_thread (SCM signum, SCM handler, SCM flags,
33 SCM thread);
34 SCM_API SCM scm_restore_signals (void);
35 SCM_API SCM scm_alarm (SCM i);
36 SCM_API SCM scm_setitimer (SCM which_timer,
37 SCM interval_seconds, SCM interval_microseconds,
38 SCM value_seconds, SCM value_microseconds);
39 SCM_API SCM scm_getitimer (SCM which_timer);
40 SCM_API SCM scm_pause (void);
41 SCM_API SCM scm_sleep (SCM i);
42 SCM_API SCM scm_usleep (SCM i);
43 SCM_API SCM scm_raise (SCM sig);
44 SCM_INTERNAL void scm_init_scmsigs (void);
45
46 SCM_INTERNAL void scm_i_close_signal_pipe (void);
47 SCM_INTERNAL void scm_i_ensure_signal_delivery_thread (void);
48
49 SCM_INTERNAL scm_i_thread *scm_i_signal_delivery_thread;
50
51 #endif /* SCM_SCMSIGS_H */
52
53 /*
54 Local Variables:
55 c-file-style: "gnu"
56 End:
57 */