summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorklto <klto@bb4c1ae6-6eb5-4d93-a66e-2307d6765a9c>2010-10-28 11:47:20 +0000
committerklto <klto@bb4c1ae6-6eb5-4d93-a66e-2307d6765a9c>2010-10-28 11:47:20 +0000
commit801b5189eb7f49b94d33b24b8988529bbd35040a (patch)
tree4ccd9d4c62c26190cef4acbee727b3bc422d62aa
parent2f7a7f07846aa498b4b79a83bbe425d7aba73f03 (diff)
Add license information to every file and mention it in the README
git-svn-id: https://parma.zhaw.ch/svn/csnippets@3 bb4c1ae6-6eb5-4d93-a66e-2307d6765a9c
-rw-r--r--README8
-rw-r--r--crc32/crc32.c6
-rw-r--r--crc32/crc32.h6
-rw-r--r--memdebug/memdebug.c21
-rw-r--r--memdebug/memdebug.h28
-rw-r--r--stringify/stringify.h6
-rwxr-xr-xunittest/runtests.py21
-rw-r--r--unittest/unittest.h23
8 files changed, 117 insertions, 2 deletions
diff --git a/README b/README
index e69de29..7d58260 100644
--- a/README
+++ b/README
@@ -0,0 +1,8 @@
+ README for csnippets
+======================
+
+This directory contains a collection of C-code snippets to be used as part of
+various other software.
+
+All code is licensed under permissive licenses, e.g. BSD (or similar) license or
+in the public domain. See the respective source files for details.
diff --git a/crc32/crc32.c b/crc32/crc32.c
index 6e0c87d..ac69e84 100644
--- a/crc32/crc32.c
+++ b/crc32/crc32.c
@@ -1,3 +1,9 @@
+/*
+ * Not copyrighted 2010 Tobias Klauser
+ *
+ * This code is in public domain.
+ */
+
#include <stdlib.h>
#include <stdint.h>
diff --git a/crc32/crc32.h b/crc32/crc32.h
index 6ea89b0..3eced01 100644
--- a/crc32/crc32.h
+++ b/crc32/crc32.h
@@ -1,3 +1,9 @@
+/*
+ * Not copyrighted 2010 Tobias Klauser
+ *
+ * This code is in public domain.
+ */
+
#ifndef _CRC32_H_
#define _CRC32_H_
diff --git a/memdebug/memdebug.c b/memdebug/memdebug.c
index 84a2c86..887ca42 100644
--- a/memdebug/memdebug.c
+++ b/memdebug/memdebug.c
@@ -4,7 +4,26 @@
* This can essentially be useful on embedded systems platforms where tools such
* as valgrind are not available.
*
- * Copyright (c) 2010, Tobias Klauser <tklauser@distanz.ch>
+ * Copyright (c) 2010 Zurich University of Applied Sciences
+ * Copyright (c) 2010 Tobias Klauser <tklauser@distanz.ch>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
*/
#include <stdio.h>
diff --git a/memdebug/memdebug.h b/memdebug/memdebug.h
index 7a816c0..3f2d5a5 100644
--- a/memdebug/memdebug.h
+++ b/memdebug/memdebug.h
@@ -1,3 +1,31 @@
+/*
+ * memdebug - A simple malloc/free debugger
+ *
+ * This can essentially be useful on embedded systems platforms where tools such
+ * as valgrind are not available.
+ *
+ * Copyright (c) 2010 Zurich University of Applied Sciences
+ * Copyright (c) 2010 Tobias Klauser <tklauser@distanz.ch>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
#ifndef _MEMDEBUG_H_
#define _MEMDEBUG_H_
diff --git a/stringify/stringify.h b/stringify/stringify.h
index 5b7b002..e9f188e 100644
--- a/stringify/stringify.h
+++ b/stringify/stringify.h
@@ -1,4 +1,8 @@
-/* Taken from Linux Kernel source code */
+/*
+ * Taken from Linux Kernel source code.
+ *
+ * Licensed under the GNU General Public License Version 2.
+ */
#ifndef _STRINGIFY_H_
#define _STRINGIFY_H_
diff --git a/unittest/runtests.py b/unittest/runtests.py
index dbc616f..cdda21a 100755
--- a/unittest/runtests.py
+++ b/unittest/runtests.py
@@ -1,5 +1,26 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
+#
+# Copyright (c) 2010 Zurich University of Applied Sciences
+# Copyright (c) 2010 Tobias Klauser <tklauser@distanz.ch>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
import os, sys
import getopt
diff --git a/unittest/unittest.h b/unittest/unittest.h
index 2350f55..6eaaa40 100644
--- a/unittest/unittest.h
+++ b/unittest/unittest.h
@@ -1,3 +1,26 @@
+/*
+ * Copyright (c) 2010 Zurich University of Applied Sciences
+ * Copyright (c) 2010 Tobias Klauser <tklauser@distanz.ch>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
#ifndef _UNITTEST_H_
#define _UNITTEST_H_