summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/kvx/sys/ucontext.h
blob: 6a30a09e20f233a1a7af1e6b9ba4b428dc357526 (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
/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 2018 Kalray Inc.
 */

#ifndef _SYS_UCONTEXT_H
#define _SYS_UCONTEXT_H	1

#include <signal.h>
#include <bits/sigcontext.h>

#define NGREG	70

/* Type for general register.  */
typedef unsigned long greg_t;

typedef struct sigcontext mcontext_t;

typedef struct ucontext {
	unsigned long	  uc_flags;
	struct ucontext  *uc_link;
	stack_t		  uc_stack;
	mcontext_t	  uc_mcontext;
	sigset_t	  uc_sigmask;	/* mask last for extensibility */
} ucontext_t;

#endif /* sys/ucontext.h */