[PATCH v8 1/8] nptl: Add C11 threads thrd_* functions

Florian Weimer fweimer@redhat.com
Fri Jul 13 09:48:00 GMT 2018


On 02/02/2018 06:04 PM, Adhemerval Zanella wrote:
> +/* Exit and error codes.  */
> +enum
> +{
> +  thrd_success  = 0,
> +  thrd_busy     = 1,
> +  thrd_error    = 2,
> +  thrd_nomem    = 3,
> +  thrd_timedout = 4
> +};

We could make the mapping more efficient if we used EBUSY, EINVAL, 
ENOMEM, ETIMEDOUT for the error codes, possibly with the help of a .sym 
file.  I expect that this would allow us to eliminate some of the 
wrappers and use symbol aliases instead, but it doesn't look like there 
would be many such cases.  Your call.

Thanks,
Florian



More information about the Libc-alpha mailing list