Skip to content

Commit 227a29c

Browse files
committed
Correct the license format.
1 parent 46a4333 commit 227a29c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+112
-160
lines changed

LICENSE

Lines changed: 2 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,6 @@
1-
Copyright (c) 2020-present, ByteDance, Inc.
1+
MIT License
22

3-
Most source code in ByteHook are MIT licensed. Some other source code
4-
have BSD-style licenses.
5-
6-
A copy of the MIT License is included in this file.
7-
8-
9-
10-
Source code Licensed under the BSD 2-Clause License
11-
===================================================
12-
13-
tree.h
14-
15-
Copyright 2002 Niels Provos <[email protected]>
16-
All rights reserved.
17-
18-
Redistribution and use in source and binary forms, with or without
19-
modification, are permitted provided that the following conditions
20-
are met:
21-
1. Redistributions of source code must retain the above copyright
22-
notice, this list of conditions and the following disclaimer.
23-
2. Redistributions in binary form must reproduce the above copyright
24-
notice, this list of conditions and the following disclaimer in the
25-
documentation and/or other materials provided with the distribution.
26-
27-
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
28-
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
29-
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
30-
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
31-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
32-
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
36-
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37-
38-
39-
40-
Source code Licensed under the BSD 3-Clause License
41-
===================================================
42-
43-
queue.h
44-
45-
Copyright (c) 1991, 1993 The Regents of the University of California.
46-
All rights reserved.
47-
48-
Redistribution and use in source and binary forms, with or without
49-
modification, are permitted provided that the following conditions
50-
are met:
51-
1. Redistributions of source code must retain the above copyright
52-
notice, this list of conditions and the following disclaimer.
53-
2. Redistributions in binary form must reproduce the above copyright
54-
notice, this list of conditions and the following disclaimer in the
55-
documentation and/or other materials provided with the distribution.
56-
3. Neither the name of the University nor the names of its contributors
57-
may be used to endorse or promote products derived from this software
58-
without specific prior written permission.
59-
60-
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
61-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
62-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
63-
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
64-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
65-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
66-
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
67-
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
68-
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
69-
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
70-
SUCH DAMAGE.
71-
72-
73-
74-
Source code Licensed under the BSD 3-Clause License
75-
===================================================
76-
77-
linux_syscall_support.h
78-
79-
Copyright (c) 2005-2011, Google Inc.
80-
All rights reserved.
81-
82-
Redistribution and use in source and binary forms, with or without
83-
modification, are permitted provided that the following conditions are
84-
met:
85-
86-
* Redistributions of source code must retain the above copyright
87-
notice, this list of conditions and the following disclaimer.
88-
* Redistributions in binary form must reproduce the above
89-
copyright notice, this list of conditions and the following disclaimer
90-
in the documentation and/or other materials provided with the
91-
distribution.
92-
* Neither the name of Google Inc. nor the names of its
93-
contributors may be used to endorse or promote products derived from
94-
this software without specific prior written permission.
95-
96-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
97-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
98-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
99-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
100-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
101-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
102-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
103-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
104-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
105-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
106-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
107-
108-
---
109-
Author: Markus Gutschke
110-
111-
112-
113-
Terms of the MIT License
114-
========================
3+
Copyright (c) 2020-2021 ByteDance, Inc.
1154

1165
Permission is hereby granted, free of charge, to any person obtaining a copy
1176
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 7 additions & 1 deletion

README.zh-CN.md

Lines changed: 7 additions & 1 deletion

bytehook/src/main/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ file(GLOB SRC *.c)
77
add_library(bytehook SHARED ${SRC})
88
target_compile_features(bytehook PUBLIC c_std_11)
99
target_compile_options(bytehook PUBLIC -Weverything -Werror)
10-
target_include_directories(bytehook PUBLIC . include)
10+
target_include_directories(bytehook PUBLIC . include third_party/bsd third_party/lss)
1111
target_link_libraries(bytehook log)
1212

1313
if(USEASAN)

bytehook/src/main/cpp/bh_cfi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020-present, ByteDance, Inc.
1+
// Copyright (c) 2020-2021 ByteDance, Inc.
22
//
33
// Permission is hereby granted, free of charge, to any person obtaining a copy
44
// of this software and associated documentation files (the "Software"), to deal

bytehook/src/main/cpp/bh_cfi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020-present, ByteDance, Inc.
1+
// Copyright (c) 2020-2021 ByteDance, Inc.
22
//
33
// Permission is hereby granted, free of charge, to any person obtaining a copy
44
// of this software and associated documentation files (the "Software"), to deal

bytehook/src/main/cpp/bh_const.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020-present, ByteDance, Inc.
1+
// Copyright (c) 2020-2021 ByteDance, Inc.
22
//
33
// Permission is hereby granted, free of charge, to any person obtaining a copy
44
// of this software and associated documentation files (the "Software"), to deal

bytehook/src/main/cpp/bh_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020-present, ByteDance, Inc.
1+
// Copyright (c) 2020-2021 ByteDance, Inc.
22
//
33
// Permission is hereby granted, free of charge, to any person obtaining a copy
44
// of this software and associated documentation files (the "Software"), to deal

bytehook/src/main/cpp/bh_core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020-present, ByteDance, Inc.
1+
// Copyright (c) 2020-2021 ByteDance, Inc.
22
//
33
// Permission is hereby granted, free of charge, to any person obtaining a copy
44
// of this software and associated documentation files (the "Software"), to deal

bytehook/src/main/cpp/bh_dl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2020-present, ByteDance, Inc.
1+
// Copyright (c) 2020-2021 ByteDance, Inc.
22
//
33
// Permission is hereby granted, free of charge, to any person obtaining a copy
44
// of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)