blob: 6fa9c309ce3068fe80f8a87a3037550d431acec2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
$NetBSD: patch-am,v 1.3 1998/11/01 23:22:19 tron Exp $
--- sysdeps/bsd/procsignal.c.orig Wed Sep 9 01:54:54 1998
+++ sysdeps/bsd/procsignal.c Sun Nov 1 23:20:05 1998
@@ -63,22 +63,38 @@
/* signal: mask of pending signals.
* pinfo [0].kp_proc.p_siglist
*/
+#if defined(__NetBSD__) && (NSIG > 32)
+ buf->signal = pinfo [0].kp_proc.p_siglist.__bits[0];
+#else
buf->signal = pinfo [0].kp_proc.p_siglist;
+#endif
/* blocked: mask of blocked signals.
* pinfo [0].kp_proc.p_sigmask
*/
- buf->blocked = pinfo [0].kp_proc.p_sigmask;
+#if defined(__NetBSD__) && (NSIG > 32)
+ buf->signal = pinfo [0].kp_proc.p_sigmask.__bits[0];
+#else
+ buf->signal = pinfo [0].kp_proc.p_sigmask;
+#endif
/* sigignore: mask of ignored signals.
* pinfo [0].kp_proc.p_sigignore
*/
- buf->sigignore = pinfo [0].kp_proc.p_sigignore;
+#if defined(__NetBSD__) && (NSIG > 32)
+ buf->signal = pinfo [0].kp_proc.p_sigignore.__bits[0];
+#else
+ buf->signal = pinfo [0].kp_proc.p_sigignore;
+#endif
/* sigcatch: mask of caught signals.
* pinfo [0].kp_proc.p_sigcatch
*/
- buf->sigcatch = pinfo [0].kp_proc.p_sigcatch;
+#if defined(__NetBSD__) && (NSIG > 32)
+ buf->signal = pinfo [0].kp_proc.p_sigcatch.__bits[0];
+#else
+ buf->signal = pinfo [0].kp_proc.p_sigcatch;
+#endif
buf->flags = _glibtop_sysdeps_proc_signal;
}
|