From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id E8ADB22E40 for ; Wed, 6 Nov 2024 08:38:34 +0100 (CET) Received: (qmail 11616 invoked by uid 550); 6 Nov 2024 07:38:30 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com x-ms-reactions: disallow Received: (qmail 11581 invoked from network); 6 Nov 2024 07:38:30 -0000 Date: Wed, 6 Nov 2024 08:38:20 +0100 From: Szabolcs Nagy To: Ryan Gardner Cc: musl@lists.openwall.com Message-ID: <20241106073820.GJ2724612@port70.net> Mail-Followup-To: Ryan Gardner , musl@lists.openwall.com References: <20241105224437.67-1-ryan.p.gardner@boeing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241105224437.67-1-ryan.p.gardner@boeing.com> Subject: Re: [musl] [PATCH 1/3 libc-test] functional:time:clock_nanosleep test * Ryan Gardner [2024-11-05 22:44:35 +0000]: > Testing of musl API against POSIX 2008 standard. > > Tests added: > > - EINTR is returned when sleep is interupted by a signal > - ENOTSUP is returned when clock_id specifies an unsupported clock > - EINVAL is returned when tv_nsec is out of range > - EINVAL is returned when clock_id specifies an unknown clock this is technically not futureproof as new clocks may be introduced it's a common issue i dont have a good solution for. but i think it's fine to pick an int for now. > - EINVAL is returned when clokc_id specifies the CPU-time clock of calling thread > - rmtp is set to the remaining unslept time when interupted. > - time elapses as expected > > References: > - https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html > > Signed-off-by: Ryan Gardner thanks patches look good. but it will take a week or two for me to be able to test and apply them.