diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-14 11:39:00 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-14 11:39:00 +0100 |
commit | f6beef63c64abfc126ea4e73147af29d152f1a9e (patch) | |
tree | 71b1f243cda3ab4836219386f017e3d95a7f41d9 /archival/ar.c | |
parent | ac216873095a0d7c30737df5cdfa3bf6c261f079 (diff) | |
download | busybox-w32-f6beef63c64abfc126ea4e73147af29d152f1a9e.tar.gz busybox-w32-f6beef63c64abfc126ea4e73147af29d152f1a9e.tar.bz2 busybox-w32-f6beef63c64abfc126ea4e73147af29d152f1a9e.zip |
archival/*: move "config:" snippets into .c files
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/ar.c')
-rw-r--r-- | archival/ar.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/archival/ar.c b/archival/ar.c index 866856f87..f86c52d9b 100644 --- a/archival/ar.c +++ b/archival/ar.c | |||
@@ -17,6 +17,46 @@ | |||
17 | * http://www.unix-systems.org/single_unix_specification_v2/xcu/ar.html | 17 | * http://www.unix-systems.org/single_unix_specification_v2/xcu/ar.html |
18 | */ | 18 | */ |
19 | 19 | ||
20 | //config:config AR | ||
21 | //config: bool "ar" | ||
22 | //config: default n # needs to be improved to be able to replace binutils ar | ||
23 | //config: help | ||
24 | //config: ar is an archival utility program used to create, modify, and | ||
25 | //config: extract contents from archives. An archive is a single file holding | ||
26 | //config: a collection of other files in a structure that makes it possible to | ||
27 | //config: retrieve the original individual files (called archive members). | ||
28 | //config: The original files' contents, mode (permissions), timestamp, owner, | ||
29 | //config: and group are preserved in the archive, and can be restored on | ||
30 | //config: extraction. | ||
31 | //config: | ||
32 | //config: The stored filename is limited to 15 characters. (for more information | ||
33 | //config: see long filename support). | ||
34 | //config: ar has 60 bytes of overheads for every stored file. | ||
35 | //config: | ||
36 | //config: This implementation of ar can extract archives, it cannot create or | ||
37 | //config: modify them. | ||
38 | //config: On an x86 system, the ar applet adds about 1K. | ||
39 | //config: | ||
40 | //config: Unless you have a specific application which requires ar, you should | ||
41 | //config: probably say N here. | ||
42 | //config: | ||
43 | //config:config FEATURE_AR_LONG_FILENAMES | ||
44 | //config: bool "Support for long filenames (not needed for debs)" | ||
45 | //config: default y | ||
46 | //config: depends on AR | ||
47 | //config: help | ||
48 | //config: By default the ar format can only store the first 15 characters | ||
49 | //config: of the filename, this option removes that limitation. | ||
50 | //config: It supports the GNU ar long filename method which moves multiple long | ||
51 | //config: filenames into a the data section of a new ar entry. | ||
52 | //config: | ||
53 | //config:config FEATURE_AR_CREATE | ||
54 | //config: bool "Support archive creation" | ||
55 | //config: default y | ||
56 | //config: depends on AR | ||
57 | //config: help | ||
58 | //config: This enables archive creation (-c and -r) with busybox ar. | ||
59 | |||
20 | //applet:IF_AR(APPLET(ar, BB_DIR_USR_BIN, BB_SUID_DROP)) | 60 | //applet:IF_AR(APPLET(ar, BB_DIR_USR_BIN, BB_SUID_DROP)) |
21 | //kbuild:lib-$(CONFIG_AR) += ar.o | 61 | //kbuild:lib-$(CONFIG_AR) += ar.o |
22 | 62 | ||