add init_module/delete_module syscall wrappers
authorRich Felker <dalias@aerifal.cx>
Wed, 13 Jun 2012 15:49:22 +0000 (11:49 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 13 Jun 2012 15:49:22 +0000 (11:49 -0400)
these are not exposed publicly in any header, but the few programs
that use them (modutils/kmod, etc.) are declaring the functions
themselves rather than making the syscalls directly, and it doesn't
really hurt to have them (same as the capset junk).

src/linux/module.c [new file with mode: 0644]

diff --git a/src/linux/module.c b/src/linux/module.c
new file mode 100644 (file)
index 0000000..33f69a0
--- /dev/null
@@ -0,0 +1,11 @@
+#include "syscall.h"
+
+int init_module(void *a, unsigned long b, const char *c)
+{
+       return syscall(SYS_init_module, a, b, c);
+}
+
+int delete_module(const char *a, unsigned b)
+{
+       return syscall(SYS_delete_module, a, b);
+}