diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-04-28 00:18:56 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-04-28 00:18:56 +0000 |
commit | 4f3f757d56fbf420ea5030dcf7ea971b3da3ab47 (patch) | |
tree | d986e9bb9f03bf1f83465c274c35c0d58ed544e4 /archival | |
parent | 227a59b05d6df9b4be5990915646249d6f548822 (diff) | |
download | busybox-w32-4f3f757d56fbf420ea5030dcf7ea971b3da3ab47.tar.gz busybox-w32-4f3f757d56fbf420ea5030dcf7ea971b3da3ab47.tar.bz2 busybox-w32-4f3f757d56fbf420ea5030dcf7ea971b3da3ab47.zip |
Latest and greatest. Some effort at libc5 (aiming towards newlib)
compatability.
-Erik
Diffstat (limited to 'archival')
-rw-r--r-- | archival/gunzip.c | 5 | ||||
-rw-r--r-- | archival/gzip.c | 1 | ||||
-rw-r--r-- | archival/tar.c | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c index 1a5cdba88..97ab84e2d 100644 --- a/archival/gunzip.c +++ b/archival/gunzip.c | |||
@@ -102,7 +102,6 @@ static char *license_msg[] = { | |||
102 | #include <signal.h> | 102 | #include <signal.h> |
103 | #include <sys/stat.h> | 103 | #include <sys/stat.h> |
104 | #include <errno.h> | 104 | #include <errno.h> |
105 | #include <sys/param.h> /* for PATH_MAX */ | ||
106 | 105 | ||
107 | /* #include "tailor.h" */ | 106 | /* #include "tailor.h" */ |
108 | 107 | ||
@@ -641,8 +640,8 @@ typedef RETSIGTYPE(*sig_type) (int); | |||
641 | #define RW_USER (S_IRUSR | S_IWUSR) /* creation mode for open() */ | 640 | #define RW_USER (S_IRUSR | S_IWUSR) /* creation mode for open() */ |
642 | 641 | ||
643 | #ifndef MAX_PATH_LEN /* max pathname length */ | 642 | #ifndef MAX_PATH_LEN /* max pathname length */ |
644 | # ifdef PATH_MAX | 643 | # ifdef BUFSIZ |
645 | # define MAX_PATH_LEN PATH_MAX | 644 | # define MAX_PATH_LEN BUFSIZ |
646 | # else | 645 | # else |
647 | # define MAX_PATH_LEN 1024 | 646 | # define MAX_PATH_LEN 1024 |
648 | # endif | 647 | # endif |
diff --git a/archival/gzip.c b/archival/gzip.c index a9d34aeb1..cc6868b53 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -2272,7 +2272,6 @@ local void set_file_type (void); | |||
2272 | * used. | 2272 | * used. |
2273 | */ | 2273 | */ |
2274 | 2274 | ||
2275 | #define MAX(a,b) (a >= b ? a : b) | ||
2276 | /* the arguments must not have side effects */ | 2275 | /* the arguments must not have side effects */ |
2277 | 2276 | ||
2278 | /* =========================================================================== | 2277 | /* =========================================================================== |
diff --git a/archival/tar.c b/archival/tar.c index 0177d5188..e205763db 100644 --- a/archival/tar.c +++ b/archival/tar.c | |||
@@ -49,7 +49,6 @@ | |||
49 | #include <utime.h> | 49 | #include <utime.h> |
50 | #include <sys/types.h> | 50 | #include <sys/types.h> |
51 | #include <sys/sysmacros.h> | 51 | #include <sys/sysmacros.h> |
52 | #include <sys/param.h> /* for PATH_MAX */ | ||
53 | 52 | ||
54 | 53 | ||
55 | static const char tar_usage[] = | 54 | static const char tar_usage[] = |