summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_write.3
Commit message (Collapse)AuthorAgeFilesLines
* libarchive 2.2.3kientzle2007-05-291-5/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * "compression_program" support uses an external program * Portability: no longer uses "struct stat" as a primary data interchange structure internally * Part of the above: refactor archive_entry to separate out copy_stat() and stat() functions * More complete tests for archive_entry * Finish archive_entry_clone() * Isolate major()/minor()/makedev() in archive_entry; remove these from everywhere else. * Bug fix: properly handle decompression look-ahead at end-of-data * Bug fixes to 'ar' support * Fix memory leak in ZIP reader * Portability: better timegm() emulation in iso9660 reader * New write_disk flags to suppress auto dir creation and not overwrite newer files (for future cpio front-end) * Simplify trailing-'/' fixup when writing tar and pax * Test enhancements: fix various compiler warnings, improve portability, add lots of new tests. * Documentation: document new functions, first draft of libarchive_internals.3 MFC after: 14 days Thanks to: Joerg Sonnenberger (compression_program) Thanks to: Kai Wang (ar) Thanks to: Colin Percival (many small fixes) Thanks to: Many others who sent me various patches and problem reports.
* libarchive 2.0kientzle2007-03-031-3/+10
| | | | | | | | | | | | | | | | | | | * libarchive_test program exercises many of the core features * Refactored old "read_extract" into new "archive_write_disk", which uses archive_write methods to put entries onto disk. In particular, you can now use archive_write_disk to create objects on disk without having an archive available. * Pushed some security checks from bsdtar down into libarchive, where they can be better optimized. * Rearchitected the logic for creating objects on disk to reduce the number of system calls. Several common cases now use a minimum number of system calls. * Virtualized some internal interfaces to provide a clearer separation of read and write handling and make it simpler to override key methods. * New "empty" format reader. * Corrected return types (this ABI breakage required the "2.0" version bump) * Many bug fixes.
* Fix the copyright notice; it was always intended to bekientzle2007-01-091-1/+1
| | | | | | | | | a vanilla 2-clause BSD license, but somehow some confusing extra verbage get copied from somewhere. Also, update the copyright dates to 2007 for all of the files. Prompted by: several questions about what those extra words really mean
* Correct spelling of "accommodate", "guarantee", "guaranteed", "guard",cperciva2006-12-281-1/+1
| | | | | | "return", "ridiculous", and "success". MFC after: 3 days
* Write-blocking cleanup, largely thanks to Colin Percival (cperciva@).kientzle2006-11-261-0/+24
| | | | | | | | | | | | | | | | | | * If write block size is zero, don't block at all. This supports the unusual requirement of applications that need "no-delay" writes. * Expose _write_finish_entry() to give such applications more control over write boundaries. (Normal applications do not need this, as entries are completed automatically.) * Correct the type of write callbacks; this is a minor API change that does not affect the ABI. * Correct the error handling in _write_next_header() around completing the previous entry. * Correct the documentation for block-size markers: Remove docs for the long-defunct _read_set_block_size(); document all of the write block size manipulators. MFC after: 14 days
* A few minor clarifications and corrections.kientzle2006-11-241-4/+20
|
* Document the new _open_FILE() and _open_memory() interfaces.kientzle2006-11-241-7/+39
| | | | PR: bin/86742
* Officially rename archive_{read,write}_open_file() tokientzle2006-11-201-4/+7
| | | | | | | | | archive_{read,write}_open_filename(): * Update Makefile to build the files using the new name. * Update docs to document the new names, mentioning the old ones as "deprecated synonyms." * The old filenames will be reconnected to the build soon; I'll soon recyce those files for a slightly different purpose.
* Eliminate documentation references to a non-existent function.kientzle2006-11-061-1/+0
|
* Fix prototypes.ru2005-11-241-7/+7
|
* Fix one error in the example usage of the archive_write API and fillkientzle2005-06-041-27/+52
| | | | | in a few missing details. The example code here is now a complete, functioning example program.
* Expand *n't contractions.ru2005-02-131-1/+1
|
* Documentation improvements. In particular,kientzle2005-01-081-23/+55
| | | | | | | expand and clarify the description of the client callback functions and how they should handle errors. Thanks to: Antony Dovgal
* Correctly document the order of argumentskientzle2005-01-081-1/+1
| | | | | | to archive_read_open and archive_write_open. Thanks to: Antony Dovgal
* Clean up the error handling in thekientzle2004-11-051-7/+7
| | | | | | write path. In particular, this should solve some problems people have seen with bsdtar not exiting on various write errors.
* Split archive_{read,write}_finish into separate "close" (finish the archivekientzle2004-08-071-3/+9
| | | | | | | and close it) and "finish" (destroy the object) functions. For backwards compat and simplicity, have "finish" invoke "close" transparently if needed. This allows clients to close the archive and check end-of-operation statistics before destroying the object.
* Minor wordsmithing; remove a controversial colon.kientzle2004-07-051-3/+2
|
* ru@'s ambitious sweep through the manpages is mostly a good thing,kientzle2004-07-051-1/+1
| | | | but some colons are supposed to be followed by uppercase letters.
* Fixed cross-references in SEE ALSO.ru2004-07-041-3/+3
| | | | Emininated double space and hard sentence breaks.
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+2
|
* Overhauled ACL support. This makes us compatiblekientzle2004-04-051-12/+14
| | | | | | | | | | | | with 'star' ACL handling, though there's still a bit more work needed in this area. Added 'write_open_fd' and 'read_open_fd' to simplify, e.g., tar's u and r modes. Eliminated old 'write_open_file_position' as a bad idea. (It required closing/reopening files to do updates, which led to unpleasant implications.) Various other minor fixes, API tweaks, etc.
* Initial import of libarchive.kientzle2004-02-091-0/+368
What it is: A library for reading and writing various streaming archive formats, especially tar and cpio. Being a library, it should be easy to incorporate into pkg_* tools, sysinstall, and any other place that needs to read or write such archives. Features: * Full automatic detection of both compression and archive format. * Extensible internal architecture to make it easy to add new formats. * Support for "pax interchange format," a new POSIX-standard tar format that eliminates essentially all of the restrictions of historic formats. * BSD license Thanks to: jkh for pushing me to start this work, gordon for encouraging me to commit it, bde for answering endless style questions, and many others for feedback and encouragement. Status: Pretty good overall, though there are still a few rough edges and the library could always use more testing. Feedback eagerly solicited.
OpenPOWER on IntegriCloud