From 7f835a59f1c342eb1c170973ad53c493cc38e978 Mon Sep 17 00:00:00 2001 From: Chris Adeniyi-Jones Date: Fri, 24 Jan 2014 15:29:30 -0600 Subject: 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. --- src/kern/linux/linux.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kern/linux') 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__ -- cgit v1.2.3