summaryrefslogtreecommitdiff
path: root/sigevent.h
blob: 1102fecc331aa6dad0507f9d846b016b3df904e0 (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
/*
 * Copyright (c) 2016-2018 Dmitry V. Levin <ldv@strace.io>
 * All rights reserved.
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#ifndef STRACE_SIGEVENT_H
# define STRACE_SIGEVENT_H

typedef struct {
	union {
		int sival_int;
		unsigned long sival_ptr;
	} sigev_value;
	int sigev_signo;
	int sigev_notify;
	union {
		int tid;
		struct {
			unsigned long function;
			unsigned long attribute;
		} sigev_thread;
	} sigev_un;
} struct_sigevent;

#endif /* !STRACE_SIGEVENT_H */