aboutsummaryrefslogtreecommitdiff
path: root/src/xz/file_io.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
2010-01-31Delay opening the destionation file and other fixes.Lasse Collin1-2/+6
The opening of the destination file is now delayed a little. The coder is initialized, and if decompressing, the memory usage of the first Block compared against the memory usage limit before the destination file is opened. This means that if --force was used, the old "target" file won't be deleted so easily when something goes wrong very early. Thanks to Mark K for the bug report. The above fix required some changes to progress message handling. Now there is a separate function for setting and printing the filename. It is used also in list.c. list_file() now handles stdin correctly (gives an error). A useless check for user_abort was removed from file_io.c.
2010-01-24Add io_pread().Lasse Collin1-0/+17
It will be used by --list.
2009-11-25Create sparse files by default when decompressing intoLasse Collin1-6/+28
a regular file. Sparse file creation can be disabled with --no-sparse. I don't promise yet that the name of this option won't change before 5.0.0. It's possible that the code, that checks when it is safe to use sparse output on stdout, is not good enough, and a more flexible command line option is needed to configure sparse file handling.
2009-06-26Updated comments to match renamed files.Lasse Collin1-1/+1
2009-06-26Rename process.[hc] to coder.[hc] and io.[hc] to file_io.[hc]Lasse Collin1-0/+86
to avoid problems on systems with system headers with those names.