diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-07-22 08:56:55 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-07-22 08:56:55 +0000 |
commit | 85e5e72bc1acd9d58c11bde6e14c8270cd9f169f (patch) | |
tree | 9971c6951256dd0bba5ff2a7db08ed6f65ef218d /libbb/syscalls.c | |
parent | 0a14c9f924eaf6a64e78959a190d187d646b3c0c (diff) | |
download | busybox-w32-85e5e72bc1acd9d58c11bde6e14c8270cd9f169f.tar.gz busybox-w32-85e5e72bc1acd9d58c11bde6e14c8270cd9f169f.tar.bz2 busybox-w32-85e5e72bc1acd9d58c11bde6e14c8270cd9f169f.zip |
Remove remaining libc5 support code
Diffstat (limited to 'libbb/syscalls.c')
-rw-r--r-- | libbb/syscalls.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libbb/syscalls.c b/libbb/syscalls.c index ee58d3674..8ceb35695 100644 --- a/libbb/syscalls.c +++ b/libbb/syscalls.c | |||
@@ -27,10 +27,6 @@ | |||
27 | _syscall* defined. */ | 27 | _syscall* defined. */ |
28 | #define __LIBRARY__ | 28 | #define __LIBRARY__ |
29 | #include <sys/syscall.h> | 29 | #include <sys/syscall.h> |
30 | #if __GNU_LIBRARY__ < 5 | ||
31 | /* This is needed for libc5 */ | ||
32 | #include <asm/unistd.h> | ||
33 | #endif | ||
34 | #include "libbb.h" | 30 | #include "libbb.h" |
35 | 31 | ||
36 | int sysfs( int option, unsigned int fs_index, char * buf) | 32 | int sysfs( int option, unsigned int fs_index, char * buf) |
@@ -59,9 +55,9 @@ int pivot_root(const char * new_root,const char * put_old) | |||
59 | 55 | ||
60 | 56 | ||
61 | 57 | ||
62 | #if __GNU_LIBRARY__ < 5 || ((__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1)) | 58 | /* These syscalls are not included in ancient glibc versions */ |
59 | #if ((__GLIBC__ <= 2) && (__GLIBC_MINOR__ < 1)) | ||
63 | 60 | ||
64 | /* These syscalls are not included as part of libc5 */ | ||
65 | int bdflush(int func, int data) | 61 | int bdflush(int func, int data) |
66 | { | 62 | { |
67 | return(syscall(__NR_bdflush, func, data)); | 63 | return(syscall(__NR_bdflush, func, data)); |
@@ -96,7 +92,7 @@ int umount2(const char * special_file, int flags) | |||
96 | } | 92 | } |
97 | 93 | ||
98 | 94 | ||
99 | #endif /* __GNU_LIBRARY__ < 5 */ | 95 | #endif |
100 | 96 | ||
101 | 97 | ||
102 | /* END CODE */ | 98 | /* END CODE */ |