[PATCH] fix syscall names

Amir Shalem amir at boom.org.il
Tue Sep 6 08:00:57 UTC 2005


hey,
this patch fixes syscall names in libb/syscalls.c
please commit

thanks,
-- 
	Amir.

-------------- next part --------------
Index: libbb/syscalls.c
===================================================================
--- libbb/syscalls.c	(revision 11343)
+++ libbb/syscalls.c	(working copy)
@@ -31,11 +31,11 @@
 
 int sysfs(int option, unsigned int fs_index, char * buf)
 {
-#ifndef __NR_pivot_root
+#ifndef __NR_sysfs
 #warning This kernel does not support the sysfs syscall
 #warning -> The sysfs system call is being stubbed out...
 	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 sysfs system call.\n");
 	errno = ENOSYS;
 	return -1;
 #else
@@ -97,7 +97,7 @@
 	return -1;
 #else
 	return(syscall(__NR_umount2, special_file, flags));
-#endif /* __NR_pivot_root */
+#endif /* __NR_umount2 */
 }
 
 #endif /* old glibc check */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20050906/740f5caa/attachment-0002.pgp 


More information about the busybox mailing list