From d4d02ff6bdd4003ca80294f31d9ddd5e5585c199 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 5 Apr 2001 07:34:20 +0000 Subject: Get the full set of module creating syscalls in place. -Erik --- libc/sysdeps/linux/common/syscalls.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'libc/sysdeps/linux/common/syscalls.c') diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c index 7051c56ef..ca0b3a317 100644 --- a/libc/sysdeps/linux/common/syscalls.c +++ b/libc/sysdeps/linux/common/syscalls.c @@ -891,13 +891,21 @@ _syscall3(int, sigprocmask, int, how, const sigset_t *, set, sigset_t *, #endif //#define __NR_create_module 127 +//See sysdeps/linux/commom/create_module.c //#define __NR_init_module 128 +#ifdef L_init_module +/* This may have 5 arguments (for old 2.0 kernels) or 2 arguments + * (for 2.2 and 2.4 kernels). Use the greatest common denominator, + * and let the kernel cope with whatever it gets. It's good at that. */ +_syscall5(int, init_module, void *, first, void *, second, void *, third, + void *, fourth, void *, fifth); +#endif //#define __NR_delete_module 129 #ifdef L_delete_module # ifdef __NR_delete_module - _syscall1(int, delete_module, const char *, name) + _syscall1(int, delete_module, const char *, name); # endif #endif -- cgit v1.2.3