add some more comments
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#include "libbb.h"
|
#include "libbb.h"
|
||||||
|
|
||||||
int sysfs( int option, unsigned int fs_index, char * buf)
|
int sysfs(int option, unsigned int fs_index, char * buf)
|
||||||
{
|
{
|
||||||
return(syscall(__NR_sysfs, option, fs_index, buf));
|
return(syscall(__NR_sysfs, option, fs_index, buf));
|
||||||
}
|
}
|
||||||
@@ -46,16 +46,16 @@ int pivot_root(const char * new_root,const char * put_old)
|
|||||||
*/
|
*/
|
||||||
bb_error_msg("\n\nTo make this application work, you will need to recompile\n"
|
bb_error_msg("\n\nTo make this application work, you will need to recompile\n"
|
||||||
"BusyBox with a kernel supporting the pivot_root system call.\n");
|
"BusyBox with a kernel supporting the pivot_root system call.\n");
|
||||||
errno=ENOSYS;
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
#else
|
#else
|
||||||
return(syscall(__NR_pivot_root, new_root, put_old));
|
return(syscall(__NR_pivot_root, new_root, put_old));
|
||||||
#endif
|
#endif /* __NR_pivot_root */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* These syscalls are not included in ancient glibc versions,
|
||||||
/* These syscalls are not included in ancient glibc versions */
|
so we have to define them ourselves, whee ! */
|
||||||
#if ((__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1))
|
#if ((__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1))
|
||||||
|
|
||||||
int bdflush(int func, int data)
|
int bdflush(int func, int data)
|
||||||
@@ -69,7 +69,7 @@ int klogctl(int type, char *b, int len)
|
|||||||
{
|
{
|
||||||
return(syscall(__NR_klogctl, type, b, len));
|
return(syscall(__NR_klogctl, type, b, len));
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* __alpha__ */
|
||||||
|
|
||||||
|
|
||||||
int umount2(const char * special_file, int flags)
|
int umount2(const char * special_file, int flags)
|
||||||
@@ -84,15 +84,14 @@ int umount2(const char * special_file, int flags)
|
|||||||
*/
|
*/
|
||||||
bb_error_msg("\n\nTo make this application work, you will need to recompile\n"
|
bb_error_msg("\n\nTo make this application work, you will need to recompile\n"
|
||||||
"BusyBox with a kernel supporting the umount2 system call.\n");
|
"BusyBox with a kernel supporting the umount2 system call.\n");
|
||||||
errno=ENOSYS;
|
errno = ENOSYS;
|
||||||
return -1;
|
return -1;
|
||||||
#else
|
#else
|
||||||
return(syscall(__NR_umount2, special_file, flags));
|
return(syscall(__NR_umount2, special_file, flags));
|
||||||
#endif
|
#endif /* __NR_pivot_root */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* old glibc check */
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* END CODE */
|
/* END CODE */
|
||||||
|
Reference in New Issue
Block a user