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"
signal(int,sighandler_t)15 sighandler_t signal(int, sighandler_t) L4_NOTHROW
16 {
17   errno = EINVAL;
18   return SIG_ERR;
19 }
20 
21 extern "C"
sigaction(int,const struct sigaction *,struct sigaction *)22 int sigaction(int, const struct sigaction *, struct sigaction *) L4_NOTHROW
23 {
24   errno = EINVAL;
25   return -1;
26 }
27 
28 extern "C"
sigprocmask(int,const sigset_t *,sigset_t *)29 int sigprocmask(int, const sigset_t *, sigset_t *) throw()
30 {
31   errno = EINVAL;
32   return -1;
33 }
34 
35 extern "C"
sigpending(sigset_t *)36 int sigpending(sigset_t *) throw()
37 {
38   errno = EFAULT;
39   return -1;
40 }
41 
sigsuspend(const sigset_t *)42 int sigsuspend(const sigset_t *) throw()
43 {
44   errno = EFAULT;
45   return -1;
46 }
47 
48 extern "C"
killpg(int,int)49 int killpg(int, int) throw()
50 {
51   errno = EPERM;
52   return -1;
53 }
54 
55