aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-09-06 21:53:21 +0000
committerMike Frysinger <vapier@gentoo.org>2005-09-06 21:53:21 +0000
commit99f61719cb5d3d6e403e7cb9645c8f6289bb9ca4 (patch)
tree00acfc96a4e1e3bc8ff4222c2af5852fa4a78325
parent45a8ed89c69f95fa35f139a7c9ddb3874b13de46 (diff)
downloadbusybox-w32-99f61719cb5d3d6e403e7cb9645c8f6289bb9ca4.tar.gz
busybox-w32-99f61719cb5d3d6e403e7cb9645c8f6289bb9ca4.tar.bz2
busybox-w32-99f61719cb5d3d6e403e7cb9645c8f6289bb9ca4.zip
Amir Shalem writes:
this patch fix syscall names mix-up in libb/syscalls.c
-rw-r--r--libbb/syscalls.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libbb/syscalls.c b/libbb/syscalls.c
index 6786b1e6b..a90f5de2b 100644
--- a/libbb/syscalls.c
+++ b/libbb/syscalls.c
@@ -31,11 +31,11 @@
31 31
32int sysfs(int option, unsigned int fs_index, char * buf) 32int sysfs(int option, unsigned int fs_index, char * buf)
33{ 33{
34#ifndef __NR_pivot_root 34#ifndef __NR_sysfs
35#warning This kernel does not support the sysfs syscall 35#warning "This kernel does not support the sysfs syscall"
36#warning -> The sysfs system call is being stubbed out... 36#warning "-> The sysfs system call is being stubbed out..."
37 bb_error_msg("\n\nTo make this application work, you will need to recompile\n" 37 bb_error_msg("\n\nTo make this application work, you will need to recompile\n"
38 "BusyBox with a kernel supporting the pivot_root system call.\n"); 38 "BusyBox with a kernel supporting the sysfs system call.\n");
39 errno = ENOSYS; 39 errno = ENOSYS;
40 return -1; 40 return -1;
41#else 41#else
@@ -84,8 +84,8 @@ int klogctl(int type, char *b, int len)
84int umount2(const char * special_file, int flags) 84int umount2(const char * special_file, int flags)
85{ 85{
86#ifndef __NR_umount2 86#ifndef __NR_umount2
87#warning This kernel does not support the umount2 syscall 87#warning "This kernel does not support the umount2 syscall"
88#warning -> The umount2 system call is being stubbed out... 88#warning "-> The umount2 system call is being stubbed out..."
89 /* BusyBox was compiled against a kernel that did not support 89 /* BusyBox was compiled against a kernel that did not support
90 * the umount2 system call. To make this application work, 90 * the umount2 system call. To make this application work,
91 * you will need to recompile with a kernel supporting the 91 * you will need to recompile with a kernel supporting the
@@ -97,7 +97,7 @@ int umount2(const char * special_file, int flags)
97 return -1; 97 return -1;
98#else 98#else
99 return(syscall(__NR_umount2, special_file, flags)); 99 return(syscall(__NR_umount2, special_file, flags));
100#endif /* __NR_pivot_root */ 100#endif /* __NR_umount2 */
101} 101}
102 102
103#endif /* old glibc check */ 103#endif /* old glibc check */