From 1770326dbc3146b2c768b1710efc09c5f931a6eb Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 5 Apr 2001 03:09:58 +0000 Subject: Add in delete_module -Erik --- libc/sysdeps/linux/common/syscalls.c | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'libc/sysdeps') diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c index f93760478..7051c56ef 100644 --- a/libc/sysdeps/linux/common/syscalls.c +++ b/libc/sysdeps/linux/common/syscalls.c @@ -38,10 +38,10 @@ _syscall1(void, _exit, int, status); //#define __NR_fork 2 #ifdef L_fork -#ifdef __UCLIBC_HAS_MMU__ -#include -_syscall0(pid_t, fork); -#endif +# ifdef __UCLIBC_HAS_MMU__ +# include + _syscall0(pid_t, fork); +# endif #endif //#define __NR_read 3 @@ -357,10 +357,10 @@ gid_t getegid(void) #ifdef __NR_umount2 /* Old kernels don't have umount2 */ //#define __NR_umount2 52 -#ifdef L_umount2 -#include -_syscall2(int, umount2, const char *, special_file, int, flags); -#endif +# ifdef L_umount2 +# include + _syscall2(int, umount2, const char *, special_file, int, flags); +# endif #endif //#define __NR_lock 53 @@ -685,10 +685,10 @@ _syscall2(int, fstatfs, int, fd, struct statfs *, buf); #ifdef __UCLIBC_HAS_MMU__ //#define __NR_ioperm 101 -#ifdef L_ioperm -#include -_syscall3(int, ioperm, unsigned long, from, unsigned long, num, int, turn_on); -#endif +# ifdef L_ioperm +# include + _syscall3(int, ioperm, unsigned long, from, unsigned long, num, int, turn_on); +# endif #endif //#define __NR_socketcall 102 @@ -895,6 +895,11 @@ _syscall3(int, sigprocmask, int, how, const sigset_t *, set, sigset_t *, //#define __NR_init_module 128 //#define __NR_delete_module 129 +#ifdef L_delete_module +# ifdef __NR_delete_module + _syscall1(int, delete_module, const char *, name) +# endif +#endif //#define __NR_get_kernel_syms 130 -- cgit v1.2.3