From 01d0083a639d6b91298c62b9e67b803fe9b9a36d Mon Sep 17 00:00:00 2001 From: andersen Date: Thu, 5 Apr 2001 03:14:39 +0000 Subject: 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 git-svn-id: svn://busybox.net/trunk/busybox@2250 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- util-linux/pivot_root.c | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'util-linux/pivot_root.c') diff --git a/util-linux/pivot_root.c b/util-linux/pivot_root.c index 4d7f8a3d1..ba26b9c58 100644 --- a/util-linux/pivot_root.c +++ b/util-linux/pivot_root.c @@ -9,30 +9,9 @@ #include #include #include -#include -#include #include "busybox.h" -#ifndef __NR_pivot_root -#warning This kernel does not support the pivot_root syscall -#warning The pivot_root system call is being stubbed out... -int pivot_root(const char * new_root,const char * put_old) -{ - /* BusyBox was compiled against a kernel that did not support - * the pivot_root system call. To make this application work, - * you will need to recompile with a kernel supporting the - * pivot_root system call. - */ - fprintf(stderr, "\n\nTo make this application work, you will need to recompile\n"); - fprintf(stderr, "with a kernel supporting the pivot_root system call. -Erik\n\n"); - errno=ENOSYS; - return -1; -} -#else -static _syscall2(int,pivot_root,const char *,new_root,const char *,put_old) -#endif - - +extern int pivot_root(const char * new_root,const char * put_old); int pivot_root_main(int argc, char **argv) { -- cgit v1.2.3-55-g6feb