* added LICENSE file and copyright notices; added .gitignore; fixed comments
authorUrban Wallasch <urban.wallasch@freenet.de>
Wed, 23 Oct 2019 20:37:11 +0000 (22:37 +0200)
committerUrban Wallasch <urban.wallasch@freenet.de>
Wed, 23 Oct 2019 20:37:11 +0000 (22:37 +0200)
.gitignore [new file with mode: 0644]
LICENSE [new file with mode: 0644]
net/net.c
net/net.h
net/net_test.c
trace/trace.h
trace/trace_test.c

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..261745f
--- /dev/null
@@ -0,0 +1,2 @@
+*.[oa]
+*_test
diff --git a/LICENSE b/LICENSE
new file mode 100644 (file)
index 0000000..5764aee
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2019, Urban Wallasch and contributors
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+  list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+
+* Neither the name of the copyright holder nor the names of its
+  contributors may be used to endorse or promote products derived from
+  this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
index de0c35af5f10dbbc5bceca0342707db25d6f04bc..6de3cf0a9f421a45044edfbc08459b7e9ffa617a 100644 (file)
--- a/net/net.c
+++ b/net/net.c
@@ -1,4 +1,9 @@
 /*
+ * net.c
+ *
+ * Copyright (c) 2019, Urban Wallasch
+ * BSD 3-Clause License, see LICENSE file for more details.
+ *
  * Collection of functions to help create simple IPv4 or IPv6 based
  * TCP or UDP servers and clients.  See net.h for further information.
  *
index 946681aeb98607a590980b4d77c078881cd885be..f209dec80d06f0b183dd0e000d0b2dc54ad1b14c 100644 (file)
--- a/net/net.h
+++ b/net/net.h
@@ -1,4 +1,9 @@
 /*
+ * net.h
+ *
+ * Copyright (c) 2019, Urban Wallasch
+ * BSD 3-Clause License, see LICENSE file for more details.
+ *
  * Collection of functions to help create simple IPv4 or IPv6 based
  * TCP or UDP servers and clients.
  *
index 66c548466e2c081616c261a505aeb1fc560f5ed7..14b3ad9d6631438f5e70287815a247c81fc46d67 100644 (file)
@@ -1,3 +1,14 @@
+/*
+ * net_test.c
+ *
+ * Copyright (c) 2019, Urban Wallasch
+ * BSD 3-Clause License, see LICENSE file for more details.
+ *
+ * Simple, non-exhaustive quick check for net.c, net.h
+ *
+ * Build with:
+ * gcc -Wall -Wextra -DNET_DBG -onet_test net.c net_test.c
+ */
 
 #include <errno.h>
 #include <signal.h>
index e16fe83d1b0f53fd1fe896b939a626e978947527..91e4269065f2affb4f087853621c2d6b02040414 100644 (file)
@@ -1,6 +1,9 @@
 /*
  * trace.h
  *
+ * Copyright (c) 2019, Urban Wallasch
+ * BSD 3-Clause License, see LICENSE file for more details.
+ *
  * Function-like macros to issue tracing information on expressions.
  *
  * TRACE(e)   - default formatting
index 05df17e8382de2b85cb58608c2bbeb01a367d7fa..a3c373e5e082c4c509549f4c05cbf148213a79cb 100644 (file)
@@ -1,10 +1,13 @@
 /*
- * trace.c
+ * trace_test.c
+ *
+ * Copyright (c) 2019, Urban Wallasch
+ * BSD 3-Clause License, see LICENSE file for more details.
  *
  * Simple, non-exhaustive quick check for trace.h
  *
  * Build with:
- * cc [-std=c11 [-Wpedantic]] -Wall -Wextra -DTRACE_ON -otrace trace.c
+ * cc [-std=c11 [-Wpedantic]] -Wall -Wextra -DTRACE_ON -otrace_test trace_test.c
  *
  */