ar.c now uses a linked list to process headers, uses getopt, new internal function extractAr(srcFD, dstFd, filename) to make it easily accessable to other busybox functions.

moved copySubFile from ar.c to utilities.c

modified dd.c to use fullWrite

modified copyFile in utilities.c to use copySubFile
This commit is contained in:
Glenn L McGrath
2000-08-25 03:50:10 +00:00
parent 4d5ac2f346
commit 06aeb6c417
8 changed files with 335 additions and 585 deletions

View File

@ -2,15 +2,15 @@
#if defined BB_AR
const char ar_usage[] =
"ar [optxvV] archive [filenames] \n"
"ar [[-ov] -tpv archive] filenames \n"
#ifndef BB_FEATURE_TRIVIAL_HELP
"\nExtract or list files from an ar archive.\n\n"
"Options:\n"
"\to\t\tpreserve original dates\n"
"\tp\t\textract to stdout\n"
"\tt\t\tlist\n"
"\tx\t\textract\n"
"\tv\t\tverbosely list files processed\n"
"\t-o\t\tpreserve original dates\n"
"\t-p\t\textract to stdout\n"
"\t-t\t\tlist\n"
"\t-x\t\textract\n"
"\t-v\t\tverbosely list files processed\n"
#endif
;
#endif