summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarel Zak2013-01-08 15:00:23 +0100
committerKarel Zak2013-01-08 15:10:17 +0100
commit0f23ee0c855d686b0c315af2c96b8835134cd9e3 (patch)
tree3a766ba628aedbc64807d20b64abcb7139bf8d2c /lib
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>
Diffstat (limited to 'lib')
-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
8 files changed, 38 insertions, 8 deletions
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>