From d4560b5741a09fa3b2fe06fc2e87c83604251d86 Mon Sep 17 00:00:00 2001 From: Francesco Cozzuto Date: Thu, 28 Mar 2024 13:11:16 +0100 Subject: [PATCH] Add UNLICENSE --- UNLICENSE | 24 +++++++++++++++++++ makefile | 2 +- .../lock_free_queue_test.c | 2 +- tinycthread.c => test/tinycthread.c | 0 tinycthread.h => test/tinycthread.h | 0 5 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 UNLICENSE rename lock_free_queue_test.c => test/lock_free_queue_test.c (98%) rename tinycthread.c => test/tinycthread.c (100%) rename tinycthread.h => test/tinycthread.h (100%) diff --git a/UNLICENSE b/UNLICENSE new file mode 100644 index 0000000..00d2e13 --- /dev/null +++ b/UNLICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +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 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. + +For more information, please refer to \ No newline at end of file diff --git a/makefile b/makefile index 75b4da7..3419746 100644 --- a/makefile +++ b/makefile @@ -1,3 +1,3 @@ all: - gcc lock_free_queue_test.c lock_free_queue.c tinycthread.c -o test_queue -ggdb -Wall -Wextra #-fsanitize=thread \ No newline at end of file + gcc test/lock_free_queue_test.c lock_free_queue.c test/tinycthread.c -o test_queue -ggdb -Wall -Wextra #-fsanitize=thread \ No newline at end of file diff --git a/lock_free_queue_test.c b/test/lock_free_queue_test.c similarity index 98% rename from lock_free_queue_test.c rename to test/lock_free_queue_test.c index 9410ca1..01cf56e 100644 --- a/lock_free_queue_test.c +++ b/test/lock_free_queue_test.c @@ -2,7 +2,7 @@ #include #include #include "tinycthread.h" -#include "lock_free_queue.h" +#include "../lock_free_queue.h" #define NUM_THREADS 30 diff --git a/tinycthread.c b/test/tinycthread.c similarity index 100% rename from tinycthread.c rename to test/tinycthread.c diff --git a/tinycthread.h b/test/tinycthread.h similarity index 100% rename from tinycthread.h rename to test/tinycthread.h