Explorar o código

add init_module/delete_module syscall wrappers

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).
Rich Felker %!s(int64=13) %!d(string=hai) anos
pai
achega
2169265ec6
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      src/linux/module.c

+ 11 - 0
src/linux/module.c

@@ -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);
+}