Skip to content

Commit ed23fb9

Browse files
madolsonzuiderkwast
authored andcommitted
Consistent look and feel of licenses (#1788)
Use a consistent set of licenses for Valkey files. I took a look and applied sort of a "did we make a material change in this file?" and tried to be conservative in adding the trademark. We could also be liberal as well. Resolves: #1692. Included documentation about the licensing here: #1787. Licenses are now also always explicitly first, even about documentation files. Signed-off-by: Madelyn Olson <[email protected]>
1 parent 49b7408 commit ed23fb9

31 files changed

+128
-35
lines changed

COPYING

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# License 1
22

3+
SPDX-License-Identifier: BSD-3-Clause
4+
35
BSD 3-Clause License
46

57
Copyright (c) 2024-present, Valkey contributors

deps/fast_float_c_interface/fast_float_strtod.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* Copyright Valkey Contributors.
2+
* Copyright (c) Valkey Contributors
33
* All rights reserved.
4-
* SPDX-License-Identifier: BSD 3-Clause
4+
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

77
#include "../fast_float/fast_float.h"

src/allocator_defrag.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/* Copyright 2024- Valkey contributors
1+
/*
2+
* Copyright (c) Valkey Contributors
23
* All rights reserved.
34
* SPDX-License-Identifier: BSD-3-Clause
45
*/
5-
66
/*
77
* This file implements allocator-specific defragmentation logic used
88
* within the Valkey engine. Below is the relationship between various

src/asciilogo.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
22
* Copyright (c) 2009-2012, Redis Ltd.
3-
* Copyright (c) 2024, Valkey contributors
43
* All rights reserved.
54
*
65
* Redistribution and use in source and binary forms, with or without
@@ -27,7 +26,11 @@
2726
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2827
* POSSIBILITY OF SUCH DAMAGE.
2928
*/
30-
29+
/*
30+
* Copyright (c) Valkey Contributors
31+
* All rights reserved.
32+
* SPDX-License-Identifier: BSD-3-Clause
33+
*/
3134
const char *ascii_logo =
3235
" .+^+. \n"
3336
" .+#########+. \n"

src/blocked.c

+7-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,13 @@
2626
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2727
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2828
* POSSIBILITY OF SUCH DAMAGE.
29-
*
30-
* ---------------------------------------------------------------------------
31-
*
29+
*/
30+
/*
31+
* Copyright (c) Valkey Contributors
32+
* All rights reserved.
33+
* SPDX-License-Identifier: BSD-3-Clause
34+
*/
35+
/*
3236
* API:
3337
*
3438
* blockClient() set the CLIENT_BLOCKED flag in the client, and set the

src/cluster.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2727
* POSSIBILITY OF SUCH DAMAGE.
2828
*/
29-
29+
/*
30+
* Copyright (c) Valkey Contributors
31+
* All rights reserved.
32+
* SPDX-License-Identifier: BSD-3-Clause
33+
*/
3034
/*
3135
* cluster.c contains the common parts of a clustering
3236
* implementation, the parts that are shared between

src/cluster_legacy.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2727
* POSSIBILITY OF SUCH DAMAGE.
2828
*/
29-
29+
/*
30+
* Copyright (c) Valkey Contributors
31+
* All rights reserved.
32+
* SPDX-License-Identifier: BSD-3-Clause
33+
*/
3034
/*
3135
* cluster_legacy.c contains the implementation of the cluster API that is
3236
* specific to the standard, cluster-bus based clustering mechanism.

src/cluster_slot_stats.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
/*
2-
* Copyright Valkey Contributors.
2+
* Copyright (c) Valkey Contributors
33
* All rights reserved.
4-
* SPDX-License-Identifier: BSD 3-Clause
4+
* SPDX-License-Identifier: BSD-3-Clause
55
*/
6-
76
#include "cluster_slot_stats.h"
87

98
#define UNASSIGNED_SLOT 0

src/commandlog.c

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright (c) Valkey Contributors
3+
* All rights reserved.
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
17
/* Commandlog implements a system that is able to remember the latest N
28
* queries that took more than M microseconds to execute, or consumed
39
* too much network bandwidth and memory for input/output buffers.
@@ -14,10 +20,6 @@
1420
* but is accessible thanks to the COMMANDLOG command.
1521
*
1622
* ----------------------------------------------------------------------------
17-
*
18-
* Copyright Valkey Contributors.
19-
* All rights reserved.
20-
* SPDX-License-Identifier: BSD 3-Clause
2123
*/
2224

2325
#include "commandlog.h"

src/defrag.c

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3333
* POSSIBILITY OF SUCH DAMAGE.
3434
*/
35+
/*
36+
* Copyright (c) Valkey Contributors
37+
* All rights reserved.
38+
* SPDX-License-Identifier: BSD-3-Clause
39+
*/
3540

3641
#include "server.h"
3742
#include "hashtable.h"

src/dict.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3333
* POSSIBILITY OF SUCH DAMAGE.
3434
*/
35-
35+
/*
36+
* Copyright (c) Valkey Contributors
37+
* All rights reserved.
38+
* SPDX-License-Identifier: BSD-3-Clause
39+
*/
3640
#include "fmacros.h"
3741

3842
#include <stddef.h>

src/eval.c

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2727
* POSSIBILITY OF SUCH DAMAGE.
2828
*/
29+
/*
30+
* Copyright (c) Valkey Contributors
31+
* All rights reserved.
32+
* SPDX-License-Identifier: BSD-3-Clause
33+
*/
2934

3035
/*
3136
* This file initializes the global LUA object and registers functions to call Valkey API from within the LUA language.

src/expire.c

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3030
* POSSIBILITY OF SUCH DAMAGE.
3131
*/
32+
/*
33+
* Copyright (c) Valkey Contributors
34+
* All rights reserved.
35+
* SPDX-License-Identifier: BSD-3-Clause
36+
*/
3237

3338
#include "server.h"
3439

src/functions.c

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2727
* POSSIBILITY OF SUCH DAMAGE.
2828
*/
29+
/*
30+
* Copyright (c) Valkey Contributors
31+
* All rights reserved.
32+
* SPDX-License-Identifier: BSD-3-Clause
33+
*/
2934

3035
#include "functions.h"
3136
#include "sds.h"

src/hyperloglog.c

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2929
* POSSIBILITY OF SUCH DAMAGE.
3030
*/
31+
/*
32+
* Copyright (c) Valkey Contributors
33+
* All rights reserved.
34+
* SPDX-License-Identifier: BSD-3-Clause
35+
*/
3136

3237
#include "server.h"
3338
#include "intrinsics.h"

src/io_threads.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* Copyright Valkey Contributors.
2+
* Copyright (c) Valkey Contributors
33
* All rights reserved.
4-
* SPDX-License-Identifier: BSD 3-Clause
4+
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

77
#include "io_threads.h"

src/lua/engine_lua.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright Valkey Contributors.
2+
* Copyright (c) Valkey Contributors
33
* All rights reserved.
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/

src/memory_prefetch.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
/*
2-
* Copyright Valkey Contributors.
2+
* Copyright (c) Valkey Contributors
33
* All rights reserved.
4-
* SPDX-License-Identifier: BSD 3-Clause
5-
*
4+
* SPDX-License-Identifier: BSD-3-Clause
5+
*/
6+
/*
67
* This file utilizes prefetching keys and data for multiple commands in a batch,
78
* to improve performance by amortizing memory access costs across multiple operations.
89
*/

src/module.c

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2727
* POSSIBILITY OF SUCH DAMAGE.
2828
*/
29+
/*
30+
* Copyright (c) Valkey Contributors
31+
* All rights reserved.
32+
* SPDX-License-Identifier: BSD-3-Clause
33+
*/
2934

3035
/* --------------------------------------------------------------------------
3136
* Modules API documentation information

src/rdb.c

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2727
* POSSIBILITY OF SUCH DAMAGE.
2828
*/
29+
/*
30+
* Copyright (c) Valkey Contributors
31+
* All rights reserved.
32+
* SPDX-License-Identifier: BSD-3-Clause
33+
*/
2934

3035
#include "server.h"
3136
#include "lzf.h" /* LZF compression library */

src/rdma.c

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
* the top-level directory.
88
* ==========================================================================
99
*/
10+
/*
11+
* Copyright (c) Valkey Contributors
12+
* All rights reserved.
13+
* SPDX-License-Identifier: BSD-3-Clause
14+
*/
1015

1116
#define VALKEYMODULE_CORE_MODULE
1217
#include "server.h"

src/replication.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2828
* POSSIBILITY OF SUCH DAMAGE.
2929
*/
30-
30+
/*
31+
* Copyright (c) Valkey Contributors
32+
* All rights reserved.
33+
* SPDX-License-Identifier: BSD-3-Clause
34+
*/
3135

3236
#include "server.h"
3337
#include "cluster.h"

src/scripting_engine.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright Valkey Contributors.
2+
* Copyright (c) Valkey Contributors
33
* All rights reserved.
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/

src/server.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@
2626
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2727
* POSSIBILITY OF SUCH DAMAGE.
2828
*/
29-
29+
/*
30+
* Copyright (c) Valkey Contributors
31+
* All rights reserved.
32+
* SPDX-License-Identifier: BSD-3-Clause
33+
*/
3034
#include "server.h"
3135
#include "monotonic.h"
3236
#include "cluster.h"

src/t_hash.c

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2727
* POSSIBILITY OF SUCH DAMAGE.
2828
*/
29+
/*
30+
* Copyright (c) Valkey Contributors
31+
* All rights reserved.
32+
* SPDX-License-Identifier: BSD-3-Clause
33+
*/
2934

3035
#include "server.h"
3136
#include <math.h>

src/t_set.c

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2727
* POSSIBILITY OF SUCH DAMAGE.
2828
*/
29+
/*
30+
* Copyright (c) Valkey Contributors
31+
* All rights reserved.
32+
* SPDX-License-Identifier: BSD-3-Clause
33+
*/
2934

3035
#include "server.h"
3136
#include "hashtable.h"

src/t_string.c

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2727
* POSSIBILITY OF SUCH DAMAGE.
2828
*/
29+
/*
30+
* Copyright (c) Valkey Contributors
31+
* All rights reserved.
32+
* SPDX-License-Identifier: BSD-3-Clause
33+
*/
2934

3035
#include "server.h"
3136
#include <math.h> /* isnan(), isinf() */

src/t_zset.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2828
* POSSIBILITY OF SUCH DAMAGE.
2929
*/
30-
30+
/*
31+
* Copyright (c) Valkey Contributors
32+
* All rights reserved.
33+
* SPDX-License-Identifier: BSD-3-Clause
34+
*/
3135
/*-----------------------------------------------------------------------------
3236
* Sorted set API
3337
*----------------------------------------------------------------------------*/

src/unit/test_main.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* Copyright Valkey contributors.
2+
* Copyright (c) Valkey Contributors
33
* All rights reserved.
4-
* SPDX-License-Identifier: BSD 3-Clause
4+
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

77
#include <strings.h>

src/unit/test_valkey_strtod.c

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/*
2-
* Copyright Valkey Contributors.
2+
* Copyright (c) Valkey Contributors
33
* All rights reserved.
4-
* SPDX-License-Identifier: BSD 3-Clause
4+
* SPDX-License-Identifier: BSD-3-Clause
55
*/
66

7-
87
#include "../valkey_strtod.h"
98
#include "errno.h"
109
#include "math.h"

src/valkey-cli.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@
2727
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2828
* POSSIBILITY OF SUCH DAMAGE.
2929
*/
30-
30+
/*
31+
* Copyright (c) Valkey Contributors
32+
* All rights reserved.
33+
* SPDX-License-Identifier: BSD-3-Clause
34+
*/
3135
#include "fmacros.h"
3236

3337
#include <stdio.h>

0 commit comments

Comments
 (0)