svn commit: r314179 - in head: contrib/netbsd-tests/lib/librt include lib/libc/gen lib/libc/include share/man/man3 sys/kern

Konstantin Belousov kostikbel at gmail.com
Fri Feb 24 08:27:36 UTC 2017


On Thu, Feb 23, 2017 at 07:36:39PM +0000, Eric van Gyzen wrote:
> Modified: head/include/semaphore.h
> ==============================================================================
> --- head/include/semaphore.h	Thu Feb 23 19:32:25 2017	(r314178)
> +++ head/include/semaphore.h	Thu Feb 23 19:36:38 2017	(r314179)
> @@ -59,6 +59,8 @@ 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);
> +int	 sem_clockwait_np(sem_t * __restrict, __clockid_t, int,
> +	    const struct timespec *, struct timespec *);
I argue that semaphore.h is POSIX include file and the declaration of
sem_clockwait_np(), despite being in implementation (non-portable)
namespace, still should be braced with #if __BSD_VISIBLE.

>  int	 sem_trywait(sem_t *);
>  int	 sem_unlink(const char *);
>  int	 sem_wait(sem_t *);
> 


More information about the svn-src-head mailing list