File: README

package info (click to toggle)
libarchive 1.2.53-2etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 2,828 kB
  • ctags: 1,672
  • sloc: ansic: 14,492; sh: 8,791; yacc: 619; makefile: 159
file content (18 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"minitar" is a minimal example of a program that uses
libarchive to read/write various archive formats.

By tinkering with the compile-time definitions, you
can create a statically-linked program on FreeBSD
that dearchives most common tar formats and is
only about 64k in size.  There are options to
enable non-tar formats, archive creation, and
automatic decompression support.

I use this as a test bed to check for "link pollution,"
ensuring that a program using libarchive does not
pull in unnecessary code.

The "minitar" program is also a good starting point
for anyone who wants to use libarchive for their
own purposes, as it demonstrates basic usage of
the library.