Xenomai 3.3.2
Loading...
Searching...
No Matches
signal.h
1/*
2 * Copyright (C) 2006 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
17 */
18#pragma GCC system_header
19#include_next <signal.h>
20
21#ifndef _COBALT_SIGNAL_H
22#define _COBALT_SIGNAL_H
23
24/* Re-read in case we came from selective __need* block. */
25#include_next <signal.h>
26#include <cobalt/wrappers.h>
27#include <cobalt/uapi/signal.h>
28
29#ifndef sigev_notify_thread_id
30#define sigev_notify_thread_id _sigev_un._tid
31#endif
32
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37int cobalt_sigshadow_handler(int sig, siginfo_t *si,
38 void *ctxt);
39
40void cobalt_sigdebug_handler(int sig, siginfo_t *si,
41 void *context);
42
43COBALT_DECL(int, sigpending, (sigset_t *set));
44
45COBALT_DECL(int, sigwait, (const sigset_t *set, int *sig));
46
47COBALT_DECL(int, sigwaitinfo, (const sigset_t *set, siginfo_t *si));
48
49COBALT_DECL_TIME64(int, sigtimedwait, __sigtimedwait64,
50 (const sigset_t *set, siginfo_t *si,
51 const struct timespec *timeout));
52
53COBALT_DECL(int, kill, (pid_t pid, int sig));
54
55COBALT_DECL(int, sigqueue, (pid_t pid, int sig, const union sigval value));
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* !_COBALT_SIGNAL_H */