Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Feb 2011 09:52:29 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218881 - in head: include share/man/man3
Message-ID:  <201102200952.p1K9qTms027072@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Sun Feb 20 09:52:29 2011
New Revision: 218881
URL: http://svn.freebsd.org/changeset/base/218881

Log:
  Add restrict keyword to pthread_sigmask prototype and manpage.
  
  MFC after:	1 week

Modified:
  head/include/signal.h
  head/share/man/man3/pthread_sigmask.3

Modified: head/include/signal.h
==============================================================================
--- head/include/signal.h	Sun Feb 20 09:17:59 2011	(r218880)
+++ head/include/signal.h	Sun Feb 20 09:52:29 2011	(r218881)
@@ -69,7 +69,8 @@ int	raise(int);
 #if __POSIX_VISIBLE || __XSI_VISIBLE
 int	kill(__pid_t, int);
 int	pthread_kill(__pthread_t, int);
-int	pthread_sigmask(int, const __sigset_t *, __sigset_t *);
+int	pthread_sigmask(int, const __sigset_t * __restrict,
+	    __sigset_t * __restrict);
 int	sigaction(int, const struct sigaction * __restrict,
 	    struct sigaction * __restrict);
 int	sigaddset(sigset_t *, int);

Modified: head/share/man/man3/pthread_sigmask.3
==============================================================================
--- head/share/man/man3/pthread_sigmask.3	Sun Feb 20 09:17:59 2011	(r218880)
+++ head/share/man/man3/pthread_sigmask.3	Sun Feb 20 09:52:29 2011	(r218881)
@@ -26,7 +26,7 @@
 .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
 .\" $FreeBSD$
-.Dd April 27, 2000
+.Dd February 19, 2011
 .Dt PTHREAD_SIGMASK 3
 .Os
 .Sh NAME
@@ -38,7 +38,8 @@
 .In pthread.h
 .In signal.h
 .Ft int
-.Fn pthread_sigmask "int how" "const sigset_t *set" "sigset_t *oset"
+.Fn pthread_sigmask "int how" "const sigset_t * restrict set" \
+    "sigset_t * restrict oset"
 .Sh DESCRIPTION
 The
 .Fn pthread_sigmask



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102200952.p1K9qTms027072>