summaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-27 08:24:39 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-27 08:24:39 +0000
commited3ef50c233ffb1b50ea0e7382a8e60b86491009 (patch)
treeecb05ce51890c2cf84ad036543a972ac812320c3 /archival
parentab050f5522e843bf08994685134adaaac7ffd392 (diff)
downloadbusybox-w32-ed3ef50c233ffb1b50ea0e7382a8e60b86491009.tar.gz
busybox-w32-ed3ef50c233ffb1b50ea0e7382a8e60b86491009.tar.bz2
busybox-w32-ed3ef50c233ffb1b50ea0e7382a8e60b86491009.zip
Fix header file usage -- there were many unnecessary header files included in
busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
Diffstat (limited to 'archival')
-rw-r--r--archival/ar.c4
-rw-r--r--archival/dpkg_deb.c3
-rw-r--r--archival/gzip.c1
-rw-r--r--archival/tar.c3
4 files changed, 11 insertions, 0 deletions
diff --git a/archival/ar.c b/archival/ar.c
index 596574e6a..550b2a1c4 100644
--- a/archival/ar.c
+++ b/archival/ar.c
@@ -23,6 +23,10 @@
23 * 23 *
24 */ 24 */
25#include <fcntl.h> 25#include <fcntl.h>
26#include <string.h>
27#include <stdlib.h>
28#include <getopt.h>
29#include <unistd.h>
26#include "busybox.h" 30#include "busybox.h"
27 31
28typedef struct ar_headers_s { 32typedef struct ar_headers_s {
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c
index 35904950f..3a789379b 100644
--- a/archival/dpkg_deb.c
+++ b/archival/dpkg_deb.c
@@ -17,6 +17,9 @@
17#include <stdio.h> 17#include <stdio.h>
18#include <stdlib.h> 18#include <stdlib.h>
19#include <fcntl.h> 19#include <fcntl.h>
20#include <unistd.h>
21#include <string.h>
22#include <stdlib.h>
20#include "busybox.h" 23#include "busybox.h"
21 24
22typedef struct ar_headers_s { 25typedef struct ar_headers_s {
diff --git a/archival/gzip.c b/archival/gzip.c
index 09260929e..5a74868c1 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -45,6 +45,7 @@
45 */ 45 */
46#include <stdio.h> 46#include <stdio.h>
47#include <string.h> 47#include <string.h>
48#include <unistd.h>
48#define memzero(s, n) memset ((void *)(s), 0, (n)) 49#define memzero(s, n) memset ((void *)(s), 0, (n))
49 50
50#ifndef RETSIGTYPE 51#ifndef RETSIGTYPE
diff --git a/archival/tar.c b/archival/tar.c
index 51a857d71..2c7169bcc 100644
--- a/archival/tar.c
+++ b/archival/tar.c
@@ -52,6 +52,9 @@
52#include <sys/sysmacros.h> 52#include <sys/sysmacros.h>
53#include <getopt.h> 53#include <getopt.h>
54#include <fnmatch.h> 54#include <fnmatch.h>
55#include <string.h>
56#include <stdlib.h>
57#include <unistd.h>
55 58
56#ifdef BB_FEATURE_TAR_GZIP 59#ifdef BB_FEATURE_TAR_GZIP
57extern int unzip(int in, int out); 60extern int unzip(int in, int out);