[PATCH] Fix C11 conformance issues

Adhemerval Zanella adhemerval.zanella@linaro.org
Wed Jul 25 20:23:00 GMT 2018



On 25/07/2018 17:20, Joseph Myers wrote:
> On Wed, 25 Jul 2018, Adhemerval Zanella wrote:
> 
>> So summarize and assuming the fix for the stdc-predef.h for HURD [1], 
>> ISO C threads support for HTL would require:
>>
>>   - Add the required __pthread_*  alias called from C11 threads and
>>     also fix any internal possible linkspace name issue by calling
>>     libpthread __* names.
>>
>>   - Correctly tie the HTL required types with ISO C threads without 
>>     adding namespace or linkspace pollution by adding a platform
>>     pthreadtypes-arch.h implementation (not sure if it would require
>>     arch-specific ones since HURD since to support only i686).
>>
>>   - Check if HTL requires some handling of the function pointer 
>>     mismatch between ISO C thread thrd_start start and pthread_create.
>>
>>   - Add a wrapper to nanosleep to return syscall return code directly
>>     to use on thrd_sleep.
>>
>>   - Call __sched_yield in thrd_yield.
>>
>>   - Remove hurd specific stdc-predef.h and htl threads.h and make
>>     threads.h the generic one.
> 
> - Move all the relevant implementation files and tests and associated 
> makefile logic out of nptl/ into a shared directory such as 
> sysdeps/pthread/ so that they get built for Hurd as well.
> 

Right, I will try to spend some cycles for 2.29. 



More information about the Libc-alpha mailing list