Skip to content

Commit faeb1b6

Browse files
committed
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: util-linux#2010 Signed-off-by: Karel Zak <[email protected]>
1 parent 8d92155 commit faeb1b6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+247
-3
lines changed

README.licensing

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ There is code under:
1010

1111
* LGPL-2.1-or-later - GNU Lesser General Public License 2.1 or any later version
1212

13+
* BSD-2-Clause - Simplified BSD License
14+
1315
* BSD-3-Clause - BSD 3-Clause "New" or "Revised" License
1416

1517
* BSD-4-Clause-UC - BSD 4-Clause University of California-Specific

include/buffer.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_BUFFER
26
#define UTIL_LINUX_BUFFER
37

include/c_strtod.h

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* SPDX-License-Identifier: LGPL-2.1-or-later
3+
*
4+
* This file may be redistributed under the terms of the
5+
* GNU Lesser General Public License.
6+
**/
17
#ifndef UTIL_LINUX_C_STRTOD_H
28
#define UTIL_LINUX_C_STRTOD_H
39

include/closestream.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_CLOSESTREAM_H
26
#define UTIL_LINUX_CLOSESTREAM_H
37

include/crc32.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with it what
3+
* you wish.
4+
*/
15
#ifndef UL_CRC32_H
26
#define UL_CRC32_H
37

include/crc32c.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with it what
3+
* you wish.
4+
*/
15
#ifndef UL_CRC32C_H
26
#define UL_CRC32C_H
37

include/debug.h

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/*
2+
* SPDX-License-Identifier: LGPL-2.1-or-later
3+
*
24
* Copyright (C) 2014 Ondrej Oprala <[email protected]>
35
* Copyright (C) 2014 Karel Zak <[email protected]>
46
*

include/debugobj.h

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* SPDX-License-Identifier: LGPL-2.1-or-later
3+
*
4+
* Copyright (C) 2014 Ondrej Oprala <[email protected]>
5+
* Copyright (C) 2014 Karel Zak <[email protected]>
6+
*
7+
* This file may be distributed under the terms of the
8+
* GNU Lesser General Public License.
9+
*/
110
#ifndef UTIL_LINUX_DEBUGOBJ_H
211
#define UTIL_LINUX_DEBUGOBJ_H
312

include/encode.h

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* SPDX-License-Identifier: LGPL-2.1-or-later
3+
*
4+
* This file may be distributed under the terms of the
5+
* GNU Lesser General Public License.
6+
*/
17
#ifndef UTIL_LINUX_ENCODE_H
28
#define UTIL_LINUX_ENCODE_H
39

include/fileeq.h

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2+
/*
3+
* No copyright is claimed. This code is in the public domain; do with
4+
* it what you wish.
5+
*/
16
#ifndef UTIL_LINUX_FILEEQ
27
#define UTIL_LINUX_FILEEQ
38

include/fileutils.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
**/
15
#ifndef UTIL_LINUX_FILEUTILS
26
#define UTIL_LINUX_FILEUTILS
37

include/fuzz.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_FUZZ_H
26
#define UTIL_LINUX_FUZZ_H
37

include/idcache.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_IDCACHE_H
26
#define UTIL_LINUX_IDCACHE_H
37

include/ismounted.h

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* SPDX-License-Identifier: GPL-2.0-or-later
3+
*
4+
* This file may be redistributed under the terms of the GNU Public
5+
* License.
6+
*/
17
#ifndef IS_MOUNTED_H
28
#define IS_MOUNTED_H
39

include/iso9660.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_ISO_H
26
#define UTIL_LINUX_ISO_H
37

include/jsonwrt.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_JSONWRT_H
26
#define UTIL_LINUX_JSONWRT_H
37

include/linux_version.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef LINUX_VERSION_H
26
#define LINUX_VERSION_H
37

include/logindefs.h

+21
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
/*
2+
* Copyright (C) 2003, 2004, 2005 Thorsten Kukuk
3+
* Author: Thorsten Kukuk <[email protected]>
4+
*
5+
* Redistribution and use in source and binary forms, with or without
6+
* modification, are permitted provided that the following conditions
7+
* are met:
8+
*
9+
* 1. Redistributions of source code must retain any existing copyright
10+
* notice, and this entire permission notice in its entirety,
11+
* including the disclaimer of warranties.
12+
*
13+
* 2. Redistributions in binary form must reproduce all prior and current
14+
* copyright notices, this list of conditions, and the following
15+
* disclaimer in the documentation and/or other materials provided
16+
* with the distribution.
17+
*
18+
* 3. The name of any author may not be used to endorse or promote
19+
* products derived from this software without their specific prior
20+
* written permission.
21+
*/
122
#ifndef UTIL_LINUX_LOGINDEFS_H
223
#define UTIL_LINUX_LOGINDEFS_H
324

include/loopdev.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_LOOPDEV_H
26
#define UTIL_LINUX_LOOPDEV_H
37

include/mangle.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_MANGLE_H
26
#define UTIL_LINUX_MANGLE_H
37

include/mbsedit.h

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* SPDX-License-Identifier: LGPL-2.1-or-later
3+
*
4+
* This file may be distributed under the terms of the
5+
* GNU Lesser General Public License.
6+
*/
17
#ifndef UTIL_LINUX_MBSEDIT_H
28
# define UTIL_LINUX_MBSEDIT_H
39

include/md5.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with it what
3+
* you wish.
4+
*/
15
#ifndef UTIL_LINUX_MD5_H
26
#define UTIL_LINUX_MD5_H
37

include/minix.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_MINIX_H
26
#define UTIL_LINUX_MINIX_H
37

include/mount-api-utils.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_MOUNT_API_UTILS
26
#define UTIL_LINUX_MOUNT_API_UTILS
37

include/nls.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_NLS_H
26
#define UTIL_LINUX_NLS_H
37

include/optutils.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_OPTUTILS_H
26
#define UTIL_LINUX_OPTUTILS_H
37

include/pager.h

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* SPDX-License-Identifier: GPL-2.0-or-later
3+
*
4+
* This file may be redistributed under the terms of the GNU Public License.
5+
*/
16
#ifndef UTIL_LINUX_PAGER
27
#define UTIL_LINUX_PAGER
38

include/partx.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_PARTX_H
26
#define UTIL_LINUX_PARTX_H
37

include/path.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_PATH_H
26
#define UTIL_LINUX_PATH_H
37

include/pidfd-utils.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_PIDFD_UTILS
26
#define UTIL_LINUX_PIDFD_UTILS
37

include/procfs.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*
25
* Copyright (C) 2021 Karel Zak <[email protected]>
36
*/
47
#ifndef UTIL_LINUX_PROCFS_H

include/pt-bsd.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_PT_BSD_H
26
#define UTIL_LINUX_PT_BSD_H
37

include/pt-gpt-partnames.h

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
* No copyright is claimed. This code is in the public domain; do with
43
* it what you wish.

include/pt-mbr-partnames.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
{0x00, N_("Empty")},
26
{0x01, N_("FAT12")},
37
{0x02, N_("XENIX root")},

include/pt-mbr.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_PT_MBR_H
26
#define UTIL_LINUX_PT_MBR_H
37

include/pt-sgi.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_PT_SGI_H
26
#define UTIL_LINUX_PT_SGI_H
37

include/pt-sun.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_PT_SUN_H
26
#define UTIL_LINUX_PT_SUN_H
37

include/pwdutils.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_PWDUTILS_H
26
#define UTIL_LINUX_PWDUTILS_H
37

include/randutils.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/*
2+
* SPDX-License-Identifier: BSD-3-Clause
3+
*/
14
#ifndef UTIL_LINUX_RANDUTILS
25
#define UTIL_LINUX_RANDUTILS
36

include/rpmatch.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_RPMATCH_H
26
#define UTIL_LINUX_RPMATCH_H
37

include/selinux-utils.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_SELINUX_UTILS_H
26
#define UTIL_LINUX_SELINUX_UTILS_H
37

include/sha1.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_SHA1_H
26
#define UTIL_LINUX_SHA1_H
37

include/sha256.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_SHA256_H
26
#define UTIL_LINUX_SHA256_H
37

include/shells.h

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/*
2+
* SPDX-License-Identifier: GPL-2.0-or-later
3+
*/
14
#ifndef UTIL_LINUX_SHELLS_H
25
#define UTIL_LINUX_SHELLS_H
36

include/signames.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef SIGNAMES_H
26
#define SIGNAMES_H
37

include/statfs_magic.h

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
* No copyright is claimed. This code is in the public domain; do with
3+
* it what you wish.
4+
*/
15
#ifndef UTIL_LINUX_STATFS_MAGIC_H
26
#define UTIL_LINUX_STATFS_MAGIC_H
37

0 commit comments

Comments
 (0)