summaryrefslogtreecommitdiff
path: root/kernel/sysctl/patch-2.2.1
blob: 1781b92125c87921a5da62c5b46076ad76b2740a (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
diff -ru linux-2.2.1/Makefile hacker/Makefile
--- linux-2.2.1/Makefile	Sun Jan 31 22:45:42 1999
+++ hacker/Makefile	Sun Mar 21 16:10:41 1999
@@ -109,6 +109,7 @@
 DRIVERS		=drivers/block/block.a \
 		 drivers/char/char.a \
 	         drivers/misc/misc.a
+EXTRAS		=
 LIBS		=$(TOPDIR)/lib/lib.a
 SUBDIRS		=kernel drivers mm fs net ipc lib
 
@@ -186,6 +187,11 @@
 DRIVERS := $(DRIVERS) drivers/net/irda/irda_drivers.a
 endif
 
+ifdef CONFIG_LIBGTOP
+SUBDIRS := $(SUBDIRS) libgtop
+EXTRAS  := $(EXTRAS) libgtop/kernel.o
+endif
+
 include arch/$(ARCH)/Makefile
 
 .S.s:
@@ -206,6 +212,7 @@
 		$(FILESYSTEMS) \
 		$(NETWORKS) \
 		$(DRIVERS) \
+		$(EXTRAS) \
 		$(LIBS) \
 		--end-group \
 		-o vmlinux
diff -ru linux-2.2.1/arch/i386/config.in hacker/arch/i386/config.in
--- linux-2.2.1/arch/i386/config.in	Sun Jan 31 22:25:25 1999
+++ hacker/arch/i386/config.in	Sat Mar 20 18:26:18 1999
@@ -84,6 +84,9 @@
 bool 'System V IPC' CONFIG_SYSVIPC
 bool 'BSD Process Accounting' CONFIG_BSD_PROCESS_ACCT
 bool 'Sysctl support' CONFIG_SYSCTL
+if [ "$CONFIG_EXPERIMENTAL" = "y" ]; then
+  tristate 'LibGTop support' CONFIG_LIBGTOP
+fi
 tristate 'Kernel support for a.out binaries' CONFIG_BINFMT_AOUT
 tristate 'Kernel support for ELF binaries' CONFIG_BINFMT_ELF
 tristate 'Kernel support for MISC binaries' CONFIG_BINFMT_MISC
diff -ru linux-2.2.1/include/linux/sysctl.h hacker/include/linux/sysctl.h
--- linux-2.2.1/include/linux/sysctl.h	Sun Jan 31 22:24:14 1999
+++ hacker/include/linux/sysctl.h	Sat Mar 20 19:12:54 1999
@@ -56,7 +56,8 @@
 	CTL_PROC=4,		/* Process info */
 	CTL_FS=5,		/* Filesystems */
 	CTL_DEBUG=6,		/* Debugging */
-	CTL_DEV=7		/* Devices */
+	CTL_DEV=7,		/* Devices */
+	CTL_LIBGTOP=408		/* LibGTop */
 };
 
 
diff -ru linux-2.2.1/kernel/sysctl.c hacker/kernel/sysctl.c
--- linux-2.2.1/kernel/sysctl.c	Sun Jan 31 22:24:43 1999
+++ hacker/kernel/sysctl.c	Sat Mar 20 19:24:34 1999
@@ -82,7 +82,9 @@
 static ctl_table fs_table[];
 static ctl_table debug_table[];
 static ctl_table dev_table[];
-
+#ifdef CONFIG_LIBGTOP
+extern ctl_table libgtop_table[];
+#endif
 
 /* /proc declarations: */
 
@@ -148,6 +150,9 @@
 	{CTL_FS, "fs", NULL, 0, 0555, fs_table},
 	{CTL_DEBUG, "debug", NULL, 0, 0555, debug_table},
         {CTL_DEV, "dev", NULL, 0, 0555, dev_table},
+#ifdef CONFIG_LIBGTOP
+	{CTL_LIBGTOP, "libgtop", NULL, 0, 0555, libgtop_table},
+#endif
 	{0}
 };