Module Name:    src
Committed By:   kamil
Date:           Sun Oct 30 23:26:33 UTC 2016

Modified Files:
        src/lib/libpthread: pthread.h pthread_mutex.3

Log Message:
POSIX harder the pthread_mutex_timedlock(3) prototype

Add missing __restrict keyword to the first pointer parameter.

It was already used for the second argument, should not be a functional
change and generated code should be the same.

This new form is now aligned with POSIX.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/lib/libpthread/pthread.h
cvs rdiff -u -r1.8 -r1.9 src/lib/libpthread/pthread_mutex.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libpthread/pthread.h
diff -u src/lib/libpthread/pthread.h:1.37 src/lib/libpthread/pthread.h:1.38
--- src/lib/libpthread/pthread.h:1.37	Sun Jul  3 14:24:58 2016
+++ src/lib/libpthread/pthread.h	Sun Oct 30 23:26:33 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: pthread.h,v 1.37 2016/07/03 14:24:58 christos Exp $	*/
+/*	$NetBSD: pthread.h,v 1.38 2016/10/30 23:26:33 kamil Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -94,7 +94,7 @@ int	pthread_mutex_destroy(pthread_mutex_
 int	pthread_mutex_lock(pthread_mutex_t *);
 int	pthread_mutex_trylock(pthread_mutex_t *);
 int	pthread_mutex_unlock(pthread_mutex_t *);
-int	pthread_mutex_timedlock(pthread_mutex_t *,
+int	pthread_mutex_timedlock(pthread_mutex_t * __restrict,
 	    const struct timespec * __restrict);
 int	pthread_mutex_getprioceiling(const pthread_mutex_t * __restrict,
 	    int * __restrict);

Index: src/lib/libpthread/pthread_mutex.3
diff -u src/lib/libpthread/pthread_mutex.3:1.8 src/lib/libpthread/pthread_mutex.3:1.9
--- src/lib/libpthread/pthread_mutex.3:1.8	Tue Jul  5 10:04:17 2016
+++ src/lib/libpthread/pthread_mutex.3	Sun Oct 30 23:26:33 2016
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_mutex.3,v 1.8 2016/07/05 10:04:17 wiz Exp $
+.\" $NetBSD: pthread_mutex.3,v 1.9 2016/10/30 23:26:33 kamil Exp $
 .\"
 .\" Copyright (c) 2002, 2010 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -76,7 +76,7 @@
 .Ft int
 .Fn pthread_mutex_unlock "pthread_mutex_t *mutex"
 .Ft int
-.Fn pthread_mutex_timedlock "pthread_mutex_t * mutex" "const struct timespec *__restrict timeout"
+.Fn pthread_mutex_timedlock "pthread_mutex_t *__restrict mutex" "const struct timespec *__restrict timeout"
 .Ft int
 .Fn pthread_mutex_getprioceiling "const pthread_mutex_t * __restrict mutex" "int * __restrict prioceiling"
 .Ft int

Reply via email to