2 * \file l4re/lib/src/parent.cc
6 * (c) 2008-2009 Technische Universität Dresden
7 * This file is part of TUD:OS and distributed under the terms of the
8 * GNU General Public License 2.
9 * Please see the COPYING-GPL-2 file for details.
11 * As a special exception, you may use this file as part of a free software
12 * library without restriction. Specifically, if other files instantiate
13 * templates or use macros or inline functions from this file, or you compile
14 * this file and link it with other files to produce an executable, this
15 * file does not by itself cause the resulting executable to be covered by
16 * the GNU General Public License. This exception does not however
17 * invalidate any other reasons why the executable file might be covered by
18 * the GNU General Public License.
20 #include <l4/cxx/ipc_stream>
22 #include <l4/re/parent>
23 #include <l4/re/parent-sys.h>
24 #include <l4/re/protocols>
32 Parent::signal(unsigned long sig, unsigned long val) const throw()
34 L4::Ipc_iostream io(l4_utcb());
35 io << L4::Opcode(Parent_::Signal) << sig << val;
36 return l4_error(io.call(cap(), L4Re::Protocol::Parent));