[PATCH v2] Linux: Add ppoll fortify symbol for 64 bit time_t (BZ# 29746)

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Mon Nov 7 17:26:18 GMT 2022



On 07/11/22 13:09, Andreas Schwab wrote:
> On Nov 07 2022, Adhemerval Zanella wrote:
> 
>> diff --git a/include/sys/poll.h b/include/sys/poll.h
>> index f904e21f89..bc0757e423 100644
>> --- a/include/sys/poll.h
>> +++ b/include/sys/poll.h
>> @@ -2,13 +2,16 @@
>>  # include <io/sys/poll.h>
>>  
>>  #ifndef _ISOMAC
>> +
>>  extern int __poll (struct pollfd *__fds, unsigned long int __nfds,
>>  		   int __timeout);
>>  libc_hidden_proto (__poll)
>>  libc_hidden_proto (ppoll)
>>  
>>  # if __TIMESIZE == 64
>> +#  define ppoll64 ppoll
> 
> I don't think anything uses that name.

You are right, I will remove it.

> 
>>  #  define __ppoll64 __ppoll
> 
> That should be defined to ppoll instead, I think.

This is required in fact, so 64 bit time_t build the __ppoll64 
as __ppoll.  I added a another indirection to handle it on 
ppoll_chk.c for TIMESIZE != 64.


More information about the Libc-alpha mailing list