aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2024-02-12 17:09:10 +0200
committerLasse Collin <lasse.collin@tukaani.org>2024-02-14 18:31:12 +0200
commit689e0228baeb95232430e90d628379db89583d71 (patch)
tree1ac08f6030261327d8bc231adf1ab3e16f623645
parentFix SHA-256 authors. (diff)
downloadxz-689e0228baeb95232430e90d628379db89583d71.tar.xz
Change most public domain parts to 0BSD.
Translations and doc/xz-file-format.txt and doc/lzma-file-format.txt were not touched. COPYING.0BSD was added.
Diffstat (limited to '')
-rw-r--r--.github/workflows/ci.yml3
-rw-r--r--.github/workflows/windows-ci.yml3
-rw-r--r--CMakeLists.txt3
-rw-r--r--COPYING112
-rw-r--r--COPYING.0BSD11
-rw-r--r--Makefile.am3
-rw-r--r--PACKAGERS11
-rwxr-xr-xautogen.sh3
-rwxr-xr-xbuild-aux/ci_build.sh3
-rw-r--r--build-aux/manconv.sh3
-rw-r--r--build-aux/version.sh3
-rw-r--r--cmake/remove-ordinals.cmake3
-rw-r--r--cmake/tuklib_common.cmake3
-rw-r--r--cmake/tuklib_cpucores.cmake3
-rw-r--r--cmake/tuklib_integer.cmake3
-rw-r--r--cmake/tuklib_large_file_support.cmake3
-rw-r--r--cmake/tuklib_mbstr.cmake3
-rw-r--r--cmake/tuklib_physmem.cmake3
-rw-r--r--cmake/tuklib_progname.cmake3
-rw-r--r--configure.ac3
-rw-r--r--debug/Makefile.am3
-rw-r--r--debug/crc32.c3
-rw-r--r--debug/full_flush.c3
-rw-r--r--debug/hex2bin.c3
-rw-r--r--debug/known_sizes.c3
-rw-r--r--debug/memusage.c3
-rw-r--r--debug/repeat.c3
-rw-r--r--debug/sync_flush.c3
-rw-r--r--debug/translation.bash3
-rw-r--r--doc/examples/01_compress_easy.c3
-rw-r--r--doc/examples/02_decompress.c3
-rw-r--r--doc/examples/03_compress_custom.c3
-rw-r--r--doc/examples/04_compress_easy_mt.c3
-rw-r--r--doc/examples/11_file_info.c3
-rw-r--r--doc/examples/Makefile3
-rw-r--r--dos/Makefile3
-rwxr-xr-xdoxygen/update-doxygen3
-rwxr-xr-xextra/7z2lzma/7z2lzma.bash3
-rw-r--r--m4/tuklib_common.m43
-rw-r--r--m4/tuklib_cpucores.m43
-rw-r--r--m4/tuklib_integer.m43
-rw-r--r--m4/tuklib_mbstr.m43
-rw-r--r--m4/tuklib_physmem.m43
-rw-r--r--m4/tuklib_progname.m43
-rwxr-xr-xpo4a/update-po3
-rw-r--r--src/Makefile.am3
-rw-r--r--src/common/common_w32res.rc3
-rw-r--r--src/common/mythread.h3
-rw-r--r--src/common/sysdefs.h3
-rw-r--r--src/common/tuklib_common.h3
-rw-r--r--src/common/tuklib_cpucores.c3
-rw-r--r--src/common/tuklib_cpucores.h3
-rw-r--r--src/common/tuklib_exit.c3
-rw-r--r--src/common/tuklib_exit.h3
-rw-r--r--src/common/tuklib_gettext.h3
-rw-r--r--src/common/tuklib_integer.h3
-rw-r--r--src/common/tuklib_mbstr.h3
-rw-r--r--src/common/tuklib_mbstr_fw.c3
-rw-r--r--src/common/tuklib_mbstr_width.c3
-rw-r--r--src/common/tuklib_open_stdxxx.c3
-rw-r--r--src/common/tuklib_open_stdxxx.h3
-rw-r--r--src/common/tuklib_physmem.c3
-rw-r--r--src/common/tuklib_physmem.h3
-rw-r--r--src/common/tuklib_progname.c3
-rw-r--r--src/common/tuklib_progname.h3
-rw-r--r--src/liblzma/Makefile.am3
-rw-r--r--src/liblzma/api/Makefile.am3
-rw-r--r--src/liblzma/api/lzma.h13
-rw-r--r--src/liblzma/api/lzma/base.h3
-rw-r--r--src/liblzma/api/lzma/bcj.h3
-rw-r--r--src/liblzma/api/lzma/block.h3
-rw-r--r--src/liblzma/api/lzma/check.h3
-rw-r--r--src/liblzma/api/lzma/container.h3
-rw-r--r--src/liblzma/api/lzma/delta.h3
-rw-r--r--src/liblzma/api/lzma/filter.h3
-rw-r--r--src/liblzma/api/lzma/hardware.h3
-rw-r--r--src/liblzma/api/lzma/index.h3
-rw-r--r--src/liblzma/api/lzma/index_hash.h3
-rw-r--r--src/liblzma/api/lzma/lzma12.h3
-rw-r--r--src/liblzma/api/lzma/stream_flags.h3
-rw-r--r--src/liblzma/api/lzma/version.h3
-rw-r--r--src/liblzma/api/lzma/vli.h3
-rw-r--r--src/liblzma/check/Makefile.inc3
-rw-r--r--src/liblzma/check/check.c3
-rw-r--r--src/liblzma/check/check.h3
-rw-r--r--src/liblzma/check/crc32_arm64.h3
-rw-r--r--src/liblzma/check/crc32_fast.c3
-rw-r--r--src/liblzma/check/crc32_small.c3
-rw-r--r--src/liblzma/check/crc32_table.c3
-rw-r--r--src/liblzma/check/crc32_tablegen.c3
-rw-r--r--src/liblzma/check/crc32_x86.S3
-rw-r--r--src/liblzma/check/crc64_fast.c3
-rw-r--r--src/liblzma/check/crc64_small.c3
-rw-r--r--src/liblzma/check/crc64_table.c3
-rw-r--r--src/liblzma/check/crc64_tablegen.c3
-rw-r--r--src/liblzma/check/crc64_x86.S3
-rw-r--r--src/liblzma/check/crc_common.h3
-rw-r--r--src/liblzma/check/crc_x86_clmul.h3
-rw-r--r--src/liblzma/check/sha256.c3
-rw-r--r--src/liblzma/common/Makefile.inc3
-rw-r--r--src/liblzma/common/alone_decoder.c3
-rw-r--r--src/liblzma/common/alone_decoder.h3
-rw-r--r--src/liblzma/common/alone_encoder.c3
-rw-r--r--src/liblzma/common/auto_decoder.c3
-rw-r--r--src/liblzma/common/block_buffer_decoder.c3
-rw-r--r--src/liblzma/common/block_buffer_encoder.c3
-rw-r--r--src/liblzma/common/block_buffer_encoder.h3
-rw-r--r--src/liblzma/common/block_decoder.c3
-rw-r--r--src/liblzma/common/block_decoder.h3
-rw-r--r--src/liblzma/common/block_encoder.c3
-rw-r--r--src/liblzma/common/block_encoder.h3
-rw-r--r--src/liblzma/common/block_header_decoder.c3
-rw-r--r--src/liblzma/common/block_header_encoder.c3
-rw-r--r--src/liblzma/common/block_util.c3
-rw-r--r--src/liblzma/common/common.c3
-rw-r--r--src/liblzma/common/common.h3
-rw-r--r--src/liblzma/common/easy_buffer_encoder.c3
-rw-r--r--src/liblzma/common/easy_decoder_memusage.c3
-rw-r--r--src/liblzma/common/easy_encoder.c3
-rw-r--r--src/liblzma/common/easy_encoder_memusage.c3
-rw-r--r--src/liblzma/common/easy_preset.c3
-rw-r--r--src/liblzma/common/easy_preset.h3
-rw-r--r--src/liblzma/common/file_info.c3
-rw-r--r--src/liblzma/common/filter_buffer_decoder.c3
-rw-r--r--src/liblzma/common/filter_buffer_encoder.c3
-rw-r--r--src/liblzma/common/filter_common.c3
-rw-r--r--src/liblzma/common/filter_common.h3
-rw-r--r--src/liblzma/common/filter_decoder.c3
-rw-r--r--src/liblzma/common/filter_decoder.h3
-rw-r--r--src/liblzma/common/filter_encoder.c3
-rw-r--r--src/liblzma/common/filter_encoder.h3
-rw-r--r--src/liblzma/common/filter_flags_decoder.c3
-rw-r--r--src/liblzma/common/filter_flags_encoder.c3
-rw-r--r--src/liblzma/common/hardware_cputhreads.c3
-rw-r--r--src/liblzma/common/hardware_physmem.c3
-rw-r--r--src/liblzma/common/index.c3
-rw-r--r--src/liblzma/common/index.h3
-rw-r--r--src/liblzma/common/index_decoder.c3
-rw-r--r--src/liblzma/common/index_decoder.h3
-rw-r--r--src/liblzma/common/index_encoder.c3
-rw-r--r--src/liblzma/common/index_encoder.h3
-rw-r--r--src/liblzma/common/index_hash.c3
-rw-r--r--src/liblzma/common/lzip_decoder.c3
-rw-r--r--src/liblzma/common/lzip_decoder.h3
-rw-r--r--src/liblzma/common/memcmplen.h3
-rw-r--r--src/liblzma/common/microlzma_decoder.c3
-rw-r--r--src/liblzma/common/microlzma_encoder.c3
-rw-r--r--src/liblzma/common/outqueue.c3
-rw-r--r--src/liblzma/common/outqueue.h3
-rw-r--r--src/liblzma/common/stream_buffer_decoder.c3
-rw-r--r--src/liblzma/common/stream_buffer_encoder.c3
-rw-r--r--src/liblzma/common/stream_decoder.c3
-rw-r--r--src/liblzma/common/stream_decoder.h3
-rw-r--r--src/liblzma/common/stream_decoder_mt.c3
-rw-r--r--src/liblzma/common/stream_encoder.c3
-rw-r--r--src/liblzma/common/stream_encoder_mt.c3
-rw-r--r--src/liblzma/common/stream_flags_common.c3
-rw-r--r--src/liblzma/common/stream_flags_common.h3
-rw-r--r--src/liblzma/common/stream_flags_decoder.c3
-rw-r--r--src/liblzma/common/stream_flags_encoder.c3
-rw-r--r--src/liblzma/common/string_conversion.c3
-rw-r--r--src/liblzma/common/vli_decoder.c3
-rw-r--r--src/liblzma/common/vli_encoder.c3
-rw-r--r--src/liblzma/common/vli_size.c3
-rw-r--r--src/liblzma/delta/Makefile.inc3
-rw-r--r--src/liblzma/delta/delta_common.c3
-rw-r--r--src/liblzma/delta/delta_common.h3
-rw-r--r--src/liblzma/delta/delta_decoder.c3
-rw-r--r--src/liblzma/delta/delta_decoder.h3
-rw-r--r--src/liblzma/delta/delta_encoder.c3
-rw-r--r--src/liblzma/delta/delta_encoder.h3
-rw-r--r--src/liblzma/delta/delta_private.h3
-rw-r--r--src/liblzma/liblzma.pc.in3
-rw-r--r--src/liblzma/liblzma_w32res.rc3
-rw-r--r--src/liblzma/lz/Makefile.inc3
-rw-r--r--src/liblzma/lz/lz_decoder.c3
-rw-r--r--src/liblzma/lz/lz_decoder.h3
-rw-r--r--src/liblzma/lz/lz_encoder.c3
-rw-r--r--src/liblzma/lz/lz_encoder.h3
-rw-r--r--src/liblzma/lz/lz_encoder_hash.h3
-rw-r--r--src/liblzma/lz/lz_encoder_mf.c3
-rw-r--r--src/liblzma/lzma/Makefile.inc3
-rw-r--r--src/liblzma/lzma/fastpos.h3
-rw-r--r--src/liblzma/lzma/fastpos_tablegen.c3
-rw-r--r--src/liblzma/lzma/lzma2_decoder.c3
-rw-r--r--src/liblzma/lzma/lzma2_decoder.h3
-rw-r--r--src/liblzma/lzma/lzma2_encoder.c3
-rw-r--r--src/liblzma/lzma/lzma2_encoder.h3
-rw-r--r--src/liblzma/lzma/lzma_common.h3
-rw-r--r--src/liblzma/lzma/lzma_decoder.c3
-rw-r--r--src/liblzma/lzma/lzma_decoder.h3
-rw-r--r--src/liblzma/lzma/lzma_encoder.c3
-rw-r--r--src/liblzma/lzma/lzma_encoder.h3
-rw-r--r--src/liblzma/lzma/lzma_encoder_optimum_fast.c3
-rw-r--r--src/liblzma/lzma/lzma_encoder_optimum_normal.c3
-rw-r--r--src/liblzma/lzma/lzma_encoder_presets.c3
-rw-r--r--src/liblzma/lzma/lzma_encoder_private.h3
-rw-r--r--src/liblzma/rangecoder/Makefile.inc3
-rw-r--r--src/liblzma/rangecoder/price.h3
-rw-r--r--src/liblzma/rangecoder/price_tablegen.c3
-rw-r--r--src/liblzma/rangecoder/range_common.h3
-rw-r--r--src/liblzma/rangecoder/range_decoder.h3
-rw-r--r--src/liblzma/rangecoder/range_encoder.h3
-rw-r--r--src/liblzma/simple/Makefile.inc3
-rw-r--r--src/liblzma/simple/arm.c3
-rw-r--r--src/liblzma/simple/arm64.c3
-rw-r--r--src/liblzma/simple/armthumb.c3
-rw-r--r--src/liblzma/simple/ia64.c3
-rw-r--r--src/liblzma/simple/powerpc.c3
-rw-r--r--src/liblzma/simple/riscv.c3
-rw-r--r--src/liblzma/simple/simple_coder.c3
-rw-r--r--src/liblzma/simple/simple_coder.h3
-rw-r--r--src/liblzma/simple/simple_decoder.c3
-rw-r--r--src/liblzma/simple/simple_decoder.h3
-rw-r--r--src/liblzma/simple/simple_encoder.c3
-rw-r--r--src/liblzma/simple/simple_encoder.h3
-rw-r--r--src/liblzma/simple/simple_private.h3
-rw-r--r--src/liblzma/simple/sparc.c3
-rw-r--r--src/liblzma/simple/x86.c3
-rw-r--r--src/liblzma/validate_map.sh3
-rw-r--r--src/lzmainfo/Makefile.am3
-rw-r--r--src/lzmainfo/lzmainfo.14
-rw-r--r--src/lzmainfo/lzmainfo.c3
-rw-r--r--src/lzmainfo/lzmainfo_w32res.rc3
-rw-r--r--src/scripts/Makefile.am3
-rw-r--r--src/scripts/xzless.14
-rw-r--r--src/xz/Makefile.am3
-rw-r--r--src/xz/args.c3
-rw-r--r--src/xz/args.h3
-rw-r--r--src/xz/coder.c3
-rw-r--r--src/xz/coder.h3
-rw-r--r--src/xz/file_io.c3
-rw-r--r--src/xz/file_io.h3
-rw-r--r--src/xz/hardware.c3
-rw-r--r--src/xz/hardware.h3
-rw-r--r--src/xz/list.c3
-rw-r--r--src/xz/list.h3
-rw-r--r--src/xz/main.c3
-rw-r--r--src/xz/main.h3
-rw-r--r--src/xz/message.c3
-rw-r--r--src/xz/message.h3
-rw-r--r--src/xz/mytime.c3
-rw-r--r--src/xz/mytime.h3
-rw-r--r--src/xz/options.c3
-rw-r--r--src/xz/options.h3
-rw-r--r--src/xz/private.h3
-rw-r--r--src/xz/signals.c3
-rw-r--r--src/xz/signals.h3
-rw-r--r--src/xz/suffix.c3
-rw-r--r--src/xz/suffix.h3
-rw-r--r--src/xz/util.c3
-rw-r--r--src/xz/util.h3
-rw-r--r--src/xz/xz.14
-rw-r--r--src/xz/xz_w32res.rc3
-rw-r--r--src/xzdec/Makefile.am3
-rw-r--r--src/xzdec/lzmadec_w32res.rc3
-rw-r--r--src/xzdec/xzdec.14
-rw-r--r--src/xzdec/xzdec.c3
-rw-r--r--src/xzdec/xzdec_w32res.rc3
-rw-r--r--tests/Makefile.am3
-rw-r--r--tests/bcj_test.c3
-rwxr-xr-xtests/code_coverage.sh3
-rw-r--r--tests/create_compress_files.c3
-rw-r--r--tests/files/README3
-rw-r--r--tests/ossfuzz/fuzz_common.h3
-rw-r--r--tests/ossfuzz/fuzz_decode_alone.c3
-rw-r--r--tests/ossfuzz/fuzz_decode_stream.c3
-rw-r--r--tests/ossfuzz/fuzz_encode_stream.c3
-rw-r--r--tests/test_bcj_exact_size.c3
-rw-r--r--tests/test_block_header.c3
-rw-r--r--tests/test_check.c3
-rwxr-xr-xtests/test_compress.sh3
-rwxr-xr-xtests/test_files.sh3
-rw-r--r--tests/test_filter_flags.c3
-rw-r--r--tests/test_filter_str.c3
-rw-r--r--tests/test_hardware.c3
-rw-r--r--tests/test_index.c3
-rw-r--r--tests/test_index_hash.c3
-rw-r--r--tests/test_lzip_decoder.c3
-rw-r--r--tests/test_memlimit.c3
-rwxr-xr-xtests/test_scripts.sh3
-rw-r--r--tests/test_stream_flags.c3
-rwxr-xr-xtests/test_suffix.sh3
-rw-r--r--tests/test_vli.c3
-rw-r--r--tests/tests.h3
-rw-r--r--tests/tuktest.h3
-rw-r--r--windows/README-Windows.txt11
-rw-r--r--windows/build.bash3
288 files changed, 100 insertions, 911 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 21382d5f..61345aad 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2,9 +2,6 @@
#
# Author: Jia Tan
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
#############################################################################
name: CI
diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml
index c53ab74c..e0499427 100644
--- a/.github/workflows/windows-ci.yml
+++ b/.github/workflows/windows-ci.yml
@@ -2,9 +2,6 @@
#
# Author: Jia Tan
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
#############################################################################
name: Windows-CI
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 408b1605..cbd71a3a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,9 +38,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
#############################################################################
cmake_minimum_required(VERSION 3.13...3.27 FATAL_ERROR)
diff --git a/COPYING b/COPYING
index 7e393aae..4066c93e 100644
--- a/COPYING
+++ b/COPYING
@@ -6,77 +6,95 @@ XZ Utils Licensing
is a rough summary of which licenses apply to which parts of this
package (but check the individual files to be sure!):
- - liblzma is in the public domain.
+ - liblzma is under the BSD Zero Clause License (0BSD).
- - xz, xzdec, and lzmadec command line tools are in the public
- domain unless GNU getopt_long had to be compiled and linked
- in from the lib directory. The getopt_long code is under
- GNU LGPLv2.1+.
+ - The command line tools xz, xzdec, lzmadec, and lzmainfo are
+ under 0BSD except that, on systems that don't have a usable
+ getopt_long, GNU getopt_long is compiled and linked in from the
+ 'lib' directory. The getopt_long code is under GNU LGPLv2.1+.
- The scripts to grep, diff, and view compressed files have been
- adapted from gzip. These scripts and their documentation are
- under GNU GPLv2+.
-
- - All the documentation in the doc directory and most of the
- XZ Utils specific documentation files in other directories
- are in the public domain.
+ adapted from gzip. These scripts (xzgrep, xzdiff, xzless, and
+ xzmore) and their documentation are under GNU GPLv2+. The man
+ page of xzless ('xzless.1') is an exception: it's under 0BSD.
+
+ - Most of the XZ Utils specific documentation that is in
+ plain text files (like README, INSTALL, PACKAGERS, NEWS,
+ and ChangeLog) are under 0BSD unless stated otherwise in
+ the file itself. The files xz-file-format.txt and
+ lzma-file-format.xt are in the public domain but may
+ be distributed under the terms of 0BSD too.
+
+ - Doxygen-generated HTML version of the liblzma API documentation:
+ While Doxygen is under the GNU GPLv2, the license information
+ in Doxygen includes the following exception:
+
+ Documents produced by doxygen are derivative works
+ derived from the input used in their production;
+ they are not affected by this license.
Note: The JavaScript files (under the MIT license) have
- been removed from the Doxygen-generated HTML version of the
- liblzma API documentation. Doxygen itself is under the GNU GPL
- but the remaining files generated by Doxygen are not affected
- by the licenses used in Doxygen because Doxygen licensing has
- the following exception:
+ been removed from the Doxygen output.
- "Documents produced by doxygen are derivative works
- derived from the input used in their production;
- they are not affected by this license."
+ - The XZ logo (xz-logo.png) included in the Doxygen-generated
+ documentation is under the Creative Commons BY-SA 4.0 license.
- - The XZ logo included in the Doxygen documentation is under
- the Creative Commons BY-SA 4.0 license.
+ - Translated messages and man pages are under 0BSD except that
+ some old translations are in the public domain.
- - Translated messages are in the public domain.
+ - Test files and test code in the 'tests' directory, and
+ debugging utilities in the 'debug' directory are under
+ the BSD Zero Clause License (0BSD).
- - The build system contains public domain files, and files that
- are under GNU GPLv2+ or GNU GPLv3+. None of these files end up
- in the binaries being built.
+ - The GNU Autotools based build system contains files that are
+ under GNU GPLv2+, GNU GPLv3+, and a few permissive licenses.
+ These files don't affect the licensing of the binaries being
+ built.
- - Test files and test code in the tests directory, and debugging
- utilities in the debug directory are in the public domain.
+ - The extra directory contain files that are under various
+ free software licenses.
- - The extra directory may contain public domain files, and files
- that are under various free software licenses.
+ For the files under the BSD Zero Clause License (0BSD), if
+ a copyright notice is needed, the following is sufficient:
- You can do whatever you want with the files that have been put into
- the public domain. If you find public domain legally problematic,
- take the previous sentence as a license grant. If you still find
- the lack of copyright legally problematic, you have too many
- lawyers.
+ Copyright (C) The XZ Utils authors and contributors
- As usual, this software is provided "as is", without any warranty.
-
- If you copy significant amounts of public domain code from XZ Utils
+ If you copy significant amounts of 0BSD-licensed code from XZ Utils
into your project, acknowledging this somewhere in your software is
polite (especially if it is proprietary, non-free software), but
- naturally it is not legally required. Here is an example of a good
- notice to put into "about box" or into documentation:
+ it is not legally required by the license terms. Here is an example
+ of a good notice to put into "about box" or into documentation:
This software includes code from XZ Utils
<https://xz.tukaani.org/xz-utils/>.
The following license texts are included in the following files:
+ - COPYING.0BSD: BSD Zero Clause License
- COPYING.LGPLv2.1: GNU Lesser General Public License version 2.1
- COPYING.GPLv2: GNU General Public License version 2
- COPYING.GPLv3: GNU General Public License version 3
- COPYING.CC-BY-SA-4.0: Creative Commons Attribution-ShareAlike 4.0
International Public License
- Note that the toolchain (compiler, linker etc.) may add some code
- pieces that are copyrighted. Thus, it is possible that e.g. liblzma
- binary wouldn't actually be in the public domain in its entirety
- even though it contains no copyrighted code from the XZ Utils source
- package.
-
- If you have questions, don't hesitate to ask the author(s) for more
- information.
+ A note about old XZ Utils releases:
+
+ XZ Utils releases 5.4.6 and older and 5.5.1alpha have a
+ significant amount of code put into the public domain and
+ that obviously remains so. The switch from public domain to
+ 0BSD for newer releases was made in Febrary 2024 because
+ public domain has (real or perceived) legal ambiguities in
+ some jurisdictions.
+
+ There is very little *practical* difference between public
+ domain and 0BSD. The main difference likely is that one
+ shouldn't claim that 0BSD-licensed code is in the public
+ domain; 0BSD-licensed code is copyrighted but available under
+ an extremely permissive license. Neither 0BSD nor public domain
+ require retaining or reproducing author, copyright holder, or
+ license notices when distributing the software. (Compare to,
+ for example, BSD 2-Clause "Simplified" License which does have
+ such requirements.)
+
+ If you have questions, don't hesitate to ask for more information.
+ The contact information is in the README file.
diff --git a/COPYING.0BSD b/COPYING.0BSD
new file mode 100644
index 00000000..4322122a
--- /dev/null
+++ b/COPYING.0BSD
@@ -0,0 +1,11 @@
+Permission to use, copy, modify, and/or distribute this
+software for any purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
+WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
+THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
+CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/Makefile.am b/Makefile.am
index bf10e0a3..f3a81cab 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
# Use -n to prevent gzip from adding a timestamp to the .gz headers.
GZIP_ENV = -9n
diff --git a/PACKAGERS b/PACKAGERS
index 3042c669..bd656f48 100644
--- a/PACKAGERS
+++ b/PACKAGERS
@@ -124,14 +124,15 @@ Information to packagers of XZ Utils
If the package manager supports a license field, you probably should
put GPLv2+ there (GNU GPL v2 or later). The interesting parts of
- XZ Utils are in the public domain, but some less important files
- ending up into the binary package are under GPLv2+. So it is simplest
- to just say GPLv2+ if you cannot specify "public domain and GPLv2+".
+ XZ Utils are under the BSD Zero Clause License (0BSD), but some less
+ important files ending up into the binary package are under GPLv2+.
+ So it is simplest to just say GPLv2+ if you cannot specify
+ "BSD0 and GPLv2+".
If you split XZ Utils into multiple packages as described earlier
in this file, liblzma and liblzma-dev packages will contain only
- public domain code (from XZ Utils at least; compiler or linker may
- add some third-party code, which may be copyrighted).
+ 0BSD-licensed code from XZ Utils (compiler or linker may add some
+ third-party code which may have other licenses).
4. configure options
diff --git a/autogen.sh b/autogen.sh
index d5cec1b6..7d2c3132 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -4,9 +4,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
###############################################################################
set -e -x
diff --git a/build-aux/ci_build.sh b/build-aux/ci_build.sh
index ab056818..26f17b89 100755
--- a/build-aux/ci_build.sh
+++ b/build-aux/ci_build.sh
@@ -9,9 +9,6 @@
#
# Author: Jia Tan
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
#############################################################################
set -e
diff --git a/build-aux/manconv.sh b/build-aux/manconv.sh
index 73e8e3b8..a780c7bd 100644
--- a/build-aux/manconv.sh
+++ b/build-aux/manconv.sh
@@ -17,9 +17,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
###############################################################################
FORMAT=$1
diff --git a/build-aux/version.sh b/build-aux/version.sh
index f9fcda79..8709894c 100644
--- a/build-aux/version.sh
+++ b/build-aux/version.sh
@@ -9,9 +9,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
#############################################################################
sed -n 's/LZMA_VERSION_STABILITY_ALPHA/alpha/
diff --git a/cmake/remove-ordinals.cmake b/cmake/remove-ordinals.cmake
index 96419d52..60e20be7 100644
--- a/cmake/remove-ordinals.cmake
+++ b/cmake/remove-ordinals.cmake
@@ -16,9 +16,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
#############################################################################
file(READ "${INPUT_FILE}" STR)
diff --git a/cmake/tuklib_common.cmake b/cmake/tuklib_common.cmake
index 088a3cb1..01d50531 100644
--- a/cmake/tuklib_common.cmake
+++ b/cmake/tuklib_common.cmake
@@ -3,9 +3,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
function(tuklib_add_definitions TARGET_OR_ALL DEFINITIONS)
# DEFINITIONS may be an empty string/list but it's fine here. There is
diff --git a/cmake/tuklib_cpucores.cmake b/cmake/tuklib_cpucores.cmake
index ea16e427..377ea192 100644
--- a/cmake/tuklib_cpucores.cmake
+++ b/cmake/tuklib_cpucores.cmake
@@ -3,9 +3,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
include("${CMAKE_CURRENT_LIST_DIR}/tuklib_common.cmake")
include(CheckCSourceCompiles)
diff --git a/cmake/tuklib_integer.cmake b/cmake/tuklib_integer.cmake
index b2b2097e..268f73c5 100644
--- a/cmake/tuklib_integer.cmake
+++ b/cmake/tuklib_integer.cmake
@@ -3,9 +3,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
include("${CMAKE_CURRENT_LIST_DIR}/tuklib_common.cmake")
include(TestBigEndian)
diff --git a/cmake/tuklib_large_file_support.cmake b/cmake/tuklib_large_file_support.cmake
index 0800faa2..071fe47f 100644
--- a/cmake/tuklib_large_file_support.cmake
+++ b/cmake/tuklib_large_file_support.cmake
@@ -8,9 +8,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
include("${CMAKE_CURRENT_LIST_DIR}/tuklib_common.cmake")
include(CheckCSourceCompiles)
diff --git a/cmake/tuklib_mbstr.cmake b/cmake/tuklib_mbstr.cmake
index e073be6a..17091e9f 100644
--- a/cmake/tuklib_mbstr.cmake
+++ b/cmake/tuklib_mbstr.cmake
@@ -3,9 +3,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
include("${CMAKE_CURRENT_LIST_DIR}/tuklib_common.cmake")
include(CheckSymbolExists)
diff --git a/cmake/tuklib_physmem.cmake b/cmake/tuklib_physmem.cmake
index f5ed8889..52179ded 100644
--- a/cmake/tuklib_physmem.cmake
+++ b/cmake/tuklib_physmem.cmake
@@ -6,9 +6,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
include("${CMAKE_CURRENT_LIST_DIR}/tuklib_common.cmake")
include(CheckCSourceCompiles)
diff --git a/cmake/tuklib_progname.cmake b/cmake/tuklib_progname.cmake
index d4ab0066..f02aa756 100644
--- a/cmake/tuklib_progname.cmake
+++ b/cmake/tuklib_progname.cmake
@@ -3,9 +3,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
include("${CMAKE_CURRENT_LIST_DIR}/tuklib_common.cmake")
include(CheckSymbolExists)
diff --git a/configure.ac b/configure.ac
index d2fa730c..7926da68 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5,9 +5,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
###############################################################################
# NOTE: Don't add useless checks. autoscan detects this and that, but don't
diff --git a/debug/Makefile.am b/debug/Makefile.am
index 9026fd93..2ebc0bb3 100644
--- a/debug/Makefile.am
+++ b/debug/Makefile.am
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
EXTRA_DIST = \
translation.bash
diff --git a/debug/crc32.c b/debug/crc32.c
index e545a3cc..b799b444 100644
--- a/debug/crc32.c
+++ b/debug/crc32.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "sysdefs.h"
diff --git a/debug/full_flush.c b/debug/full_flush.c
index 227f7376..492e9305 100644
--- a/debug/full_flush.c
+++ b/debug/full_flush.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "sysdefs.h"
diff --git a/debug/hex2bin.c b/debug/hex2bin.c
index 73246244..3cb4bd00 100644
--- a/debug/hex2bin.c
+++ b/debug/hex2bin.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "sysdefs.h"
diff --git a/debug/known_sizes.c b/debug/known_sizes.c
index 6c3641f8..81c9cbde 100644
--- a/debug/known_sizes.c
+++ b/debug/known_sizes.c
@@ -9,9 +9,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "sysdefs.h"
diff --git a/debug/memusage.c b/debug/memusage.c
index bd72b5a2..6d7dcdc5 100644
--- a/debug/memusage.c
+++ b/debug/memusage.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "sysdefs.h"
diff --git a/debug/repeat.c b/debug/repeat.c
index a00bde2c..5b19181d 100644
--- a/debug/repeat.c
+++ b/debug/repeat.c
@@ -9,9 +9,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "sysdefs.h"
diff --git a/debug/sync_flush.c b/debug/sync_flush.c
index 22923331..61bde641 100644
--- a/debug/sync_flush.c
+++ b/debug/sync_flush.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "sysdefs.h"
diff --git a/debug/translation.bash b/debug/translation.bash
index df4210dd..53cbc144 100644
--- a/debug/translation.bash
+++ b/debug/translation.bash
@@ -20,9 +20,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
###############################################################################
set -e
diff --git a/doc/examples/01_compress_easy.c b/doc/examples/01_compress_easy.c
index 132a1bdf..d80af757 100644
--- a/doc/examples/01_compress_easy.c
+++ b/doc/examples/01_compress_easy.c
@@ -9,9 +9,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include <stdbool.h>
diff --git a/doc/examples/02_decompress.c b/doc/examples/02_decompress.c
index 98339bef..e874e952 100644
--- a/doc/examples/02_decompress.c
+++ b/doc/examples/02_decompress.c
@@ -9,9 +9,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include <stdbool.h>
diff --git a/doc/examples/03_compress_custom.c b/doc/examples/03_compress_custom.c
index 40c85e36..9fd5f0db 100644
--- a/doc/examples/03_compress_custom.c
+++ b/doc/examples/03_compress_custom.c
@@ -9,9 +9,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include <stdbool.h>
diff --git a/doc/examples/04_compress_easy_mt.c b/doc/examples/04_compress_easy_mt.c
index efe56975..d6cfcb3d 100644
--- a/doc/examples/04_compress_easy_mt.c
+++ b/doc/examples/04_compress_easy_mt.c
@@ -9,9 +9,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include <stdbool.h>
diff --git a/doc/examples/11_file_info.c b/doc/examples/11_file_info.c
index 1e2c25b1..fd8a81ee 100644
--- a/doc/examples/11_file_info.c
+++ b/doc/examples/11_file_info.c
@@ -9,9 +9,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include <stdbool.h>
diff --git a/doc/examples/Makefile b/doc/examples/Makefile
index e8839d88..10f9ef8c 100644
--- a/doc/examples/Makefile
+++ b/doc/examples/Makefile
@@ -1,9 +1,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
CC = c99
CFLAGS = -g
diff --git a/dos/Makefile b/dos/Makefile
index 793adc1c..cfc9ecbc 100644
--- a/dos/Makefile
+++ b/dos/Makefile
@@ -4,9 +4,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
###############################################################################
# For debugging, set comment "#define NDEBUG 1" from config.h to enable
diff --git a/doxygen/update-doxygen b/doxygen/update-doxygen
index a5103199..3709704c 100755
--- a/doxygen/update-doxygen
+++ b/doxygen/update-doxygen
@@ -16,9 +16,6 @@
# Authors: Jia Tan
# Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
#############################################################################
set -e
diff --git a/extra/7z2lzma/7z2lzma.bash b/extra/7z2lzma/7z2lzma.bash
index 1777c786..9d08b430 100755
--- a/extra/7z2lzma/7z2lzma.bash
+++ b/extra/7z2lzma/7z2lzma.bash
@@ -17,9 +17,6 @@
#
# Author: Lasse Collin <lasse.collin@tukaani.org>
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
#############################################################################
# You can use 7z or 7za, both will work.
diff --git a/m4/tuklib_common.m4 b/m4/tuklib_common.m4
index d942a25f..79fd4aa6 100644
--- a/m4/tuklib_common.m4
+++ b/m4/tuklib_common.m4
@@ -11,9 +11,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
AC_DEFUN_ONCE([TUKLIB_COMMON], [
AC_REQUIRE([AC_CANONICAL_HOST])
diff --git a/m4/tuklib_cpucores.m4 b/m4/tuklib_cpucores.m4
index 873812d6..e31597dd 100644
--- a/m4/tuklib_cpucores.m4
+++ b/m4/tuklib_cpucores.m4
@@ -21,9 +21,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
AC_DEFUN_ONCE([TUKLIB_CPUCORES], [
AC_REQUIRE([TUKLIB_COMMON])
diff --git a/m4/tuklib_integer.m4 b/m4/tuklib_integer.m4
index 89a53fe1..e2f797f5 100644
--- a/m4/tuklib_integer.m4
+++ b/m4/tuklib_integer.m4
@@ -15,9 +15,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
AC_DEFUN_ONCE([TUKLIB_INTEGER], [
AC_REQUIRE([TUKLIB_COMMON])
diff --git a/m4/tuklib_mbstr.m4 b/m4/tuklib_mbstr.m4
index 991be9b9..2500907e 100644
--- a/m4/tuklib_mbstr.m4
+++ b/m4/tuklib_mbstr.m4
@@ -19,9 +19,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
AC_DEFUN_ONCE([TUKLIB_MBSTR], [
AC_REQUIRE([TUKLIB_COMMON])
diff --git a/m4/tuklib_physmem.m4 b/m4/tuklib_physmem.m4
index 59317859..fed92ff5 100644
--- a/m4/tuklib_physmem.m4
+++ b/m4/tuklib_physmem.m4
@@ -33,9 +33,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
AC_DEFUN_ONCE([TUKLIB_PHYSMEM], [
AC_REQUIRE([TUKLIB_COMMON])
diff --git a/m4/tuklib_progname.m4 b/m4/tuklib_progname.m4
index 9f7d4c52..da84481c 100644
--- a/m4/tuklib_progname.m4
+++ b/m4/tuklib_progname.m4
@@ -15,9 +15,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
AC_DEFUN_ONCE([TUKLIB_PROGNAME], [
AC_REQUIRE([TUKLIB_COMMON])
diff --git a/po4a/update-po b/po4a/update-po
index b1cc9f53..8c09ac45 100755
--- a/po4a/update-po
+++ b/po4a/update-po
@@ -10,9 +10,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
#############################################################################
if type po4a > /dev/null 2>&1; then
diff --git a/src/Makefile.am b/src/Makefile.am
index d199e858..6089c946 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
SUBDIRS = liblzma xzdec
diff --git a/src/common/common_w32res.rc b/src/common/common_w32res.rc
index d05d22e7..5d616af5 100644
--- a/src/common/common_w32res.rc
+++ b/src/common/common_w32res.rc
@@ -1,8 +1,5 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#include <winresrc.h>
diff --git a/src/common/mythread.h b/src/common/mythread.h
index 7be94567..baa3ec84 100644
--- a/src/common/mythread.h
+++ b/src/common/mythread.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef MYTHREAD_H
diff --git a/src/common/sysdefs.h b/src/common/sysdefs.h
index 3e1ff1eb..44c58259 100644
--- a/src/common/sysdefs.h
+++ b/src/common/sysdefs.h
@@ -8,9 +8,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_SYSDEFS_H
diff --git a/src/common/tuklib_common.h b/src/common/tuklib_common.h
index 724b8c0e..a722b66f 100644
--- a/src/common/tuklib_common.h
+++ b/src/common/tuklib_common.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef TUKLIB_COMMON_H
diff --git a/src/common/tuklib_cpucores.c b/src/common/tuklib_cpucores.c
index bb3f2f75..d3044e0c 100644
--- a/src/common/tuklib_cpucores.c
+++ b/src/common/tuklib_cpucores.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tuklib_cpucores.h"
diff --git a/src/common/tuklib_cpucores.h b/src/common/tuklib_cpucores.h
index be1ce1c1..453597d6 100644
--- a/src/common/tuklib_cpucores.h
+++ b/src/common/tuklib_cpucores.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef TUKLIB_CPUCORES_H
diff --git a/src/common/tuklib_exit.c b/src/common/tuklib_exit.c
index aa55620e..9127deb3 100644
--- a/src/common/tuklib_exit.c
+++ b/src/common/tuklib_exit.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tuklib_common.h"
diff --git a/src/common/tuklib_exit.h b/src/common/tuklib_exit.h
index f8f35a6b..70d2ec6a 100644
--- a/src/common/tuklib_exit.h
+++ b/src/common/tuklib_exit.h
@@ -6,9 +6,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef TUKLIB_EXIT_H
diff --git a/src/common/tuklib_gettext.h b/src/common/tuklib_gettext.h
index ff189040..8cbf3dfc 100644
--- a/src/common/tuklib_gettext.h
+++ b/src/common/tuklib_gettext.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef TUKLIB_GETTEXT_H
diff --git a/src/common/tuklib_integer.h b/src/common/tuklib_integer.h
index 6dd2a5f7..3eb1d511 100644
--- a/src/common/tuklib_integer.h
+++ b/src/common/tuklib_integer.h
@@ -37,9 +37,6 @@
// Authors: Lasse Collin
// Joachim Henke
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef TUKLIB_INTEGER_H
diff --git a/src/common/tuklib_mbstr.h b/src/common/tuklib_mbstr.h
index dde9305f..3a134d4e 100644
--- a/src/common/tuklib_mbstr.h
+++ b/src/common/tuklib_mbstr.h
@@ -10,9 +10,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef TUKLIB_MBSTR_H
diff --git a/src/common/tuklib_mbstr_fw.c b/src/common/tuklib_mbstr_fw.c
index 64c9ad5a..c1024ce3 100644
--- a/src/common/tuklib_mbstr_fw.c
+++ b/src/common/tuklib_mbstr_fw.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tuklib_mbstr.h"
diff --git a/src/common/tuklib_mbstr_width.c b/src/common/tuklib_mbstr_width.c
index 69d159e0..5c33d522 100644
--- a/src/common/tuklib_mbstr_width.c
+++ b/src/common/tuklib_mbstr_width.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tuklib_mbstr.h"
diff --git a/src/common/tuklib_open_stdxxx.c b/src/common/tuklib_open_stdxxx.c
index 26702a6a..f425f6c3 100644
--- a/src/common/tuklib_open_stdxxx.c
+++ b/src/common/tuklib_open_stdxxx.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tuklib_open_stdxxx.h"
diff --git a/src/common/tuklib_open_stdxxx.h b/src/common/tuklib_open_stdxxx.h
index b9116160..576e9f10 100644
--- a/src/common/tuklib_open_stdxxx.h
+++ b/src/common/tuklib_open_stdxxx.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef TUKLIB_OPEN_STDXXX_H
diff --git a/src/common/tuklib_physmem.c b/src/common/tuklib_physmem.c
index 779eb0a1..32ecc8d9 100644
--- a/src/common/tuklib_physmem.c
+++ b/src/common/tuklib_physmem.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tuklib_physmem.h"
diff --git a/src/common/tuklib_physmem.h b/src/common/tuklib_physmem.h
index 09e2a513..0bad0397 100644
--- a/src/common/tuklib_physmem.h
+++ b/src/common/tuklib_physmem.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef TUKLIB_PHYSMEM_H
diff --git a/src/common/tuklib_progname.c b/src/common/tuklib_progname.c
index e2ef4e55..8dfbbc4b 100644
--- a/src/common/tuklib_progname.c
+++ b/src/common/tuklib_progname.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tuklib_progname.h"
diff --git a/src/common/tuklib_progname.h b/src/common/tuklib_progname.h
index bb80f25e..ed20be7c 100644
--- a/src/common/tuklib_progname.h
+++ b/src/common/tuklib_progname.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef TUKLIB_PROGNAME_H
diff --git a/src/liblzma/Makefile.am b/src/liblzma/Makefile.am
index 13453e72..79afcba4 100644
--- a/src/liblzma/Makefile.am
+++ b/src/liblzma/Makefile.am
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
SUBDIRS = api
diff --git a/src/liblzma/api/Makefile.am b/src/liblzma/api/Makefile.am
index db246000..516437fa 100644
--- a/src/liblzma/api/Makefile.am
+++ b/src/liblzma/api/Makefile.am
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
nobase_include_HEADERS = \
lzma.h \
diff --git a/src/liblzma/api/lzma.h b/src/liblzma/api/lzma.h
index f6b9469a..f4bfea1d 100644
--- a/src/liblzma/api/lzma.h
+++ b/src/liblzma/api/lzma.h
@@ -3,10 +3,10 @@
* \brief The public API of liblzma data compression library
* \mainpage
*
- * liblzma is a public domain general-purpose data compression library with
- * a zlib-like API. The native file format is .xz, but also the old .lzma
- * format and raw (no headers) streams are supported. Multiple compression
- * algorithms (filters) are supported. Currently LZMA2 is the primary filter.
+ * liblzma is a general-purpose data compression library with a zlib-like API.
+ * The native file format is .xz, but also the old .lzma format and raw (no
+ * headers) streams are supported. Multiple compression algorithms (filters)
+ * are supported. Currently LZMA2 is the primary filter.
*
* liblzma is part of XZ Utils <https://xz.tukaani.org/xz-utils/>. XZ Utils
* includes a gzip-like command line tool named xz and some other tools.
@@ -19,13 +19,12 @@
* 7-Zip <https://7-zip.org/>, which has a modified version of the public
* domain SHA-256 code found from Crypto++ <https://www.cryptopp.com/>.
* The SHA-256 code in Crypto++ was written by Kevin Springle and Wei Dai.
+ *
+ * liblzma is distributed under the BSD Zero Clause License (0BSD).
*/
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H
diff --git a/src/liblzma/api/lzma/base.h b/src/liblzma/api/lzma/base.h
index adac88a4..7408cd10 100644
--- a/src/liblzma/api/lzma/base.h
+++ b/src/liblzma/api/lzma/base.h
@@ -6,9 +6,6 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H_INTERNAL
diff --git a/src/liblzma/api/lzma/bcj.h b/src/liblzma/api/lzma/bcj.h
index 6c700c75..db9d6fa3 100644
--- a/src/liblzma/api/lzma/bcj.h
+++ b/src/liblzma/api/lzma/bcj.h
@@ -6,9 +6,6 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H_INTERNAL
diff --git a/src/liblzma/api/lzma/block.h b/src/liblzma/api/lzma/block.h
index ec5e77a6..9f6bb1e5 100644
--- a/src/liblzma/api/lzma/block.h
+++ b/src/liblzma/api/lzma/block.h
@@ -6,9 +6,6 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H_INTERNAL
diff --git a/src/liblzma/api/lzma/check.h b/src/liblzma/api/lzma/check.h
index b37197d2..3917c839 100644
--- a/src/liblzma/api/lzma/check.h
+++ b/src/liblzma/api/lzma/check.h
@@ -6,9 +6,6 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H_INTERNAL
diff --git a/src/liblzma/api/lzma/container.h b/src/liblzma/api/lzma/container.h
index ed8aa921..0c515c58 100644
--- a/src/liblzma/api/lzma/container.h
+++ b/src/liblzma/api/lzma/container.h
@@ -6,9 +6,6 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H_INTERNAL
diff --git a/src/liblzma/api/lzma/delta.h b/src/liblzma/api/lzma/delta.h
index 7a725bc4..33b3bbc3 100644
--- a/src/liblzma/api/lzma/delta.h
+++ b/src/liblzma/api/lzma/delta.h
@@ -6,9 +6,6 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H_INTERNAL
diff --git a/src/liblzma/api/lzma/filter.h b/src/liblzma/api/lzma/filter.h
index 4f601d6c..e0808b69 100644
--- a/src/liblzma/api/lzma/filter.h
+++ b/src/liblzma/api/lzma/filter.h
@@ -6,9 +6,6 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H_INTERNAL
diff --git a/src/liblzma/api/lzma/hardware.h b/src/liblzma/api/lzma/hardware.h
index f34897d8..4c3984b8 100644
--- a/src/liblzma/api/lzma/hardware.h
+++ b/src/liblzma/api/lzma/hardware.h
@@ -23,9 +23,6 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H_INTERNAL
diff --git a/src/liblzma/api/lzma/index.h b/src/liblzma/api/lzma/index.h
index 6fd2f618..c723d6d2 100644
--- a/src/liblzma/api/lzma/index.h
+++ b/src/liblzma/api/lzma/index.h
@@ -6,9 +6,6 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H_INTERNAL
diff --git a/src/liblzma/api/lzma/index_hash.h b/src/liblzma/api/lzma/index_hash.h
index a2d4c484..a486b130 100644
--- a/src/liblzma/api/lzma/index_hash.h
+++ b/src/liblzma/api/lzma/index_hash.h
@@ -9,9 +9,6 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H_INTERNAL
diff --git a/src/liblzma/api/lzma/lzma12.h b/src/liblzma/api/lzma/lzma12.h
index 772c3e29..9de0e326 100644
--- a/src/liblzma/api/lzma/lzma12.h
+++ b/src/liblzma/api/lzma/lzma12.h
@@ -6,9 +6,6 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H_INTERNAL
diff --git a/src/liblzma/api/lzma/stream_flags.h b/src/liblzma/api/lzma/stream_flags.h
index 7622a621..252e6a1d 100644
--- a/src/liblzma/api/lzma/stream_flags.h
+++ b/src/liblzma/api/lzma/stream_flags.h
@@ -6,9 +6,6 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H_INTERNAL
diff --git a/src/liblzma/api/lzma/version.h b/src/liblzma/api/lzma/version.h
index 6503a0cb..86303387 100644
--- a/src/liblzma/api/lzma/version.h
+++ b/src/liblzma/api/lzma/version.h
@@ -6,9 +6,6 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H_INTERNAL
diff --git a/src/liblzma/api/lzma/vli.h b/src/liblzma/api/lzma/vli.h
index f9ad1550..2174f5ba 100644
--- a/src/liblzma/api/lzma/vli.h
+++ b/src/liblzma/api/lzma/vli.h
@@ -17,9 +17,6 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#ifndef LZMA_H_INTERNAL
diff --git a/src/liblzma/check/Makefile.inc b/src/liblzma/check/Makefile.inc
index da7ee0db..c38b6e9b 100644
--- a/src/liblzma/check/Makefile.inc
+++ b/src/liblzma/check/Makefile.inc
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
## Note: There is no check for COND_CHECK_CRC32 because
## currently crc32 is always enabled.
diff --git a/src/liblzma/check/check.c b/src/liblzma/check/check.c
index 428ddaeb..dab4088d 100644
--- a/src/liblzma/check/check.c
+++ b/src/liblzma/check/check.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "check.h"
diff --git a/src/liblzma/check/check.h b/src/liblzma/check/check.h
index 8ae95d59..b8dcc075 100644
--- a/src/liblzma/check/check.h
+++ b/src/liblzma/check/check.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_CHECK_H
diff --git a/src/liblzma/check/crc32_arm64.h b/src/liblzma/check/crc32_arm64.h
index fc24cd82..73b4f9f7 100644
--- a/src/liblzma/check/crc32_arm64.h
+++ b/src/liblzma/check/crc32_arm64.h
@@ -7,9 +7,6 @@
// Jia Tan
// Hans Jansen
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
diff --git a/src/liblzma/check/crc32_fast.c b/src/liblzma/check/crc32_fast.c
index 1fadb70f..068712b2 100644
--- a/src/liblzma/check/crc32_fast.c
+++ b/src/liblzma/check/crc32_fast.c
@@ -7,9 +7,6 @@
// Ilya Kurdyukov
// Hans Jansen
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "check.h"
diff --git a/src/liblzma/check/crc32_small.c b/src/liblzma/check/crc32_small.c
index 186966e9..e05e9062 100644
--- a/src/liblzma/check/crc32_small.c
+++ b/src/liblzma/check/crc32_small.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "check.h"
diff --git a/src/liblzma/check/crc32_table.c b/src/liblzma/check/crc32_table.c
index 09b00fa3..47fc3de5 100644
--- a/src/liblzma/check/crc32_table.c
+++ b/src/liblzma/check/crc32_table.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/check/crc32_tablegen.c b/src/liblzma/check/crc32_tablegen.c
index 31a4d275..341efdcd 100644
--- a/src/liblzma/check/crc32_tablegen.c
+++ b/src/liblzma/check/crc32_tablegen.c
@@ -9,9 +9,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include <stdio.h>
diff --git a/src/liblzma/check/crc32_x86.S b/src/liblzma/check/crc32_x86.S
index 4f395df8..babe8b92 100644
--- a/src/liblzma/check/crc32_x86.S
+++ b/src/liblzma/check/crc32_x86.S
@@ -11,9 +11,6 @@
* Authors: Igor Pavlov (original version)
* Lasse Collin (AT&T syntax, PIC support, better portability)
*
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
- *
* This code needs lzma_crc32_table, which can be created using the
* following C code:
diff --git a/src/liblzma/check/crc64_fast.c b/src/liblzma/check/crc64_fast.c
index 6a4e6d24..cd843b35 100644
--- a/src/liblzma/check/crc64_fast.c
+++ b/src/liblzma/check/crc64_fast.c
@@ -6,9 +6,6 @@
// Authors: Lasse Collin
// Ilya Kurdyukov
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "check.h"
diff --git a/src/liblzma/check/crc64_small.c b/src/liblzma/check/crc64_small.c
index 420f7cfb..4e113eef 100644
--- a/src/liblzma/check/crc64_small.c
+++ b/src/liblzma/check/crc64_small.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "check.h"
diff --git a/src/liblzma/check/crc64_table.c b/src/liblzma/check/crc64_table.c
index 806a9ce3..0bf07eff 100644
--- a/src/liblzma/check/crc64_table.c
+++ b/src/liblzma/check/crc64_table.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/check/crc64_tablegen.c b/src/liblzma/check/crc64_tablegen.c
index fddaa7ed..9975765d 100644
--- a/src/liblzma/check/crc64_tablegen.c
+++ b/src/liblzma/check/crc64_tablegen.c
@@ -8,9 +8,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include <stdio.h>
diff --git a/src/liblzma/check/crc64_x86.S b/src/liblzma/check/crc64_x86.S
index 9aecf586..6398081b 100644
--- a/src/liblzma/check/crc64_x86.S
+++ b/src/liblzma/check/crc64_x86.S
@@ -7,9 +7,6 @@
* Authors: Igor Pavlov (original CRC32 assembly code)
* Lasse Collin (CRC64 adaptation of the modified CRC32 code)
*
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
- *
* This code needs lzma_crc64_table, which can be created using the
* following C code:
diff --git a/src/liblzma/check/crc_common.h b/src/liblzma/check/crc_common.h
index 123d7db0..8da15123 100644
--- a/src/liblzma/check/crc_common.h
+++ b/src/liblzma/check/crc_common.h
@@ -8,9 +8,6 @@
// Hans Jansen
// Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_CRC_COMMON_H
diff --git a/src/liblzma/check/crc_x86_clmul.h b/src/liblzma/check/crc_x86_clmul.h
index f407da5c..9455868b 100644
--- a/src/liblzma/check/crc_x86_clmul.h
+++ b/src/liblzma/check/crc_x86_clmul.h
@@ -27,9 +27,6 @@
// Lasse Collin
// Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
// This file must not be included more than once.
diff --git a/src/liblzma/check/sha256.c b/src/liblzma/check/sha256.c
index 9247fa32..07cd3372 100644
--- a/src/liblzma/check/sha256.c
+++ b/src/liblzma/check/sha256.c
@@ -10,9 +10,6 @@
// Authors: Wei Dai
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "check.h"
diff --git a/src/liblzma/common/Makefile.inc b/src/liblzma/common/Makefile.inc
index f0276a20..74c29027 100644
--- a/src/liblzma/common/Makefile.inc
+++ b/src/liblzma/common/Makefile.inc
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
liblzma_la_SOURCES += \
common/common.c \
diff --git a/src/liblzma/common/alone_decoder.c b/src/liblzma/common/alone_decoder.c
index 1dc85bad..9ec3c21a 100644
--- a/src/liblzma/common/alone_decoder.c
+++ b/src/liblzma/common/alone_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "alone_decoder.h"
diff --git a/src/liblzma/common/alone_decoder.h b/src/liblzma/common/alone_decoder.h
index dfa031aa..69d44fa5 100644
--- a/src/liblzma/common/alone_decoder.h
+++ b/src/liblzma/common/alone_decoder.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_ALONE_DECODER_H
diff --git a/src/liblzma/common/alone_encoder.c b/src/liblzma/common/alone_encoder.c
index 7d3812fa..b4d57f05 100644
--- a/src/liblzma/common/alone_encoder.c
+++ b/src/liblzma/common/alone_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/auto_decoder.c b/src/liblzma/common/auto_decoder.c
index 2a5c0894..928a34fc 100644
--- a/src/liblzma/common/auto_decoder.c
+++ b/src/liblzma/common/auto_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "stream_decoder.h"
diff --git a/src/liblzma/common/block_buffer_decoder.c b/src/liblzma/common/block_buffer_decoder.c
index b0ded90d..31e371a6 100644
--- a/src/liblzma/common/block_buffer_decoder.c
+++ b/src/liblzma/common/block_buffer_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "block_decoder.h"
diff --git a/src/liblzma/common/block_buffer_encoder.c b/src/liblzma/common/block_buffer_encoder.c
index fdef02de..6ae190d5 100644
--- a/src/liblzma/common/block_buffer_encoder.c
+++ b/src/liblzma/common/block_buffer_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "block_buffer_encoder.h"
diff --git a/src/liblzma/common/block_buffer_encoder.h b/src/liblzma/common/block_buffer_encoder.h
index 653207f7..38696f67 100644
--- a/src/liblzma/common/block_buffer_encoder.h
+++ b/src/liblzma/common/block_buffer_encoder.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_BLOCK_BUFFER_ENCODER_H
diff --git a/src/liblzma/common/block_decoder.c b/src/liblzma/common/block_decoder.c
index be647d48..4f7108ba 100644
--- a/src/liblzma/common/block_decoder.c
+++ b/src/liblzma/common/block_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "block_decoder.h"
diff --git a/src/liblzma/common/block_decoder.h b/src/liblzma/common/block_decoder.h
index 718c5ced..9b78e11f 100644
--- a/src/liblzma/common/block_decoder.h
+++ b/src/liblzma/common/block_decoder.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_BLOCK_DECODER_H
diff --git a/src/liblzma/common/block_encoder.c b/src/liblzma/common/block_encoder.c
index 4a136ef6..020b4c69 100644
--- a/src/liblzma/common/block_encoder.c
+++ b/src/liblzma/common/block_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "block_encoder.h"
diff --git a/src/liblzma/common/block_encoder.h b/src/liblzma/common/block_encoder.h
index bd97c186..cffc0479 100644
--- a/src/liblzma/common/block_encoder.h
+++ b/src/liblzma/common/block_encoder.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_BLOCK_ENCODER_H
diff --git a/src/liblzma/common/block_header_decoder.c b/src/liblzma/common/block_header_decoder.c
index c4935dcf..12cd5ae3 100644
--- a/src/liblzma/common/block_header_decoder.c
+++ b/src/liblzma/common/block_header_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/block_header_encoder.c b/src/liblzma/common/block_header_encoder.c
index 160425d2..057c0ffb 100644
--- a/src/liblzma/common/block_header_encoder.c
+++ b/src/liblzma/common/block_header_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/block_util.c b/src/liblzma/common/block_util.c
index acb31114..07f373f6 100644
--- a/src/liblzma/common/block_util.c
+++ b/src/liblzma/common/block_util.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/common.c b/src/liblzma/common/common.c
index adb50d78..5d1ac990 100644
--- a/src/liblzma/common/common.c
+++ b/src/liblzma/common/common.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/common.h b/src/liblzma/common/common.h
index 378923e4..51afc37f 100644
--- a/src/liblzma/common/common.h
+++ b/src/liblzma/common/common.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_COMMON_H
diff --git a/src/liblzma/common/easy_buffer_encoder.c b/src/liblzma/common/easy_buffer_encoder.c
index 48eb56f5..fefc5bbb 100644
--- a/src/liblzma/common/easy_buffer_encoder.c
+++ b/src/liblzma/common/easy_buffer_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "easy_preset.h"
diff --git a/src/liblzma/common/easy_decoder_memusage.c b/src/liblzma/common/easy_decoder_memusage.c
index 20bcd5b7..36e51165 100644
--- a/src/liblzma/common/easy_decoder_memusage.c
+++ b/src/liblzma/common/easy_decoder_memusage.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "easy_preset.h"
diff --git a/src/liblzma/common/easy_encoder.c b/src/liblzma/common/easy_encoder.c
index 5cb492dd..9cecbb9d 100644
--- a/src/liblzma/common/easy_encoder.c
+++ b/src/liblzma/common/easy_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "easy_preset.h"
diff --git a/src/liblzma/common/easy_encoder_memusage.c b/src/liblzma/common/easy_encoder_memusage.c
index e9105758..b3c954d1 100644
--- a/src/liblzma/common/easy_encoder_memusage.c
+++ b/src/liblzma/common/easy_encoder_memusage.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "easy_preset.h"
diff --git a/src/liblzma/common/easy_preset.c b/src/liblzma/common/easy_preset.c
index 2f985986..41bf9f69 100644
--- a/src/liblzma/common/easy_preset.c
+++ b/src/liblzma/common/easy_preset.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "easy_preset.h"
diff --git a/src/liblzma/common/easy_preset.h b/src/liblzma/common/easy_preset.h
index 382ade89..c555e935 100644
--- a/src/liblzma/common/easy_preset.h
+++ b/src/liblzma/common/easy_preset.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/file_info.c b/src/liblzma/common/file_info.c
index 799bb024..74a223c3 100644
--- a/src/liblzma/common/file_info.c
+++ b/src/liblzma/common/file_info.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "index_decoder.h"
diff --git a/src/liblzma/common/filter_buffer_decoder.c b/src/liblzma/common/filter_buffer_decoder.c
index 6620986e..63d7f3ef 100644
--- a/src/liblzma/common/filter_buffer_decoder.c
+++ b/src/liblzma/common/filter_buffer_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "filter_decoder.h"
diff --git a/src/liblzma/common/filter_buffer_encoder.c b/src/liblzma/common/filter_buffer_encoder.c
index dda18e3d..ef1b86a6 100644
--- a/src/liblzma/common/filter_buffer_encoder.c
+++ b/src/liblzma/common/filter_buffer_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "filter_encoder.h"
diff --git a/src/liblzma/common/filter_common.c b/src/liblzma/common/filter_common.c
index bff68b61..19ef0653 100644
--- a/src/liblzma/common/filter_common.c
+++ b/src/liblzma/common/filter_common.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "filter_common.h"
diff --git a/src/liblzma/common/filter_common.h b/src/liblzma/common/filter_common.h
index 2e47bb69..0a3feac1 100644
--- a/src/liblzma/common/filter_common.h
+++ b/src/liblzma/common/filter_common.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_FILTER_COMMON_H
diff --git a/src/liblzma/common/filter_decoder.c b/src/liblzma/common/filter_decoder.c
index fedd7978..f1d3a358 100644
--- a/src/liblzma/common/filter_decoder.c
+++ b/src/liblzma/common/filter_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "filter_decoder.h"
diff --git a/src/liblzma/common/filter_decoder.h b/src/liblzma/common/filter_decoder.h
index 2dac6028..c69a0eb2 100644
--- a/src/liblzma/common/filter_decoder.h
+++ b/src/liblzma/common/filter_decoder.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_FILTER_DECODER_H
diff --git a/src/liblzma/common/filter_encoder.c b/src/liblzma/common/filter_encoder.c
index 45a215aa..1aa6f07b 100644
--- a/src/liblzma/common/filter_encoder.c
+++ b/src/liblzma/common/filter_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "filter_encoder.h"
diff --git a/src/liblzma/common/filter_encoder.h b/src/liblzma/common/filter_encoder.h
index da92be8b..344ca10f 100644
--- a/src/liblzma/common/filter_encoder.h
+++ b/src/liblzma/common/filter_encoder.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_FILTER_ENCODER_H
diff --git a/src/liblzma/common/filter_flags_decoder.c b/src/liblzma/common/filter_flags_decoder.c
index ddfb0859..becbcad0 100644
--- a/src/liblzma/common/filter_flags_decoder.c
+++ b/src/liblzma/common/filter_flags_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "filter_decoder.h"
diff --git a/src/liblzma/common/filter_flags_encoder.c b/src/liblzma/common/filter_flags_encoder.c
index b57b9fd8..f12dc412 100644
--- a/src/liblzma/common/filter_flags_encoder.c
+++ b/src/liblzma/common/filter_flags_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "filter_encoder.h"
diff --git a/src/liblzma/common/hardware_cputhreads.c b/src/liblzma/common/hardware_cputhreads.c
index 5d246d2c..6ae759e3 100644
--- a/src/liblzma/common/hardware_cputhreads.c
+++ b/src/liblzma/common/hardware_cputhreads.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/hardware_physmem.c b/src/liblzma/common/hardware_physmem.c
index a2bbbe29..ddf0ca2c 100644
--- a/src/liblzma/common/hardware_physmem.c
+++ b/src/liblzma/common/hardware_physmem.c
@@ -5,9 +5,6 @@
//
// Author: Jonathan Nieder
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/index.c b/src/liblzma/common/index.c
index 8a35f439..ff7f3fce 100644
--- a/src/liblzma/common/index.c
+++ b/src/liblzma/common/index.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/index.h b/src/liblzma/common/index.h
index 7b27d700..3c349d43 100644
--- a/src/liblzma/common/index.h
+++ b/src/liblzma/common/index.h
@@ -12,9 +12,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_INDEX_H
diff --git a/src/liblzma/common/index_decoder.c b/src/liblzma/common/index_decoder.c
index 19a31b3e..fbf58982 100644
--- a/src/liblzma/common/index_decoder.c
+++ b/src/liblzma/common/index_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "index_decoder.h"
diff --git a/src/liblzma/common/index_decoder.h b/src/liblzma/common/index_decoder.h
index 3fec4833..d877c505 100644
--- a/src/liblzma/common/index_decoder.h
+++ b/src/liblzma/common/index_decoder.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_INDEX_DECODER_H
diff --git a/src/liblzma/common/index_encoder.c b/src/liblzma/common/index_encoder.c
index 204490cc..4939d328 100644
--- a/src/liblzma/common/index_encoder.c
+++ b/src/liblzma/common/index_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "index_encoder.h"
diff --git a/src/liblzma/common/index_encoder.h b/src/liblzma/common/index_encoder.h
index 4d55cd10..2c6e904d 100644
--- a/src/liblzma/common/index_encoder.h
+++ b/src/liblzma/common/index_encoder.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_INDEX_ENCODER_H
diff --git a/src/liblzma/common/index_hash.c b/src/liblzma/common/index_hash.c
index 52c3d650..c4bb6e07 100644
--- a/src/liblzma/common/index_hash.c
+++ b/src/liblzma/common/index_hash.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/lzip_decoder.c b/src/liblzma/common/lzip_decoder.c
index 88cc7ffd..b229e1eb 100644
--- a/src/liblzma/common/lzip_decoder.c
+++ b/src/liblzma/common/lzip_decoder.c
@@ -6,9 +6,6 @@
// Author: Michał Górny
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "lzip_decoder.h"
diff --git a/src/liblzma/common/lzip_decoder.h b/src/liblzma/common/lzip_decoder.h
index 33a01c35..6c696472 100644
--- a/src/liblzma/common/lzip_decoder.h
+++ b/src/liblzma/common/lzip_decoder.h
@@ -5,9 +5,6 @@
//
// Author: Michał Górny
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_LZIP_DECODER_H
diff --git a/src/liblzma/common/memcmplen.h b/src/liblzma/common/memcmplen.h
index c095c05e..05f92679 100644
--- a/src/liblzma/common/memcmplen.h
+++ b/src/liblzma/common/memcmplen.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_MEMCMPLEN_H
diff --git a/src/liblzma/common/microlzma_decoder.c b/src/liblzma/common/microlzma_decoder.c
index e473373d..7fe0e2a0 100644
--- a/src/liblzma/common/microlzma_decoder.c
+++ b/src/liblzma/common/microlzma_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "lzma_decoder.h"
diff --git a/src/liblzma/common/microlzma_encoder.c b/src/liblzma/common/microlzma_encoder.c
index a787ca25..3db9ba54 100644
--- a/src/liblzma/common/microlzma_encoder.c
+++ b/src/liblzma/common/microlzma_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "lzma_encoder.h"
diff --git a/src/liblzma/common/outqueue.c b/src/liblzma/common/outqueue.c
index 71e8648a..39c79dfa 100644
--- a/src/liblzma/common/outqueue.c
+++ b/src/liblzma/common/outqueue.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "outqueue.h"
diff --git a/src/liblzma/common/outqueue.h b/src/liblzma/common/outqueue.h
index 596911e9..0172436b 100644
--- a/src/liblzma/common/outqueue.h
+++ b/src/liblzma/common/outqueue.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/stream_buffer_decoder.c b/src/liblzma/common/stream_buffer_decoder.c
index b9745b5d..2840d5cd 100644
--- a/src/liblzma/common/stream_buffer_decoder.c
+++ b/src/liblzma/common/stream_buffer_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "stream_decoder.h"
diff --git a/src/liblzma/common/stream_buffer_encoder.c b/src/liblzma/common/stream_buffer_encoder.c
index 73157590..938f1b3b 100644
--- a/src/liblzma/common/stream_buffer_encoder.c
+++ b/src/liblzma/common/stream_buffer_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/stream_decoder.c b/src/liblzma/common/stream_decoder.c
index 64283812..ee0722f8 100644
--- a/src/liblzma/common/stream_decoder.c
+++ b/src/liblzma/common/stream_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "stream_decoder.h"
diff --git a/src/liblzma/common/stream_decoder.h b/src/liblzma/common/stream_decoder.h
index c13c6ba1..6b86e412 100644
--- a/src/liblzma/common/stream_decoder.h
+++ b/src/liblzma/common/stream_decoder.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_STREAM_DECODER_H
diff --git a/src/liblzma/common/stream_decoder_mt.c b/src/liblzma/common/stream_decoder_mt.c
index 76212b46..91b339d1 100644
--- a/src/liblzma/common/stream_decoder_mt.c
+++ b/src/liblzma/common/stream_decoder_mt.c
@@ -6,9 +6,6 @@
// Authors: Sebastian Andrzej Siewior
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/stream_encoder.c b/src/liblzma/common/stream_encoder.c
index ee920460..ff95dc5c 100644
--- a/src/liblzma/common/stream_encoder.c
+++ b/src/liblzma/common/stream_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "block_encoder.h"
diff --git a/src/liblzma/common/stream_encoder_mt.c b/src/liblzma/common/stream_encoder_mt.c
index 64de526b..ed6b6b77 100644
--- a/src/liblzma/common/stream_encoder_mt.c
+++ b/src/liblzma/common/stream_encoder_mt.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "filter_encoder.h"
diff --git a/src/liblzma/common/stream_flags_common.c b/src/liblzma/common/stream_flags_common.c
index fbe8eb8a..832e1e5d 100644
--- a/src/liblzma/common/stream_flags_common.c
+++ b/src/liblzma/common/stream_flags_common.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "stream_flags_common.h"
diff --git a/src/liblzma/common/stream_flags_common.h b/src/liblzma/common/stream_flags_common.h
index 84e96ba1..b752fce0 100644
--- a/src/liblzma/common/stream_flags_common.h
+++ b/src/liblzma/common/stream_flags_common.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_STREAM_FLAGS_COMMON_H
diff --git a/src/liblzma/common/stream_flags_decoder.c b/src/liblzma/common/stream_flags_decoder.c
index b8d263ba..43341317 100644
--- a/src/liblzma/common/stream_flags_decoder.c
+++ b/src/liblzma/common/stream_flags_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "stream_flags_common.h"
diff --git a/src/liblzma/common/stream_flags_encoder.c b/src/liblzma/common/stream_flags_encoder.c
index b98ab17c..6f8561bc 100644
--- a/src/liblzma/common/stream_flags_encoder.c
+++ b/src/liblzma/common/stream_flags_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "stream_flags_common.h"
diff --git a/src/liblzma/common/string_conversion.c b/src/liblzma/common/string_conversion.c
index 0bc459bc..c8cfaab8 100644
--- a/src/liblzma/common/string_conversion.c
+++ b/src/liblzma/common/string_conversion.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "filter_common.h"
diff --git a/src/liblzma/common/vli_decoder.c b/src/liblzma/common/vli_decoder.c
index af2799d1..df4254bc 100644
--- a/src/liblzma/common/vli_decoder.c
+++ b/src/liblzma/common/vli_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/vli_encoder.c b/src/liblzma/common/vli_encoder.c
index f8642694..99557b24 100644
--- a/src/liblzma/common/vli_encoder.c
+++ b/src/liblzma/common/vli_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/common/vli_size.c b/src/liblzma/common/vli_size.c
index ec1b4fa4..65d11b9a 100644
--- a/src/liblzma/common/vli_size.c
+++ b/src/liblzma/common/vli_size.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/delta/Makefile.inc b/src/liblzma/delta/Makefile.inc
index c7739b44..b161728e 100644
--- a/src/liblzma/delta/Makefile.inc
+++ b/src/liblzma/delta/Makefile.inc
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
liblzma_la_SOURCES += \
delta/delta_common.c \
diff --git a/src/liblzma/delta/delta_common.c b/src/liblzma/delta/delta_common.c
index 4768201d..2d01ceb9 100644
--- a/src/liblzma/delta/delta_common.c
+++ b/src/liblzma/delta/delta_common.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "delta_common.h"
diff --git a/src/liblzma/delta/delta_common.h b/src/liblzma/delta/delta_common.h
index 7e7e1baa..232e308d 100644
--- a/src/liblzma/delta/delta_common.h
+++ b/src/liblzma/delta/delta_common.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_DELTA_COMMON_H
diff --git a/src/liblzma/delta/delta_decoder.c b/src/liblzma/delta/delta_decoder.c
index 77cf65cc..1e445270 100644
--- a/src/liblzma/delta/delta_decoder.c
+++ b/src/liblzma/delta/delta_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "delta_decoder.h"
diff --git a/src/liblzma/delta/delta_decoder.h b/src/liblzma/delta/delta_decoder.h
index ad89cc65..7c96249a 100644
--- a/src/liblzma/delta/delta_decoder.h
+++ b/src/liblzma/delta/delta_decoder.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_DELTA_DECODER_H
diff --git a/src/liblzma/delta/delta_encoder.c b/src/liblzma/delta/delta_encoder.c
index 056bf746..f11a7914 100644
--- a/src/liblzma/delta/delta_encoder.c
+++ b/src/liblzma/delta/delta_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "delta_encoder.h"
diff --git a/src/liblzma/delta/delta_encoder.h b/src/liblzma/delta/delta_encoder.h
index 4ab98478..aff72130 100644
--- a/src/liblzma/delta/delta_encoder.h
+++ b/src/liblzma/delta/delta_encoder.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_DELTA_ENCODER_H
diff --git a/src/liblzma/delta/delta_private.h b/src/liblzma/delta/delta_private.h
index 0d6cb386..404657d0 100644
--- a/src/liblzma/delta/delta_private.h
+++ b/src/liblzma/delta/delta_private.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_DELTA_PRIVATE_H
diff --git a/src/liblzma/liblzma.pc.in b/src/liblzma/liblzma.pc.in
index d077cb77..d9ff749c 100644
--- a/src/liblzma/liblzma.pc.in
+++ b/src/liblzma/liblzma.pc.in
@@ -1,9 +1,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
prefix=@prefix@
exec_prefix=@exec_prefix@
diff --git a/src/liblzma/liblzma_w32res.rc b/src/liblzma/liblzma_w32res.rc
index d4d8159c..da9c51bf 100644
--- a/src/liblzma/liblzma_w32res.rc
+++ b/src/liblzma/liblzma_w32res.rc
@@ -1,8 +1,5 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#define MY_TYPE VFT_DLL
diff --git a/src/liblzma/lz/Makefile.inc b/src/liblzma/lz/Makefile.inc
index 75742a84..ecb3b230 100644
--- a/src/liblzma/lz/Makefile.inc
+++ b/src/liblzma/lz/Makefile.inc
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
if COND_ENCODER_LZ
liblzma_la_SOURCES += \
diff --git a/src/liblzma/lz/lz_decoder.c b/src/liblzma/lz/lz_decoder.c
index 06c95c11..158aa08b 100644
--- a/src/liblzma/lz/lz_decoder.c
+++ b/src/liblzma/lz/lz_decoder.c
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
// liblzma supports multiple LZ77-based filters. The LZ part is shared
diff --git a/src/liblzma/lz/lz_decoder.h b/src/liblzma/lz/lz_decoder.h
index ad80d4dd..6059746a 100644
--- a/src/liblzma/lz/lz_decoder.h
+++ b/src/liblzma/lz/lz_decoder.h
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_LZ_DECODER_H
diff --git a/src/liblzma/lz/lz_encoder.c b/src/liblzma/lz/lz_encoder.c
index c45e193e..2058fce1 100644
--- a/src/liblzma/lz/lz_encoder.c
+++ b/src/liblzma/lz/lz_encoder.c
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "lz_encoder.h"
diff --git a/src/liblzma/lz/lz_encoder.h b/src/liblzma/lz/lz_encoder.h
index 8bd21322..76f3788e 100644
--- a/src/liblzma/lz/lz_encoder.h
+++ b/src/liblzma/lz/lz_encoder.h
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_LZ_ENCODER_H
diff --git a/src/liblzma/lz/lz_encoder_hash.h b/src/liblzma/lz/lz_encoder_hash.h
index 4d9971ae..740694ab 100644
--- a/src/liblzma/lz/lz_encoder_hash.h
+++ b/src/liblzma/lz/lz_encoder_hash.h
@@ -5,9 +5,6 @@
//
// Author: Igor Pavlov
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_LZ_ENCODER_HASH_H
diff --git a/src/liblzma/lz/lz_encoder_mf.c b/src/liblzma/lz/lz_encoder_mf.c
index 1fdc2d79..b5d9c509 100644
--- a/src/liblzma/lz/lz_encoder_mf.c
+++ b/src/liblzma/lz/lz_encoder_mf.c
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "lz_encoder.h"
diff --git a/src/liblzma/lzma/Makefile.inc b/src/liblzma/lzma/Makefile.inc
index 25440d85..cbe4d800 100644
--- a/src/liblzma/lzma/Makefile.inc
+++ b/src/liblzma/lzma/Makefile.inc
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
EXTRA_DIST += lzma/fastpos_tablegen.c
diff --git a/src/liblzma/lzma/fastpos.h b/src/liblzma/lzma/fastpos.h
index dbeb16f7..01be5406 100644
--- a/src/liblzma/lzma/fastpos.h
+++ b/src/liblzma/lzma/fastpos.h
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_FASTPOS_H
diff --git a/src/liblzma/lzma/fastpos_tablegen.c b/src/liblzma/lzma/fastpos_tablegen.c
index 57ed1503..9eb19fbd 100644
--- a/src/liblzma/lzma/fastpos_tablegen.c
+++ b/src/liblzma/lzma/fastpos_tablegen.c
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include <inttypes.h>
diff --git a/src/liblzma/lzma/lzma2_decoder.c b/src/liblzma/lzma/lzma2_decoder.c
index 567df490..5f6e3495 100644
--- a/src/liblzma/lzma/lzma2_decoder.c
+++ b/src/liblzma/lzma/lzma2_decoder.c
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "lzma2_decoder.h"
diff --git a/src/liblzma/lzma/lzma2_decoder.h b/src/liblzma/lzma/lzma2_decoder.h
index ef2dcbfa..acea1eb2 100644
--- a/src/liblzma/lzma/lzma2_decoder.h
+++ b/src/liblzma/lzma/lzma2_decoder.h
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_LZMA2_DECODER_H
diff --git a/src/liblzma/lzma/lzma2_encoder.c b/src/liblzma/lzma/lzma2_encoder.c
index 5043a07e..9ec32cf7 100644
--- a/src/liblzma/lzma/lzma2_encoder.c
+++ b/src/liblzma/lzma/lzma2_encoder.c
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "lz_encoder.h"
diff --git a/src/liblzma/lzma/lzma2_encoder.h b/src/liblzma/lzma/lzma2_encoder.h
index 515f1839..e488860c 100644
--- a/src/liblzma/lzma/lzma2_encoder.h
+++ b/src/liblzma/lzma/lzma2_encoder.h
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_LZMA2_ENCODER_H
diff --git a/src/liblzma/lzma/lzma_common.h b/src/liblzma/lzma/lzma_common.h
index 9d040d95..6f040467 100644
--- a/src/liblzma/lzma/lzma_common.h
+++ b/src/liblzma/lzma/lzma_common.h
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_LZMA_COMMON_H
diff --git a/src/liblzma/lzma/lzma_decoder.c b/src/liblzma/lzma/lzma_decoder.c
index 26c148a9..a82f0da9 100644
--- a/src/liblzma/lzma/lzma_decoder.c
+++ b/src/liblzma/lzma/lzma_decoder.c
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "lz_decoder.h"
diff --git a/src/liblzma/lzma/lzma_decoder.h b/src/liblzma/lzma/lzma_decoder.h
index 1427bc24..38baddbc 100644
--- a/src/liblzma/lzma/lzma_decoder.h
+++ b/src/liblzma/lzma/lzma_decoder.h
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_LZMA_DECODER_H
diff --git a/src/liblzma/lzma/lzma_encoder.c b/src/liblzma/lzma/lzma_encoder.c
index 79fdeca2..8779ad88 100644
--- a/src/liblzma/lzma/lzma_encoder.c
+++ b/src/liblzma/lzma/lzma_encoder.c
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "lzma2_encoder.h"
diff --git a/src/liblzma/lzma/lzma_encoder.h b/src/liblzma/lzma/lzma_encoder.h
index 84d8c916..2d3d1f3b 100644
--- a/src/liblzma/lzma/lzma_encoder.h
+++ b/src/liblzma/lzma/lzma_encoder.h
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_LZMA_ENCODER_H
diff --git a/src/liblzma/lzma/lzma_encoder_optimum_fast.c b/src/liblzma/lzma/lzma_encoder_optimum_fast.c
index 6c53d2bd..eb95e74b 100644
--- a/src/liblzma/lzma/lzma_encoder_optimum_fast.c
+++ b/src/liblzma/lzma/lzma_encoder_optimum_fast.c
@@ -4,9 +4,6 @@
//
// Author: Igor Pavlov
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "lzma_encoder_private.h"
diff --git a/src/liblzma/lzma/lzma_encoder_optimum_normal.c b/src/liblzma/lzma/lzma_encoder_optimum_normal.c
index 101c8d47..63fb81e0 100644
--- a/src/liblzma/lzma/lzma_encoder_optimum_normal.c
+++ b/src/liblzma/lzma/lzma_encoder_optimum_normal.c
@@ -4,9 +4,6 @@
//
// Author: Igor Pavlov
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "lzma_encoder_private.h"
diff --git a/src/liblzma/lzma/lzma_encoder_presets.c b/src/liblzma/lzma/lzma_encoder_presets.c
index 711df025..87afd85b 100644
--- a/src/liblzma/lzma/lzma_encoder_presets.c
+++ b/src/liblzma/lzma/lzma_encoder_presets.c
@@ -6,9 +6,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "common.h"
diff --git a/src/liblzma/lzma/lzma_encoder_private.h b/src/liblzma/lzma/lzma_encoder_private.h
index b228c577..83610833 100644
--- a/src/liblzma/lzma/lzma_encoder_private.h
+++ b/src/liblzma/lzma/lzma_encoder_private.h
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_LZMA_ENCODER_PRIVATE_H
diff --git a/src/liblzma/rangecoder/Makefile.inc b/src/liblzma/rangecoder/Makefile.inc
index d8a597a2..0134d1a1 100644
--- a/src/liblzma/rangecoder/Makefile.inc
+++ b/src/liblzma/rangecoder/Makefile.inc
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
EXTRA_DIST += rangecoder/price_tablegen.c
diff --git a/src/liblzma/rangecoder/price.h b/src/liblzma/rangecoder/price.h
index 45dbbbb2..9d57c111 100644
--- a/src/liblzma/rangecoder/price.h
+++ b/src/liblzma/rangecoder/price.h
@@ -5,9 +5,6 @@
//
// Author: Igor Pavlov
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_PRICE_H
diff --git a/src/liblzma/rangecoder/price_tablegen.c b/src/liblzma/rangecoder/price_tablegen.c
index bf08ce39..65c9fa89 100644
--- a/src/liblzma/rangecoder/price_tablegen.c
+++ b/src/liblzma/rangecoder/price_tablegen.c
@@ -8,9 +8,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include <inttypes.h>
diff --git a/src/liblzma/rangecoder/range_common.h b/src/liblzma/rangecoder/range_common.h
index 2c74dc15..cc0a7fba 100644
--- a/src/liblzma/rangecoder/range_common.h
+++ b/src/liblzma/rangecoder/range_common.h
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_RANGE_COMMON_H
diff --git a/src/liblzma/rangecoder/range_decoder.h b/src/liblzma/rangecoder/range_decoder.h
index 7d0fd81a..2cb3bedd 100644
--- a/src/liblzma/rangecoder/range_decoder.h
+++ b/src/liblzma/rangecoder/range_decoder.h
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_RANGE_DECODER_H
diff --git a/src/liblzma/rangecoder/range_encoder.h b/src/liblzma/rangecoder/range_encoder.h
index d794eabb..5dff9de1 100644
--- a/src/liblzma/rangecoder/range_encoder.h
+++ b/src/liblzma/rangecoder/range_encoder.h
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_RANGE_ENCODER_H
diff --git a/src/liblzma/simple/Makefile.inc b/src/liblzma/simple/Makefile.inc
index 360db723..416ea8ef 100644
--- a/src/liblzma/simple/Makefile.inc
+++ b/src/liblzma/simple/Makefile.inc
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
liblzma_la_SOURCES += \
simple/simple_coder.c \
diff --git a/src/liblzma/simple/arm.c b/src/liblzma/simple/arm.c
index 6e53970d..77d7e133 100644
--- a/src/liblzma/simple/arm.c
+++ b/src/liblzma/simple/arm.c
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "simple_private.h"
diff --git a/src/liblzma/simple/arm64.c b/src/liblzma/simple/arm64.c
index 0fe0824e..b8166157 100644
--- a/src/liblzma/simple/arm64.c
+++ b/src/liblzma/simple/arm64.c
@@ -16,9 +16,6 @@
// Jia Tan
// Igor Pavlov
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "simple_private.h"
diff --git a/src/liblzma/simple/armthumb.c b/src/liblzma/simple/armthumb.c
index 25d8dbd4..832cc77e 100644
--- a/src/liblzma/simple/armthumb.c
+++ b/src/liblzma/simple/armthumb.c
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "simple_private.h"
diff --git a/src/liblzma/simple/ia64.c b/src/liblzma/simple/ia64.c
index 692b0a29..1cfa7fdb 100644
--- a/src/liblzma/simple/ia64.c
+++ b/src/liblzma/simple/ia64.c
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "simple_private.h"
diff --git a/src/liblzma/simple/powerpc.c b/src/liblzma/simple/powerpc.c
index 3a340fd1..448da739 100644
--- a/src/liblzma/simple/powerpc.c
+++ b/src/liblzma/simple/powerpc.c
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "simple_private.h"
diff --git a/src/liblzma/simple/riscv.c b/src/liblzma/simple/riscv.c
index 6e45976b..eeb79fad 100644
--- a/src/liblzma/simple/riscv.c
+++ b/src/liblzma/simple/riscv.c
@@ -16,9 +16,6 @@
// Authors: Lasse Collin
// Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
// Special thanks:
//
// - Chien Wong <m@xv97.com> provided a few early versions of RISC-V
diff --git a/src/liblzma/simple/simple_coder.c b/src/liblzma/simple/simple_coder.c
index ed2d7fb0..05b50b53 100644
--- a/src/liblzma/simple/simple_coder.c
+++ b/src/liblzma/simple/simple_coder.c
@@ -8,9 +8,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "simple_private.h"
diff --git a/src/liblzma/simple/simple_coder.h b/src/liblzma/simple/simple_coder.h
index 1bb22217..431059e1 100644
--- a/src/liblzma/simple/simple_coder.h
+++ b/src/liblzma/simple/simple_coder.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_SIMPLE_CODER_H
diff --git a/src/liblzma/simple/simple_decoder.c b/src/liblzma/simple/simple_decoder.c
index dc4d2415..6823eb1e 100644
--- a/src/liblzma/simple/simple_decoder.c
+++ b/src/liblzma/simple/simple_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "simple_decoder.h"
diff --git a/src/liblzma/simple/simple_decoder.h b/src/liblzma/simple/simple_decoder.h
index bed8d37a..fc06da91 100644
--- a/src/liblzma/simple/simple_decoder.h
+++ b/src/liblzma/simple/simple_decoder.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_SIMPLE_DECODER_H
diff --git a/src/liblzma/simple/simple_encoder.c b/src/liblzma/simple/simple_encoder.c
index d2cc03e5..9e17ec29 100644
--- a/src/liblzma/simple/simple_encoder.c
+++ b/src/liblzma/simple/simple_encoder.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "simple_encoder.h"
diff --git a/src/liblzma/simple/simple_encoder.h b/src/liblzma/simple/simple_encoder.h
index 1cee4823..ec4b723e 100644
--- a/src/liblzma/simple/simple_encoder.h
+++ b/src/liblzma/simple/simple_encoder.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_SIMPLE_ENCODER_H
diff --git a/src/liblzma/simple/simple_private.h b/src/liblzma/simple/simple_private.h
index 9d2c0fdd..e4068dd0 100644
--- a/src/liblzma/simple/simple_private.h
+++ b/src/liblzma/simple/simple_private.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_SIMPLE_PRIVATE_H
diff --git a/src/liblzma/simple/sparc.c b/src/liblzma/simple/sparc.c
index bad8492e..a6f2f074 100644
--- a/src/liblzma/simple/sparc.c
+++ b/src/liblzma/simple/sparc.c
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "simple_private.h"
diff --git a/src/liblzma/simple/x86.c b/src/liblzma/simple/x86.c
index 232b2954..b848f5f9 100644
--- a/src/liblzma/simple/x86.c
+++ b/src/liblzma/simple/x86.c
@@ -6,9 +6,6 @@
// Authors: Igor Pavlov
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "simple_private.h"
diff --git a/src/liblzma/validate_map.sh b/src/liblzma/validate_map.sh
index 2bf6f8b9..92f5daaa 100644
--- a/src/liblzma/validate_map.sh
+++ b/src/liblzma/validate_map.sh
@@ -78,9 +78,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
###############################################################################
LC_ALL=C
diff --git a/src/lzmainfo/Makefile.am b/src/lzmainfo/Makefile.am
index ff7172b5..8fc84ac2 100644
--- a/src/lzmainfo/Makefile.am
+++ b/src/lzmainfo/Makefile.am
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
bin_PROGRAMS = lzmainfo
diff --git a/src/lzmainfo/lzmainfo.1 b/src/lzmainfo/lzmainfo.1
index ce38eee5..114e0f30 100644
--- a/src/lzmainfo/lzmainfo.1
+++ b/src/lzmainfo/lzmainfo.1
@@ -1,9 +1,7 @@
+.\" SPDX-License-Identifier: 0BSD
.\"
.\" Author: Lasse Collin
.\"
-.\" This file has been put into the public domain.
-.\" You can do whatever you want with this file.
-.\"
.TH LZMAINFO 1 "2013-06-30" "Tukaani" "XZ Utils"
.SH NAME
lzmainfo \- show information stored in the .lzma file header
diff --git a/src/lzmainfo/lzmainfo.c b/src/lzmainfo/lzmainfo.c
index 71e62958..bf4e29d7 100644
--- a/src/lzmainfo/lzmainfo.c
+++ b/src/lzmainfo/lzmainfo.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "sysdefs.h"
diff --git a/src/lzmainfo/lzmainfo_w32res.rc b/src/lzmainfo/lzmainfo_w32res.rc
index 378fbe69..4ee7136c 100644
--- a/src/lzmainfo/lzmainfo_w32res.rc
+++ b/src/lzmainfo/lzmainfo_w32res.rc
@@ -1,8 +1,5 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#define MY_TYPE VFT_APP
diff --git a/src/scripts/Makefile.am b/src/scripts/Makefile.am
index fe5742d0..1e949cdb 100644
--- a/src/scripts/Makefile.am
+++ b/src/scripts/Makefile.am
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
nodist_bin_SCRIPTS = xzdiff xzgrep xzmore xzless
dist_man_MANS = xzdiff.1 xzgrep.1 xzmore.1 xzless.1
diff --git a/src/scripts/xzless.1 b/src/scripts/xzless.1
index 2d05459d..6aa3dc36 100644
--- a/src/scripts/xzless.1
+++ b/src/scripts/xzless.1
@@ -1,10 +1,8 @@
+.\" SPDX-License-Identifier: 0BSD
.\"
.\" Authors: Andrew Dudman
.\" Lasse Collin
.\"
-.\" This file has been put into the public domain.
-.\" You can do whatever you want with this file.
-.\"
.\" (Note that this file is not based on gzip's zless.1.)
.\"
.TH XZLESS 1 "2010-09-27" "Tukaani" "XZ Utils"
diff --git a/src/xz/Makefile.am b/src/xz/Makefile.am
index 34b3c598..159865ca 100644
--- a/src/xz/Makefile.am
+++ b/src/xz/Makefile.am
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
bin_PROGRAMS = xz
diff --git a/src/xz/args.c b/src/xz/args.c
index e8b07af3..c3e72b95 100644
--- a/src/xz/args.c
+++ b/src/xz/args.c
@@ -8,9 +8,6 @@
// Authors: Lasse Collin
// Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "private.h"
diff --git a/src/xz/args.h b/src/xz/args.h
index a1f42f8a..35eb1a63 100644
--- a/src/xz/args.h
+++ b/src/xz/args.h
@@ -6,9 +6,6 @@
// Authors: Lasse Collin
// Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
typedef struct {
diff --git a/src/xz/coder.c b/src/xz/coder.c
index 2ba64694..392849ec 100644
--- a/src/xz/coder.c
+++ b/src/xz/coder.c
@@ -6,9 +6,6 @@
// Authors: Lasse Collin
// Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "private.h"
diff --git a/src/xz/coder.h b/src/xz/coder.h
index 7dfa466e..8f7bfde4 100644
--- a/src/xz/coder.h
+++ b/src/xz/coder.h
@@ -6,9 +6,6 @@
// Authors: Lasse Collin
// Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
enum operation_mode {
diff --git a/src/xz/file_io.c b/src/xz/file_io.c
index 9b89434f..7e8a5c79 100644
--- a/src/xz/file_io.c
+++ b/src/xz/file_io.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "private.h"
diff --git a/src/xz/file_io.h b/src/xz/file_io.h
index 906fd960..d5dfd828 100644
--- a/src/xz/file_io.h
+++ b/src/xz/file_io.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
// Some systems have suboptimal BUFSIZ. Use a bit bigger value on them.
diff --git a/src/xz/hardware.c b/src/xz/hardware.c
index 73bac4a9..bc2f52bd 100644
--- a/src/xz/hardware.c
+++ b/src/xz/hardware.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "private.h"
diff --git a/src/xz/hardware.h b/src/xz/hardware.h
index a67b26ef..8a5443a0 100644
--- a/src/xz/hardware.h
+++ b/src/xz/hardware.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
/// Initialize some hardware-specific variables, which are needed by other
diff --git a/src/xz/list.c b/src/xz/list.c
index 96933760..561e63e5 100644
--- a/src/xz/list.c
+++ b/src/xz/list.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "private.h"
diff --git a/src/xz/list.h b/src/xz/list.h
index a4c6ec7d..5d1084a0 100644
--- a/src/xz/list.h
+++ b/src/xz/list.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
/// \brief List information about the given .xz file
diff --git a/src/xz/main.c b/src/xz/main.c
index 9c902833..26bcb997 100644
--- a/src/xz/main.c
+++ b/src/xz/main.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "private.h"
diff --git a/src/xz/main.h b/src/xz/main.h
index 323f2f7d..ca2a7f32 100644
--- a/src/xz/main.h
+++ b/src/xz/main.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
/// Possible exit status values. These are the same as used by gzip and bzip2.
diff --git a/src/xz/message.c b/src/xz/message.c
index 7756b5b2..cc397d7b 100644
--- a/src/xz/message.c
+++ b/src/xz/message.c
@@ -6,9 +6,6 @@
// Authors: Lasse Collin
// Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "private.h"
diff --git a/src/xz/message.h b/src/xz/message.h
index 20381705..21412d26 100644
--- a/src/xz/message.h
+++ b/src/xz/message.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
/// Verbosity levels
diff --git a/src/xz/mytime.c b/src/xz/mytime.c
index 602e897e..b3be80f5 100644
--- a/src/xz/mytime.c
+++ b/src/xz/mytime.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "private.h"
diff --git a/src/xz/mytime.h b/src/xz/mytime.h
index 5a3c1e21..6810cc0b 100644
--- a/src/xz/mytime.h
+++ b/src/xz/mytime.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
diff --git a/src/xz/options.c b/src/xz/options.c
index 618a50f7..beef011c 100644
--- a/src/xz/options.c
+++ b/src/xz/options.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "private.h"
diff --git a/src/xz/options.h b/src/xz/options.h
index 61ec8d58..7c88f304 100644
--- a/src/xz/options.h
+++ b/src/xz/options.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
/// \brief Parser for Delta options
diff --git a/src/xz/private.h b/src/xz/private.h
index b822b944..50937fe1 100644
--- a/src/xz/private.h
+++ b/src/xz/private.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "sysdefs.h"
diff --git a/src/xz/signals.c b/src/xz/signals.c
index ff42a396..553271c9 100644
--- a/src/xz/signals.c
+++ b/src/xz/signals.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "private.h"
diff --git a/src/xz/signals.h b/src/xz/signals.h
index 5b125e0f..2740f49f 100644
--- a/src/xz/signals.h
+++ b/src/xz/signals.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
/// If this is true, we will clean up the possibly incomplete output file,
diff --git a/src/xz/suffix.c b/src/xz/suffix.c
index f2541831..a8d9cc21 100644
--- a/src/xz/suffix.c
+++ b/src/xz/suffix.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "private.h"
diff --git a/src/xz/suffix.h b/src/xz/suffix.h
index 135e9056..e45a16ce 100644
--- a/src/xz/suffix.h
+++ b/src/xz/suffix.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
/// \brief Get the name of the destination file
diff --git a/src/xz/util.c b/src/xz/util.c
index c9ed8287..4405b526 100644
--- a/src/xz/util.c
+++ b/src/xz/util.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "private.h"
diff --git a/src/xz/util.h b/src/xz/util.h
index 1da40371..f5f56ed6 100644
--- a/src/xz/util.h
+++ b/src/xz/util.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
/// \brief Safe malloc() that never returns NULL
diff --git a/src/xz/xz.1 b/src/xz/xz.1
index 950585f8..f2c1ce35 100644
--- a/src/xz/xz.1
+++ b/src/xz/xz.1
@@ -1,11 +1,9 @@
'\" t
+.\" SPDX-License-Identifier: 0BSD
.\"
.\" Authors: Lasse Collin
.\" Jia Tan
.\"
-.\" This file has been put into the public domain.
-.\" You can do whatever you want with this file.
-.\"
.TH XZ 1 "2024-01-23" "Tukaani" "XZ Utils"
.
.SH NAME
diff --git a/src/xz/xz_w32res.rc b/src/xz/xz_w32res.rc
index bad30202..a71afa5b 100644
--- a/src/xz/xz_w32res.rc
+++ b/src/xz/xz_w32res.rc
@@ -1,8 +1,5 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#define MY_TYPE VFT_APP
diff --git a/src/xzdec/Makefile.am b/src/xzdec/Makefile.am
index 90f1e922..4dcaf584 100644
--- a/src/xzdec/Makefile.am
+++ b/src/xzdec/Makefile.am
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
# Windows resource compiler support. It's fine to use xz_CPPFLAGS
# also for lzmadec.
diff --git a/src/xzdec/lzmadec_w32res.rc b/src/xzdec/lzmadec_w32res.rc
index b85962df..7e4b9146 100644
--- a/src/xzdec/lzmadec_w32res.rc
+++ b/src/xzdec/lzmadec_w32res.rc
@@ -1,8 +1,5 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#define MY_TYPE VFT_APP
diff --git a/src/xzdec/xzdec.1 b/src/xzdec/xzdec.1
index 870501cb..0ae0fddd 100644
--- a/src/xzdec/xzdec.1
+++ b/src/xzdec/xzdec.1
@@ -1,9 +1,7 @@
+.\" SPDX-License-Identifier: 0BSD
.\"
.\" Author: Lasse Collin
.\"
-.\" This file has been put into the public domain.
-.\" You can do whatever you want with this file.
-.\"
.TH XZDEC 1 "2024-01-19" "Tukaani" "XZ Utils"
.SH NAME
xzdec, lzmadec \- Small .xz and .lzma decompressors
diff --git a/src/xzdec/xzdec.c b/src/xzdec/xzdec.c
index 6eda6a1f..6f150bd7 100644
--- a/src/xzdec/xzdec.c
+++ b/src/xzdec/xzdec.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "sysdefs.h"
diff --git a/src/xzdec/xzdec_w32res.rc b/src/xzdec/xzdec_w32res.rc
index 0e26a225..42c119e5 100644
--- a/src/xzdec/xzdec_w32res.rc
+++ b/src/xzdec/xzdec_w32res.rc
@@ -1,8 +1,5 @@
/*
* Author: Lasse Collin
- *
- * This file has been put into the public domain.
- * You can do whatever you want with this file.
*/
#define MY_TYPE VFT_APP
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 8a0ec53e..135e80bb 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,9 +1,6 @@
##
## Author: Lasse Collin
##
-## This file has been put into the public domain.
-## You can do whatever you want with this file.
-##
EXTRA_DIST = \
files \
diff --git a/tests/bcj_test.c b/tests/bcj_test.c
index 05de38a2..c9e9caac 100644
--- a/tests/bcj_test.c
+++ b/tests/bcj_test.c
@@ -13,9 +13,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
extern int jump(int a, int b);
diff --git a/tests/code_coverage.sh b/tests/code_coverage.sh
index bf2471b4..870216b6 100755
--- a/tests/code_coverage.sh
+++ b/tests/code_coverage.sh
@@ -14,9 +14,6 @@
#
# Author: Jia Tan
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
###############################################################################
set -e
diff --git a/tests/create_compress_files.c b/tests/create_compress_files.c
index 76aa3e30..a8ddb83c 100644
--- a/tests/create_compress_files.c
+++ b/tests/create_compress_files.c
@@ -8,9 +8,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "sysdefs.h"
diff --git a/tests/files/README b/tests/files/README
index b0b700c5..e16ee19c 100644
--- a/tests/files/README
+++ b/tests/files/README
@@ -8,7 +8,8 @@
.lzma (LZMA_Alone), and .lz (lzip) files in decoder implementations.
Many of the files have been created by hand with a hex editor, thus
there is no better "source code" than the files themselves. All the
- test files and this README have been put into the public domain.
+ test files and this README may be distributed under the terms of
+ the BSD Zero Clause License (0BSD).
1. File Types
diff --git a/tests/ossfuzz/fuzz_common.h b/tests/ossfuzz/fuzz_common.h
index 14742f2e..49f131cd 100644
--- a/tests/ossfuzz/fuzz_common.h
+++ b/tests/ossfuzz/fuzz_common.h
@@ -6,9 +6,6 @@
// Authors: Maksym Vatsyk
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include <inttypes.h>
diff --git a/tests/ossfuzz/fuzz_decode_alone.c b/tests/ossfuzz/fuzz_decode_alone.c
index 2fb7bc09..e0223655 100644
--- a/tests/ossfuzz/fuzz_decode_alone.c
+++ b/tests/ossfuzz/fuzz_decode_alone.c
@@ -6,9 +6,6 @@
// Authors: Maksym Vatsyk
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include <inttypes.h>
diff --git a/tests/ossfuzz/fuzz_decode_stream.c b/tests/ossfuzz/fuzz_decode_stream.c
index e06613e3..37e74241 100644
--- a/tests/ossfuzz/fuzz_decode_stream.c
+++ b/tests/ossfuzz/fuzz_decode_stream.c
@@ -6,9 +6,6 @@
// Authors: Lasse Collin
// Maksym Vatsyk
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include <inttypes.h>
diff --git a/tests/ossfuzz/fuzz_encode_stream.c b/tests/ossfuzz/fuzz_encode_stream.c
index f5770baa..bf46669d 100644
--- a/tests/ossfuzz/fuzz_encode_stream.c
+++ b/tests/ossfuzz/fuzz_encode_stream.c
@@ -6,9 +6,6 @@
// Authors: Maksym Vatsyk
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include <inttypes.h>
diff --git a/tests/test_bcj_exact_size.c b/tests/test_bcj_exact_size.c
index 551166cb..ce9bd0f4 100644
--- a/tests/test_bcj_exact_size.c
+++ b/tests/test_bcj_exact_size.c
@@ -7,9 +7,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tests.h"
diff --git a/tests/test_block_header.c b/tests/test_block_header.c
index 10f4af33..500d4b02 100644
--- a/tests/test_block_header.c
+++ b/tests/test_block_header.c
@@ -6,9 +6,6 @@
// Authors: Lasse Collin
// Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tests.h"
diff --git a/tests/test_check.c b/tests/test_check.c
index cb1ad251..e64a7c57 100644
--- a/tests/test_check.c
+++ b/tests/test_check.c
@@ -6,9 +6,6 @@
// Authors: Lasse Collin
// Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tests.h"
diff --git a/tests/test_compress.sh b/tests/test_compress.sh
index 72c53411..b091b0d4 100755
--- a/tests/test_compress.sh
+++ b/tests/test_compress.sh
@@ -4,9 +4,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
###############################################################################
# If xz wasn't built, this test is skipped.
diff --git a/tests/test_files.sh b/tests/test_files.sh
index 12f71f3a..42e53d70 100755
--- a/tests/test_files.sh
+++ b/tests/test_files.sh
@@ -4,9 +4,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
###############################################################################
# If both xz and xzdec were not built, skip this test.
diff --git a/tests/test_filter_flags.c b/tests/test_filter_flags.c
index a8893239..5fa6be71 100644
--- a/tests/test_filter_flags.c
+++ b/tests/test_filter_flags.c
@@ -6,9 +6,6 @@
// Authors: Jia Tan
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tests.h"
diff --git a/tests/test_filter_str.c b/tests/test_filter_str.c
index c57473ae..67b99e3c 100644
--- a/tests/test_filter_str.c
+++ b/tests/test_filter_str.c
@@ -5,9 +5,6 @@
//
// Author: Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tests.h"
diff --git a/tests/test_hardware.c b/tests/test_hardware.c
index c72d9b28..9b77d14a 100644
--- a/tests/test_hardware.c
+++ b/tests/test_hardware.c
@@ -9,9 +9,6 @@
//
// Author: Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tests.h"
diff --git a/tests/test_index.c b/tests/test_index.c
index 04e5c159..1f34e864 100644
--- a/tests/test_index.c
+++ b/tests/test_index.c
@@ -9,9 +9,6 @@
// Lasse Collin
//
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tests.h"
diff --git a/tests/test_index_hash.c b/tests/test_index_hash.c
index f3c6e8fc..12ec7e70 100644
--- a/tests/test_index_hash.c
+++ b/tests/test_index_hash.c
@@ -9,9 +9,6 @@
//
// Author: Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tests.h"
diff --git a/tests/test_lzip_decoder.c b/tests/test_lzip_decoder.c
index e115573b..8d6ad4c4 100644
--- a/tests/test_lzip_decoder.c
+++ b/tests/test_lzip_decoder.c
@@ -5,9 +5,6 @@
//
// Author: Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tests.h"
diff --git a/tests/test_memlimit.c b/tests/test_memlimit.c
index c45a44b5..3c009d1f 100644
--- a/tests/test_memlimit.c
+++ b/tests/test_memlimit.c
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tests.h"
diff --git a/tests/test_scripts.sh b/tests/test_scripts.sh
index ee823612..bcef180a 100755
--- a/tests/test_scripts.sh
+++ b/tests/test_scripts.sh
@@ -4,9 +4,6 @@
#
# Author: Jonathan Nieder
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
###############################################################################
# If scripts weren't built, this test is skipped.
diff --git a/tests/test_stream_flags.c b/tests/test_stream_flags.c
index 2248e67a..38a6a83e 100644
--- a/tests/test_stream_flags.c
+++ b/tests/test_stream_flags.c
@@ -6,9 +6,6 @@
// Authors: Jia Tan
// Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tests.h"
diff --git a/tests/test_suffix.sh b/tests/test_suffix.sh
index f90ff7ab..606f0f4d 100755
--- a/tests/test_suffix.sh
+++ b/tests/test_suffix.sh
@@ -4,9 +4,6 @@
#
# Author: Jia Tan
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
###############################################################################
# If xz was not built, skip this test.
diff --git a/tests/test_vli.c b/tests/test_vli.c
index 996b775b..8767f768 100644
--- a/tests/test_vli.c
+++ b/tests/test_vli.c
@@ -5,9 +5,6 @@
//
// Author: Jia Tan
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#include "tests.h"
diff --git a/tests/tests.h b/tests/tests.h
index 2d427000..21d7c258 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -5,9 +5,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef LZMA_TESTS_H
diff --git a/tests/tuktest.h b/tests/tuktest.h
index 508eacee..011bf852 100644
--- a/tests/tuktest.h
+++ b/tests/tuktest.h
@@ -121,9 +121,6 @@
//
// Author: Lasse Collin
//
-// This file has been put into the public domain.
-// You can do whatever you want with this file.
-//
///////////////////////////////////////////////////////////////////////////////
#ifndef TUKTEST_H
diff --git a/windows/README-Windows.txt b/windows/README-Windows.txt
index 9d277773..504700dd 100644
--- a/windows/README-Windows.txt
+++ b/windows/README-Windows.txt
@@ -11,11 +11,12 @@ Introduction
<https://xz.tukaani.org/xz-utils/>.
The parts of the XZ Utils source code, that are relevant to this
- binary package, are in the public domain. XZ Utils have been built
- for this package with MinGW-w64 and linked statically against its
- runtime libraries. See COPYING-Windows.txt for the copyright and
- license information that applies to the MinGW-w64 runtime. You must
- include it when redistributing these XZ Utils binaries.
+ binary package, are under the BSD Zero Clause License (0BSD).
+ XZ Utils have been built for this package with MinGW-w64 and linked
+ statically against its runtime libraries. See COPYING-Windows.txt
+ for the copyright and license information that applies to the
+ MinGW-w64 runtime. You must include it when redistributing these
+ XZ Utils binaries.
Package contents
diff --git a/windows/build.bash b/windows/build.bash
index 9229af73..52f31b0e 100644
--- a/windows/build.bash
+++ b/windows/build.bash
@@ -21,9 +21,6 @@
#
# Author: Lasse Collin
#
-# This file has been put into the public domain.
-# You can do whatever you want with this file.
-#
###############################################################################
MINGW_DIR=/c/devel/tools/mingw