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:
		| @@ -33,14 +33,12 @@ | ||||
| #include <unistd.h> /* for getopt() */ | ||||
| #include <stdlib.h> | ||||
|  | ||||
|  | ||||
| #if defined(__GLIBC__) | ||||
| #include <sys/kdaemon.h> | ||||
| #else | ||||
| #include <sys/syscall.h> | ||||
| #include <linux/unistd.h> | ||||
| static _syscall2(int, bdflush, int, func, int, data); | ||||
| #endif /* __GLIBC__ */ | ||||
| extern int bdflush (int func, long int data); | ||||
| #endif							/* __GLIBC__ */ | ||||
|  | ||||
| #include "busybox.h" | ||||
|  | ||||
| static unsigned int sync_duration = 30; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user