From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107534 invoked by alias); 13 Jul 2018 09:48:55 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 107404 invoked by uid 89); 13 Jul 2018 09:48:40 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy= X-HELO: mx1.redhat.com Subject: Re: [PATCH v8 1/8] nptl: Add C11 threads thrd_* functions To: Adhemerval Zanella , libc-alpha@sourceware.org References: <1517591084-11347-1-git-send-email-adhemerval.zanella@linaro.org> <1517591084-11347-2-git-send-email-adhemerval.zanella@linaro.org> From: Florian Weimer Message-ID: Date: Fri, 13 Jul 2018 09:48:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <1517591084-11347-2-git-send-email-adhemerval.zanella@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2018-07/txt/msg00364.txt.bz2 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