From 83be615f7b034c7a1e6c8c75bf3450c4eeaa7d22 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Thu, 16 Apr 2020 22:17:32 -0400 Subject: nserver: Add license text to source files. --- nserver/bin/statserve.c | 5 +++++ nserver/src/bstrlib.c | 12 ++++++++---- nserver/src/bstrlib.h | 12 ++++++++---- nserver/src/darray.c | 6 ++++++ nserver/src/darray.h | 6 ++++++ nserver/src/darray_algos.c | 6 ++++++ nserver/src/darray_algos.h | 6 ++++++ nserver/src/db.c | 5 +++++ nserver/src/db.h | 5 +++++ nserver/src/dbg.h | 5 +++++ nserver/src/hashmap.c | 6 ++++++ nserver/src/hashmap.h | 6 ++++++ nserver/src/ncmd.c | 5 +++++ nserver/src/ncmd.h | 5 +++++ nserver/src/nserve.c | 5 +++++ nserver/src/nserve.h | 5 +++++ nserver/src/nsocket.c | 5 +++++ nserver/src/nsocket.h | 5 +++++ nserver/src/protocol.c | 5 +++++ nserver/src/protocol.h | 5 +++++ nserver/src/stats.c | 6 ++++++ nserver/src/stats.h | 6 ++++++ nserver/src/tstree.c | 6 ++++++ nserver/src/tstree.h | 6 ++++++ nserver/tests/db_tests.c | 5 +++++ nserver/tests/minunit.h | 5 +++++ nserver/tests/ncmd_tests.c | 5 +++++ nserver/tests/protocol_tests.c | 5 +++++ nserver/tests/stats_tests.c | 6 ++++++ 29 files changed, 162 insertions(+), 8 deletions(-) diff --git a/nserver/bin/statserve.c b/nserver/bin/statserve.c index d252adf..fa6d488 100644 --- a/nserver/bin/statserve.c +++ b/nserver/bin/statserve.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth + */ + #include #include diff --git a/nserver/src/bstrlib.c b/nserver/src/bstrlib.c index a2dff25..8161319 100644 --- a/nserver/src/bstrlib.c +++ b/nserver/src/bstrlib.c @@ -1,8 +1,12 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ /* - * This is a slightly modified version of bstrlib.h (v1.0.0). - * - * The original version of bstrlib.c (v1.0.0) can be found in - * ../../docs/bstrlib-v1.0.0.tar.xz. + * Copyright © 2014 Paul Hsieh + * Copyright © 2020 rsiddharth + */ + +/* + * This is a slightly modified version of bstrlib.c from the bstrlib + * library (https://github.com/websnarf/bstrlib/releases/tag/v1.0.0). */ /* diff --git a/nserver/src/bstrlib.h b/nserver/src/bstrlib.h index 666b804..6ad6f4a 100644 --- a/nserver/src/bstrlib.h +++ b/nserver/src/bstrlib.h @@ -1,8 +1,12 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ /* - * This is a slightly modified version of bstrlib.h (v1.0.0). - * - * The original version of bstrlib.h (v1.0.0) can be found in - * ../../docs/bstrlib-v1.0.0.tar.xz. + * Copyright © 2014 Paul Hsieh + * Copyright © 2020 rsiddharth + */ + +/* + * This is a slightly modified version of bstrlib.h from the bstrlib + * library (https://github.com/websnarf/bstrlib/releases/tag/v1.0.0). */ /* diff --git a/nserver/src/darray.c b/nserver/src/darray.c index 6dc3839..912ccbe 100644 --- a/nserver/src/darray.c +++ b/nserver/src/darray.c @@ -1,3 +1,9 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + * Copyright © 2020 rsiddharth + */ + #include #include #include diff --git a/nserver/src/darray.h b/nserver/src/darray.h index d262d39..7e5ae5d 100644 --- a/nserver/src/darray.h +++ b/nserver/src/darray.h @@ -1,3 +1,9 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + * Copyright © 2020 rsiddharth + */ + #ifndef _DArray_h #define _DArray_h #include diff --git a/nserver/src/darray_algos.c b/nserver/src/darray_algos.c index 013e49c..01fd27f 100644 --- a/nserver/src/darray_algos.c +++ b/nserver/src/darray_algos.c @@ -1,3 +1,9 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + * Copyright © 2020 rsiddharth + */ + #include int DArray_qsort(DArray *array, DArray_compare cmp) diff --git a/nserver/src/darray_algos.h b/nserver/src/darray_algos.h index 7f72bef..9be314f 100644 --- a/nserver/src/darray_algos.h +++ b/nserver/src/darray_algos.h @@ -1,3 +1,9 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + * Copyright © 2020 rsiddharth + */ + #ifndef darray_algos_h #define darray_algos_h diff --git a/nserver/src/db.c b/nserver/src/db.c index e2b44c3..a0443c9 100644 --- a/nserver/src/db.c +++ b/nserver/src/db.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth + */ + #include static const char *DB_FILE = "nserver.db"; diff --git a/nserver/src/db.h b/nserver/src/db.h index 1a9c243..8470e6f 100644 --- a/nserver/src/db.h +++ b/nserver/src/db.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth + */ + #ifndef _db_h #define _db_h diff --git a/nserver/src/dbg.h b/nserver/src/dbg.h index 67ebe77..1018a4d 100644 --- a/nserver/src/dbg.h +++ b/nserver/src/dbg.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + */ + #ifndef __dbg_h__ #define __dbg_h__ diff --git a/nserver/src/hashmap.c b/nserver/src/hashmap.c index 1979cd4..b42c48e 100644 --- a/nserver/src/hashmap.c +++ b/nserver/src/hashmap.c @@ -1,3 +1,9 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + * Copyright © 2020 rsiddharth + */ + #undef NDEBUG #include #include diff --git a/nserver/src/hashmap.h b/nserver/src/hashmap.h index 9f1d7a7..1c9cd3e 100644 --- a/nserver/src/hashmap.h +++ b/nserver/src/hashmap.h @@ -1,3 +1,9 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + * Copyright © 2020 rsiddharth + */ + #ifndef _lcthw_Hashmap_h #define _lcthw_Hashmap_h diff --git a/nserver/src/ncmd.c b/nserver/src/ncmd.c index 6b0be37..e1393a3 100644 --- a/nserver/src/ncmd.c +++ b/nserver/src/ncmd.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth + */ + #include int sanitize(char *cmd) diff --git a/nserver/src/ncmd.h b/nserver/src/ncmd.h index e021390..025a06f 100644 --- a/nserver/src/ncmd.h +++ b/nserver/src/ncmd.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth + */ + #ifndef _ncmd_h #define _ncmd_h diff --git a/nserver/src/nserve.c b/nserver/src/nserve.c index d32448e..75457af 100644 --- a/nserver/src/nserve.c +++ b/nserver/src/nserve.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth + */ + #include int slurpsock(char *buf, size_t buf_sz, int sock) diff --git a/nserver/src/nserve.h b/nserver/src/nserve.h index 9b95733..b0565ef 100644 --- a/nserver/src/nserve.h +++ b/nserver/src/nserve.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth + */ + #ifndef _nserve_h #define _nserve_h diff --git a/nserver/src/nsocket.c b/nserver/src/nsocket.c index f5941f4..c4d4525 100644 --- a/nserver/src/nsocket.c +++ b/nserver/src/nsocket.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth + */ + #include int get_socket() diff --git a/nserver/src/nsocket.h b/nserver/src/nsocket.h index d7d37d5..17cea75 100644 --- a/nserver/src/nsocket.h +++ b/nserver/src/nsocket.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth + */ + #ifndef _nsocket_h #define _nsocket_h diff --git a/nserver/src/protocol.c b/nserver/src/protocol.c index d5a520b..77b806a 100644 --- a/nserver/src/protocol.c +++ b/nserver/src/protocol.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth + */ + #include static TSTree *tst; diff --git a/nserver/src/protocol.h b/nserver/src/protocol.h index 596f98b..4640975 100644 --- a/nserver/src/protocol.h +++ b/nserver/src/protocol.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth + */ + #ifndef _protocol_h #define _protocol_h diff --git a/nserver/src/stats.c b/nserver/src/stats.c index 9610301..7e51c9e 100644 --- a/nserver/src/stats.c +++ b/nserver/src/stats.c @@ -1,3 +1,9 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + * Copyright © 2020 rsiddharth + */ + #include #include diff --git a/nserver/src/stats.h b/nserver/src/stats.h index 96bc2b4..f9e5d7a 100644 --- a/nserver/src/stats.h +++ b/nserver/src/stats.h @@ -1,3 +1,9 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + * Copyright © 2020 rsiddharth + */ + #ifndef stats_h #define stats_h diff --git a/nserver/src/tstree.c b/nserver/src/tstree.c index f73aa63..1a71c4d 100644 --- a/nserver/src/tstree.c +++ b/nserver/src/tstree.c @@ -1,3 +1,9 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + * Copyright © 2020 rsiddharth + */ + #include #include #include diff --git a/nserver/src/tstree.h b/nserver/src/tstree.h index 6defc39..bd22e0d 100644 --- a/nserver/src/tstree.h +++ b/nserver/src/tstree.h @@ -1,3 +1,9 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + * Copyright © 2020 rsiddharth + */ + #ifndef _TSTree_h #define _TSTree_h diff --git a/nserver/tests/db_tests.c b/nserver/tests/db_tests.c index de93262..dce3039 100644 --- a/nserver/tests/db_tests.c +++ b/nserver/tests/db_tests.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth + */ + #include "minunit.h" #include diff --git a/nserver/tests/minunit.h b/nserver/tests/minunit.h index a7cb280..4ddf265 100644 --- a/nserver/tests/minunit.h +++ b/nserver/tests/minunit.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + */ + #undef NDEBUG #ifndef _minunit_h #define _minunit_h diff --git a/nserver/tests/ncmd_tests.c b/nserver/tests/ncmd_tests.c index 64c334c..6174371 100644 --- a/nserver/tests/ncmd_tests.c +++ b/nserver/tests/ncmd_tests.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth + */ + #include "minunit.h" #include diff --git a/nserver/tests/protocol_tests.c b/nserver/tests/protocol_tests.c index 4250635..62ebec3 100644 --- a/nserver/tests/protocol_tests.c +++ b/nserver/tests/protocol_tests.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth + */ + #include "minunit.h" #include diff --git a/nserver/tests/stats_tests.c b/nserver/tests/stats_tests.c index 3ed92de..b62996d 100644 --- a/nserver/tests/stats_tests.c +++ b/nserver/tests/stats_tests.c @@ -1,3 +1,9 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + * Copyright © 2020 rsiddharth + */ + #include "minunit.h" #include #include -- cgit v1.2.3