Fix license and remove references to zstd
This commit is contained in:
parent
1f246a9899
commit
5b37837e6e
@ -1,11 +1,33 @@
|
|||||||
# ##########################################################################
|
# ################################################################
|
||||||
# Copyright (c) 2016-present, Przemyslaw Skibinski
|
# Copyright (C) Przemyslaw Skibinski 2016-present
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# This source code is licensed under the BSD-style license found in the
|
# BSD license
|
||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# Redistribution and use in source and binary forms, with or without modification,
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# are permitted provided that the following conditions are met:
|
||||||
# ##########################################################################
|
#
|
||||||
|
# * Redistributions of source code must retain the above copyright notice, this
|
||||||
|
# list of conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# * Redistributions in binary form must reproduce the above copyright notice, this
|
||||||
|
# list of conditions and the following disclaimer in the documentation and/or
|
||||||
|
# other materials provided with the distribution.
|
||||||
|
#
|
||||||
|
# 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 HOLDER 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.
|
||||||
|
#
|
||||||
|
# You can contact the author at :
|
||||||
|
# - LZ4 source repository : https://github.com/Cyan4973/lz4
|
||||||
|
# - LZ4 forum froup : https://groups.google.com/forum/#!forum/lz4c
|
||||||
|
# ################################################################
|
||||||
|
|
||||||
|
|
||||||
CFLAGS ?= -O3
|
CFLAGS ?= -O3
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
gen_manual - a program for automatic generation of zstd manual
|
gen_manual - a program for automatic generation of lz4 manual
|
||||||
============================================================
|
=============================================================
|
||||||
|
|
||||||
#### Introduction
|
#### Introduction
|
||||||
|
|
||||||
@ -27,5 +27,5 @@ gen_manual [lz4_version] [input_file] [output_html]
|
|||||||
To compile program and generate lz4 manual we have used:
|
To compile program and generate lz4 manual we have used:
|
||||||
```
|
```
|
||||||
make
|
make
|
||||||
./gen_manual.exe 1.7.3 ../../lib/lz4.h zstd_manual.html
|
./gen_manual.exe 1.7.3 ../../lib/lz4.h lz4_manual.html
|
||||||
```
|
```
|
||||||
|
@ -1,11 +1,36 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2016-present, Przemyslaw Skibinski
|
Copyright (c) 2016-present, Przemyslaw Skibinski
|
||||||
* All rights reserved.
|
All rights reserved.
|
||||||
*
|
|
||||||
* This source code is licensed under the BSD-style license found in the
|
BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
|
||||||
* LICENSE file in the root directory of this source tree. An additional grant
|
|
||||||
* of patent rights can be found in the PATENTS file in the same directory.
|
Redistribution and use in source and binary forms, with or without
|
||||||
*/
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above
|
||||||
|
copyright notice, this list of conditions and the following disclaimer
|
||||||
|
in the documentation and/or other materials provided with the
|
||||||
|
distribution.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
You can contact the author at :
|
||||||
|
- LZ4 homepage : http://www.lz4.org
|
||||||
|
- LZ4 source repository : https://github.com/lz4/lz4
|
||||||
|
*/
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
@ -213,4 +238,4 @@ int main(int argc, char *argv[]) {
|
|||||||
ostream << "</html>" << endl << "</body>" << endl;
|
ostream << "</html>" << endl << "</body>" << endl;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@ The minimum required is **`lz4.c`** and **`lz4.h`**,
|
|||||||
which will provide the fast compression and decompression algorithm.
|
which will provide the fast compression and decompression algorithm.
|
||||||
|
|
||||||
|
|
||||||
#### The High Compression variant od LZ4
|
#### The High Compression variant of LZ4
|
||||||
|
|
||||||
For more compression at the cost of compression speed,
|
For more compression at the cost of compression speed,
|
||||||
the High Compression variant **lz4hc** is available.
|
the High Compression variant **lz4hc** is available.
|
||||||
|
@ -258,7 +258,7 @@ static FILE* LZ4IO_openSrcFile(const char* srcFileName)
|
|||||||
SET_BINARY_MODE(stdin);
|
SET_BINARY_MODE(stdin);
|
||||||
} else {
|
} else {
|
||||||
f = fopen(srcFileName, "rb");
|
f = fopen(srcFileName, "rb");
|
||||||
if ( f==NULL ) DISPLAYLEVEL(1, "zstd: %s: %s \n", srcFileName, strerror(errno));
|
if ( f==NULL ) DISPLAYLEVEL(1, "%s: %s \n", srcFileName, strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
return f;
|
return f;
|
||||||
@ -285,10 +285,10 @@ static FILE* LZ4IO_openDstFile(const char* dstFileName)
|
|||||||
if (f != NULL) { /* dest exists, prompt for overwrite authorization */
|
if (f != NULL) { /* dest exists, prompt for overwrite authorization */
|
||||||
fclose(f);
|
fclose(f);
|
||||||
if (g_displayLevel <= 1) { /* No interaction possible */
|
if (g_displayLevel <= 1) { /* No interaction possible */
|
||||||
DISPLAY("zstd: %s already exists; not overwritten \n", dstFileName);
|
DISPLAY("%s already exists; not overwritten \n", dstFileName);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
DISPLAY("zstd: %s already exists; do you wish to overwrite (y/N) ? ", dstFileName);
|
DISPLAY("%s already exists; do you wish to overwrite (y/N) ? ", dstFileName);
|
||||||
{ int ch = getchar();
|
{ int ch = getchar();
|
||||||
if ((ch!='Y') && (ch!='y')) {
|
if ((ch!='Y') && (ch!='y')) {
|
||||||
DISPLAY(" not overwritten \n");
|
DISPLAY(" not overwritten \n");
|
||||||
@ -297,7 +297,7 @@ static FILE* LZ4IO_openDstFile(const char* dstFileName)
|
|||||||
while ((ch!=EOF) && (ch!='\n')) ch = getchar(); /* flush rest of input line */
|
while ((ch!=EOF) && (ch!='\n')) ch = getchar(); /* flush rest of input line */
|
||||||
} } }
|
} } }
|
||||||
f = fopen( dstFileName, "wb" );
|
f = fopen( dstFileName, "wb" );
|
||||||
if (f==NULL) DISPLAYLEVEL(1, "zstd: %s: %s\n", dstFileName, strerror(errno));
|
if (f==NULL) DISPLAYLEVEL(1, "%s: %s\n", dstFileName, strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* sparse file */
|
/* sparse file */
|
||||||
|
@ -427,7 +427,7 @@ UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_
|
|||||||
UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_t* pos, char** bufEnd)
|
UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_t* pos, char** bufEnd)
|
||||||
{
|
{
|
||||||
(void)bufStart; (void)bufEnd; (void)pos;
|
(void)bufStart; (void)bufEnd; (void)pos;
|
||||||
fprintf(stderr, "Directory %s ignored (zstd compiled without _WIN32 or _POSIX_C_SOURCE)\n", dirName);
|
fprintf(stderr, "Directory %s ignored (lz4 compiled without _WIN32 or _POSIX_C_SOURCE)\n", dirName);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user