Changes from arch/CVS synchronization
[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 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
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but 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 02110-1301 USA
21 */
22
23 \f
24
25 #include "libguile/__scm.h"
26 #include "libguile/threads.h"
27
28 \f
29
30 SCM_API SCM scm_sigaction (SCM signum, SCM handler, SCM flags);
31 SCM_API SCM scm_sigaction_for_thread (SCM signum, SCM handler, SCM flags,
32 SCM thread);
33 SCM_API SCM scm_restore_signals (void);
34 SCM_API SCM scm_alarm (SCM i);
35 SCM_API SCM scm_setitimer (SCM which_timer,
36 SCM interval_seconds, SCM interval_microseconds,
37 SCM value_seconds, SCM value_microseconds);
38 SCM_API SCM scm_getitimer (SCM which_timer);
39 SCM_API SCM scm_pause (void);
40 SCM_API SCM scm_sleep (SCM i);
41 SCM_API SCM scm_usleep (SCM i);
42 SCM_API SCM scm_raise (SCM sig);
43 SCM_API void scm_init_scmsigs (void);
44
45 SCM_API void scm_i_close_signal_pipe (void);
46 SCM_API void scm_i_ensure_signal_delivery_thread (void);
47
48 SCM_API scm_i_thread *scm_i_signal_delivery_thread;
49
50 #endif /* SCM_SCMSIGS_H */
51
52 /*
53 Local Variables:
54 c-file-style: "gnu"
55 End:
56 */