Update sys_createmodule and sys_initmodule
diff --git a/ChangeLog b/ChangeLog
index a0ce078..9748677 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Jul 15 23:00:32 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
+
+ * Merge patch from Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
+ + Correctly implement fix sys_createmodule (Linux)
+ + Add limited handlig of sys_initmodule (Linux)
+
Tue Jul 13 17:07:50 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
* Add configure-test for sys/reg.h and use that
diff --git a/linux/dummy.h b/linux/dummy.h
index cdf65b6..ba9c4b6 100644
--- a/linux/dummy.h
+++ b/linux/dummy.h
@@ -35,7 +35,6 @@
#define sys_iopl printargs
#define sys_vm86old printargs
#define sys_modify_ldt printargs
-#define sys_init_module printargs
#define sys_get_kernel_syms printargs
#define sys_quotactl printargs
#define sys_bdflush printargs
@@ -62,7 +61,6 @@
#define sys_swapon sys_chdir
#define sys_swapoff sys_chdir
#define sys_clone sys_fork
-#define sys_create_module sys_sethostname
#define sys_delete_module sys_chdir
#define sys_fchdir sys_close
#define sys_setfsuid sys_setuid
@@ -206,4 +204,6 @@
#define sys_fstat printargs
#define sys_personality printargs
#define sys_poll printargs
+#define sys_create_module printargs
+#define sys_init_module printargs
#endif
diff --git a/system.c b/system.c
index 3d9cbb0..f1f1fbe 100644
--- a/system.c
+++ b/system.c
@@ -1589,3 +1589,26 @@
}
#endif
+#ifdef LINUX
+int
+sys_create_module(tcp)
+struct tcb *tcp;
+{
+ if (entering(tcp)) {
+ printpath(tcp, tcp->u_arg[0]);
+ tprintf(", %lu", tcp->u_arg[1]);
+ }
+ return RVAL_HEX;
+}
+
+int
+sys_init_module(tcp)
+struct tcb *tcp;
+{
+ if (entering(tcp)) {
+ printpath(tcp, tcp->u_arg[0]);
+ tprintf(", %#lx", tcp->u_arg[1]);
+ }
+ return 0;
+}
+#endif