aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/signal.h
blob: 02509ac359ed5df3898dbe0e3f0edc4946dd580d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
 * \file
 * \brief Override for newlib's sys/signal.h
 *
 * \author Copyright (C) 2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
 *
 * \par License
 * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not
 * distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#ifndef INCLUDE_SYS_SIGNAL_H_
#define INCLUDE_SYS_SIGNAL_H_

#ifdef __cplusplus
extern "C"
{
#endif	/* def __cplusplus */

/*---------------------------------------------------------------------------------------------------------------------+
| global types
+---------------------------------------------------------------------------------------------------------------------*/

/** pointer to function taking an int argument (required by newlib's signal.h) */
typedef void (* _sig_func_ptr)(int);

/** standard sigval union - integer and void pointer */
union sigval
{
	/** integer signal value */
	int sival_int;

	/** pointer signal value */
	void* sival_ptr;
};

#ifdef __cplusplus
}	/* extern "C" */
#endif	/* def __cplusplus */

#endif	/* INCLUDE_SYS_SIGNAL_H_ */