summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-05 03:09:58 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-05 03:09:58 +0000
commit1770326dbc3146b2c768b1710efc09c5f931a6eb (patch)
tree9c60f1a80d355dbd372bd6a0b092dd4dee600ad9 /libc/sysdeps/linux
parentfce469e791cde17e5855ae8cc13a44d14639c6cb (diff)
Add in delete_module
-Erik
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c29
1 files changed, 17 insertions, 12 deletions
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 <unistd.h>
-_syscall0(pid_t, fork);
-#endif
+# ifdef __UCLIBC_HAS_MMU__
+# include <unistd.h>
+ _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 <sys/mount.h>
-_syscall2(int, umount2, const char *, special_file, int, flags);
-#endif
+# ifdef L_umount2
+# include <sys/mount.h>
+ _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 <sys/io.h>
-_syscall3(int, ioperm, unsigned long, from, unsigned long, num, int, turn_on);
-#endif
+# ifdef L_ioperm
+# include <sys/io.h>
+ _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