Module Name:    src
Committed By:   drochner
Date:           Fri Mar 27 11:05:43 UTC 2009

Modified Files:
        src/sys/sys: siginfo.h

Log Message:
namespace sanity: SI_LWP and SI_NOINFO are _NETBSD_SOURCE only


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/sys/siginfo.h

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

Modified files:

Index: src/sys/sys/siginfo.h
diff -u src/sys/sys/siginfo.h:1.18 src/sys/sys/siginfo.h:1.19
--- src/sys/sys/siginfo.h:1.18	Tue Jan 13 15:38:34 2009
+++ src/sys/sys/siginfo.h	Fri Mar 27 11:05:43 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: siginfo.h,v 1.18 2009/01/13 15:38:34 christos Exp $	 */
+/*	$NetBSD: siginfo.h,v 1.19 2009/03/27 11:05:43 drochner Exp $	 */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -224,7 +224,6 @@
 
 
 /** si_code */
-#define SI_NOINFO	32767	/* No signal specific info available	*/
 #define	SI_USER		0	/* Sent by kill(2)			*/
 #define	SI_QUEUE	-1	/* Sent by the sigqueue(2)		*/
 #define	SI_TIMER	-2	/* Generated by expiration of a timer	*/
@@ -233,6 +232,9 @@
 				/* asynchronous I/O signal		*/
 #define	SI_MESGQ	-4	/* Generated by arrival of a message on	*/
 				/* an empty message queue		*/
+#if defined(_KERNEL) || defined(_NETBSD_SOURCE)
 #define	SI_LWP		-5	/* Generated by _lwp_kill(2)		*/
+#define	SI_NOINFO	32767	/* No signal specific info available	*/
+#endif
 
 #endif /* !_SYS_SIGINFO_H_ */

Reply via email to