aboutsummaryrefslogtreecommitdiff
path: root/src/xz/file_io.c (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2024-02-14Add SPDX license identifier into 0BSD source code files.Lasse Collin1-0/+2
2024-02-14Change most public domain parts to 0BSD.Lasse Collin1-3/+0
2023-12-21xz: Add a comment to Capsicum sandbox setup.Jia Tan1-0/+1
2023-11-30xz: Fix typoKian-Meng Ang1-1/+1
2023-10-22xz: Support basic sandboxing with Linux Landlock (ABI versions 1-3).Lasse Collin1-0/+58
2023-10-22Simplify detection of Capsicum support.Lasse Collin1-9/+5
2023-09-24xz: Change quoting style from `...' to '...'.Jia Tan1-1/+1
2023-09-22xz: Windows: Don't (de)compress to special files like "con" or "nul".Lasse Collin1-7/+28
2023-09-22MSVC: xz: Make file_io.c and file_io.h compatible with MSVC.Lasse Collin1-0/+26
2023-08-31xz: Fix a too relaxed assertion and remove uses of SSIZE_MAX.Lasse Collin1-3/+2
2023-07-18xz: Make "%s: %s" translatable because French needs "%s : %s".Lasse Collin1-4/+4
2023-03-11xz: Simplify the error-label in Capsicum sandbox code.Lasse Collin1-15/+12
2023-03-08xz: Make Capsicum sandbox more strict with stdin and stdout.Lasse Collin1-0/+8
2023-03-08Revert: "Add warning if Capsicum sandbox system calls are unsupported."Jia Tan1-6/+4
2023-03-07xz: Fix -Wunused-label in io_sandbox_enter().Jia Tan1-2/+2
2023-03-06xz: Add warning if Capsicum sandbox system calls are unsupported.Jia Tan1-0/+2
2023-03-06xz: Skip Capsicum sandbox system calls when they are unsupported.Jia Tan1-5/+17
2023-03-06xz: Reorder cap_enter() to beginning of capsicum sandbox code.Jia Tan1-3/+3
2023-01-12xz: Use ssize_t for the to-be-ignored return value from write(fd, ptr, 1).Lasse Collin1-1/+1
2022-11-09xz: Add comments about stdin and src_st.st_size.Lasse Collin1-0/+4
2022-10-25xz: Add support for OpenBSD's pledge() sandbox.Lasse Collin1-0/+11
2022-10-25xz: Refactor to remove is_empty_filename().Lasse Collin1-1/+3
2022-10-25xz: If input file cannot be removed, treat it as a warning, not error.Lasse Collin1-2/+2
2021-10-27xz: Change the coding style of the previous commit.Lasse Collin1-5/+6
2021-10-27xz: Avoid fchown(2) failure.Alexander Bluhm1-1/+7
2021-01-11xz: Make --keep accept symlinks, hardlinks, and setuid/setgid/sticky.Lasse Collin1-4/+5
2020-02-05xz: Make it a fatal error if enabling the sandbox fails.Lasse Collin1-1/+1
2020-02-05xz: Comment out annoying sandboxing messages.Lasse Collin1-3/+7
2020-01-26xz: Set the --flush-timeout deadline when the first input byte arrives.Lasse Collin1-1/+5
2020-01-26xz: Move flush_needed from mytime.h to file_pair struct in file_io.h.Lasse Collin1-1/+2
2020-01-26xz: Fix semi-busy-waiting in xz --flush-timeout.Lasse Collin1-4/+11
2020-01-26xz: Refactor io_read() a bit.Lasse Collin1-9/+8
2020-01-26xz: Move the setting of flush_needed in file_io.c to a nicer location.Lasse Collin1-4/+2
2019-06-24xz: Fix an integer overflow with 32-bit off_t.Lasse Collin1-2/+9
2019-06-24xz: Cleanup io_seek_src() a bit.Lasse Collin1-3/+1
2019-06-24xz: Change io_seek_src and io_pread arguments from off_t to uint64_t.Lasse Collin1-4/+12
2019-06-23xz: Fix some of the warnings from -Wsign-conversion.Lasse Collin1-2/+3
2017-04-05xz: Add io_seek_src().Lasse Collin1-3/+17
2017-03-30xz: Use POSIX_FADV_RANDOM for in "xz --list" mode.Lasse Collin1-2/+8
2016-06-30xz: Fix copying of timestamps on Windows.Lasse Collin1-0/+18
2016-06-16xz: Silence warnings from -Wlogical-op.Lasse Collin1-2/+10
2015-11-02xz: Always close the file before trying to delete it.Lasse Collin1-13/+12
2015-04-20Revert "xz: Use pipe2() if available."Lasse Collin1-8/+1
2015-04-01xz: Fix the Capsicum rights on user_abort_pipe.Lasse Collin1-1/+5
2015-03-31xz: Add support for sandboxing with Capsicum.Lasse Collin1-0/+81
2015-02-22xz: Use pipe2() if available.Lasse Collin1-1/+8
2015-02-21xz: Fix the fcntl() usage when creating a pipe for the self-pipe trick.Lasse Collin1-5/+11
2015-01-09xz: Fix comments.Lasse Collin1-4/+8
2015-01-09xz: Don't fail if stdout doesn't support O_NONBLOCK.Lasse Collin1-21/+15
2015-01-07xz: Fix a memory leak in DOS-specific code.Lasse Collin1-0/+2
2015-01-07xz: Don't fail if stdin doesn't support O_NONBLOCK.Lasse Collin1-11/+7
2013-09-17xz: Add a missing test for TUKLIB_DOSLIKE.Lasse Collin1-0/+2
2013-07-04xz: Add preliminary support for --flush-timeout=TIMEOUT.Lasse Collin1-10/+36
2013-07-04xz: Don't set src_eof=true after an I/O error because it's useless.Lasse Collin1-3/+0
2013-07-01xz: Silence a warning seen with _FORTIFY_SOURCE=2.Lasse Collin1-1/+7
2013-06-29xz: Use non-blocking I/O for the output file.Lasse Collin1-8/+49
2013-06-28xz: Fix return value type in io_write_buf().Lasse Collin1-1/+1
2013-06-28xz: Use the self-pipe trick to avoid a race condition with signals.Lasse Collin1-12/+44
2013-06-28xz: Use non-blocking I/O for the input file.Lasse Collin1-45/+111
2013-06-28xz: Remove an outdated NetBSD-specific comment.Lasse Collin1-4/+0
2013-06-28xz: Fix error detection of fcntl(fd, F_SETFL, flags) calls.Lasse Collin1-4/+4
2013-06-28xz: Fix use of wrong variable in a fcntl() call.Lasse Collin1-11/+13
2013-06-28xz: Fix assertion related to posix_fadvise().Lasse Collin1-8/+2
2011-05-01xz: Fix input file position when --single-stream is used.Lasse Collin1-0/+15
2011-04-12Remove doubled words from documentation and comments.Lasse Collin1-1/+1
2011-04-10xz/DOS: Be more careful with the destination file.Lasse Collin1-2/+33
2011-04-09xz: Avoid unneeded fstat() on DOS-like systems.Lasse Collin1-6/+8
2011-04-05xz: Use posix_fadvise() if it is available.Lasse Collin1-0/+15
2011-01-26xz: Fix --force on setuid/setgid/sticky and multi-hardlink files.Lasse Collin1-8/+7
2010-09-06xz: Improve a comment.Lasse Collin1-3/+4
2010-09-05xz: Update the comment about NetBSD in file_io.c.Lasse Collin1-4/+4
2010-02-12Collection of language fixes to comments and docs.Lasse Collin1-1/+1
2010-02-01Fix compression of symlinks with --force.Lasse Collin1-1/+13
2010-01-31Delay opening the destionation file and other fixes.Lasse Collin1-55/+52
2010-01-27Silence two compiler warnings on DOS-like systems.Lasse Collin1-0/+3
2010-01-26Use past tense in error message in io_unlink().Lasse Collin1-2/+12
2010-01-24Add io_pread().Lasse Collin1-0/+25
2010-01-13Don't compress or decompress special files unless writingLasse Collin1-5/+10
2009-12-07Fix file_io.c on DOS-like systems.Lasse Collin1-0/+4
2009-11-28Remove duplicate code in io_open_dest().Lasse Collin1-8/+1
2009-11-25Create sparse files by default when decompressing intoLasse Collin1-34/+209
2009-09-24Fix an error in OpenVMS-specific code.Lasse Collin1-1/+1
2009-09-22Better fixes for OpenVMS support.Lasse Collin1-3/+16
2009-09-19Various changes.Lasse Collin1-21/+22
2009-06-27Silence a compiler warning on DOS-like systems.Lasse Collin1-1/+4
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/+0
2009-04-13Put the interesting parts of XZ Utils into the public domain.Lasse Collin1-10/+3
2009-02-13Improve support for DOS-like systems.Lasse Collin1-14/+25
2009-02-05Various code cleanups the the xz command line tool.Lasse Collin1-24/+69
2009-02-03Another utime() fix.Lasse Collin1-4/+5
2009-02-03Fix wrong filename argument for utime() and utimes().Lasse Collin1-2/+2
2008-11-20Support NetBSD's errno for O_NOFOLLOW.Lasse Collin1-0/+8
2008-11-19Renamed lzma to xz and lzmadec to xzdec. We create symlinksLasse Collin1-0/+0
2008-11-19Oh well, big messy commit again. Some highlights:Lasse Collin1-388/+369
2008-05-04Don't print an error message on broken pipe unless --verboseLasse Collin1-1/+14