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 0aeef2f97..3258f55b5 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 ca9453136..b122da4eb 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 eaa801c40..14070cbc1 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 8e5d18d97..711ca5b81 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 8457206e4..81c7703b1 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 21329f15f..494857f3e 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 c223bbc74..4497d874a 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 73b70b8df..eac3ff908 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 b259ab533..d7e5a1eee 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 fd290545d..df5e6d822 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 8722ed59b..16a7263d4 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 1b0dbd268..0bc728df6 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 912edd58f..518a3b115 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 57918cb3a..62b1d26b5 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 ed402d8c8..437d6a877 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 396765c24..421903aab 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 a6a1e99c7..2fa0d65ef 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 b83ac4824..fa6aa2f07 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 6d400d1f3..903adc491 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 08c66cb47..59396916f 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 8d1c6c255..ed7960f9e 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 02e627bff..791b5326b 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 f28991ce9..571d06e8d 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 ad29ff88a..69f7eb088 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 556690887..377c5a1ff 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 0dc127bbc..6fe4aeb7a 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 0a7140d70..6d8fdd771 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 618a0a498..7924aae6a 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 22cd54481..19c1be6e7 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 f1715681f..18f3c626a 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 825689bc2..25be51357 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 9bf47a576..20c24b704 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 758bf3100..5d86974d6 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 9304793db..0a65daabb 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 ff658f346..93a6def6a 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 6d512ee00..3bfba8461 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 8bb5d950e..acb4b56e2 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 b58268d77..1d4424274 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 690bf5e54..a42af9813 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 f64d52e16..ee249041d 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 82c27c8f5..03795616e 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 62af1da6f..8ec74c9be 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 dcde8fb1d..bf878e5d2 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 f165693dc..ba59ba4fd 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 a4fd1bc59..3f1043a1e 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 67ad0af25..e87b78474 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 a51459f86..07aa65681 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 638253203..6091fce50 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 3fce0d0fb..223bb5687 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 c538f33a7..ad6b609f2 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 70da1ba9e..dd044a376 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 e452e556a..1b7f4263a 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 c1f2cf2e3..bbccc88b3 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 c4124cb46..4f6a9e233 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 8b745a36a..9451967d4 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 747521e13..e5bd07a47 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 0707a18c8..6693ab005 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 58a4c97de..c306e3816 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