summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* README -> README.mdHEADmasterrsiddharth2020-07-121-0/+0
|
* nserver.c: Update main.rsiddharth2020-04-191-0/+30
| | | | | | * bin/nserver.c (main): Setup sigaction. (setup_sigaction): Helper fuunction to setup sigaction. (handler_sigchild): Add sigaction handler.
* nserve.c: Update nserve.rsiddharth2020-04-192-2/+22
| | | | | | * src/nserve.c (nserve): Set receive timeout on the client socket. (set_recv_timeout): Helper function to set receive timeout on socket. * src/nserve.h: Include sys/time.h.
* ncmd.c: Update process.rsiddharth2020-04-191-0/+4
| | | | * src/ncmd.c (process): Clean up parts.
* protocol.c: Update ssload.rsiddharth2020-04-191-0/+3
| | | | * src/protocol.c (ssload): Cleanup st_str.
* protocol.c: Update ssstore.rsiddharth2020-04-191-1/+9
| | | | * src/protocol.c (ssstore): Clean up st_str.
* protocol.c: Update sslist.rsiddharth2020-04-191-1/+6
| | | | * src/protocol.c (sslist): Clean up ks_str.
* Update READMErsiddharth2020-04-181-1/+1
|
* Update README.rsiddharth2020-04-181-2/+5
|
* nserve.c: Update nserve.rsiddharth2020-04-181-15/+14
| | | | * src/nserve.c (nserve): Refactor how it ends itself.
* ncmd_tests.c: Update test_call_function.rsiddharth2020-04-181-1/+0
| | | | | * tests/ncmd_tests.c (test_call_function): Remove debug printf statement.
* ncmd.c: Update check_cmd.rsiddharth2020-04-182-2/+2
| | | | | | * src/ncmd.c (check_cmd): Change error message when command is invalid. * tests/ncmd_tests.c (test_check_cmd): Update test.
* Add .dir-locals.elrsiddharth2020-04-181-0/+5
|
* bin/statserve.c -> bin/nserver.crsiddharth2020-04-183-7/+7
|
* Update READMErsiddharth2020-04-171-5/+5
|
* Update LICENSErsiddharth2020-04-171-1/+1
|
* Update LICENSErsiddharth2020-04-171-1/+3
|
* README.md -> READMErsiddharth2020-04-171-0/+0
|
* Makefile: Add license header.rsiddharth2020-04-171-0/+6
|
* nserver/ -> ./rsiddharth2020-04-1738-0/+0
|
* nserver: Update .gitignore.rsiddharth2020-04-171-1/+8
|
* nserver: Add tests from liblcthw.rsiddharth2020-04-174-0/+906
| | | | Some tests were modified.
* nserver: Update TSTree_search_prefix.rsiddharth2020-04-171-2/+3
| | | | | * nserver/src/tstree.c (TSTree_search_prefix): Fix the largest prefix matching key instead of the shortest.
* nserver: Update stats_tests.rsiddharth2020-04-171-5/+64
| | | | Add test functins from liblcthw.
* nserver: Add license text to source files.rsiddharth2020-04-1729-8/+162
|
* nserver: Update LICENSE.rsiddharth2020-04-171-15/+28
|
* nserver/Makefile: Update CFLAGS.rsiddharth2020-04-171-1/+1
|
* Update nserver/README.mdrsiddharth2020-04-171-0/+60
|
* nserver: Update nserve.rsiddharth2020-04-171-2/+2
| | | | * nserver/src/nserve.c (nserve): Fix calloc calls.
* nserver: Update sslist.rsiddharth2020-04-171-2/+25
| | | | | * nserver/src/protocol.c (sslist): Don't bomb whent tst is null; just return "EMPTY". Also bcstrfree the c string return by bstr2cstr.
* nserver: ncmd.h: Add NS_LOAD.rsiddharth2020-04-173-2/+90
| | | | | | | | | * nserver/src/ncmd.c (find_function): Add handling to find NS_LOAD. (call_function): Add handling for NS_LOAD. * nserver/src/ncmd.h (FUNCTIONS): Add NS_LOAD * nserver/tests/ncmd_tests.c (test_find_function) (test_call_function, test_process): Update tests to check the correctness of NS_LOAD.
* nserver: Update ssload.rsiddharth2020-04-171-3/+7
| | | | | * nserver/src/protocol.c (ssload): Insert loaded record int TSTree only if the record was newly created.
* nserver: Update db_load.rsiddharth2020-04-171-0/+4
| | | | * nserver/src/db.c (db_load): close gdbm.
* nserver: Update mk_datumrsiddharth2020-04-171-1/+1
| | | | | * nserver/src/db.c (mk_datum): Set datum's dsize to exactly the length of the data.
* nserver: ncmd.h: Add NS_STORE.rsiddharth2020-04-173-0/+61
| | | | | | | | | * nserver/src/ncmd.c (find_function): Add handling to find NS_STORE. (call_function): Add handling for NS_STORE. * nserver/src/ncmd.h (FUNCTIONS): Add NS_STORE * nserver/tests/ncmd_tests.c (test_find_function) (test_call_function, test_process): Update tests to check the correctness of NS_STORE.
* nserver: Add ssload.rsiddharth2020-04-173-0/+58
| | | | | | * nserver/src/protocol.c (ssload): New function definition. * nserver/src/protocol.h (ssload): New function declaration. * nserver/tests/protocol_tests.c (test_ssload): New test.
* nserver: Update ssdump.rsiddharth2020-04-171-1/+1
| | | | * nserver/src/protocol.c (ssdump): Fix key strlen check.
* nserver: Update test_ssdelete.rsiddharth2020-04-171-1/+1
| | | | * nserver/tests/protocol_tests.c (test_ssdelete): Fix test.
* nserver: Add ssstore.rsiddharth2020-04-173-0/+39
| | | | | | * nserver/src/protocol.c (ssstore): New function definition. * nserver/src/protocol.h (ssstore): New function declaration. * nserver/tests/protocol_tests.c (test_ssstore): New test.
* nserver: Add db_load.rsiddharth2020-04-173-3/+55
| | | | | | * nserver/src/db.c (db_load): New function definition. * nserver/src/db.h (db_load): New function declaration. * nserver/tests/db_tests.c (test_db_load): New test.
* nserver: Add db_store.rsiddharth2020-04-173-0/+65
| | | | | | * nserver/src/db.c (db_store): New function definition. * nserver/src/db.h (db_store): New function declaration. * nserver/tests/db_tests.c (test_db_store): New test.
* nserver/src/db.c: Add mk_datum.rsiddharth2020-04-171-1/+22
| | | | * nserver/src/db.c (mk_datum): New function.
* nserver: Update db_init.rsiddharth2020-04-171-2/+6
| | | | | * nserver/src/db.c (db_open): New function. (db_init): Use db_open to get GDBM_FILE.
* nserver: Add Stats_unstringify.rsiddharth2020-04-173-4/+65
| | | | | | | | | | * nserver/src/stats.c (Stats_unstringify): New function definition. * nserver/src/stats.h (Stats_unstringify): New function declaration. * nserver/tests/stats_tests.c (tests_stats_unstringify): Test for Stats_unstringify. (tests_stats_unstringify): st_str is now a static variable. Don't free it; it's done in tests_stats_unstringify. (st_str): New static variable.
* nserver: Update Stats_stringify.rsiddharth2020-04-172-2/+2
| | | | | * nserver/src/stats.c (Stats_stringify): Change format of stringified Stats. * nserver/tests/stats_tests.c (test_stats_stringify): Update test.
* nserver: Add Stats_stringify.rsiddharth2020-04-173-0/+69
| | | | | | | * nserver/src/stats.c (Stats_stringify): New function definition. * nserver/src/stats.h (Stats_stringify): New function declaration. * nserver/tests/stats_tests.c (test_tests_stringify): Test for Stats_stringify.
* nserver: Add db.hrsiddharth2020-04-175-2/+56
| | | | | | | | | | * nserver/.gitignore: Add nserver.db * nserver/Makefile ($(PROGRAMS)) (tests): Link gdbm. (clean): Remove nserver.db * nserver/src/db.c (db_init): New function. * nserver/src/db.h (db_init): New function declaration. * nserver/tests/db_tests.c: Tests for db.h
* nserver/Makefile: Update clean.rsiddharth2020-04-171-1/+1
|
* nserver/Makefile: Update CFLAGS.rsiddharth2020-04-171-2/+2
| | | | Include /usr/local/include.
* nserver: Update call_function.rsiddharth2020-04-171-1/+1
| | | | Update sscreate error check.