summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2013-01-08 15:00:23 +0100
committerKarel Zak2013-01-08 15:10:17 +0100
commit0f23ee0c855d686b0c315af2c96b8835134cd9e3 (patch)
tree3a766ba628aedbc64807d20b64abcb7139bf8d2c
parentinclude/bitopts: Use the operating system byteswapping functions (diff)
downloadkernel-qcow2-util-linux-0f23ee0c855d686b0c315af2c96b8835134cd9e3.tar.gz
kernel-qcow2-util-linux-0f23ee0c855d686b0c315af2c96b8835134cd9e3.tar.xz
kernel-qcow2-util-linux-0f23ee0c855d686b0c315af2c96b8835134cd9e3.zip
include: cleanup copyright headers
We use the code from include/ and lib/ on many places, so use public domain if possible or LGPL for code copied from libs. Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--include/all-io.h8
-rw-r--r--include/bitops.h6
-rw-r--r--include/blkdev.h6
-rw-r--r--include/canonicalize.h11
-rw-r--r--include/cpuset.h4
-rw-r--r--include/list.h3
-rw-r--r--include/pamfail.h6
-rw-r--r--include/ttyutils.h6
-rw-r--r--lib/at.c5
-rw-r--r--lib/blkdev.c7
-rw-r--r--lib/cpuset.c3
-rw-r--r--lib/loopdev.c5
-rw-r--r--lib/randutils.c6
-rw-r--r--lib/sysfs.c6
-rw-r--r--lib/ttyutils.c7
-rw-r--r--lib/wholedisk.c7
16 files changed, 88 insertions, 8 deletions
diff --git a/include/all-io.h b/include/all-io.h
index 248759908..424ab7d3f 100644
--- a/include/all-io.h
+++ b/include/all-io.h
@@ -1,3 +1,11 @@
+/*
+ * No copyright is claimed. This code is in the public domain; do with
+ * it what you wish.
+ *
+ * Written by Karel Zak <kzak@redhat.com>
+ * Petr Uzel <petr.uzel@suse.cz>
+ */
+
#ifndef UTIL_LINUX_ALL_IO_H
#define UTIL_LINUX_ALL_IO_H
diff --git a/include/bitops.h b/include/bitops.h
index 9738dd726..498ec63e7 100644
--- a/include/bitops.h
+++ b/include/bitops.h
@@ -1,3 +1,9 @@
+/*
+ * No copyright is claimed. This code is in the public domain; do with
+ * it what you wish.
+ *
+ * Written by Karel Zak <kzak@redhat.com>
+ */
#ifndef BITOPS_H
#define BITOPS_H
diff --git a/include/blkdev.h b/include/blkdev.h
index 93586a0fb..ade08878d 100644
--- a/include/blkdev.h
+++ b/include/blkdev.h
@@ -1,3 +1,9 @@
+/*
+ * No copyright is claimed. This code is in the public domain; do with
+ * it what you wish.
+ *
+ * Written by Karel Zak <kzak@redhat.com>
+ */
#ifndef BLKDEV_H
#define BLKDEV_H
diff --git a/include/canonicalize.h b/include/canonicalize.h
index c14973802..7a18aca09 100644
--- a/include/canonicalize.h
+++ b/include/canonicalize.h
@@ -1,3 +1,14 @@
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Library Public License as published by
+ * the Free Software Foundation; either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Library Public License for more details.
+ */
#ifndef CANONICALIZE_H
#define CANONICALIZE_H
diff --git a/include/cpuset.h b/include/cpuset.h
index 47ddfe2ef..f8948a984 100644
--- a/include/cpuset.h
+++ b/include/cpuset.h
@@ -1,3 +1,7 @@
+/*
+ * This file may be redistributed under the terms of the
+ * GNU Lesser General Public License.
+ */
#ifndef UTIL_LINUX_CPUSET_H
#define UTIL_LINUX_CPUSET_H
diff --git a/include/list.h b/include/list.h
index e9ed0c4cd..7b6067239 100644
--- a/include/list.h
+++ b/include/list.h
@@ -2,6 +2,9 @@
* Copyright (C) 2008 Karel Zak <kzak@redhat.com>
* Copyright (C) 1999-2008 by Theodore Ts'o
*
+ * This file may be redistributed under the terms of the
+ * GNU Lesser General Public License.
+ *
* (based on list.h from e2fsprogs)
* Merge sort based on kernel's implementation.
*/
diff --git a/include/pamfail.h b/include/pamfail.h
index 8008ce395..e102df227 100644
--- a/include/pamfail.h
+++ b/include/pamfail.h
@@ -1,3 +1,9 @@
+/*
+ * No copyright is claimed. This code is in the public domain; do with
+ * it what you wish.
+ *
+ * Written by Karel Zak <kzak@redhat.com>
+ */
#ifndef UTIL_LINUX_PAMFAIL_H
#include <security/pam_appl.h>
#include <security/pam_misc.h>
diff --git a/include/ttyutils.h b/include/ttyutils.h
index 767346172..3ed788359 100644
--- a/include/ttyutils.h
+++ b/include/ttyutils.h
@@ -1,3 +1,9 @@
+/*
+ * No copyright is claimed. This code is in the public domain; do with
+ * it what you wish.
+ *
+ * Written by Karel Zak <kzak@redhat.com>
+ */
#ifndef UTIL_LINUX_TTYUTILS_H
#define UTIL_LINUX_TTYUTILS_H
diff --git a/lib/at.c b/lib/at.c
index bbce51630..f8bfe1399 100644
--- a/lib/at.c
+++ b/lib/at.c
@@ -1,7 +1,10 @@
/*
* Portable xxxat() functions.
*
- * Copyright (C) 2010 Karel Zak <kzak@redhat.com>
+ * No copyright is claimed. This code is in the public domain; do with
+ * it what you wish.
+ *
+ * Written by Karel Zak <kzak@redhat.com>
*/
#include <stdio.h>
#include <stdlib.h>
diff --git a/lib/blkdev.c b/lib/blkdev.c
index 9193b64e4..514082e34 100644
--- a/lib/blkdev.c
+++ b/lib/blkdev.c
@@ -1,4 +1,9 @@
-
+/*
+ * No copyright is claimed. This code is in the public domain; do with
+ * it what you wish.
+ *
+ * Written by Karel Zak <kzak@redhat.com>
+ */
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
diff --git a/lib/cpuset.c b/lib/cpuset.c
index 26b0a90b7..e5b6b9dfe 100644
--- a/lib/cpuset.c
+++ b/lib/cpuset.c
@@ -7,6 +7,9 @@
*
* Based on code from taskset.c and Linux kernel.
*
+ * This file may be redistributed under the terms of the
+ * GNU Lesser General Public License.
+ *
* Copyright (C) 2010 Karel Zak <kzak@redhat.com>
*/
diff --git a/lib/loopdev.c b/lib/loopdev.c
index c29cb85c5..a25a2fae4 100644
--- a/lib/loopdev.c
+++ b/lib/loopdev.c
@@ -1,5 +1,8 @@
/*
- * Copyright (C) 2011 Karel Zak <kzak@redhat.com>
+ * No copyright is claimed. This code is in the public domain; do with
+ * it what you wish.
+ *
+ * Written by Karel Zak <kzak@redhat.com>
*
* -- based on mount/losetup.c
*
diff --git a/lib/randutils.c b/lib/randutils.c
index 85cb1a99e..80893d3db 100644
--- a/lib/randutils.c
+++ b/lib/randutils.c
@@ -1,7 +1,11 @@
/*
* General purpose random utilities
+ *
+ * Based on libuuid code.
+ *
+ * This file may be redistributed under the terms of the
+ * GNU Lesser General Public License.
*/
-
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
diff --git a/lib/sysfs.c b/lib/sysfs.c
index 3ac1fe0ca..d14459b73 100644
--- a/lib/sysfs.c
+++ b/lib/sysfs.c
@@ -1,7 +1,9 @@
/*
- * Copyright (C) 2011 Karel Zak <kzak@redhat.com>
+ * No copyright is claimed. This code is in the public domain; do with
+ * it what you wish.
+ *
+ * Written by Karel Zak <kzak@redhat.com>
*/
-
#include <ctype.h>
#include "c.h"
diff --git a/lib/ttyutils.c b/lib/ttyutils.c
index 15d538946..3b5a68cd8 100644
--- a/lib/ttyutils.c
+++ b/lib/ttyutils.c
@@ -1,4 +1,9 @@
-
+/*
+ * No copyright is claimed. This code is in the public domain; do with
+ * it what you wish.
+ *
+ * Written by Karel Zak <kzak@redhat.com>
+ */
#include <ctype.h>
#include "c.h"
diff --git a/lib/wholedisk.c b/lib/wholedisk.c
index 4a5305229..1dbb90c5c 100644
--- a/lib/wholedisk.c
+++ b/lib/wholedisk.c
@@ -1,4 +1,9 @@
-
+/*
+ * No copyright is claimed. This code is in the public domain; do with
+ * it what you wish.
+ *
+ * Written by Karel Zak <kzak@redhat.com>
+ */
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>