all: let's go LGPL over GPL

Based on feedback from interested parties
This commit is contained in:
Drew DeVault 2024-03-21 20:11:44 +01:00
parent c3d36a8bcb
commit 50ee0f5be8
457 changed files with 533 additions and 461 deletions

View File

@ -13,7 +13,7 @@ Redistribution and use in source and binary forms, with or without modification,
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 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.
All changes added after 7.2.4 are distributed under the terms of the GNU General
Public License 3.0 (GPL-3.0-only):
Public License 3.0 (LGPL-3.0-only):
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

View File

@ -1,7 +1,79 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License.
"The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version".
The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:
a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:
a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.
e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
@ -215,7 +287,7 @@ To do so, attach the following notices to the program. It is safest to attach th
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
@ -227,6 +299,6 @@ If the program does terminal interaction, make it output a short notice like thi
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.

View File

@ -12,7 +12,7 @@ to a [non-free license][nonfree].
This fork is intended to be backwards-compatible with Redis 7.2.4 and then to
diverge from then onwards. It should work as a drop-in replacement for Redis
7.2.4, but compatibility with later versions of Redis is not guaranteed. The
codebase has been relicensed from BSD-3-Clause to GPL-3.0-only and will not be
codebase has been relicensed from BSD-3-Clause to LGPL-3.0-only and will not be
using a Contributor License Agreement, which prevents it a similar non-free
change from ever taking place in the future of Redict.
@ -22,7 +22,7 @@ More details to come in a later announcement.
* [x] Rename binaries
* [x] Update test suite
* [x] Relicense as GPL-3.0-only
* [x] Relicense as LGPL-3.0-only
* [x] Update copyright headers
* [x] REUSE for license management
* [x] Rename source files

View File

@ -2,7 +2,7 @@
#
# SPDX-FileCopyrightText: 2024 Redict Contributors
#
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: LGPL-3.0-only
TCL_VERSIONS="8.5 8.6 8.7"
TCLSH=""

View File

@ -2,7 +2,7 @@
#
# SPDX-FileCopyrightText: 2024 Redict Contributors
#
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: LGPL-3.0-only
TCL_VERSIONS="8.5 8.6 8.7"
TCLSH=""

View File

@ -2,7 +2,7 @@
#
# SPDX-FileCopyrightText: 2024 Redict Contributors
#
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: LGPL-3.0-only
TCL_VERSIONS="8.5 8.6 8.7"
TCLSH=""
[ -z "$MAKE" ] && MAKE=make

View File

@ -2,7 +2,7 @@
#
# SPDX-FileCopyrightText: 2024 Redict Contributors
#
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: LGPL-3.0-only
TCL_VERSIONS="8.5 8.6 8.7"
TCLSH=""

View File

@ -3,7 +3,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
#
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: LGPL-3.0-only
release_hdr := $(shell sh -c './mkreleasehdr.sh')
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "sha256.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include <stdlib.h>
#include "adlist.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __ADLIST_H__
#define __ADLIST_H__

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "ae.h"
#include "anet.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __AE_H__
#define __AE_H__

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include <sys/epoll.h>

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include <errno.h>
#include <port.h>

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include <sys/types.h>
#include <sys/event.h>

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include <sys/select.h>
#include <string.h>

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "fmacros.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef ANET_H
#define ANET_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "bio.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
const char *ascii_logo =
" _._ \n"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include <pthread.h>
#include "config.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "bio.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __BIO_H
#define __BIO_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "slowlog.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "call_reply.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef SRC_CALL_REPLY_H_
#define SRC_CALL_REPLY_H_

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include <unistd.h>

View File

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include <stddef.h>
#include "cli_commands.h"

View File

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
/* This file is used by redict-cli in place of server.h when including commands.c
* It contains alternative structs which omit the parts of the commands table

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "fmacros.h"
#include "cli_common.h"

View File

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __CLICOMMON_H
#define __CLICOMMON_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
/*
* cluster.c contains the common parts of a clustering

View File

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __CLUSTER_H
#define __CLUSTER_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
/*
* cluster_legacy.c contains the implementation of the cluster API that is

View File

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef CLUSTER_LEGACY_H
#define CLUSTER_LEGACY_H

View File

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "commands.h"
#include "server.h"

View File

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __REDICT_COMMANDS_H
#define __REDICT_COMMANDS_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "cluster.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __CONFIG_H
#define __CONFIG_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "connection.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __REDICT_CONNECTION_H
#define __REDICT_CONNECTION_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __REDICT_CONNHELPERS_H
#define __REDICT_CONNHELPERS_H

View File

@ -6,7 +6,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
/* CRC16 implementation according to CCITT standards.
*

View File

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef _CRC16_TABLE_H__
#define _CRC16_TABLE_H__

View File

@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "crc64.h"
#include "crcspeed.h"

View File

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef CRC64_H
#define CRC64_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "crcspeed.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef CRCSPEED_H
#define CRCSPEED_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "cluster.h"

View File

@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "util.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef _REDICT_DEBUGMACRO_H_
#define _REDICT_DEBUGMACRO_H_

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include <stddef.h>

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "fmacros.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __DICT_H
#define __DICT_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include <stdint.h>

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __ENDIANCONV_H
#define __ENDIANCONV_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "sha1.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "bio.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef _REDICT_FMACRO_H
#define _REDICT_FMACRO_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef FMTARGS_H
#define FMTARGS_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
/*
* function_lua.c unit provides the Lua engine functionality.

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "functions.h"
#include "sds.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __FUNCTIONS_H_
#define __FUNCTIONS_H_

View File

@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "geo.h"
#include "geohash_helper.h"

View File

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __GEO_H__
#define __GEO_H__

View File

@ -5,7 +5,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "geohash.h"

View File

@ -5,7 +5,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef GEOHASH_H_
#define GEOHASH_H_

View File

@ -5,7 +5,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
/* This is a C++ to C conversion from the ardb project.
* This file started out as:

View File

@ -5,7 +5,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef GEOHASH_HELPER_HPP_
#define GEOHASH_HELPER_HPP_

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"

View File

@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include <stdio.h>
#include <stdlib.h>

View File

@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __INTSET_H
#define __INTSET_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "fmacros.h"

View File

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef DICTARRAY_H_
#define DICTARRAY_H_

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "hdr_histogram.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __LATENCY_H
#define __LATENCY_H

View File

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "bio.h"

View File

@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include <stdint.h>
#include <limits.h>

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __LISTPACK_H
#define __LISTPACK_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
/* Allocator selection.
*

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include <time.h>

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
/* This file implements the interface of logging clients' requests and
* responses into a file.

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "lolwut.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
/* This structure represents our canvas. Drawing functions will take a pointer
* to a canvas to write to it. Later the canvas can be rendered to a string

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "lolwut.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "lolwut.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef LZF_H
#define LZF_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef LZFP_h
#define LZFP_h

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "lzfP.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "lzfP.h"

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include <stdint.h>
#include <stdlib.h>

View File

@ -2,7 +2,7 @@
#
# SPDX-FileCopyrightText: 2024 Redict Contributors
#
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: LGPL-3.0-only
GIT_SHA1=`(git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1`
GIT_DIRTY=`git diff --no-ext-diff -- ../src ../deps 2> /dev/null | wc -l`
BUILD_ID=`uname -n`"-"`date +%s`

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
/* --------------------------------------------------------------------------
* Modules API documentation information

View File

@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
#
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-License-Identifier: LGPL-3.0-only
# find the OS
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')

View File

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "monotonic.h"
#include <stddef.h>

View File

@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __MONOTONIC_H
#define __MONOTONIC_H

View File

@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo <antirez at gmail dot com>
//
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-License-Identifier: GPL-3.0-only
// SPDX-License-Identifier: LGPL-3.0-only
#include "mt19937-64.h"
#include <stdio.h>

Some files were not shown because too many files have changed in this diff Show More