From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id E072239A181A for ; Fri, 6 Aug 2021 14:07:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E072239A181A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-x329.google.com with SMTP id n11so5705652wmd.2 for ; Fri, 06 Aug 2021 07:07:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hwxGg+/BGbrbNOzUwMynH7frtTYH3CJiEqm9G/V3eqA=; b=V5n11AvNH314YsWellcWDVUjHqM4dBkhPWp+MyGmRPbS+bGFoasRtboXKrLwNJ1cED rUYaSsFxqjBzEuBoux2rDfhjz9L/oW3ar/4lDu2KESnmRSzKMbeD4lV/EXssPvdjsUSi m3MP1c6UlPwREO19R93SR8KbVXQjJ9oinkDSDDS8jvM8gMfGgRzonfsW9ZHuy9yJleWZ aVfGDSaU6yeqvFEZb0sx8zw60fVxsjLwdJq6fWmEF5xfs3VIRZWs9vhf0LKX36cjiYx2 Jsbq2Zhcliw9Nr+KEPKfS5W8sI8PtW3858ngecZkDhyR8Q3aW5cNHHpCdmjuTPtip+DI 3g9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hwxGg+/BGbrbNOzUwMynH7frtTYH3CJiEqm9G/V3eqA=; b=Ur0j+Ehp6ZlRlRywMTBuXU23OjS2qcAyFohJEhQH7f1bDeHVH0obQGp0Pg4qr+EaI9 XBG6gwcIcVds9H7+J7bVNkfnlxCZkmCW/vuPiir1lYOkaoxksz8jBF6yK5XEm3afgMMe vLWMjr1vG31tCuJpPi9vMTSuAXeiQ89I4MshD7olKPIGQEjH92QVXGTXuc1IwPAriWgi k9Hq6limf1iv9BzCQ9CwOAAqfnM8iKI/1pM3gtPalela8DnqWr/2IxMirNZnbIqHdCO7 S7F7NkPrie73BxD7VynzwtIhjVagxC80CxzeqJB5UxTTmh8qSmYcigqO+k3H63Yguaki WUiw== X-Gm-Message-State: AOAM53394BVFpxXAmZK1k5UUnvMZ1wOJBrZo5/3s0gJ03DjOmpYKrsIA eLW3kTLCOhWyjM1GhApf4NRZN5PXeu+I X-Google-Smtp-Source: ABdhPJymgHmXsZShooMUDBF+0eObLCTjJTwivLHfQrEanEMG5KJVGwRqm6uCG1vMKdytXNJ+3jDwHQ== X-Received: by 2002:a7b:c350:: with SMTP id l16mr20611254wmj.151.1628258854697; Fri, 06 Aug 2021 07:07:34 -0700 (PDT) Received: from localhost.localdomain (p579c3e7d.dip0.t-ipconnect.de. [87.156.62.125]) by smtp.gmail.com with ESMTPSA id a191sm8364435wme.15.2021.08.06.07.07.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Aug 2021 07:07:34 -0700 (PDT) From: Matt Joyce To: newlib@sourceware.org Cc: Matt Joyce Subject: [PATCH 1/1] libc: Added prototypes for new POSIX APIs Date: Fri, 6 Aug 2021 16:07:05 +0200 Message-Id: <20210806140705.1262737-2-mfjoyce2004@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210806140705.1262737-1-mfjoyce2004@gmail.com> References: <20210806140705.1262737-1-mfjoyce2004@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2021 14:07:37 -0000 Added function prototypes to newlib/libc/include/pthread.h for the following Issue 8 Standard APIs: pthread_cond_clockwait() pthread_mutex_clocklock() pthread_rwlock_clockrdlock() pthread_rwlock_clockwrlock() --- newlib/libc/include/pthread.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h index c9d24d6e0..9b91ea68d 100644 --- a/newlib/libc/include/pthread.h +++ b/newlib/libc/include/pthread.h @@ -87,6 +87,13 @@ int pthread_mutex_timedlock (pthread_mutex_t *__mutex, #endif /* _POSIX_TIMEOUTS */ +/* Using __MISC_VISIBLE until POSIX Issue 8 is officially released */ +#if __MISC_VISIBLE +/* The Issue 8 standard adds pthread_mutex_clocklock() */ +int pthread_mutex_clocklock(pthread_mutex_t *__restrict, clockid_t, + const struct timespec *__restrict); +#endif /* __MISC_VISIBLE */ + /* Condition Variable Initialization Attributes, P1003.1c/Draft 10, p. 96 */ int pthread_condattr_init (pthread_condattr_t *__attr); @@ -126,6 +133,14 @@ int pthread_cond_wait (pthread_cond_t *__cond, pthread_mutex_t *__mutex); int pthread_cond_timedwait (pthread_cond_t *__cond, pthread_mutex_t *__mutex, const struct timespec *__abstime); + +/* Using __MISC_VISIBLE until POSIX Issue 8 is officially released */ +#if __MISC_VISIBLE +/* The Issue 8 standard adds pthread_cond_clockwait() */ +int pthread_cond_clockwait(pthread_cond_t *__restrict, + pthread_mutex_t *__restrict, clockid_t, + const struct timespec *__restrict); +#endif /* __MISC_VISIBLE */ #if defined(_POSIX_THREAD_PRIORITY_SCHEDULING) @@ -423,6 +438,16 @@ int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock); int pthread_rwlock_timedwrlock (pthread_rwlock_t *__rwlock, const struct timespec *__abstime); +/* Using __MISC_VISIBLE until POSIX Issue 8 is officially released */ +#if __MISC_VISIBLE +/* The Issue 8 standard adds pthread_rwlock_clockrdlock() +* and pthread_rwlock_clockwrlock()*/ +int pthread_rwlock_clockrdlock(pthread_rwlock_t *__restrict, clockid_t, + const struct timespec *__restrict); +int pthread_rwlock_clockwrlock(pthread_rwlock_t *__restrict, clockid_t, + const struct timespec *__restrict); +#endif /* __MISC_VISIBLE */ + #endif /* defined(_POSIX_READER_WRITER_LOCKS) */ -- 2.31.1