1 /*
2  * Copyright 2014 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6 
7 #ifndef NATIVE_CLIENT_SRC_NONSFI_LINUX_LINUX_SYSCALL_DEFINES_H_
8 #define NATIVE_CLIENT_SRC_NONSFI_LINUX_LINUX_SYSCALL_DEFINES_H_ 1
9 
10 #define FUTEX_WAIT_PRIVATE 128
11 #define FUTEX_WAKE_PRIVATE 129
12 
13 #define LINUX_TCGETS 0x5401
14 
15 #define LINUX_SIG_UNBLOCK 1
16 
17 #define LINUX_SA_SIGINFO 0x00000004
18 #define LINUX_SA_ONSTACK 0x08000000
19 #define LINUX_SA_NODEFER 0x40000000
20 #define LINUX_SA_RESTART 0x10000000
21 
22 /* From linux/arch/{arch}/include/uapi/asm/signal.h */
23 #if defined(__mips__)
24 /*
25  * We at least know the numbers are different on MIPS. This part would
26  * be guarded by #if defined(__i386__) || defined(__arm__), however
27  * this file is included by code which does not have --target set.
28  */
29 #error "Unsupported architecture"
30 #endif
31 #define LINUX_SIGHUP           1
32 #define LINUX_SIGINT           2
33 #define LINUX_SIGQUIT          3
34 #define LINUX_SIGILL           4
35 #define LINUX_SIGTRAP          5
36 #define LINUX_SIGABRT          6
37 #define LINUX_SIGBUS           7
38 #define LINUX_SIGFPE           8
39 #define LINUX_SIGKILL          9
40 #define LINUX_SIGUSR1         10
41 #define LINUX_SIGSEGV         11
42 #define LINUX_SIGUSR2         12
43 #define LINUX_SIGPIPE         13
44 #define LINUX_SIGALRM         14
45 #define LINUX_SIGTERM         15
46 #define LINUX_SIGSTKFLT       16
47 #define LINUX_SIGCHLD         17
48 #define LINUX_SIGSYS          31
49 
50 #endif
51