diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-04-05 07:34:20 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-04-05 07:34:20 +0000 |
commit | d4d02ff6bdd4003ca80294f31d9ddd5e5585c199 (patch) | |
tree | 9e172c26fc3aabfefd9440649fe2994f7151d628 /libc/sysdeps/linux/common/syscalls.c | |
parent | ba9470b70995e0676313706d394f46807cb6fa88 (diff) |
Get the full set of module creating syscalls in place.
-Erik
Diffstat (limited to 'libc/sysdeps/linux/common/syscalls.c')
-rw-r--r-- | libc/sysdeps/linux/common/syscalls.c | 10 |
1 files changed, 9 insertions, 1 deletions
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 |