Roll src/third_party/WebKit e0eac24:489c548 (svn 193311:193320)
[chromium-blink-merge.git] / sandbox / linux / system_headers / android_futex.h
blob11b766f486d2404cccf245053d68a16c3dac8f21
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_FUTEX_H_
6 #define SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_FUTEX_H_
8 #if !defined(FUTEX_WAIT)
9 #define FUTEX_WAIT 0
10 #endif
12 #if !defined(FUTEX_WAKE)
13 #define FUTEX_WAKE 1
14 #endif
16 #if !defined(FUTEX_FD)
17 #define FUTEX_FD 2
18 #endif
20 #if !defined(FUTEX_REQUEUE)
21 #define FUTEX_REQUEUE 3
22 #endif
24 #if !defined(FUTEX_CMP_REQUEUE)
25 #define FUTEX_CMP_REQUEUE 4
26 #endif
28 #if !defined(FUTEX_WAKE_OP)
29 #define FUTEX_WAKE_OP 5
30 #endif
32 #if !defined(FUTEX_LOCK_PI)
33 #define FUTEX_LOCK_PI 6
34 #endif
36 #if !defined(FUTEX_UNLOCK_PI)
37 #define FUTEX_UNLOCK_PI 7
38 #endif
40 #if !defined(FUTEX_TRYLOCK_PI)
41 #define FUTEX_TRYLOCK_PI 8
42 #endif
44 #if !defined(FUTEX_WAIT_BITSET)
45 #define FUTEX_WAIT_BITSET 9
46 #endif
48 #if !defined(FUTEX_WAKE_BITSET)
49 #define FUTEX_WAKE_BITSET 10
50 #endif
52 #if !defined(FUTEX_WAIT_REQUEUE_PI)
53 #define FUTEX_WAIT_REQUEUE_PI 11
54 #endif
56 #if !defined(FUTEX_CMP_REQUEUE_PI)
57 #define FUTEX_CMP_REQUEUE_PI 12
58 #endif
60 #if !defined(FUTEX_PRIVATE_FLAG)
61 #define FUTEX_PRIVATE_FLAG 128
62 #endif
64 #if !defined FUTEX_CLOCK_REALTIME
65 #define FUTEX_CLOCK_REALTIME 256
66 #endif
68 #if !defined(FUTEX_CMD_MASK)
69 #define FUTEX_CMD_MASK ~(FUTEX_PRIVATE_FLAG | FUTEX_CLOCK_REALTIME)
70 #endif
72 #if !defined(FUTEX_CMP_REQUEUE_PI_PRIVATE)
73 #define FUTEX_CMP_REQUEUE_PI_PRIVATE (FUTEX_CMP_REQUEUE_PI | FUTEX_PRIVATE_FLAG)
74 #endif
76 #if !defined(FUTEX_UNLOCK_PI_PRIVATE)
77 #define FUTEX_UNLOCK_PI_PRIVATE (FUTEX_UNLOCK_PI | FUTEX_PRIVATE_FLAG)
78 #endif
80 #endif // SANDBOX_LINUX_SYSTEM_HEADERS_ANDROID_FUTEX_H_