diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2019-03-20 16:18:41 +0000 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2019-04-08 17:26:44 +0200 |
commit | 184943d827ce09375284e6fbb9fd5eeb9e369529 (patch) | |
tree | 6c6f2fab39e41d3b0e3999c23e36dbb0fc81c36b /linux-user/syscall.c | |
parent | f55a585d1037e5de6088f25e75443c2776786e29 (diff) | |
download | qemu-184943d827ce09375284e6fbb9fd5eeb9e369529.zip qemu-184943d827ce09375284e6fbb9fd5eeb9e369529.tar.gz qemu-184943d827ce09375284e6fbb9fd5eeb9e369529.tar.bz2 |
linux-user: assume __NR_gettid always exists
The gettid syscall was introduced in Linux 2.4.11. This is old enough
that we can assume it always exists and thus not bother with the
conditional backcompat logic.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20190320161842.13908-2-berrange@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r-- | linux-user/syscall.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 208fd18..11729f3 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -249,15 +249,7 @@ static type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5, \ #define TARGET_NR__llseek TARGET_NR_llseek #endif -#ifdef __NR_gettid _syscall0(int, gettid) -#else -/* This is a replacement for the host gettid() and must return a host - errno. */ -static int gettid(void) { - return -ENOSYS; -} -#endif /* For the 64-bit guest on 32-bit host case we must emulate * getdents using getdents64, because otherwise the host |