diff options
author | Eric Andersen | 1999-10-09 00:25:00 +0000 |
---|---|---|
committer | Eric Andersen | 1999-10-09 00:25:00 +0000 |
commit | f811e07b072600a3784a92e5a1dc8a93dac477eb (patch) | |
tree | 820c6366f8bdacf617a9591cc2ca9dfe107b1fa3 /archival | |
parent | 8341a1565306a54e685455d19efb0516ad3328a1 (diff) | |
download | busybox-f811e07b072600a3784a92e5a1dc8a93dac477eb.zip busybox-f811e07b072600a3784a92e5a1dc8a93dac477eb.tar.gz |
More stuff.
Diffstat (limited to 'archival')
-rw-r--r-- | archival/tar.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/archival/tar.c b/archival/tar.c index 498d4a3..1a9f842 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -73,18 +73,18 @@ typedef struct /* * Static data. */ -static BOOL listFlag; -static BOOL extractFlag; -static BOOL createFlag; -static BOOL verboseFlag; -static BOOL tostdoutFlag; - -static BOOL inHeader; -static BOOL badHeader; -static BOOL errorFlag; -static BOOL skipFileFlag; -static BOOL warnedRoot; -static BOOL eofFlag; +static int listFlag; +static int extractFlag; +static int createFlag; +static int verboseFlag; +static int tostdoutFlag; + +static int inHeader; +static int badHeader; +static int errorFlag; +static int skipFileFlag; +static int warnedRoot; +static int eofFlag; static long dataCc; static int outFd; static char outName[TAR_NAME_SIZE]; @@ -114,7 +114,7 @@ static void readHeader(const TarHeader * hp, /* * Local procedures to save files into a tar file. */ -static void saveFile(const char * fileName, BOOL seeLinks); +static void saveFile(const char * fileName, int seeLinks); static void saveRegularFile(const char * fileName, const struct stat * statbuf); @@ -122,7 +122,7 @@ static void saveRegularFile(const char * fileName, static void saveDirectory(const char * fileName, const struct stat * statbuf); -static BOOL wantFileName(const char * fileName, +static int wantFileName(const char * fileName, int fileCount, char ** fileTable); static void writeHeader(const char * fileName, @@ -130,7 +130,7 @@ static void writeHeader(const char * fileName, static void writeTarFile(int fileCount, char ** fileTable); static void writeTarBlock(const char * buf, int len); -static BOOL putOctal(char * cp, int len, long value); +static int putOctal(char * cp, int len, long value); extern int @@ -383,8 +383,8 @@ readHeader(const TarHeader * hp, int fileCount, char ** fileTable) time_t mtime; const char * name; int cc; - BOOL hardLink; - BOOL softLink; + int hardLink; + int softLink; /* * If the block is completely empty, then this is the end of the @@ -710,7 +710,7 @@ done: * they really are, instead of blindly following them. */ static void -saveFile(const char * fileName, BOOL seeLinks) +saveFile(const char * fileName, int seeLinks) { int status; int mode; @@ -788,7 +788,7 @@ saveFile(const char * fileName, BOOL seeLinks) static void saveRegularFile(const char * fileName, const struct stat * statbuf) { - BOOL sawEof; + int sawEof; int fileFd; int cc; int dataCount; @@ -897,7 +897,7 @@ saveDirectory(const char * dirName, const struct stat * statbuf) { DIR * dir; struct dirent * entry; - BOOL needSlash; + int needSlash; char fullName[PATH_LEN]; /* @@ -1160,7 +1160,7 @@ getOctal(const char * cp, int len) * The number is zero and space padded and possibly null padded. * Returns TRUE if successful. */ -static BOOL +static int putOctal(char * cp, int len, long value) { int tempLength; @@ -1212,7 +1212,7 @@ putOctal(char * cp, int len, long value) * of path prefixes. An empty list implies that all files are wanted. * Returns TRUE if the file is selected. */ -static BOOL +static int wantFileName(const char * fileName, int fileCount, char ** fileTable) { const char * pathName; |