Skip to content

Commit b1da8f2

Browse files
berrangepeng-hui
authored andcommitted
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é <[email protected]> Reviewed-by: Richard Henderson <[email protected]> Reviewed-by: Laurent Vivier <[email protected]> Message-Id: <[email protected]> Signed-off-by: Laurent Vivier <[email protected]> (cherry picked from commit 184943d827ce09375284e6fbb9fd5eeb9e369529)
1 parent 25c5fda commit b1da8f2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

linux-user/syscall.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,7 @@ static type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5, \
250250
#define TARGET_NR__llseek TARGET_NR_llseek
251251
#endif
252252

253-
#ifdef __NR_gettid
254253
_syscall0(int, gettid)
255-
#else
256-
/* This is a replacement for the host gettid() and must return a host
257-
errno. */
258-
static int gettid(void) {
259-
return -ENOSYS;
260-
}
261-
#endif
262254

263255
/* For the 64-bit guest on 32-bit host case we must emulate
264256
* getdents using getdents64, because otherwise the host

0 commit comments

Comments
 (0)