patch-2.1.106 linux/kernel/sched.c
Next file: linux/kernel/signal.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Sat Jun 13 11:58:58 1998
- Orig file:
v2.1.105/linux/kernel/sched.c
- Orig date:
Sun Jun 7 11:16:40 1998
diff -u --recursive --new-file v2.1.105/linux/kernel/sched.c linux/kernel/sched.c
@@ -1564,7 +1564,6 @@
printk("\n");
{
- extern char * render_sigset_t(sigset_t *set, char *buffer);
struct signal_queue *q;
char s[sizeof(sigset_t)*2+1], b[sizeof(sigset_t)*2+1];
@@ -1575,6 +1574,21 @@
printk(" %d", q->info.si_signo);
printk(" X\n");
}
+}
+
+char * render_sigset_t(sigset_t *set, char *buffer)
+{
+ int i = _NSIG, x;
+ do {
+ i -= 4, x = 0;
+ if (sigismember(set, i+1)) x |= 1;
+ if (sigismember(set, i+2)) x |= 2;
+ if (sigismember(set, i+3)) x |= 4;
+ if (sigismember(set, i+4)) x |= 8;
+ *buffer++ = (x < 10 ? '0' : 'a' - 10) + x;
+ } while (i >= 4);
+ *buffer = 0;
+ return buffer;
}
void show_state(void)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov