Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / native_client / src / nonsfi / linux / linux_syscall_defines.h
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 CLONE_VM             0x00000100
11 #define CLONE_FS             0x00000200
12 #define CLONE_FILES          0x00000400
13 #define CLONE_SIGHAND        0x00000800
14 #define CLONE_THREAD         0x00010000
15 #define CLONE_SYSVSEM        0x00040000
16 #define CLONE_SETTLS         0x00080000
17
18 #define FUTEX_WAIT_PRIVATE 128
19 #define FUTEX_WAKE_PRIVATE 129
20
21 #define LINUX_TCGETS 0x5401
22
23 #define LINUX_SIG_UNBLOCK 1
24
25 #define LINUX_SA_SIGINFO 0x00000004
26 #define LINUX_SA_RESTART 0x10000000
27 #define LINUX_SA_ONSTACK 0x08000000
28
29 /* From linux/arch/{arch}/include/uapi/asm/signal.h */
30 #if defined(__mips__)
31 /*
32  * We at least know the numbers are different on MIPS. This part would
33  * be guarded by #if defined(__i386__) || defined(__arm__), however
34  * this file is included by code which does not have --target set.
35  */
36 #error "Unsupported architecture"
37 #endif
38 #define LINUX_SIGHUP           1
39 #define LINUX_SIGINT           2
40 #define LINUX_SIGQUIT          3
41 #define LINUX_SIGILL           4
42 #define LINUX_SIGTRAP          5
43 #define LINUX_SIGABRT          6
44 #define LINUX_SIGBUS           7
45 #define LINUX_SIGFPE           8
46 #define LINUX_SIGKILL          9
47 #define LINUX_SIGUSR1         10
48 #define LINUX_SIGSEGV         11
49 #define LINUX_SIGUSR2         12
50 #define LINUX_SIGPIPE         13
51 #define LINUX_SIGALRM         14
52 #define LINUX_SIGTERM         15
53 #define LINUX_SIGSTKFLT       16
54 #define LINUX_SIGCHLD         17
55 #define LINUX_SIGSYS          31
56
57 #endif