]> git.ipfire.org Git - thirdparty/glibc.git/blob - signal/bits/types/__sigval_t.h
395ce501e9e024e29a37c1eebd9afc4ea05567cf
[thirdparty/glibc.git] / signal / bits / types / __sigval_t.h
1 /* Define __sigval_t.
2 Copyright (C) 1997-2018 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
18
19 #ifndef ____sigval_t_defined
20 #define ____sigval_t_defined
21
22 /* Type for data associated with a signal. */
23 #ifdef __USE_POSIX199309
24 union sigval
25 {
26 int sival_int;
27 void *sival_ptr;
28 };
29
30 typedef union sigval __sigval_t;
31 #else
32 union __sigval
33 {
34 int __sival_int;
35 void *__sival_ptr;
36 };
37
38 typedef union __sigval __sigval_t;
39 #endif
40
41 #endif