From 40f8c5e47e4cf42da77e4040039100959460aca4 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 13 Jan 2020 10:39:52 +0100 Subject: [PATCH] include: add some missing licence stuff to header files It's mostly wrappers for compatibility and another trivial stuff etc. Let's keep it as public domain to make it more portable to LGPL, GPL and BSD code. Signed-off-by: Karel Zak CC: Sami Kerola CC: Ruediger Meier --- include/c.h | 4 +++- include/monotonic.h | 4 ++++ include/namespace.h | 8 +++++++- lib/mangle.c | 3 ++- lib/monotonic.c | 3 +++ 5 files changed, 19 insertions(+), 3 deletions(-) diff --git a/include/c.h b/include/c.h index 94b0c3681..812692885 100644 --- a/include/c.h +++ b/include/c.h @@ -1,7 +1,9 @@ /* * Fundamental C definitions. + * + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. */ - #ifndef UTIL_LINUX_C_H #define UTIL_LINUX_C_H diff --git a/include/monotonic.h b/include/monotonic.h index 296173ece..7a69d9e4b 100644 --- a/include/monotonic.h +++ b/include/monotonic.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_MONOTONIC_H #define UTIL_LINUX_MONOTONIC_H diff --git a/include/namespace.h b/include/namespace.h index 9dbe88aa0..c48602d70 100644 --- a/include/namespace.h +++ b/include/namespace.h @@ -1,4 +1,10 @@ -/* Compat code so unshare and setns can be used with older libcs */ + +/* + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. + * + * Compat code so unshare and setns can be used with older libcs + */ #ifndef UTIL_LINUX_NAMESPACE_H # define UTIL_LINUX_NAMESPACE_H diff --git a/lib/mangle.c b/lib/mangle.c index 87802fbda..1a3b89ae4 100644 --- a/lib/mangle.c +++ b/lib/mangle.c @@ -1,7 +1,8 @@ /* * Functions for \oct encoding used in mtab/fstab/swaps/etc. * - * Based on code from mount(8). + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. * * Copyright (C) 2010 Karel Zak */ diff --git a/lib/monotonic.c b/lib/monotonic.c index 96ead1ee0..b684d8dd6 100644 --- a/lib/monotonic.c +++ b/lib/monotonic.c @@ -1,6 +1,9 @@ /* * Please, don't add this file to libcommon because clock_gettime() requires * -lrt on systems with old libc. + * + * No copyright is claimed. This code is in the public domain; do with + * it what you wish. */ #include #include