Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Make lwpid part of siginfo so that it can be passed ...
details: https://anonhg.NetBSD.org/src/rev/e68199ac06e6
branches: trunk
changeset: 763990:e68199ac06e6
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 10 00:04:37 2011 +0000
description:
Make lwpid part of siginfo so that it can be passed to userland.
diffstat:
sys/sys/siginfo.h | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
diffs (56 lines):
diff -r 944e9443d81c -r e68199ac06e6 sys/sys/siginfo.h
--- a/sys/sys/siginfo.h Sat Apr 09 23:03:59 2011 +0000
+++ b/sys/sys/siginfo.h Sun Apr 10 00:04:37 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siginfo.h,v 1.20 2011/01/02 18:12:01 skrll Exp $ */
+/* $NetBSD: siginfo.h,v 1.21 2011/04/10 00:04:37 christos Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -60,6 +60,12 @@
struct {
pid_t _pid;
uid_t _uid;
+ lwpid_t _lid;
+ } _lwp;
+
+ struct {
+ pid_t _pid;
+ uid_t _uid;
int _status;
clock_t _utime;
clock_t _stime;
@@ -82,7 +88,6 @@
u_long ksi_flags; /* 4 or 8 bytes (LP64) */
CIRCLEQ_ENTRY(ksiginfo) ksi_list;
struct _ksiginfo ksi_info;
- lwpid_t ksi_lid; /* 0, or directed to LWP */
} ksiginfo_t;
#define KSI_TRAP 0x01 /* signal caused by trap */
@@ -140,6 +145,9 @@
#define si_value _info._reason._rt._value
#define si_pid _info._reason._child._pid
#define si_uid _info._reason._child._uid
+#if defined(_NETBSD_SOURCE)
+#define si_lid _info._reason._lwp._lid
+#endif
#define si_status _info._reason._child._status
#define si_utime _info._reason._child._utime
#define si_stime _info._reason._child._stime
@@ -157,12 +165,15 @@
#define ksi_errno ksi_info._errno
#define ksi_value ksi_info._reason._rt._value
+
#define ksi_pid ksi_info._reason._child._pid
#define ksi_uid ksi_info._reason._child._uid
#define ksi_status ksi_info._reason._child._status
#define ksi_utime ksi_info._reason._child._utime
#define ksi_stime ksi_info._reason._child._stime
+#define ksi_lid ksi_info._reason._lwp._lid /* 0, or directed to LWP */
+
#define ksi_addr ksi_info._reason._fault._addr
#define ksi_trap ksi_info._reason._fault._trap
Home |
Main Index |
Thread Index |
Old Index