add some more comments

This commit is contained in:
Mike Frysinger 2005-03-04 01:27:18 +00:00
parent 3b05b80cd7
commit 9b9e5479e8

View File

@ -29,7 +29,7 @@
#include <sys/syscall.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));
}
@ -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"
"BusyBox with a kernel supporting the pivot_root system call.\n");
errno=ENOSYS;
errno = ENOSYS;
return -1;
#else
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))
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));
}
#endif
#endif /* __alpha__ */
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"
"BusyBox with a kernel supporting the umount2 system call.\n");
errno=ENOSYS;
errno = ENOSYS;
return -1;
#else
return(syscall(__NR_umount2, special_file, flags));
#endif
#endif /* __NR_pivot_root */
}
#endif
#endif /* old glibc check */
/* END CODE */