* 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
/*
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ *
* Copyright (C) 2014 Ondrej Oprala <ooprala@redhat.com>
* Copyright (C) 2014 Karel Zak <kzak@redhat.com>
*
+/*
+ * 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
+/*
+ * 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
+
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
/*
+ * 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
+/*
+ * 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
-
/*
* No copyright is claimed. This code is in the public domain; do with
* it what you wish.
+/*
+ * 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")},
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
#ifndef UTIL_LINUX_RANDUTILS
#define UTIL_LINUX_RANDUTILS
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * 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
+/*
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
#ifndef UTIL_LINUX_SHELLS_H
#define UTIL_LINUX_SHELLS_H
+/*
+ * No copyright is claimed. This code is in the public domain; do with
+ * it what you wish.
+ */
#ifndef SIGNAMES_H
#define SIGNAMES_H
+/*
+ * 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
+/*
+ * 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
+/*
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
#ifndef UTIL_LINUX_STRV
#define UTIL_LINUX_STRV
+/*
+ * No copyright is claimed. This code is in the public domain; do with
+ * it what you wish.
+ */
#ifndef _SWAPHEADER_H
#define _SWAPHEADER_H
/*
+ * 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
+/*
+ * 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
/***
+ 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.
+/*
+ * 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. */
/*
+ * 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.
/*
+ * SPDX-License-Identifier: BSD-2-Clause
+ *
* xxHash - Extremely Fast Hash algorithm
* Header File
* Copyright (C) 2012-2020 Yann Collet
/*
+ * 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
-
+/*
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
#include <sys/syslog.h>
#if defined (HAVE_LIBECONF) && defined (USE_VENDORDIR)
#include <libeconf.h>
/*
+ * 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