nserver

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 83be615f7b034c7a1e6c8c75bf3450c4eeaa7d22
parent 0278969f9663379ba2311f70caf4ea97e75c021c
Author: rsiddharth <s@ricketyspace.net>
Date:   Thu, 16 Apr 2020 22:17:32 -0400

nserver: Add license text to source files.

Diffstat:
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 @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth <s@ricketyspace.net> + */ + #include <nserve.h> #include <nsocket.h> diff --git 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 @@ -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 @@ -1,3 +1,9 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + * Copyright © 2020 rsiddharth <s@ricketyspace.net> + */ + #include <darray.h> #include <darray_algos.h> #include <assert.h> diff --git 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 <s@ricketyspace.net> + */ + #ifndef _DArray_h #define _DArray_h #include <stdlib.h> diff --git 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 <s@ricketyspace.net> + */ + #include <darray_algos.h> int DArray_qsort(DArray *array, DArray_compare cmp) diff --git 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 <s@ricketyspace.net> + */ + #ifndef darray_algos_h #define darray_algos_h diff --git a/nserver/src/db.c b/nserver/src/db.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth <s@ricketyspace.net> + */ + #include <db.h> static const char *DB_FILE = "nserver.db"; diff --git a/nserver/src/db.h b/nserver/src/db.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth <s@ricketyspace.net> + */ + #ifndef _db_h #define _db_h diff --git 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 @@ -1,3 +1,9 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2010, Zed A. Shaw. + * Copyright © 2020 rsiddharth <s@ricketyspace.net> + */ + #undef NDEBUG #include <stdint.h> #include <darray_algos.h> diff --git 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 <s@ricketyspace.net> + */ + #ifndef _lcthw_Hashmap_h #define _lcthw_Hashmap_h diff --git a/nserver/src/ncmd.c b/nserver/src/ncmd.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth <s@ricketyspace.net> + */ + #include <ncmd.h> int sanitize(char *cmd) diff --git a/nserver/src/ncmd.h b/nserver/src/ncmd.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth <s@ricketyspace.net> + */ + #ifndef _ncmd_h #define _ncmd_h diff --git a/nserver/src/nserve.c b/nserver/src/nserve.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth <s@ricketyspace.net> + */ + #include <nserve.h> int slurpsock(char *buf, size_t buf_sz, int sock) diff --git a/nserver/src/nserve.h b/nserver/src/nserve.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth <s@ricketyspace.net> + */ + #ifndef _nserve_h #define _nserve_h diff --git a/nserver/src/nsocket.c b/nserver/src/nsocket.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth <s@ricketyspace.net> + */ + #include <nsocket.h> int get_socket() diff --git a/nserver/src/nsocket.h b/nserver/src/nsocket.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth <s@ricketyspace.net> + */ + #ifndef _nsocket_h #define _nsocket_h diff --git a/nserver/src/protocol.c b/nserver/src/protocol.c @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth <s@ricketyspace.net> + */ + #include <protocol.h> static TSTree *tst; diff --git a/nserver/src/protocol.h b/nserver/src/protocol.h @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth <s@ricketyspace.net> + */ + #ifndef _protocol_h #define _protocol_h diff --git 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 <s@ricketyspace.net> + */ + #include <math.h> #include <stats.h> diff --git 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 <s@ricketyspace.net> + */ + #ifndef stats_h #define stats_h diff --git 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 <s@ricketyspace.net> + */ + #include <stdlib.h> #include <stdio.h> #include <string.h> diff --git 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 <s@ricketyspace.net> + */ + #ifndef _TSTree_h #define _TSTree_h diff --git 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 <s@ricketyspace.net> + */ + #include "minunit.h" #include <db.h> diff --git 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 @@ -1,3 +1,8 @@ +/* SPDX-License-Identifier: BSD-3-Clause */ +/* + * Copyright © 2020 rsiddharth <s@ricketyspace.net> + */ + #include "minunit.h" #include <ncmd.h> diff --git 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 <s@ricketyspace.net> + */ + #include "minunit.h" #include <protocol.h> diff --git 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 <s@ricketyspace.net> + */ + #include "minunit.h" #include <stats.h> #include <string.h>