lkml.org 
[lkml]   [1998]   [Jun]   [10]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateWed, 10 Jun 1998 12:53:20 -0400 (EDT)
FromJames Mastros <>
SubjectRe: Problem compiling tiny .105 kernel (render_sigset_t)
On Wed, 10 Jun 1998, Trevor Johnson wrote:
[...]
> I made a simple patch for this problem, against Linux 2.1.85.  It's at
> http://jpj.net/~trevor/linux/sigset-2.1.85.diff.

Here is one vs. 2.1.105-ac3 that I just made.  This message is being BCCed
to linux-patches@samba.anu.edu.au, for Linus' consideration (and hopefuly 
inclusion for 2.1.106).  It is untested, but my kernel compiled -- I'm
waiting for ac4 to come out before I reboot.  (Linus: there is probably a 
better place to put this then signal.h.)

	-=- James Mastros
-- 
True mastery is knowing enough to bullshit the rest.
	-=- Me
http://www.rtweb.net/theorb coming soon (or when I get around to it).
--- linux/kernel/sched.c.orig	Wed Jun 10 02:54:17 1998
+++ linux/kernel/sched.c	Wed Jun 10 02:58:43 1998
@@ -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)
--- linux/fs/proc/array.c.orig	Wed Jun 10 02:55:12 1998
+++ linux/fs/proc/array.c	Wed Jun 10 02:58:44 1998
@@ -710,21 +710,6 @@
 	return buffer;
 }
 
-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;
-}
-
 static void collect_sigign_sigcatch(struct task_struct *p, sigset_t *ign,
 				    sigset_t *catch)
 {
--- linux/include/linux/signal.h.orig	Tue Jun  9 15:48:28 1998
+++ linux/include/linux/signal.h	Wed Jun 10 02:58:38 1998
@@ -162,6 +162,8 @@
 	}
 }
 
+extern char * render_sigset_t(sigset_t *set, char *buffer);
+
 /* Some extensions for manipulating the low 32 signals in particular.  */
 
 extern inline void sigaddsetmask(sigset_t *set, unsigned long mask)
\
 
 \ /
  Last update: 2005-03-22 12:43    [from the cache]
©2003-2008