linux.hh (13650:93efc0143eb7) linux.hh (13651:b33db942f760)
1/*
2 * Copyright (c) 2004-2009 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 229 unchanged lines hidden (view full) ---

238 static std::string etcPasswd(Process *process, ThreadContext *tc);
239 static std::string cpuOnline(Process *process, ThreadContext *tc);
240
241 // For futex system call
242 static const unsigned TGT_FUTEX_WAIT = 0;
243 static const unsigned TGT_FUTEX_WAKE = 1;
244 static const unsigned TGT_FUTEX_REQUEUE = 3;
245 static const unsigned TGT_FUTEX_CMP_REQUEUE = 4;
1/*
2 * Copyright (c) 2004-2009 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 229 unchanged lines hidden (view full) ---

238 static std::string etcPasswd(Process *process, ThreadContext *tc);
239 static std::string cpuOnline(Process *process, ThreadContext *tc);
240
241 // For futex system call
242 static const unsigned TGT_FUTEX_WAIT = 0;
243 static const unsigned TGT_FUTEX_WAKE = 1;
244 static const unsigned TGT_FUTEX_REQUEUE = 3;
245 static const unsigned TGT_FUTEX_CMP_REQUEUE = 4;
246 static const unsigned TGT_FUTEX_WAKE_OP = 5;
246 static const unsigned TGT_FUTEX_WAIT_BITSET = 9;
247 static const unsigned TGT_FUTEX_WAKE_BITSET = 10;
248 static const unsigned TGT_EAGAIN = 11;
249 static const unsigned TGT_EWOULDBLOCK = TGT_EAGAIN;
250 static const unsigned TGT_FUTEX_PRIVATE_FLAG = 128;
251 static const unsigned TGT_FUTEX_CLOCK_REALTIME_FLAG = 256;
247 static const unsigned TGT_FUTEX_WAIT_BITSET = 9;
248 static const unsigned TGT_FUTEX_WAKE_BITSET = 10;
249 static const unsigned TGT_EAGAIN = 11;
250 static const unsigned TGT_EWOULDBLOCK = TGT_EAGAIN;
251 static const unsigned TGT_FUTEX_PRIVATE_FLAG = 128;
252 static const unsigned TGT_FUTEX_CLOCK_REALTIME_FLAG = 256;
253 // op field of futex_wake_op operation
254 static const unsigned TGT_FUTEX_OP_SET = 0; // uaddr2 = oparg;
255 static const unsigned TGT_FUTEX_OP_ADD = 1; // uaddr2 += oparg;
256 static const unsigned TGT_FUTEX_OP_OR = 2; // uaddr2 |= oparg;
257 static const unsigned TGT_FUTEX_OP_ANDN = 3; // uaddr2 &= ~oparg;
258 static const unsigned TGT_FUTEX_OP_XOR = 4; // uaddr2 ^= oparg;
259 // Use (1 << oparg) as operand
260 static const unsigned TGT_FUTEX_OP_ARG_SHIFT = 8;
261 // cmp field of futex_wake_op operation
262 static const unsigned TGT_FUTEX_OP_CMP_EQ = 0;
263 static const unsigned TGT_FUTEX_OP_CMP_NE = 1;
264 static const unsigned TGT_FUTEX_OP_CMP_LT = 2;
265 static const unsigned TGT_FUTEX_OP_CMP_LE = 3;
266 static const unsigned TGT_FUTEX_OP_CMP_GT = 4;
267 static const unsigned TGT_FUTEX_OP_CMP_GE = 5;
252
253 // for *at syscalls
254 static const int TGT_AT_FDCWD = -100;
255
256 // for MREMAP
257 static const unsigned TGT_MREMAP_MAYMOVE = 0x1;
258 static const unsigned TGT_MREMAP_FIXED = 0x2;
259

--- 33 unchanged lines hidden ---
268
269 // for *at syscalls
270 static const int TGT_AT_FDCWD = -100;
271
272 // for MREMAP
273 static const unsigned TGT_MREMAP_MAYMOVE = 0x1;
274 static const unsigned TGT_MREMAP_FIXED = 0x2;
275

--- 33 unchanged lines hidden ---