]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4re-core/libc_backends/lib/sig_noop/sig.cc
Update
[l4.git] / l4 / pkg / l4re-core / libc_backends / lib / sig_noop / sig.cc
1 /*
2  * NOOP POSIX signal backend
3  * 
4  * (c) 2013 Bjoern Doebel <doebel@os.inf.tu-dresden.de>,
5  *     economic rights: Technische Universität Dresden (Germany)
6  * This file is part of TUD:OS and distributed under the terms of the
7  * GNU Lesser General Public License 2.1.
8  * Please see the COPYING-LGPL-2.1 file for details.
9  */
10
11 #include <errno.h>
12 #include <signal.h>
13
14 extern "C"
15 sighandler_t signal(int, sighandler_t) L4_NOTHROW
16 {
17   return SIG_ERR;
18 }
19
20 extern "C"
21 int sigaction(int, const struct sigaction *, struct sigaction *) L4_NOTHROW
22 {
23   errno = EINVAL;
24   return -1;
25 }
26
27 extern "C"
28 int sigprocmask(int, const sigset_t *, sigset_t *) throw()
29 {
30   errno = EINVAL;
31   return -1;
32 }
33
34 extern "C"
35 int sigpending(sigset_t *) throw()
36 {
37   errno = EFAULT;
38   return -1;
39 }
40
41 int sigsuspend(const sigset_t *) throw()
42 {
43   errno = EFAULT;
44   return -1;
45 }
46
47 extern "C"
48 int killpg(int, int) throw()
49 {
50   errno = EPERM;
51   return -1;
52 }
53