From 1c87adb3dde9011cc0ac576b5ec622a7c845a06a Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Wed, 5 Jul 2023 11:17:24 -0400 Subject: [PATCH] examples: use SPDX identifiers The SPDX identifiers [1] are a legally binding shorthand, which can be used instead of the full boiler plate text. This is another step towards implementing the full REUSE spec [2] to help with copyright and licensing audits and compliance. This will reduce a lot a manual work required for the licensing audit required in Debian on each update. Relicense all examples from 'Boehm-GC' to the more well-known and functionnaly identical 'MIT' license. This is possible since all the examples were written by Mathieu Desnoyers and only a few trivial fixes from external contributors were applied over the years. [1] https://spdx.org/ids-how [2] https://reuse.software/tutorial/ Change-Id: I052ab4fca0f8979113f3bae3b78982eb30f50c58 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- doc/examples/Makefile.examples.template | 13 +++--------- doc/examples/dist-files/Makefile | 13 +++--------- doc/examples/hlist/Makefile | 13 +++--------- .../hlist/Makefile.cds_hlist_add_head_rcu | 13 +++--------- doc/examples/hlist/Makefile.cds_hlist_del_rcu | 13 +++--------- .../Makefile.cds_hlist_for_each_entry_rcu | 13 +++--------- .../hlist/Makefile.cds_hlist_for_each_rcu | 13 +++--------- doc/examples/hlist/cds_hlist_add_head_rcu.c | 15 ++++---------- doc/examples/hlist/cds_hlist_del_rcu.c | 15 ++++---------- .../hlist/cds_hlist_for_each_entry_rcu.c | 15 ++++---------- doc/examples/hlist/cds_hlist_for_each_rcu.c | 15 ++++---------- doc/examples/lfstack/Makefile | 13 +++--------- .../lfstack/Makefile.cds_lfs_pop_all_blocking | 13 +++--------- .../lfstack/Makefile.cds_lfs_pop_blocking | 13 +++--------- doc/examples/lfstack/Makefile.cds_lfs_push | 13 +++--------- .../lfstack/cds_lfs_pop_all_blocking.c | 15 ++++---------- doc/examples/lfstack/cds_lfs_pop_blocking.c | 15 ++++---------- doc/examples/lfstack/cds_lfs_push.c | 15 ++++---------- doc/examples/list/Makefile | 13 +++--------- doc/examples/list/Makefile.cds_list_add_rcu | 13 +++--------- .../list/Makefile.cds_list_add_tail_rcu | 13 +++--------- doc/examples/list/Makefile.cds_list_del_rcu | 13 +++--------- .../list/Makefile.cds_list_for_each_entry_rcu | 13 +++--------- .../list/Makefile.cds_list_for_each_rcu | 13 +++--------- .../list/Makefile.cds_list_replace_rcu | 13 +++--------- doc/examples/list/cds_list_add_rcu.c | 15 ++++---------- doc/examples/list/cds_list_add_tail_rcu.c | 15 ++++---------- doc/examples/list/cds_list_del_rcu.c | 15 ++++---------- .../list/cds_list_for_each_entry_rcu.c | 15 ++++---------- doc/examples/list/cds_list_for_each_rcu.c | 15 ++++---------- doc/examples/list/cds_list_replace_rcu.c | 15 ++++---------- doc/examples/rculfhash/Makefile | 13 +++--------- doc/examples/rculfhash/Makefile.cds_lfht_add | 13 +++--------- .../rculfhash/Makefile.cds_lfht_add_replace | 13 +++--------- .../rculfhash/Makefile.cds_lfht_add_unique | 13 +++--------- doc/examples/rculfhash/Makefile.cds_lfht_del | 13 +++--------- .../rculfhash/Makefile.cds_lfht_destroy | 13 +++--------- ...Makefile.cds_lfht_for_each_entry_duplicate | 13 +++--------- .../rculfhash/Makefile.cds_lfht_lookup | 13 +++--------- doc/examples/rculfhash/cds_lfht_add.c | 15 ++++---------- doc/examples/rculfhash/cds_lfht_add_replace.c | 15 ++++---------- doc/examples/rculfhash/cds_lfht_add_unique.c | 15 ++++---------- doc/examples/rculfhash/cds_lfht_del.c | 15 ++++---------- doc/examples/rculfhash/cds_lfht_destroy.c | 15 ++++---------- .../cds_lfht_for_each_entry_duplicate.c | 15 ++++---------- doc/examples/rculfhash/cds_lfht_lookup.c | 15 ++++---------- doc/examples/rculfhash/jhash.h | 17 ++++------------ doc/examples/rculfqueue/Makefile | 13 +++--------- .../rculfqueue/Makefile.cds_lfq_dequeue | 13 +++--------- .../rculfqueue/Makefile.cds_lfq_enqueue | 13 +++--------- doc/examples/rculfqueue/cds_lfq_dequeue.c | 15 ++++---------- doc/examples/rculfqueue/cds_lfq_enqueue.c | 15 ++++---------- doc/examples/urcu-flavors/Makefile | 13 +++--------- doc/examples/urcu-flavors/Makefile.bp | 13 +++--------- doc/examples/urcu-flavors/Makefile.mb | 13 +++--------- doc/examples/urcu-flavors/Makefile.membarrier | 13 +++--------- doc/examples/urcu-flavors/Makefile.qsbr | 13 +++--------- doc/examples/urcu-flavors/Makefile.signal | 13 +++--------- doc/examples/urcu-flavors/bp.c | 20 +++---------------- doc/examples/urcu-flavors/mb.c | 20 +++---------------- doc/examples/urcu-flavors/membarrier.c | 20 +++---------------- doc/examples/urcu-flavors/qsbr.c | 20 +++---------------- doc/examples/urcu-flavors/signal.c | 20 +++---------------- doc/examples/wfcqueue/Makefile | 13 +++--------- .../wfcqueue/Makefile.cds_wfcq_dequeue | 13 +++--------- .../wfcqueue/Makefile.cds_wfcq_enqueue | 13 +++--------- .../wfcqueue/Makefile.cds_wfcq_splice | 13 +++--------- doc/examples/wfcqueue/cds_wfcq_dequeue.c | 15 ++++---------- doc/examples/wfcqueue/cds_wfcq_enqueue.c | 15 ++++---------- doc/examples/wfcqueue/cds_wfcq_splice.c | 15 ++++---------- doc/examples/wfstack/Makefile | 13 +++--------- doc/examples/wfstack/Makefile.cds_wfs_pop | 13 +++--------- .../wfstack/Makefile.cds_wfs_pop_all_blocking | 13 +++--------- doc/examples/wfstack/Makefile.cds_wfs_push | 13 +++--------- doc/examples/wfstack/cds_wfs_pop.c | 15 ++++---------- .../wfstack/cds_wfs_pop_all_blocking.c | 15 ++++---------- doc/examples/wfstack/cds_wfs_push.c | 15 ++++---------- 77 files changed, 260 insertions(+), 836 deletions(-) diff --git a/doc/examples/Makefile.examples.template b/doc/examples/Makefile.examples.template index e6196f5..21cac7b 100644 --- a/doc/examples/Makefile.examples.template +++ b/doc/examples/Makefile.examples.template @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. LOCAL_CFLAGS := -g -O2 -Wall diff --git a/doc/examples/dist-files/Makefile b/doc/examples/dist-files/Makefile index 08f3728..676d9b3 100644 --- a/doc/examples/dist-files/Makefile +++ b/doc/examples/dist-files/Makefile @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. all: diff --git a/doc/examples/hlist/Makefile b/doc/examples/hlist/Makefile index 4256035..c06be16 100644 --- a/doc/examples/hlist/Makefile +++ b/doc/examples/hlist/Makefile @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. all: diff --git a/doc/examples/hlist/Makefile.cds_hlist_add_head_rcu b/doc/examples/hlist/Makefile.cds_hlist_add_head_rcu index f1bf7d7..1f225fd 100644 --- a/doc/examples/hlist/Makefile.cds_hlist_add_head_rcu +++ b/doc/examples/hlist/Makefile.cds_hlist_add_head_rcu @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_hlist_add_head_rcu diff --git a/doc/examples/hlist/Makefile.cds_hlist_del_rcu b/doc/examples/hlist/Makefile.cds_hlist_del_rcu index 642b04d..e042ffa 100644 --- a/doc/examples/hlist/Makefile.cds_hlist_del_rcu +++ b/doc/examples/hlist/Makefile.cds_hlist_del_rcu @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_hlist_del_rcu diff --git a/doc/examples/hlist/Makefile.cds_hlist_for_each_entry_rcu b/doc/examples/hlist/Makefile.cds_hlist_for_each_entry_rcu index 035ecbf..86380a5 100644 --- a/doc/examples/hlist/Makefile.cds_hlist_for_each_entry_rcu +++ b/doc/examples/hlist/Makefile.cds_hlist_for_each_entry_rcu @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_hlist_for_each_entry_rcu diff --git a/doc/examples/hlist/Makefile.cds_hlist_for_each_rcu b/doc/examples/hlist/Makefile.cds_hlist_for_each_rcu index 23d0a0c..9b40d8a 100644 --- a/doc/examples/hlist/Makefile.cds_hlist_for_each_rcu +++ b/doc/examples/hlist/Makefile.cds_hlist_for_each_rcu @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_hlist_for_each_rcu diff --git a/doc/examples/hlist/cds_hlist_add_head_rcu.c b/doc/examples/hlist/cds_hlist_add_head_rcu.c index 3aece5e..6087bae 100644 --- a/doc/examples/hlist/cds_hlist_add_head_rcu.c +++ b/doc/examples/hlist/cds_hlist_add_head_rcu.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to add into a non-circular linked-list safely * against concurrent RCU traversals. */ diff --git a/doc/examples/hlist/cds_hlist_del_rcu.c b/doc/examples/hlist/cds_hlist_del_rcu.c index 28b6c42..1ef229f 100644 --- a/doc/examples/hlist/cds_hlist_del_rcu.c +++ b/doc/examples/hlist/cds_hlist_del_rcu.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to remove from a non-circular linked-list * safely against concurrent RCU traversals. */ diff --git a/doc/examples/hlist/cds_hlist_for_each_entry_rcu.c b/doc/examples/hlist/cds_hlist_for_each_entry_rcu.c index 1be4ac5..bf675fd 100644 --- a/doc/examples/hlist/cds_hlist_for_each_entry_rcu.c +++ b/doc/examples/hlist/cds_hlist_for_each_entry_rcu.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to do a non-circular RCU linked list * traversal, safely against concurrent RCU updates. */ diff --git a/doc/examples/hlist/cds_hlist_for_each_rcu.c b/doc/examples/hlist/cds_hlist_for_each_rcu.c index 1628c66..4642054 100644 --- a/doc/examples/hlist/cds_hlist_for_each_rcu.c +++ b/doc/examples/hlist/cds_hlist_for_each_rcu.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to do a non-circular RCU linked list * traversal, safely against concurrent RCU updates. * cds_hlist_for_each_rcu() iterates on struct cds_hlist_node, and thus, diff --git a/doc/examples/lfstack/Makefile b/doc/examples/lfstack/Makefile index 42398ed..189a7bd 100644 --- a/doc/examples/lfstack/Makefile +++ b/doc/examples/lfstack/Makefile @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. all: diff --git a/doc/examples/lfstack/Makefile.cds_lfs_pop_all_blocking b/doc/examples/lfstack/Makefile.cds_lfs_pop_all_blocking index 9ee48d5..07a07d7 100644 --- a/doc/examples/lfstack/Makefile.cds_lfs_pop_all_blocking +++ b/doc/examples/lfstack/Makefile.cds_lfs_pop_all_blocking @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_lfs_pop_all_blocking diff --git a/doc/examples/lfstack/Makefile.cds_lfs_pop_blocking b/doc/examples/lfstack/Makefile.cds_lfs_pop_blocking index da43458..f5fa1c8 100644 --- a/doc/examples/lfstack/Makefile.cds_lfs_pop_blocking +++ b/doc/examples/lfstack/Makefile.cds_lfs_pop_blocking @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_lfs_pop_blocking diff --git a/doc/examples/lfstack/Makefile.cds_lfs_push b/doc/examples/lfstack/Makefile.cds_lfs_push index a2078c4..8908afe 100644 --- a/doc/examples/lfstack/Makefile.cds_lfs_push +++ b/doc/examples/lfstack/Makefile.cds_lfs_push @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_lfs_push diff --git a/doc/examples/lfstack/cds_lfs_pop_all_blocking.c b/doc/examples/lfstack/cds_lfs_pop_all_blocking.c index f6fcfb7..290fe80 100644 --- a/doc/examples/lfstack/cds_lfs_pop_all_blocking.c +++ b/doc/examples/lfstack/cds_lfs_pop_all_blocking.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to pop all nodes from a lfstack. */ diff --git a/doc/examples/lfstack/cds_lfs_pop_blocking.c b/doc/examples/lfstack/cds_lfs_pop_blocking.c index f356423..25d6381 100644 --- a/doc/examples/lfstack/cds_lfs_pop_blocking.c +++ b/doc/examples/lfstack/cds_lfs_pop_blocking.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to pop nodes from a lfstack. */ diff --git a/doc/examples/lfstack/cds_lfs_push.c b/doc/examples/lfstack/cds_lfs_push.c index bdb160f..b3c5b93 100644 --- a/doc/examples/lfstack/cds_lfs_push.c +++ b/doc/examples/lfstack/cds_lfs_push.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to push nodes into a lfstack. */ diff --git a/doc/examples/list/Makefile b/doc/examples/list/Makefile index 79a09e3..034a593 100644 --- a/doc/examples/list/Makefile +++ b/doc/examples/list/Makefile @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. all: diff --git a/doc/examples/list/Makefile.cds_list_add_rcu b/doc/examples/list/Makefile.cds_list_add_rcu index faf2c94..91ab903 100644 --- a/doc/examples/list/Makefile.cds_list_add_rcu +++ b/doc/examples/list/Makefile.cds_list_add_rcu @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_list_add_rcu diff --git a/doc/examples/list/Makefile.cds_list_add_tail_rcu b/doc/examples/list/Makefile.cds_list_add_tail_rcu index 3031024..6a60c03 100644 --- a/doc/examples/list/Makefile.cds_list_add_tail_rcu +++ b/doc/examples/list/Makefile.cds_list_add_tail_rcu @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_list_add_tail_rcu diff --git a/doc/examples/list/Makefile.cds_list_del_rcu b/doc/examples/list/Makefile.cds_list_del_rcu index 74cef2b..1509267 100644 --- a/doc/examples/list/Makefile.cds_list_del_rcu +++ b/doc/examples/list/Makefile.cds_list_del_rcu @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_list_del_rcu diff --git a/doc/examples/list/Makefile.cds_list_for_each_entry_rcu b/doc/examples/list/Makefile.cds_list_for_each_entry_rcu index 911301e..af08056 100644 --- a/doc/examples/list/Makefile.cds_list_for_each_entry_rcu +++ b/doc/examples/list/Makefile.cds_list_for_each_entry_rcu @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_list_for_each_entry_rcu diff --git a/doc/examples/list/Makefile.cds_list_for_each_rcu b/doc/examples/list/Makefile.cds_list_for_each_rcu index 2f2f02f..54bb040 100644 --- a/doc/examples/list/Makefile.cds_list_for_each_rcu +++ b/doc/examples/list/Makefile.cds_list_for_each_rcu @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_list_for_each_rcu diff --git a/doc/examples/list/Makefile.cds_list_replace_rcu b/doc/examples/list/Makefile.cds_list_replace_rcu index 5e130b3..a7cc56d 100644 --- a/doc/examples/list/Makefile.cds_list_replace_rcu +++ b/doc/examples/list/Makefile.cds_list_replace_rcu @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_list_replace_rcu diff --git a/doc/examples/list/cds_list_add_rcu.c b/doc/examples/list/cds_list_add_rcu.c index 3eb062a..13da5b3 100644 --- a/doc/examples/list/cds_list_add_rcu.c +++ b/doc/examples/list/cds_list_add_rcu.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to add into a linked-list safely against * concurrent RCU traversals. */ diff --git a/doc/examples/list/cds_list_add_tail_rcu.c b/doc/examples/list/cds_list_add_tail_rcu.c index f7490af..475cf66 100644 --- a/doc/examples/list/cds_list_add_tail_rcu.c +++ b/doc/examples/list/cds_list_add_tail_rcu.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to add into tail of a linked-list safely * against concurrent RCU traversals. */ diff --git a/doc/examples/list/cds_list_del_rcu.c b/doc/examples/list/cds_list_del_rcu.c index d6b3ab0..b4e4c13 100644 --- a/doc/examples/list/cds_list_del_rcu.c +++ b/doc/examples/list/cds_list_del_rcu.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to remove from a linked-list safely against * concurrent RCU traversals. */ diff --git a/doc/examples/list/cds_list_for_each_entry_rcu.c b/doc/examples/list/cds_list_for_each_entry_rcu.c index 5deb4a5..ef9e954 100644 --- a/doc/examples/list/cds_list_for_each_entry_rcu.c +++ b/doc/examples/list/cds_list_for_each_entry_rcu.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to do a RCU linked list traversal, safely * against concurrent RCU updates. */ diff --git a/doc/examples/list/cds_list_for_each_rcu.c b/doc/examples/list/cds_list_for_each_rcu.c index 2e66719..044aa5e 100644 --- a/doc/examples/list/cds_list_for_each_rcu.c +++ b/doc/examples/list/cds_list_for_each_rcu.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to do a RCU linked list traversal, safely * against concurrent RCU updates. cds_list_for_each_rcu() iterates on * struct cds_list_head, and thus, either caa_container_of() or diff --git a/doc/examples/list/cds_list_replace_rcu.c b/doc/examples/list/cds_list_replace_rcu.c index aa6161c..d17084b 100644 --- a/doc/examples/list/cds_list_replace_rcu.c +++ b/doc/examples/list/cds_list_replace_rcu.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to replace a node within a linked-list safely * against concurrent RCU traversals. */ diff --git a/doc/examples/rculfhash/Makefile b/doc/examples/rculfhash/Makefile index c64f40a..29b28f7 100644 --- a/doc/examples/rculfhash/Makefile +++ b/doc/examples/rculfhash/Makefile @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. all: diff --git a/doc/examples/rculfhash/Makefile.cds_lfht_add b/doc/examples/rculfhash/Makefile.cds_lfht_add index 9fab2b6..45333f5 100644 --- a/doc/examples/rculfhash/Makefile.cds_lfht_add +++ b/doc/examples/rculfhash/Makefile.cds_lfht_add @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_lfht_add diff --git a/doc/examples/rculfhash/Makefile.cds_lfht_add_replace b/doc/examples/rculfhash/Makefile.cds_lfht_add_replace index dcd253a..6147a41 100644 --- a/doc/examples/rculfhash/Makefile.cds_lfht_add_replace +++ b/doc/examples/rculfhash/Makefile.cds_lfht_add_replace @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_lfht_add_replace diff --git a/doc/examples/rculfhash/Makefile.cds_lfht_add_unique b/doc/examples/rculfhash/Makefile.cds_lfht_add_unique index c74c61e..a1772d3 100644 --- a/doc/examples/rculfhash/Makefile.cds_lfht_add_unique +++ b/doc/examples/rculfhash/Makefile.cds_lfht_add_unique @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_lfht_add_unique diff --git a/doc/examples/rculfhash/Makefile.cds_lfht_del b/doc/examples/rculfhash/Makefile.cds_lfht_del index 6377490..982b0f7 100644 --- a/doc/examples/rculfhash/Makefile.cds_lfht_del +++ b/doc/examples/rculfhash/Makefile.cds_lfht_del @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_lfht_del diff --git a/doc/examples/rculfhash/Makefile.cds_lfht_destroy b/doc/examples/rculfhash/Makefile.cds_lfht_destroy index d797893..deda37a 100644 --- a/doc/examples/rculfhash/Makefile.cds_lfht_destroy +++ b/doc/examples/rculfhash/Makefile.cds_lfht_destroy @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_lfht_destroy diff --git a/doc/examples/rculfhash/Makefile.cds_lfht_for_each_entry_duplicate b/doc/examples/rculfhash/Makefile.cds_lfht_for_each_entry_duplicate index 7020b14..fd5d38d 100644 --- a/doc/examples/rculfhash/Makefile.cds_lfht_for_each_entry_duplicate +++ b/doc/examples/rculfhash/Makefile.cds_lfht_for_each_entry_duplicate @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_lfht_for_each_entry_duplicate diff --git a/doc/examples/rculfhash/Makefile.cds_lfht_lookup b/doc/examples/rculfhash/Makefile.cds_lfht_lookup index 79eb6c4..8330c9c 100644 --- a/doc/examples/rculfhash/Makefile.cds_lfht_lookup +++ b/doc/examples/rculfhash/Makefile.cds_lfht_lookup @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_lfht_lookup diff --git a/doc/examples/rculfhash/cds_lfht_add.c b/doc/examples/rculfhash/cds_lfht_add.c index 67b00f4..927e38d 100644 --- a/doc/examples/rculfhash/cds_lfht_add.c +++ b/doc/examples/rculfhash/cds_lfht_add.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to add nodes (allowing duplicate keys) into a * RCU lock-free hash table. * This hash table requires using a RCU scheme. diff --git a/doc/examples/rculfhash/cds_lfht_add_replace.c b/doc/examples/rculfhash/cds_lfht_add_replace.c index 363ea5b..ecab570 100644 --- a/doc/examples/rculfhash/cds_lfht_add_replace.c +++ b/doc/examples/rculfhash/cds_lfht_add_replace.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to add nodes into a RCU lock-free hash table * with cds_lfht_add_replace(), which replaces existing nodes with the * same key if found. diff --git a/doc/examples/rculfhash/cds_lfht_add_unique.c b/doc/examples/rculfhash/cds_lfht_add_unique.c index d6044c2..326e19b 100644 --- a/doc/examples/rculfhash/cds_lfht_add_unique.c +++ b/doc/examples/rculfhash/cds_lfht_add_unique.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to add unique nodes into a RCU lock-free hash * table. We use a "seqnum" field to show which node is staying in the * hash table. This hash table requires using a RCU scheme. diff --git a/doc/examples/rculfhash/cds_lfht_del.c b/doc/examples/rculfhash/cds_lfht_del.c index 9dab8a5..4eb3486 100644 --- a/doc/examples/rculfhash/cds_lfht_del.c +++ b/doc/examples/rculfhash/cds_lfht_del.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to remove nodes from a RCU lock-free hash table. * This hash table requires using a RCU scheme. */ diff --git a/doc/examples/rculfhash/cds_lfht_destroy.c b/doc/examples/rculfhash/cds_lfht_destroy.c index 56b9df6..f0c8219 100644 --- a/doc/examples/rculfhash/cds_lfht_destroy.c +++ b/doc/examples/rculfhash/cds_lfht_destroy.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to use cds_lfht_destroy() to clear memory used * by a a RCU lock-free hash table. This hash table requires using a * RCU scheme. diff --git a/doc/examples/rculfhash/cds_lfht_for_each_entry_duplicate.c b/doc/examples/rculfhash/cds_lfht_for_each_entry_duplicate.c index 00ebfa1..14f39e1 100644 --- a/doc/examples/rculfhash/cds_lfht_for_each_entry_duplicate.c +++ b/doc/examples/rculfhash/cds_lfht_for_each_entry_duplicate.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to iterate on duplicate keys within a RCU * lock-free hash table. This hash table requires using a RCU scheme. */ diff --git a/doc/examples/rculfhash/cds_lfht_lookup.c b/doc/examples/rculfhash/cds_lfht_lookup.c index 8eeacf7..6b06095 100644 --- a/doc/examples/rculfhash/cds_lfht_lookup.c +++ b/doc/examples/rculfhash/cds_lfht_lookup.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to lookup keys within a RCU lock-free hash * table. This hash table requires using a RCU scheme. */ diff --git a/doc/examples/rculfhash/jhash.h b/doc/examples/rculfhash/jhash.h index f50a0da..23812ce 100644 --- a/doc/examples/rculfhash/jhash.h +++ b/doc/examples/rculfhash/jhash.h @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2009-2012 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + #ifndef _JHASH_H #define _JHASH_H @@ -6,20 +10,7 @@ #endif /* - * jhash.h - * * Example hash function. - * - * Copyright 2009-2012 - Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. */ /* diff --git a/doc/examples/rculfqueue/Makefile b/doc/examples/rculfqueue/Makefile index b964d23..445a3ad 100644 --- a/doc/examples/rculfqueue/Makefile +++ b/doc/examples/rculfqueue/Makefile @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. all: diff --git a/doc/examples/rculfqueue/Makefile.cds_lfq_dequeue b/doc/examples/rculfqueue/Makefile.cds_lfq_dequeue index c083873..e893b5b 100644 --- a/doc/examples/rculfqueue/Makefile.cds_lfq_dequeue +++ b/doc/examples/rculfqueue/Makefile.cds_lfq_dequeue @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_lfq_dequeue diff --git a/doc/examples/rculfqueue/Makefile.cds_lfq_enqueue b/doc/examples/rculfqueue/Makefile.cds_lfq_enqueue index b8f1ff5..c84c5c4 100644 --- a/doc/examples/rculfqueue/Makefile.cds_lfq_enqueue +++ b/doc/examples/rculfqueue/Makefile.cds_lfq_enqueue @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_lfq_enqueue diff --git a/doc/examples/rculfqueue/cds_lfq_dequeue.c b/doc/examples/rculfqueue/cds_lfq_dequeue.c index e81e105..67d766a 100644 --- a/doc/examples/rculfqueue/cds_lfq_dequeue.c +++ b/doc/examples/rculfqueue/cds_lfq_dequeue.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to dequeue nodes from a RCU lock-free queue. * This queue requires using a RCU scheme. */ diff --git a/doc/examples/rculfqueue/cds_lfq_enqueue.c b/doc/examples/rculfqueue/cds_lfq_enqueue.c index 1202467..b0ea030 100644 --- a/doc/examples/rculfqueue/cds_lfq_enqueue.c +++ b/doc/examples/rculfqueue/cds_lfq_enqueue.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to enqueue nodes into a RCU lock-free queue. * This queue requires using a RCU scheme. */ diff --git a/doc/examples/urcu-flavors/Makefile b/doc/examples/urcu-flavors/Makefile index fedadb2..221d51c 100644 --- a/doc/examples/urcu-flavors/Makefile +++ b/doc/examples/urcu-flavors/Makefile @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. all: diff --git a/doc/examples/urcu-flavors/Makefile.bp b/doc/examples/urcu-flavors/Makefile.bp index 5170f02..b42fe4d 100644 --- a/doc/examples/urcu-flavors/Makefile.bp +++ b/doc/examples/urcu-flavors/Makefile.bp @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = bp diff --git a/doc/examples/urcu-flavors/Makefile.mb b/doc/examples/urcu-flavors/Makefile.mb index 7a4e2f9..b5d9ffb 100644 --- a/doc/examples/urcu-flavors/Makefile.mb +++ b/doc/examples/urcu-flavors/Makefile.mb @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = mb diff --git a/doc/examples/urcu-flavors/Makefile.membarrier b/doc/examples/urcu-flavors/Makefile.membarrier index 977078e..64dfceb 100644 --- a/doc/examples/urcu-flavors/Makefile.membarrier +++ b/doc/examples/urcu-flavors/Makefile.membarrier @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = membarrier diff --git a/doc/examples/urcu-flavors/Makefile.qsbr b/doc/examples/urcu-flavors/Makefile.qsbr index dc28ddd..b50ce82 100644 --- a/doc/examples/urcu-flavors/Makefile.qsbr +++ b/doc/examples/urcu-flavors/Makefile.qsbr @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = qsbr diff --git a/doc/examples/urcu-flavors/Makefile.signal b/doc/examples/urcu-flavors/Makefile.signal index 6e2c0db..eeebd8c 100644 --- a/doc/examples/urcu-flavors/Makefile.signal +++ b/doc/examples/urcu-flavors/Makefile.signal @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = signal diff --git a/doc/examples/urcu-flavors/bp.c b/doc/examples/urcu-flavors/bp.c index 9032b9b..0bbc303 100644 --- a/doc/examples/urcu-flavors/bp.c +++ b/doc/examples/urcu-flavors/bp.c @@ -1,20 +1,6 @@ -/* - * Copyright (C) 2013 Mathieu Desnoyers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: LGPL-2.1-or-later #include #include diff --git a/doc/examples/urcu-flavors/mb.c b/doc/examples/urcu-flavors/mb.c index 5280598..9c46f2f 100644 --- a/doc/examples/urcu-flavors/mb.c +++ b/doc/examples/urcu-flavors/mb.c @@ -1,20 +1,6 @@ -/* - * Copyright (C) 2013 Mathieu Desnoyers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: LGPL-2.1-or-later #include #include diff --git a/doc/examples/urcu-flavors/membarrier.c b/doc/examples/urcu-flavors/membarrier.c index 2e84734..dad39cb 100644 --- a/doc/examples/urcu-flavors/membarrier.c +++ b/doc/examples/urcu-flavors/membarrier.c @@ -1,20 +1,6 @@ -/* - * Copyright (C) 2013 Mathieu Desnoyers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: LGPL-2.1-or-later #include #include diff --git a/doc/examples/urcu-flavors/qsbr.c b/doc/examples/urcu-flavors/qsbr.c index 661ecae..0b5b1a9 100644 --- a/doc/examples/urcu-flavors/qsbr.c +++ b/doc/examples/urcu-flavors/qsbr.c @@ -1,20 +1,6 @@ -/* - * Copyright (C) 2013 Mathieu Desnoyers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: LGPL-2.1-or-later #include #include diff --git a/doc/examples/urcu-flavors/signal.c b/doc/examples/urcu-flavors/signal.c index c0a35b9..62c6cf2 100644 --- a/doc/examples/urcu-flavors/signal.c +++ b/doc/examples/urcu-flavors/signal.c @@ -1,20 +1,6 @@ -/* - * Copyright (C) 2013 Mathieu Desnoyers - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: LGPL-2.1-or-later #include #include diff --git a/doc/examples/wfcqueue/Makefile b/doc/examples/wfcqueue/Makefile index 4f0338e..317985d 100644 --- a/doc/examples/wfcqueue/Makefile +++ b/doc/examples/wfcqueue/Makefile @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. all: diff --git a/doc/examples/wfcqueue/Makefile.cds_wfcq_dequeue b/doc/examples/wfcqueue/Makefile.cds_wfcq_dequeue index 4f80a71..bbb303d 100644 --- a/doc/examples/wfcqueue/Makefile.cds_wfcq_dequeue +++ b/doc/examples/wfcqueue/Makefile.cds_wfcq_dequeue @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_wfcq_dequeue diff --git a/doc/examples/wfcqueue/Makefile.cds_wfcq_enqueue b/doc/examples/wfcqueue/Makefile.cds_wfcq_enqueue index aef5105..1145756 100644 --- a/doc/examples/wfcqueue/Makefile.cds_wfcq_enqueue +++ b/doc/examples/wfcqueue/Makefile.cds_wfcq_enqueue @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_wfcq_enqueue diff --git a/doc/examples/wfcqueue/Makefile.cds_wfcq_splice b/doc/examples/wfcqueue/Makefile.cds_wfcq_splice index 76b9f0a..17da52a 100644 --- a/doc/examples/wfcqueue/Makefile.cds_wfcq_splice +++ b/doc/examples/wfcqueue/Makefile.cds_wfcq_splice @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_wfcq_splice diff --git a/doc/examples/wfcqueue/cds_wfcq_dequeue.c b/doc/examples/wfcqueue/cds_wfcq_dequeue.c index 41a7baa..01a34a5 100644 --- a/doc/examples/wfcqueue/cds_wfcq_dequeue.c +++ b/doc/examples/wfcqueue/cds_wfcq_dequeue.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to dequeue nodes from a wfcqueue. */ diff --git a/doc/examples/wfcqueue/cds_wfcq_enqueue.c b/doc/examples/wfcqueue/cds_wfcq_enqueue.c index 850eea8..374ca72 100644 --- a/doc/examples/wfcqueue/cds_wfcq_enqueue.c +++ b/doc/examples/wfcqueue/cds_wfcq_enqueue.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to enqueue nodes into a wfcqueue. */ diff --git a/doc/examples/wfcqueue/cds_wfcq_splice.c b/doc/examples/wfcqueue/cds_wfcq_splice.c index cb6f76b..5e369e8 100644 --- a/doc/examples/wfcqueue/cds_wfcq_splice.c +++ b/doc/examples/wfcqueue/cds_wfcq_splice.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to splice nodes from a source wfcqueue A into * a destination wfcqueue B. */ diff --git a/doc/examples/wfstack/Makefile b/doc/examples/wfstack/Makefile index 098fb94..a0be0da 100644 --- a/doc/examples/wfstack/Makefile +++ b/doc/examples/wfstack/Makefile @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. all: diff --git a/doc/examples/wfstack/Makefile.cds_wfs_pop b/doc/examples/wfstack/Makefile.cds_wfs_pop index 24df951..69e91ff 100644 --- a/doc/examples/wfstack/Makefile.cds_wfs_pop +++ b/doc/examples/wfstack/Makefile.cds_wfs_pop @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_wfs_pop diff --git a/doc/examples/wfstack/Makefile.cds_wfs_pop_all_blocking b/doc/examples/wfstack/Makefile.cds_wfs_pop_all_blocking index 452fd9c..164c89b 100644 --- a/doc/examples/wfstack/Makefile.cds_wfs_pop_all_blocking +++ b/doc/examples/wfstack/Makefile.cds_wfs_pop_all_blocking @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_wfs_pop_all_blocking diff --git a/doc/examples/wfstack/Makefile.cds_wfs_push b/doc/examples/wfstack/Makefile.cds_wfs_push index 43f96c1..e29a35f 100644 --- a/doc/examples/wfstack/Makefile.cds_wfs_push +++ b/doc/examples/wfstack/Makefile.cds_wfs_push @@ -1,14 +1,7 @@ -# Copyright (C) 2013 Mathieu Desnoyers -# -# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED -# OR IMPLIED. ANY USE IS AT YOUR OWN RISK. -# -# Permission is hereby granted to use or copy this program for any -# purpose, provided the above notices are retained on all copies. -# Permission to modify the code and to distribute modified code is -# granted, provided the above notices are retained, and a notice that -# the code was modified is included with the above copyright notice. +# SPDX-FileCopyrightText: 2013 Mathieu Desnoyers # +# SPDX-License-Identifier: MIT + # This makefile is purposefully kept simple to support GNU and BSD make. EXAMPLE_NAME = cds_wfs_push diff --git a/doc/examples/wfstack/cds_wfs_pop.c b/doc/examples/wfstack/cds_wfs_pop.c index 68b81b9..93809ef 100644 --- a/doc/examples/wfstack/cds_wfs_pop.c +++ b/doc/examples/wfstack/cds_wfs_pop.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to pop nodes from a wfstack. */ diff --git a/doc/examples/wfstack/cds_wfs_pop_all_blocking.c b/doc/examples/wfstack/cds_wfs_pop_all_blocking.c index 794ced1..a9cc4ca 100644 --- a/doc/examples/wfstack/cds_wfs_pop_all_blocking.c +++ b/doc/examples/wfstack/cds_wfs_pop_all_blocking.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to pop all nodes from a wfstack. */ diff --git a/doc/examples/wfstack/cds_wfs_push.c b/doc/examples/wfstack/cds_wfs_push.c index 42bc5ec..69eb6ca 100644 --- a/doc/examples/wfstack/cds_wfs_push.c +++ b/doc/examples/wfstack/cds_wfs_push.c @@ -1,15 +1,8 @@ +// SPDX-FileCopyrightText: 2013 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + /* - * Copyright (C) 2013 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - * * This example shows how to push nodes into a wfstack. */ -- 2.34.1