From owner-svn-src-head@freebsd.org Tue Feb 28 21:47:02 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 27F0BCF2CAA; Tue, 28 Feb 2017 21:47:02 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CECDF8E3; Tue, 28 Feb 2017 21:47:01 +0000 (UTC) (envelope-from vangyzen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1SLl0ee056375; Tue, 28 Feb 2017 21:47:00 GMT (envelope-from vangyzen@FreeBSD.org) Received: (from vangyzen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1SLl0iF056373; Tue, 28 Feb 2017 21:47:00 GMT (envelope-from vangyzen@FreeBSD.org) Message-Id: <201702282147.v1SLl0iF056373@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: vangyzen set sender to vangyzen@FreeBSD.org using -f From: Eric van Gyzen Date: Tue, 28 Feb 2017 21:47:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r314424 - in head: include lib/libc/gen X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2017 21:47:02 -0000 Author: vangyzen Date: Tue Feb 28 21:47:00 2017 New Revision: 314424 URL: https://svnweb.freebsd.org/changeset/base/314424 Log: Sort declaration of sem_clockwait_np Also mention in sem_timedwait(3), because POSIX does, and because the user will need it for clockid_t, struct timespec, and TIMER_ABSTIME. Reported by: bde MFC after: 9 days X-MFC with: r314179 Sponsored by: Dell EMC Modified: head/include/semaphore.h head/lib/libc/gen/sem_timedwait.3 Modified: head/include/semaphore.h ============================================================================== --- head/include/semaphore.h Tue Feb 28 21:39:08 2017 (r314423) +++ head/include/semaphore.h Tue Feb 28 21:47:00 2017 (r314424) @@ -52,6 +52,10 @@ typedef struct _sem sem_t; struct timespec; __BEGIN_DECLS +#if __BSD_VISIBLE +int sem_clockwait_np(sem_t * __restrict, __clockid_t, int, + const struct timespec *, struct timespec *); +#endif int sem_close(sem_t *); int sem_destroy(sem_t *); int sem_getvalue(sem_t * __restrict, int * __restrict); @@ -59,10 +63,6 @@ int sem_init(sem_t *, int, unsigned int sem_t *sem_open(const char *, int, ...); int sem_post(sem_t *); int sem_timedwait(sem_t * __restrict, const struct timespec * __restrict); -#if __BSD_VISIBLE -int sem_clockwait_np(sem_t * __restrict, __clockid_t, int, - const struct timespec *, struct timespec *); -#endif int sem_trywait(sem_t *); int sem_unlink(const char *); int sem_wait(sem_t *); Modified: head/lib/libc/gen/sem_timedwait.3 ============================================================================== --- head/lib/libc/gen/sem_timedwait.3 Tue Feb 28 21:39:08 2017 (r314423) +++ head/lib/libc/gen/sem_timedwait.3 Tue Feb 28 21:47:00 2017 (r314424) @@ -34,7 +34,7 @@ .\" .\" $FreeBSD$ .\" -.Dd February 23, 2017 +.Dd February 28, 2017 .Dt SEM_TIMEDWAIT 3 .Os .Sh NAME @@ -45,6 +45,7 @@ .Lb libc .Sh SYNOPSIS .In semaphore.h +.In time.h .Ft int .Fn sem_timedwait "sem_t * restrict sem" "const struct timespec * restrict abs_timeout" .Ft int