V2 [PATCH] Add a C wrapper for prctl [BZ #25896]

Florian Weimer fw@deneb.enyo.de
Thu Apr 30 13:54:41 GMT 2020


* Andreas Schwab:

> On Apr 30 2020, Florian Weimer wrote:
>
>> * Andreas Schwab:
>>
>>> On Apr 30 2020, H.J. Lu via Libc-alpha wrote:
>>>
>>>> diff --git a/include/sys/prctl.h b/include/sys/prctl.h
>>>> index 0920ed642b..1a74d83879 100644
>>>> --- a/include/sys/prctl.h
>>>> +++ b/include/sys/prctl.h
>>>> @@ -4,6 +4,8 @@
>>>>  # ifndef _ISOMAC
>>>>  
>>>>  extern int __prctl (int __option, ...);
>>>> +libc_hidden_proto (__prctl)
>>>> +libc_hidden_proto (prctl)
>>>
>>> Why do you need the hidden alias for prctl?  All references inside
>>> libc.so should use __prctl.
>>
>> Right.  I want to clean this up in a separate patch.
>
> ??? Why adding it in the first place?

I thought pthread_getname was linked into libc, but looks like it's in
libpthread, so its use of prctl (not __prctl) should be fine.

H.J., what happens if you drop the hidden alias for prctl?


More information about the Libc-alpha mailing list