qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH for 4.0] linux-user: conditionally define gettid


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH for 4.0] linux-user: conditionally define gettid as it is present in new glibc
Date: Tue, 19 Mar 2019 17:16:17 +0000

On Tue, 19 Mar 2019 at 17:08, Daniel P. Berrangé <address@hidden> wrote:
>
> The glibc-2.29.9000-6.fc31.x86_64 package finally includes the gettid
> function as part of unistd.h when __USE_GNU is defined. This clashes
> with linux-user code which unconditionally defines this function
> itself.

> We need to probe for its existance and conditionally define our
> own wrapper.

I think a simpler fix would just be to rename the linux-user
function 'sys_gettid()'. This would also bring it in to line with
the other 'raw syscall wrapper' functions in that file like
sys_getdents, sys_getcpu, etc. I think the sys_ prefix is useful
as it flags that it is a raw syscall and not a libc function.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]