A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a few
shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik
This commit is contained in:
@ -26,16 +26,11 @@
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <linux/unistd.h>
|
||||
#include "busybox.h"
|
||||
#define __LIBRARY__
|
||||
|
||||
extern int delete_module(const char * name);
|
||||
|
||||
|
||||
/* And the system call of the day is... */
|
||||
_syscall1(int, delete_module, const char *, name)
|
||||
|
||||
extern int rmmod_main(int argc, char **argv)
|
||||
{
|
||||
int n, ret = EXIT_SUCCESS;
|
||||
|
Reference in New Issue
Block a user