Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Mar 2012 21:00:14 +0100
From:      Robert Millan <rmh@freebsd.org>
To:        freebsd-arch@freebsd.org
Cc:        davidxu@freebsd.org
Subject:   [PATCH] add SIGSERVICE to sys/signal.h
Message-ID:  <20120324200014.GA91966@thorin>

next in thread | raw e-mail | index | archive | help

--MGYHOYXEY6WxJCY8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline


Hi,

As SIGSERVICE is de-facto reserved by librt, shouldn't it be defined (or at
least listed as such) in <sys/signal.h>, just like SIGTHR/SIGLWP ?

See attached patch.

-- 
Robert Millan

--MGYHOYXEY6WxJCY8
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="sigservice.diff"

Index: lib/librt/sigev_thread.h
===================================================================
--- lib/librt/sigev_thread.h	(revision 233095)
+++ lib/librt/sigev_thread.h	(working copy)
@@ -67,8 +67,6 @@
 #define	SNF_REMOVED		0x02
 #define	SNF_SYNC		0x04
 
-#define	SIGSERVICE		(SIGTHR+1)
-
 int	__sigev_check_init();
 struct sigev_node *__sigev_alloc(int, const struct sigevent *,
 	struct sigev_node *, int);
Index: sys/sys/signal.h
===================================================================
--- sys/sys/signal.h	(revision 233095)
+++ sys/sys/signal.h	(working copy)
@@ -111,6 +111,7 @@
 #if __BSD_VISIBLE
 #define	SIGTHR		32	/* reserved by thread library. */
 #define	SIGLWP		SIGTHR
+#define SIGSERVICE	33	/* reserved by real-time library. */
 #endif
 
 #define	SIGRTMIN	65

--MGYHOYXEY6WxJCY8--



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