diff options
author | Chris Adeniyi-Jones <Chris.Adeniyi-Jones@arm.com> | 2014-01-24 15:29:30 -0600 |
---|---|---|
committer | Chris Adeniyi-Jones <Chris.Adeniyi-Jones@arm.com> | 2014-01-24 15:29:30 -0600 |
commit | 7f835a59f1c342eb1c170973ad53c493cc38e978 (patch) | |
tree | ce6e42722c25177fdee4175a7607e4dde96f8b0c /src/kern/linux | |
parent | 904872a01a81ef5ee3f20e42c0657e35a491d6c9 (diff) | |
download | gem5-7f835a59f1c342eb1c170973ad53c493cc38e978.tar.xz |
sim: Add openat/fstatat syscalls and fix mremap
This patch adds support for the openat and fstatat syscalls and
broadens the support for mremap to make it work on OS X.
Diffstat (limited to 'src/kern/linux')
-rw-r--r-- | src/kern/linux/linux.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kern/linux/linux.hh b/src/kern/linux/linux.hh index 1fcd80444..5e929f1c0 100644 --- a/src/kern/linux/linux.hh +++ b/src/kern/linux/linux.hh @@ -227,6 +227,12 @@ class Linux : public OperatingSystem static const unsigned TGT_EWOULDBLOCK = TGT_EAGAIN; static const unsigned TGT_FUTEX_PRIVATE_FLAG = 128; + // for *at syscalls + static const int TGT_AT_FDCWD = -100; + + // for MREMAP + static const unsigned TGT_MREMAP_MAYMOVE = 0x1; + static const unsigned TGT_MREMAP_FIXED = 0x2; }; // class Linux #endif // __LINUX_HH__ |