This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix C11 conformance issues


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.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]