From faeb1b64b36ededd1a0b62555cad65f002d47ac6 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 12 Jan 2023 15:33:09 +0100 Subject: [PATCH] include: add missing license lines The header files are usually based on code from lib/. This commit copies relevant license headers from lib/ to include/ to keep things consistent. The very generic things (e.g. MBR definitions) are always public domain. Fixes: https://github.com/util-linux/util-linux/issues/2010 Signed-off-by: Karel Zak --- README.licensing | 2 ++ include/buffer.h | 4 ++++ include/c_strtod.h | 6 ++++++ include/closestream.h | 4 ++++ include/crc32.h | 4 ++++ include/crc32c.h | 4 ++++ include/debug.h | 2 ++ include/debugobj.h | 9 +++++++++ include/encode.h | 6 ++++++ include/fileeq.h | 5 +++++ include/fileutils.h | 4 ++++ include/fuzz.h | 4 ++++ include/idcache.h | 4 ++++ include/ismounted.h | 6 ++++++ include/iso9660.h | 4 ++++ include/jsonwrt.h | 4 ++++ include/linux_version.h | 4 ++++ include/logindefs.h | 21 +++++++++++++++++++++ include/loopdev.h | 4 ++++ include/mangle.h | 4 ++++ include/mbsedit.h | 6 ++++++ include/md5.h | 4 ++++ include/minix.h | 4 ++++ include/mount-api-utils.h | 4 ++++ include/nls.h | 4 ++++ include/optutils.h | 4 ++++ include/pager.h | 5 +++++ include/partx.h | 4 ++++ include/path.h | 4 ++++ include/pidfd-utils.h | 4 ++++ include/procfs.h | 3 +++ include/pt-bsd.h | 4 ++++ include/pt-gpt-partnames.h | 1 - include/pt-mbr-partnames.h | 4 ++++ include/pt-mbr.h | 4 ++++ include/pt-sgi.h | 4 ++++ include/pt-sun.h | 4 ++++ include/pwdutils.h | 4 ++++ include/randutils.h | 3 +++ include/rpmatch.h | 4 ++++ include/selinux-utils.h | 4 ++++ include/sha1.h | 4 ++++ include/sha256.h | 4 ++++ include/shells.h | 3 +++ include/signames.h | 4 ++++ include/statfs_magic.h | 4 ++++ include/strutils.h | 4 ++++ include/strv.h | 3 +++ include/swapheader.h | 4 ++++ include/sysfs.h | 3 +++ include/timer.h | 4 ++++ include/timeutils.h | 3 +++ include/widechar.h | 5 +++++ include/xalloc.h | 3 +++ include/xxhash.h | 2 ++ lib/pager.c | 5 +++++ lib/shells.c | 4 +++- lib/strv.c | 4 +++- 58 files changed, 247 insertions(+), 3 deletions(-) diff --git a/README.licensing b/README.licensing index 0aeef2f971..3258f55b58 100644 --- a/README.licensing +++ b/README.licensing @@ -10,6 +10,8 @@ There is code under: * LGPL-2.1-or-later - GNU Lesser General Public License 2.1 or any later version + * BSD-2-Clause - Simplified BSD License + * BSD-3-Clause - BSD 3-Clause "New" or "Revised" License * BSD-4-Clause-UC - BSD 4-Clause University of California-Specific diff --git a/include/buffer.h b/include/buffer.h index ca9453136e..b122da4eb4 100644 --- a/include/buffer.h +++ b/include/buffer.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_BUFFER #define UTIL_LINUX_BUFFER diff --git a/include/c_strtod.h b/include/c_strtod.h index eaa801c408..14070cbc1b 100644 --- a/include/c_strtod.h +++ b/include/c_strtod.h @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-or-later + * + * This file may be redistributed under the terms of the + * GNU Lesser General Public License. + **/ #ifndef UTIL_LINUX_C_STRTOD_H #define UTIL_LINUX_C_STRTOD_H diff --git a/include/closestream.h b/include/closestream.h index 8e5d18d977..711ca5b815 100644 --- a/include/closestream.h +++ b/include/closestream.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_CLOSESTREAM_H #define UTIL_LINUX_CLOSESTREAM_H diff --git a/include/crc32.h b/include/crc32.h index 8457206e4f..81c7703b17 100644 --- a/include/crc32.h +++ b/include/crc32.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with it what + * you wish. + */ #ifndef UL_CRC32_H #define UL_CRC32_H diff --git a/include/crc32c.h b/include/crc32c.h index 21329f15fa..494857f3e2 100644 --- a/include/crc32c.h +++ b/include/crc32c.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with it what + * you wish. + */ #ifndef UL_CRC32C_H #define UL_CRC32C_H diff --git a/include/debug.h b/include/debug.h index c223bbc74e..4497d874af 100644 --- a/include/debug.h +++ b/include/debug.h @@ -1,4 +1,6 @@ /* + * SPDX-License-Identifier: LGPL-2.1-or-later + * * Copyright (C) 2014 Ondrej Oprala * Copyright (C) 2014 Karel Zak * diff --git a/include/debugobj.h b/include/debugobj.h index 73b70b8dfe..eac3ff9084 100644 --- a/include/debugobj.h +++ b/include/debugobj.h @@ -1,3 +1,12 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-or-later + * + * Copyright (C) 2014 Ondrej Oprala + * Copyright (C) 2014 Karel Zak + * + * This file may be distributed under the terms of the + * GNU Lesser General Public License. + */ #ifndef UTIL_LINUX_DEBUGOBJ_H #define UTIL_LINUX_DEBUGOBJ_H diff --git a/include/encode.h b/include/encode.h index b259ab533c..d7e5a1eee4 100644 --- a/include/encode.h +++ b/include/encode.h @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-or-later + * + * This file may be distributed under the terms of the + * GNU Lesser General Public License. + */ #ifndef UTIL_LINUX_ENCODE_H #define UTIL_LINUX_ENCODE_H diff --git a/include/fileeq.h b/include/fileeq.h index fd290545da..df5e6d8222 100644 --- a/include/fileeq.h +++ b/include/fileeq.h @@ -1,3 +1,8 @@ + +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_FILEEQ #define UTIL_LINUX_FILEEQ diff --git a/include/fileutils.h b/include/fileutils.h index 8722ed59bb..16a7263d47 100644 --- a/include/fileutils.h +++ b/include/fileutils.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + **/ #ifndef UTIL_LINUX_FILEUTILS #define UTIL_LINUX_FILEUTILS diff --git a/include/fuzz.h b/include/fuzz.h index 1b0dbd2689..0bc728df65 100644 --- a/include/fuzz.h +++ b/include/fuzz.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_FUZZ_H #define UTIL_LINUX_FUZZ_H diff --git a/include/idcache.h b/include/idcache.h index 912edd58fa..518a3b1151 100644 --- a/include/idcache.h +++ b/include/idcache.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_IDCACHE_H #define UTIL_LINUX_IDCACHE_H diff --git a/include/ismounted.h b/include/ismounted.h index 57918cb3a0..62b1d26b58 100644 --- a/include/ismounted.h +++ b/include/ismounted.h @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file may be redistributed under the terms of the GNU Public + * License. + */ #ifndef IS_MOUNTED_H #define IS_MOUNTED_H diff --git a/include/iso9660.h b/include/iso9660.h index ed402d8c80..437d6a877c 100644 --- a/include/iso9660.h +++ b/include/iso9660.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_ISO_H #define UTIL_LINUX_ISO_H diff --git a/include/jsonwrt.h b/include/jsonwrt.h index 396765c245..421903aab3 100644 --- a/include/jsonwrt.h +++ b/include/jsonwrt.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_JSONWRT_H #define UTIL_LINUX_JSONWRT_H diff --git a/include/linux_version.h b/include/linux_version.h index a6a1e99c74..2fa0d65ef5 100644 --- a/include/linux_version.h +++ b/include/linux_version.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef LINUX_VERSION_H #define LINUX_VERSION_H diff --git a/include/logindefs.h b/include/logindefs.h index b83ac48243..fa6aa2f07b 100644 --- a/include/logindefs.h +++ b/include/logindefs.h @@ -1,3 +1,24 @@ +/* + * Copyright (C) 2003, 2004, 2005 Thorsten Kukuk + * Author: Thorsten Kukuk + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain any existing copyright + * notice, and this entire permission notice in its entirety, + * including the disclaimer of warranties. + * + * 2. Redistributions in binary form must reproduce all prior and current + * copyright notices, this list of conditions, and the following + * disclaimer in the documentation and/or other materials provided + * with the distribution. + * + * 3. The name of any author may not be used to endorse or promote + * products derived from this software without their specific prior + * written permission. + */ #ifndef UTIL_LINUX_LOGINDEFS_H #define UTIL_LINUX_LOGINDEFS_H diff --git a/include/loopdev.h b/include/loopdev.h index 6d400d1f3f..903adc4912 100644 --- a/include/loopdev.h +++ b/include/loopdev.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_LOOPDEV_H #define UTIL_LINUX_LOOPDEV_H diff --git a/include/mangle.h b/include/mangle.h index 08c66cb47f..59396916ff 100644 --- a/include/mangle.h +++ b/include/mangle.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_MANGLE_H #define UTIL_LINUX_MANGLE_H diff --git a/include/mbsedit.h b/include/mbsedit.h index 8d1c6c255c..ed7960f9e5 100644 --- a/include/mbsedit.h +++ b/include/mbsedit.h @@ -1,3 +1,9 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-or-later + * + * This file may be distributed under the terms of the + * GNU Lesser General Public License. + */ #ifndef UTIL_LINUX_MBSEDIT_H # define UTIL_LINUX_MBSEDIT_H diff --git a/include/md5.h b/include/md5.h index 02e627bff0..791b5326b3 100644 --- a/include/md5.h +++ b/include/md5.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with it what + * you wish. + */ #ifndef UTIL_LINUX_MD5_H #define UTIL_LINUX_MD5_H diff --git a/include/minix.h b/include/minix.h index f28991ce9a..571d06e8d0 100644 --- a/include/minix.h +++ b/include/minix.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_MINIX_H #define UTIL_LINUX_MINIX_H diff --git a/include/mount-api-utils.h b/include/mount-api-utils.h index ad29ff88ad..69f7eb088c 100644 --- a/include/mount-api-utils.h +++ b/include/mount-api-utils.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_MOUNT_API_UTILS #define UTIL_LINUX_MOUNT_API_UTILS diff --git a/include/nls.h b/include/nls.h index 5566908878..377c5a1ff3 100644 --- a/include/nls.h +++ b/include/nls.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_NLS_H #define UTIL_LINUX_NLS_H diff --git a/include/optutils.h b/include/optutils.h index 0dc127bbc1..6fe4aeb7a5 100644 --- a/include/optutils.h +++ b/include/optutils.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_OPTUTILS_H #define UTIL_LINUX_OPTUTILS_H diff --git a/include/pager.h b/include/pager.h index 0a7140d70e..6d8fdd771e 100644 --- a/include/pager.h +++ b/include/pager.h @@ -1,3 +1,8 @@ +/* + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file may be redistributed under the terms of the GNU Public License. + */ #ifndef UTIL_LINUX_PAGER #define UTIL_LINUX_PAGER diff --git a/include/partx.h b/include/partx.h index 618a0a4983..7924aae6ac 100644 --- a/include/partx.h +++ b/include/partx.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_PARTX_H #define UTIL_LINUX_PARTX_H diff --git a/include/path.h b/include/path.h index 22cd544815..19c1be6e7e 100644 --- a/include/path.h +++ b/include/path.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_PATH_H #define UTIL_LINUX_PATH_H diff --git a/include/pidfd-utils.h b/include/pidfd-utils.h index f1715681fa..18f3c626ad 100644 --- a/include/pidfd-utils.h +++ b/include/pidfd-utils.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_PIDFD_UTILS #define UTIL_LINUX_PIDFD_UTILS diff --git a/include/procfs.h b/include/procfs.h index 825689bc2d..25be51357d 100644 --- a/include/procfs.h +++ b/include/procfs.h @@ -1,4 +1,7 @@ /* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + * * Copyright (C) 2021 Karel Zak */ #ifndef UTIL_LINUX_PROCFS_H diff --git a/include/pt-bsd.h b/include/pt-bsd.h index 9bf47a5768..20c24b7040 100644 --- a/include/pt-bsd.h +++ b/include/pt-bsd.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_PT_BSD_H #define UTIL_LINUX_PT_BSD_H diff --git a/include/pt-gpt-partnames.h b/include/pt-gpt-partnames.h index 758bf31009..5d86974d6b 100644 --- a/include/pt-gpt-partnames.h +++ b/include/pt-gpt-partnames.h @@ -1,4 +1,3 @@ - /* * No copyright is claimed. This code is in the public domain; do with * it what you wish. diff --git a/include/pt-mbr-partnames.h b/include/pt-mbr-partnames.h index 9304793dbe..0a65daabb4 100644 --- a/include/pt-mbr-partnames.h +++ b/include/pt-mbr-partnames.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ {0x00, N_("Empty")}, {0x01, N_("FAT12")}, {0x02, N_("XENIX root")}, diff --git a/include/pt-mbr.h b/include/pt-mbr.h index ff658f346a..93a6def6a6 100644 --- a/include/pt-mbr.h +++ b/include/pt-mbr.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_PT_MBR_H #define UTIL_LINUX_PT_MBR_H diff --git a/include/pt-sgi.h b/include/pt-sgi.h index 6d512ee009..3bfba84618 100644 --- a/include/pt-sgi.h +++ b/include/pt-sgi.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_PT_SGI_H #define UTIL_LINUX_PT_SGI_H diff --git a/include/pt-sun.h b/include/pt-sun.h index 8bb5d950ec..acb4b56e29 100644 --- a/include/pt-sun.h +++ b/include/pt-sun.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_PT_SUN_H #define UTIL_LINUX_PT_SUN_H diff --git a/include/pwdutils.h b/include/pwdutils.h index b58268d775..1d44242746 100644 --- a/include/pwdutils.h +++ b/include/pwdutils.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_PWDUTILS_H #define UTIL_LINUX_PWDUTILS_H diff --git a/include/randutils.h b/include/randutils.h index 690bf5e545..a42af9813d 100644 --- a/include/randutils.h +++ b/include/randutils.h @@ -1,3 +1,6 @@ +/* + * SPDX-License-Identifier: BSD-3-Clause + */ #ifndef UTIL_LINUX_RANDUTILS #define UTIL_LINUX_RANDUTILS diff --git a/include/rpmatch.h b/include/rpmatch.h index f64d52e163..ee249041d9 100644 --- a/include/rpmatch.h +++ b/include/rpmatch.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_RPMATCH_H #define UTIL_LINUX_RPMATCH_H diff --git a/include/selinux-utils.h b/include/selinux-utils.h index 82c27c8f53..03795616ef 100644 --- a/include/selinux-utils.h +++ b/include/selinux-utils.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_SELINUX_UTILS_H #define UTIL_LINUX_SELINUX_UTILS_H diff --git a/include/sha1.h b/include/sha1.h index 62af1da6f6..8ec74c9be1 100644 --- a/include/sha1.h +++ b/include/sha1.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_SHA1_H #define UTIL_LINUX_SHA1_H diff --git a/include/sha256.h b/include/sha256.h index dcde8fb1d6..bf878e5d23 100644 --- a/include/sha256.h +++ b/include/sha256.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_SHA256_H #define UTIL_LINUX_SHA256_H diff --git a/include/shells.h b/include/shells.h index f165693dc5..ba59ba4fd3 100644 --- a/include/shells.h +++ b/include/shells.h @@ -1,3 +1,6 @@ +/* + * SPDX-License-Identifier: GPL-2.0-or-later + */ #ifndef UTIL_LINUX_SHELLS_H #define UTIL_LINUX_SHELLS_H diff --git a/include/signames.h b/include/signames.h index a4fd1bc594..3f1043a1e8 100644 --- a/include/signames.h +++ b/include/signames.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef SIGNAMES_H #define SIGNAMES_H diff --git a/include/statfs_magic.h b/include/statfs_magic.h index 67ad0af259..e87b784743 100644 --- a/include/statfs_magic.h +++ b/include/statfs_magic.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_STATFS_MAGIC_H #define UTIL_LINUX_STATFS_MAGIC_H diff --git a/include/strutils.h b/include/strutils.h index a51459f86f..07aa656811 100644 --- a/include/strutils.h +++ b/include/strutils.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_STRUTILS #define UTIL_LINUX_STRUTILS diff --git a/include/strv.h b/include/strv.h index 6382532032..6091fce501 100644 --- a/include/strv.h +++ b/include/strv.h @@ -1,3 +1,6 @@ +/* + * SPDX-License-Identifier: LGPL-2.1-or-later + */ #ifndef UTIL_LINUX_STRV #define UTIL_LINUX_STRV diff --git a/include/swapheader.h b/include/swapheader.h index 3fce0d0fbe..223bb5687f 100644 --- a/include/swapheader.h +++ b/include/swapheader.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef _SWAPHEADER_H #define _SWAPHEADER_H diff --git a/include/sysfs.h b/include/sysfs.h index c538f33a72..ad6b609f2a 100644 --- a/include/sysfs.h +++ b/include/sysfs.h @@ -1,4 +1,7 @@ /* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + * * Copyright (C) 2011 Karel Zak */ #ifndef UTIL_LINUX_SYSFS_H diff --git a/include/timer.h b/include/timer.h index 70da1ba9e3..dd044a3762 100644 --- a/include/timer.h +++ b/include/timer.h @@ -1,3 +1,7 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ #ifndef UTIL_LINUX_TIMER_H #define UTIL_LINUX_TIMER_H diff --git a/include/timeutils.h b/include/timeutils.h index e452e556a0..1b7f4263a3 100644 --- a/include/timeutils.h +++ b/include/timeutils.h @@ -1,4 +1,7 @@ /*** + SPDX-License-Identifier: LGPL-2.1-or-later + + First set of functions in this file are part of systemd, and were copied to util-linux at August 2013. diff --git a/include/widechar.h b/include/widechar.h index c1f2cf2e30..bbccc88b35 100644 --- a/include/widechar.h +++ b/include/widechar.h @@ -1,3 +1,8 @@ +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + */ + /* Declarations for wide characters */ /* This file must be included last because the redefinition of wchar_t may cause conflicts when system include files were included after it. */ diff --git a/include/xalloc.h b/include/xalloc.h index c4124cb469..4f6a9e233e 100644 --- a/include/xalloc.h +++ b/include/xalloc.h @@ -1,5 +1,8 @@ /* + * SPDX-License-Identifier: LGPL-2.1-or-later + * * Copyright (C) 2010 Davidlohr Bueso + * Copyright (C) 2010-2022 Karel Zak * * This file may be redistributed under the terms of the * GNU Lesser General Public License. diff --git a/include/xxhash.h b/include/xxhash.h index 8b745a36a4..9451967d45 100644 --- a/include/xxhash.h +++ b/include/xxhash.h @@ -1,4 +1,6 @@ /* + * SPDX-License-Identifier: BSD-2-Clause + * * xxHash - Extremely Fast Hash algorithm * Header File * Copyright (C) 2012-2020 Yann Collet diff --git a/lib/pager.c b/lib/pager.c index 747521e137..e5bd07a471 100644 --- a/lib/pager.c +++ b/lib/pager.c @@ -1,4 +1,9 @@ /* + * SPDX-License-Identifier: GPL-2.0-or-later + * + * This file may be redistributed under the terms of the GNU Public + * License. + * * Based on linux-perf/git scm * * Some modifications and simplifications for util-linux diff --git a/lib/shells.c b/lib/shells.c index 0707a18c8f..6693ab0054 100644 --- a/lib/shells.c +++ b/lib/shells.c @@ -1,4 +1,6 @@ - +/* + * SPDX-License-Identifier: GPL-2.0-or-later + */ #include #if defined (HAVE_LIBECONF) && defined (USE_VENDORDIR) #include diff --git a/lib/strv.c b/lib/strv.c index 58a4c97dec..c306e3816a 100644 --- a/lib/strv.c +++ b/lib/strv.c @@ -1,6 +1,8 @@ /* + * SPDX-License-Identifier: LGPL-2.1-or-later * - * Copyright 2010 Lennart Poettering + * Copyright (C) 2010 Lennart Poettering + * Copyright (C) 2015-2022 Karel Zak * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by -- 2.47.2