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: https://github.com/valkey-io/valkey/issues/1692.

Included documentation about the licensing here:
https://github.com/valkey-io/valkey/pull/1787.

Licenses are now also always explicitly first, even about documentation
files.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
This commit is contained in:
Madelyn Olson 2025-02-27 10:38:26 -08:00 committed by GitHub
parent e23a7d6f36
commit 089b830479
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
31 changed files with 128 additions and 35 deletions

View File

@ -1,5 +1,7 @@
# License 1
SPDX-License-Identifier: BSD-3-Clause
BSD 3-Clause License
Copyright (c) 2024-present, Valkey contributors

View File

@ -1,7 +1,7 @@
/*
* Copyright Valkey Contributors.
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD 3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "../fast_float/fast_float.h"

View File

@ -1,8 +1,8 @@
/* Copyright 2024- Valkey contributors
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
* This file implements allocator-specific defragmentation logic used
* within the Valkey engine. Below is the relationship between various

View File

@ -1,6 +1,5 @@
/*
* Copyright (c) 2009-2012, Redis Ltd.
* Copyright (c) 2024, Valkey contributors
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -27,7 +26,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
const char *ascii_logo =
" .+^+. \n"
" .+#########+. \n"

View File

@ -26,9 +26,13 @@
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* ---------------------------------------------------------------------------
*
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
* API:
*
* blockClient() set the CLIENT_BLOCKED flag in the client, and set the

View File

@ -26,7 +26,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
* cluster.c contains the common parts of a clustering
* implementation, the parts that are shared between

View File

@ -26,7 +26,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
* cluster_legacy.c contains the implementation of the cluster API that is
* specific to the standard, cluster-bus based clustering mechanism.

View File

@ -1,9 +1,8 @@
/*
* Copyright Valkey Contributors.
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD 3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "cluster_slot_stats.h"
#define UNASSIGNED_SLOT 0

View File

@ -1,3 +1,9 @@
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
/* Commandlog implements a system that is able to remember the latest N
* queries that took more than M microseconds to execute, or consumed
* too much network bandwidth and memory for input/output buffers.
@ -14,10 +20,6 @@
* but is accessible thanks to the COMMANDLOG command.
*
* ----------------------------------------------------------------------------
*
* Copyright Valkey Contributors.
* All rights reserved.
* SPDX-License-Identifier: BSD 3-Clause
*/
#include "commandlog.h"

View File

@ -32,6 +32,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "server.h"
#include "hashtable.h"

View File

@ -32,7 +32,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "fmacros.h"
#include <stddef.h>

View File

@ -26,6 +26,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
* This file initializes the global LUA object and registers functions to call Valkey API from within the LUA language.

View File

@ -29,6 +29,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "server.h"

View File

@ -26,6 +26,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "functions.h"
#include "sds.h"

View File

@ -28,6 +28,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "server.h"
#include "intrinsics.h"

View File

@ -1,7 +1,7 @@
/*
* Copyright Valkey Contributors.
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD 3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "io_threads.h"

View File

@ -1,5 +1,5 @@
/*
* Copyright Valkey Contributors.
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/

View File

@ -1,8 +1,9 @@
/*
* Copyright Valkey Contributors.
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD 3-Clause
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/*
* This file utilizes prefetching keys and data for multiple commands in a batch,
* to improve performance by amortizing memory access costs across multiple operations.
*/

View File

@ -26,6 +26,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
/* --------------------------------------------------------------------------
* Modules API documentation information

View File

@ -26,6 +26,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "server.h"
#include "lzf.h" /* LZF compression library */

View File

@ -7,6 +7,11 @@
* the top-level directory.
* ==========================================================================
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#define VALKEYMODULE_CORE_MODULE
#include "server.h"

View File

@ -27,7 +27,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "server.h"
#include "cluster.h"

View File

@ -1,5 +1,5 @@
/*
* Copyright Valkey Contributors.
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/

View File

@ -26,7 +26,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "server.h"
#include "monotonic.h"
#include "cluster.h"

View File

@ -26,6 +26,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "server.h"
#include <math.h>

View File

@ -26,6 +26,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "server.h"
#include "hashtable.h"

View File

@ -26,6 +26,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "server.h"
#include <math.h> /* isnan(), isinf() */

View File

@ -27,7 +27,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
/*-----------------------------------------------------------------------------
* Sorted set API
*----------------------------------------------------------------------------*/

View File

@ -1,7 +1,7 @@
/*
* Copyright Valkey contributors.
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD 3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <strings.h>

View File

@ -1,10 +1,9 @@
/*
* Copyright Valkey Contributors.
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD 3-Clause
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "../valkey_strtod.h"
#include "errno.h"
#include "math.h"

View File

@ -27,7 +27,11 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
/*
* Copyright (c) Valkey Contributors
* All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "fmacros.h"
#include <stdio.h>