summaryrefslogtreecommitdiff
path: root/src/linux
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-06-13 11:49:22 -0400
committerRich Felker <dalias@aerifal.cx>2012-06-13 11:49:22 -0400
commit2169265ec6c902cd460bf96a1a0b5103657a4954 (patch)
tree8ae977612edd6447acf909a912972702109fabc5 /src/linux
parentfbffcee63dde1cba27021177d2ed9ba4f3792a57 (diff)
downloadmusl-2169265ec6c902cd460bf96a1a0b5103657a4954.tar.gz
musl-2169265ec6c902cd460bf96a1a0b5103657a4954.tar.bz2
musl-2169265ec6c902cd460bf96a1a0b5103657a4954.tar.xz
musl-2169265ec6c902cd460bf96a1a0b5103657a4954.zip
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).
Diffstat (limited to 'src/linux')
-rw-r--r--src/linux/module.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/linux/module.c b/src/linux/module.c
new file mode 100644
index 00000000..33f69a00
--- /dev/null
+++ b/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);
+}