1 /*
2  * This file is subject to the terms and conditions of the GNU General Public
3  * License.  See the file "COPYING" in the main directory of this archive
4  * for more details.
5  *
6  * Copyright (C) 2018 Kalray Inc.
7  */
8 
9 #ifndef _SYS_UCONTEXT_H
10 #define _SYS_UCONTEXT_H	1
11 
12 #include <signal.h>
13 #include <bits/sigcontext.h>
14 
15 #define NGREG	70
16 
17 /* Type for general register.  */
18 typedef unsigned long greg_t;
19 
20 typedef struct ucontext {
21 	unsigned long	  uc_flags;
22 	struct ucontext  *uc_link;
23 	stack_t		  uc_stack;
24 	struct sigcontext uc_mcontext;
25 	sigset_t	  uc_sigmask;	/* mask last for extensibility */
26 } ucontext_t;
27 
28 #endif /* sys/ucontext.h */
29