]>
Commit | Line | Data |
---|---|---|
3412182f AM |
1 | diff -urN busybox-1.00-pre2.org/libbb/syscalls.c busybox-1.00-pre2/libbb/syscalls.c |
2 | --- busybox-1.00-pre2.org/libbb/syscalls.c 2003-08-02 23:31:11.000000000 +0200 | |
3 | +++ busybox-1.00-pre2/libbb/syscalls.c 2003-08-02 23:38:37.000000000 +0200 | |
4 | @@ -29,6 +29,21 @@ | |
5 | #include <sys/syscall.h> | |
6 | #include "libbb.h" | |
774a7fad | 7 | |
3412182f | 8 | +#ifndef __NR_pivot_root |
774a7fad MM |
9 | +# warning "Guessing pivot_root() syscall number" |
10 | +# ifdef __i386__ | |
11 | +# define __NR_pivot_root 217 | |
12 | +# elif defined(__alpha__) | |
13 | +# define __NR_pivot_root 374 | |
14 | +# elif defined(__sparc__) || defined(__sparc64__) | |
15 | +# define __NR_pivot_root 146 | |
82279822 | 16 | +# elif defined(__powerpc__) |
17 | +# define __NR_pivot_root 203 | |
774a7fad MM |
18 | +# else |
19 | +# error "Get kernel-2.4 headers!" | |
20 | +# endif | |
21 | +#endif | |
22 | + | |
3412182f AM |
23 | int sysfs( int option, unsigned int fs_index, char * buf) |
24 | { | |
25 | return(syscall(__NR_sysfs, option, fs_index, buf)); |