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 <kzak@redhat.com>
This commit is contained in:
parent
8d9215504c
commit
faeb1b64b3
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
*
|
||||
* Copyright (C) 2014 Ondrej Oprala <ooprala@redhat.com>
|
||||
* Copyright (C) 2014 Karel Zak <kzak@redhat.com>
|
||||
*
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
*
|
||||
* Copyright (C) 2014 Ondrej Oprala <ooprala@redhat.com>
|
||||
* Copyright (C) 2014 Karel Zak <kzak@redhat.com>
|
||||
*
|
||||
* 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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,3 +1,24 @@
|
|||
/*
|
||||
* Copyright (C) 2003, 2004, 2005 Thorsten Kukuk
|
||||
* Author: Thorsten Kukuk <kukuk@suse.de>
|
||||
*
|
||||
* 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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 <kzak@redhat.com>
|
||||
*/
|
||||
#ifndef UTIL_LINUX_PROCFS_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
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
/*
|
||||
* No copyright is claimed. This code is in the public domain; do with
|
||||
* it what you wish.
|
||||
|
|
|
@ -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")},
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
#ifndef UTIL_LINUX_RANDUTILS
|
||||
#define UTIL_LINUX_RANDUTILS
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#ifndef UTIL_LINUX_SHELLS_H
|
||||
#define UTIL_LINUX_SHELLS_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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
*/
|
||||
#ifndef UTIL_LINUX_STRV
|
||||
#define UTIL_LINUX_STRV
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 <kzak@redhat.com>
|
||||
*/
|
||||
#ifndef UTIL_LINUX_SYSFS_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
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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. */
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
*
|
||||
* Copyright (C) 2010 Davidlohr Bueso <dave@gnu.org>
|
||||
* Copyright (C) 2010-2022 Karel Zak <kzak@redhat.com>
|
||||
*
|
||||
* This file may be redistributed under the terms of the
|
||||
* GNU Lesser General Public License.
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*
|
||||
* xxHash - Extremely Fast Hash algorithm
|
||||
* Header File
|
||||
* Copyright (C) 2012-2020 Yann Collet
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
|
||||
/*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
#include <sys/syslog.h>
|
||||
#if defined (HAVE_LIBECONF) && defined (USE_VENDORDIR)
|
||||
#include <libeconf.h>
|
||||
|
|
|
@ -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 <kzak@redhat.com>
|
||||
*
|
||||
* 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
|
||||
|
|
Loading…
Reference in New Issue