Skip to content

Commit

Permalink
Add missing copyrights (#1570)
Browse files Browse the repository at this point in the history
* Add missing SPDX copyrights

* Fix include headers
  • Loading branch information
XVilka authored Sep 2, 2021
1 parent 02d5792 commit abc1d79
Show file tree
Hide file tree
Showing 41 changed files with 123 additions and 49 deletions.
12 changes: 12 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ Files: .gitignore
Copyright: 2021 RizinOrg <[email protected]>
License: LGPL-3.0-only

Files: **/.gitignore
Copyright: 2021 RizinOrg <[email protected]>
License: LGPL-3.0-only

Files: .pylintrc
Copyright: 2021 RizinOrg <[email protected]>
License: LGPL-3.0-only
Expand All @@ -47,6 +51,10 @@ Files: *.md
Copyright: 2021 RizinOrg <[email protected]>
License: LGPL-3.0-only

Files: *.in
Copyright: 2021 RizinOrg <[email protected]>
License: LGPL-3.0-only

Files: **/meson.build
Copyright: 2021 RizinOrg <[email protected]>
License: LGPL-3.0-only
Expand All @@ -59,6 +67,10 @@ Files: meson_options.txt
Copyright: 2021 RizinOrg <[email protected]>
License: LGPL-3.0-only

Files: **/meson_options.txt
Copyright: 2021 RizinOrg <[email protected]>
License: LGPL-3.0-only

Files: doc/fortunes*
Copyright: 2009 RadareOrg <[email protected]>
License: LGPL-3.0-only
Expand Down
3 changes: 3 additions & 0 deletions librz/bin/format/le/le.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2019 GustavoLCR <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef LE_H
#define LE_H
#include <rz_bin.h>
Expand Down
3 changes: 3 additions & 0 deletions librz/bin/format/le/le_specs.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2019 GustavoLCR <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef LE_SPECS_H
#define LE_SPECS_H
#include <rz_types.h>
Expand Down
7 changes: 5 additions & 2 deletions librz/bin/format/mach0/coresymbolication.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// SPDX-FileCopyrightText: 2020 mrmacete <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_bin.h>
#include <rz_types.h>

#ifndef _INCLUDE_R_BIN_CORESYMBOLICATION_H
#define _INCLUDE_R_BIN_CORESYMBOLICATION_H
#ifndef _INCLUDE_RZ_BIN_CORESYMBOLICATION_H
#define _INCLUDE_RZ_BIN_CORESYMBOLICATION_H

typedef struct rz_coresym_cache_element_hdr_t {
ut32 version;
Expand Down
7 changes: 5 additions & 2 deletions librz/bin/format/mach0/fatmach0.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// SPDX-FileCopyrightText: 2010-2013 nibble <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_types.h>
#include "mach0_specs.h"

#ifndef _INCLUDE_R_BIN_FATMACH0_H_
#define _INCLUDE_R_BIN_FATMACH0_H_
#ifndef _INCLUDE_RZ_BIN_FATMACH0_H_
#define _INCLUDE_RZ_BIN_FATMACH0_H_

struct rz_bin_fatmach0_obj_t {
const char *file;
Expand Down
8 changes: 6 additions & 2 deletions librz/bin/format/mach0/mach0.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
// SPDX-FileCopyrightText: 2010-2020 nibble <[email protected]>
// SPDX-FileCopyrightText: 2010-2020 pancake <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_bin.h>
#include <rz_types.h>
#include "mach0_specs.h"

#ifndef _INCLUDE_R_BIN_MACH0_H_
#define _INCLUDE_R_BIN_MACH0_H_
#ifndef _INCLUDE_RZ_BIN_MACH0_H_
#define _INCLUDE_RZ_BIN_MACH0_H_

// 20% faster loading times for macho if enabled
#define FEATURE_SYMLIST 0
Expand Down
7 changes: 5 additions & 2 deletions librz/bin/format/mach0/mach0_specs.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// SPDX-FileCopyrightText: 2010-2020 nibble <[email protected]>
// SPDX-FileCopyrightText: 2010-2020 pancake <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef _INCLUDE_R_BIN_MACH0_SPECS_H_
#define _INCLUDE_R_BIN_MACH0_SPECS_H_
#ifndef _INCLUDE_RZ_BIN_MACH0_SPECS_H_
#define _INCLUDE_RZ_BIN_MACH0_SPECS_H_

typedef int integer_t;

Expand Down
3 changes: 3 additions & 0 deletions librz/bin/format/ne/ne.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2019 GustavoLCR <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef NE_H
#define NE_H
#include <rz_types.h>
Expand Down
5 changes: 4 additions & 1 deletion librz/bin/format/ne/ne_specs.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2019 GustavoLCR <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef NE_SPECS_H
#define NE_SPECS_H

Expand Down Expand Up @@ -118,4 +121,4 @@ typedef struct {
ut8 expctwinver[2]; // Expected windows version (minor first)
} NE_image_header;

#endif
#endif
3 changes: 3 additions & 0 deletions librz/bin/format/nin/gba.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2014 condret <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_types.h>

const ut8 lic_gba[] = {
Expand Down
2 changes: 2 additions & 0 deletions librz/bin/format/nin/n3ds.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: 2016 Alberto Ortega
// SPDX-License-Identifier: LGPL-3.0-only

/*
https://www.3dbrew.org/wiki/FIRM
Expand Down
2 changes: 2 additions & 0 deletions librz/bin/format/nin/nds.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: 2014 Alberto Ortega
// SPDX-License-Identifier: LGPL-3.0-only

/*
http://dsibrew.org/wiki/NDS_Format
Expand Down
3 changes: 3 additions & 0 deletions librz/bin/format/nin/nin.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2013-2017 condret <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_types.h>
#include <string.h>

Expand Down
4 changes: 4 additions & 0 deletions librz/bin/format/objc/mach064_classes.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2015 inisider <[email protected]>
// SPDX-FileCopyrightText: 2018-2019 Francesco Tamagni <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef MACH064_CLASSES
#define MACH064_CLASSES

Expand Down
4 changes: 4 additions & 0 deletions librz/bin/format/objc/mach0_classes.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2015 inisider <[email protected]>
// SPDX-FileCopyrightText: 2018-2019 Francesco Tamagni <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_bin.h>

#include "mach0/mach0_specs.h"
Expand Down
4 changes: 4 additions & 0 deletions librz/bin/format/omf/omf.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2015 ampotos <[email protected]>
// SPDX-FileCopyrightText: 2015-2019 pancake <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef OMF_H_
#define OMF_H_

Expand Down
6 changes: 5 additions & 1 deletion librz/bin/format/omf/omf_specs.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
// SPDX-FileCopyrightText: 2015 ampotos <[email protected]>
// SPDX-FileCopyrightText: 2015-2019 pancake <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef OMF_SPECS_H_
#define OMF_SPECS_H_

// additionnal informations : http://pierrelib.pagesperso-orange.fr/exec_formats/OMF_v1.1.pdf
// additional information : http://pierrelib.pagesperso-orange.fr/exec_formats/OMF_v1.1.pdf

// record type
#define OMF_THEADR 0x80 // Translator Header Record
Expand Down
18 changes: 1 addition & 17 deletions librz/bin/format/pe/dotnet.c
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
// SPDX-FileCopyrightText: 2015. The YARA Authors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

/*
Forked by pancake in 2017
Copyright (c) 2015. The YARA Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
/* Forked by pancake in 2017 */

#define _GNU_SOURCE

Expand Down
5 changes: 5 additions & 0 deletions librz/bin/format/pe/dotnet.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// SPDX-FileCopyrightText: 2015. The YARA Authors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0

/* Forked by pancake in 2017 */

#ifndef YR_DOTNET_H
#define YR_DOTNET_H

Expand Down
4 changes: 2 additions & 2 deletions librz/bin/format/pe/pe.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

#include "pe_specs.h"

#ifndef _INCLUDE_R_BIN_PE_H_
#define _INCLUDE_R_BIN_PE_H_
#ifndef _INCLUDE_RZ_BIN_PE_H_
#define _INCLUDE_RZ_BIN_PE_H_

#define RZ_BIN_PE_SCN_IS_SHAREABLE(x) x &PE_IMAGE_SCN_MEM_SHARED
#define RZ_BIN_PE_SCN_IS_EXECUTABLE(x) x &PE_IMAGE_SCN_MEM_EXECUTE
Expand Down
7 changes: 5 additions & 2 deletions librz/bin/format/pe/pemixed.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
// SPDX-FileCopyrightText: 2018 JohnPeng47 <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_types.h>
#include "pe.h"

#define SUB_BIN_DOS 0
#define SUB_BIN_NATIVE 1
#define SUB_BIN_NET 2

#ifndef _INCLUDE_R_BIN_PEMIXED_H_
#define _INCLUDE_R_BIN_PEMIXED_H_
#ifndef _INCLUDE_RZ_BIN_PEMIXED_H_
#define _INCLUDE_RZ_BIN_PEMIXED_H_

struct rz_bin_pemixed_obj_t {
const char *file;
Expand Down
3 changes: 3 additions & 0 deletions librz/bin/format/psxexe/psxexe.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2015 Dax <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef PSXEXE_H
#define PSXEXE_H

Expand Down
4 changes: 2 additions & 2 deletions librz/bin/format/te/te.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#include <rz_lib.h>
#include <rz_bin.h>

#ifndef _INCLUDE_R_BIN_TE_H_
#define _INCLUDE_R_BIN_TE_H_
#ifndef _INCLUDE_RZ_BIN_TE_H_
#define _INCLUDE_RZ_BIN_TE_H_

#define RZ_BIN_TE_SCN_IS_SHAREABLE(x) x &TE_IMAGE_SCN_MEM_SHARED
#define RZ_BIN_TE_SCN_IS_EXECUTABLE(x) x &TE_IMAGE_SCN_MEM_EXECUTE
Expand Down
4 changes: 2 additions & 2 deletions librz/bin/format/te/te_specs.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
#define TE_DWord ut64
#define TE_VWord ut32

#ifndef _INCLUDE_R_BIN_TE_SPECS_H_
#define _INCLUDE_R_BIN_TE_SPECS_H_
#ifndef _INCLUDE_RZ_BIN_TE_SPECS_H_
#define _INCLUDE_RZ_BIN_TE_SPECS_H_

#define TE_NAME_LENGTH 256
#define TE_STRING_LENGTH 256
Expand Down
7 changes: 7 additions & 0 deletions librz/bin/format/xbe/xbe.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
// SPDX-FileCopyrightText: 2014 LemonBoy <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef _INCLUDE_XBE_H_
#define _INCLUDE_XBE_H_

#define XBE_MAGIC 0x48454258

Expand Down Expand Up @@ -71,3 +76,5 @@ typedef struct {
int kt_key;
int ep_key;
} rz_bin_xbe_obj_t;

#endif
3 changes: 3 additions & 0 deletions librz/bin/format/zimg/zimg.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2009-2015 ninjahacker <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef ZIMG_H
#define ZIMG_H

Expand Down
2 changes: 1 addition & 1 deletion librz/bin/p/bin_xbe.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2014-2019 [email protected] <[email protected]>
// SPDX-FileCopyrightText: 2014-2019 LemonBoy <[email protected]>
// SPDX-FileCopyrightText: 2014-2019 pancake <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

Expand Down
2 changes: 1 addition & 1 deletion librz/debug/debug.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-FileCopyrightText: 2009-2018 pancake <[email protected]>
// SPDX-FileCopyrightText: 2009-2018 jduck <[email protected]>
// SPDX-FileCopyrightText: 2009-2018 TheLemonMan <[email protected]>
// SPDX-FileCopyrightText: 2009-2018 LemonBoy <[email protected]>
// SPDX-FileCopyrightText: 2009-2018 saucec0de
// SPDX-License-Identifier: LGPL-3.0-only

Expand Down
3 changes: 3 additions & 0 deletions librz/debug/p/bfvm.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2008-2011 pancake <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef _R_BFVM_INCLUDE_
#define _R_BFVM_INCLUDE_

Expand Down
2 changes: 1 addition & 1 deletion librz/debug/p/debug_winkd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2014-2017 The Lemon Man
// SPDX-FileCopyrightText: 2014-2017 LemonBoy
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_debug.h>
Expand Down
4 changes: 2 additions & 2 deletions librz/io/p/io_winkd.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2014-2017 The Lemon Man
// SPDX-FileCopyrightText: 2014-2017 LemonBoy
// SPDX-License-Identifier: LGPL-3.0-only

// Copyright (c) 2014-2017, The Lemon Man, All rights reserved. LGPLv3
// Copyright (c) 2014-2017, LemonBoy, All rights reserved. LGPLv3

// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
Expand Down
2 changes: 1 addition & 1 deletion librz/search/regexp.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-FileCopyrightText: 2008-2020 pancake <[email protected]>
// SPDX-FileCopyrightText: 2008-2020 TheLemonMan <[email protected]>
// SPDX-FileCopyrightText: 2008-2020 LemonBoy <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#include "rz_search.h"
Expand Down
2 changes: 1 addition & 1 deletion librz/util/utf8.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2014-2018 thelemon <[email protected]>
// SPDX-FileCopyrightText: 2014-2018 LemonBoy <[email protected]>
// SPDX-FileCopyrightText: 2014-2018 kazarmy <[email protected]>
// SPDX-FileCopyrightText: 2014-2018 pancake <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only
Expand Down
2 changes: 1 addition & 1 deletion shlr/winkd/iob_pipe.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2014-2017 The Lemon Man <[email protected]>
// SPDX-FileCopyrightText: 2014-2017 LemonBoy <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only
#include <fcntl.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion shlr/winkd/kd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2014-2017 The Lemon Man <[email protected]>
// SPDX-FileCopyrightText: 2014-2017 LemonBoy <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only
#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion shlr/winkd/kd.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2014-2017 The Lemon Man <[email protected]>
// SPDX-FileCopyrightText: 2014-2017 LemonBoy <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef KD_H
Expand Down
2 changes: 1 addition & 1 deletion shlr/winkd/transport.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2014-2017 The Lemon Man <[email protected]>
// SPDX-FileCopyrightText: 2014-2017 LemonBoy <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_util.h>
Expand Down
2 changes: 1 addition & 1 deletion shlr/winkd/transport.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2014-2017 The Lemon Man <[email protected]>
// SPDX-FileCopyrightText: 2014-2017 LemonBoy <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef _TRANSPORT_H_
Expand Down
2 changes: 1 addition & 1 deletion shlr/winkd/winkd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2014-2017 The Lemon Man <[email protected]>
// SPDX-FileCopyrightText: 2014-2017 LemonBoy <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only
#include <stdio.h>
#include <stdarg.h>
Expand Down
2 changes: 1 addition & 1 deletion shlr/winkd/winkd.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2014-2017 The Lemon Man <[email protected]>
// SPDX-FileCopyrightText: 2014-2017 LemonBoy <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#ifndef _winkd_H_
Expand Down
3 changes: 3 additions & 0 deletions test/unit/test_inflate_deflate.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2021 Dhruv Maroo <[email protected]>
// SPDX-License-Identifier: LGPL-3.0-only

#include <rz_util.h>
#include "minunit.h"

Expand Down

0 comments on commit abc1d79

Please sign in to comment.