xref: /OK3568_Linux_fs/kernel/LICENSES/dual/MPL-1.1 (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunValid-License-Identifier: MPL-1.1
2*4882a593SmuzhiyunSPDX-URL: https://spdx.org/licenses/MPL-1.1.html
3*4882a593SmuzhiyunUsage-Guide:
4*4882a593Smuzhiyun  Do NOT use. The MPL-1.1 is not GPL2 compatible. It may only be used for
5*4882a593Smuzhiyun  dual-licensed files where the other license is GPL2 compatible.
6*4882a593Smuzhiyun  If you end up using this it MUST be used together with a GPL2 compatible
7*4882a593Smuzhiyun  license using "OR".
8*4882a593Smuzhiyun  To use the Mozilla Public License version 1.1 put the following SPDX
9*4882a593Smuzhiyun  tag/value pair into a comment according to the placement guidelines in
10*4882a593Smuzhiyun  the licensing rules documentation:
11*4882a593Smuzhiyun    SPDX-License-Identifier: MPL-1.1
12*4882a593SmuzhiyunLicense-Text:
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun                          MOZILLA PUBLIC LICENSE
15*4882a593Smuzhiyun                                Version 1.1
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun                              ---------------
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun1. Definitions.
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun     1.0.1. "Commercial Use" means distribution or otherwise making the
22*4882a593Smuzhiyun     Covered Code available to a third party.
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun     1.1. "Contributor" means each entity that creates or contributes to
25*4882a593Smuzhiyun     the creation of Modifications.
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun     1.2. "Contributor Version" means the combination of the Original
28*4882a593Smuzhiyun     Code, prior Modifications used by a Contributor, and the Modifications
29*4882a593Smuzhiyun     made by that particular Contributor.
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun     1.3. "Covered Code" means the Original Code or Modifications or the
32*4882a593Smuzhiyun     combination of the Original Code and Modifications, in each case
33*4882a593Smuzhiyun     including portions thereof.
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun     1.4. "Electronic Distribution Mechanism" means a mechanism generally
36*4882a593Smuzhiyun     accepted in the software development community for the electronic
37*4882a593Smuzhiyun     transfer of data.
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun     1.5. "Executable" means Covered Code in any form other than Source
40*4882a593Smuzhiyun     Code.
41*4882a593Smuzhiyun
42*4882a593Smuzhiyun     1.6. "Initial Developer" means the individual or entity identified
43*4882a593Smuzhiyun     as the Initial Developer in the Source Code notice required by Exhibit
44*4882a593Smuzhiyun     A.
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun     1.7. "Larger Work" means a work which combines Covered Code or
47*4882a593Smuzhiyun     portions thereof with code not governed by the terms of this License.
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun     1.8. "License" means this document.
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun     1.8.1. "Licensable" means having the right to grant, to the maximum
52*4882a593Smuzhiyun     extent possible, whether at the time of the initial grant or
53*4882a593Smuzhiyun     subsequently acquired, any and all of the rights conveyed herein.
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun     1.9. "Modifications" means any addition to or deletion from the
56*4882a593Smuzhiyun     substance or structure of either the Original Code or any previous
57*4882a593Smuzhiyun     Modifications. When Covered Code is released as a series of files, a
58*4882a593Smuzhiyun     Modification is:
59*4882a593Smuzhiyun          A. Any addition to or deletion from the contents of a file
60*4882a593Smuzhiyun          containing Original Code or previous Modifications.
61*4882a593Smuzhiyun
62*4882a593Smuzhiyun          B. Any new file that contains any part of the Original Code or
63*4882a593Smuzhiyun          previous Modifications.
64*4882a593Smuzhiyun
65*4882a593Smuzhiyun     1.10. "Original Code" means Source Code of computer software code
66*4882a593Smuzhiyun     which is described in the Source Code notice required by Exhibit A as
67*4882a593Smuzhiyun     Original Code, and which, at the time of its release under this
68*4882a593Smuzhiyun     License is not already Covered Code governed by this License.
69*4882a593Smuzhiyun
70*4882a593Smuzhiyun     1.10.1. "Patent Claims" means any patent claim(s), now owned or
71*4882a593Smuzhiyun     hereafter acquired, including without limitation,  method, process,
72*4882a593Smuzhiyun     and apparatus claims, in any patent Licensable by grantor.
73*4882a593Smuzhiyun
74*4882a593Smuzhiyun     1.11. "Source Code" means the preferred form of the Covered Code for
75*4882a593Smuzhiyun     making modifications to it, including all modules it contains, plus
76*4882a593Smuzhiyun     any associated interface definition files, scripts used to control
77*4882a593Smuzhiyun     compilation and installation of an Executable, or source code
78*4882a593Smuzhiyun     differential comparisons against either the Original Code or another
79*4882a593Smuzhiyun     well known, available Covered Code of the Contributor's choice. The
80*4882a593Smuzhiyun     Source Code can be in a compressed or archival form, provided the
81*4882a593Smuzhiyun     appropriate decompression or de-archiving software is widely available
82*4882a593Smuzhiyun     for no charge.
83*4882a593Smuzhiyun
84*4882a593Smuzhiyun     1.12. "You" (or "Your")  means an individual or a legal entity
85*4882a593Smuzhiyun     exercising rights under, and complying with all of the terms of, this
86*4882a593Smuzhiyun     License or a future version of this License issued under Section 6.1.
87*4882a593Smuzhiyun     For legal entities, "You" includes any entity which controls, is
88*4882a593Smuzhiyun     controlled by, or is under common control with You. For purposes of
89*4882a593Smuzhiyun     this definition, "control" means (a) the power, direct or indirect,
90*4882a593Smuzhiyun     to cause the direction or management of such entity, whether by
91*4882a593Smuzhiyun     contract or otherwise, or (b) ownership of more than fifty percent
92*4882a593Smuzhiyun     (50%) of the outstanding shares or beneficial ownership of such
93*4882a593Smuzhiyun     entity.
94*4882a593Smuzhiyun
95*4882a593Smuzhiyun2. Source Code License.
96*4882a593Smuzhiyun
97*4882a593Smuzhiyun     2.1. The Initial Developer Grant.
98*4882a593Smuzhiyun     The Initial Developer hereby grants You a world-wide, royalty-free,
99*4882a593Smuzhiyun     non-exclusive license, subject to third party intellectual property
100*4882a593Smuzhiyun     claims:
101*4882a593Smuzhiyun          (a)  under intellectual property rights (other than patent or
102*4882a593Smuzhiyun          trademark) Licensable by Initial Developer to use, reproduce,
103*4882a593Smuzhiyun          modify, display, perform, sublicense and distribute the Original
104*4882a593Smuzhiyun          Code (or portions thereof) with or without Modifications, and/or
105*4882a593Smuzhiyun          as part of a Larger Work; and
106*4882a593Smuzhiyun
107*4882a593Smuzhiyun          (b) under Patents Claims infringed by the making, using or
108*4882a593Smuzhiyun          selling of Original Code, to make, have made, use, practice,
109*4882a593Smuzhiyun          sell, and offer for sale, and/or otherwise dispose of the
110*4882a593Smuzhiyun          Original Code (or portions thereof).
111*4882a593Smuzhiyun
112*4882a593Smuzhiyun          (c) the licenses granted in this Section 2.1(a) and (b) are
113*4882a593Smuzhiyun          effective on the date Initial Developer first distributes
114*4882a593Smuzhiyun          Original Code under the terms of this License.
115*4882a593Smuzhiyun
116*4882a593Smuzhiyun          (d) Notwithstanding Section 2.1(b) above, no patent license is
117*4882a593Smuzhiyun          granted: 1) for code that You delete from the Original Code; 2)
118*4882a593Smuzhiyun          separate from the Original Code;  or 3) for infringements caused
119*4882a593Smuzhiyun          by: i) the modification of the Original Code or ii) the
120*4882a593Smuzhiyun          combination of the Original Code with other software or devices.
121*4882a593Smuzhiyun
122*4882a593Smuzhiyun     2.2. Contributor Grant.
123*4882a593Smuzhiyun     Subject to third party intellectual property claims, each Contributor
124*4882a593Smuzhiyun     hereby grants You a world-wide, royalty-free, non-exclusive license
125*4882a593Smuzhiyun
126*4882a593Smuzhiyun          (a)  under intellectual property rights (other than patent or
127*4882a593Smuzhiyun          trademark) Licensable by Contributor, to use, reproduce, modify,
128*4882a593Smuzhiyun          display, perform, sublicense and distribute the Modifications
129*4882a593Smuzhiyun          created by such Contributor (or portions thereof) either on an
130*4882a593Smuzhiyun          unmodified basis, with other Modifications, as Covered Code
131*4882a593Smuzhiyun          and/or as part of a Larger Work; and
132*4882a593Smuzhiyun
133*4882a593Smuzhiyun          (b) under Patent Claims infringed by the making, using, or
134*4882a593Smuzhiyun          selling of  Modifications made by that Contributor either alone
135*4882a593Smuzhiyun          and/or in combination with its Contributor Version (or portions
136*4882a593Smuzhiyun          of such combination), to make, use, sell, offer for sale, have
137*4882a593Smuzhiyun          made, and/or otherwise dispose of: 1) Modifications made by that
138*4882a593Smuzhiyun          Contributor (or portions thereof); and 2) the combination of
139*4882a593Smuzhiyun          Modifications made by that Contributor with its Contributor
140*4882a593Smuzhiyun          Version (or portions of such combination).
141*4882a593Smuzhiyun
142*4882a593Smuzhiyun          (c) the licenses granted in Sections 2.2(a) and 2.2(b) are
143*4882a593Smuzhiyun          effective on the date Contributor first makes Commercial Use of
144*4882a593Smuzhiyun          the Covered Code.
145*4882a593Smuzhiyun
146*4882a593Smuzhiyun          (d)    Notwithstanding Section 2.2(b) above, no patent license is
147*4882a593Smuzhiyun          granted: 1) for any code that Contributor has deleted from the
148*4882a593Smuzhiyun          Contributor Version; 2)  separate from the Contributor Version;
149*4882a593Smuzhiyun          3)  for infringements caused by: i) third party modifications of
150*4882a593Smuzhiyun          Contributor Version or ii)  the combination of Modifications made
151*4882a593Smuzhiyun          by that Contributor with other software  (except as part of the
152*4882a593Smuzhiyun          Contributor Version) or other devices; or 4) under Patent Claims
153*4882a593Smuzhiyun          infringed by Covered Code in the absence of Modifications made by
154*4882a593Smuzhiyun          that Contributor.
155*4882a593Smuzhiyun
156*4882a593Smuzhiyun3. Distribution Obligations.
157*4882a593Smuzhiyun
158*4882a593Smuzhiyun     3.1. Application of License.
159*4882a593Smuzhiyun     The Modifications which You create or to which You contribute are
160*4882a593Smuzhiyun     governed by the terms of this License, including without limitation
161*4882a593Smuzhiyun     Section 2.2. The Source Code version of Covered Code may be
162*4882a593Smuzhiyun     distributed only under the terms of this License or a future version
163*4882a593Smuzhiyun     of this License released under Section 6.1, and You must include a
164*4882a593Smuzhiyun     copy of this License with every copy of the Source Code You
165*4882a593Smuzhiyun     distribute. You may not offer or impose any terms on any Source Code
166*4882a593Smuzhiyun     version that alters or restricts the applicable version of this
167*4882a593Smuzhiyun     License or the recipients' rights hereunder. However, You may include
168*4882a593Smuzhiyun     an additional document offering the additional rights described in
169*4882a593Smuzhiyun     Section 3.5.
170*4882a593Smuzhiyun
171*4882a593Smuzhiyun     3.2. Availability of Source Code.
172*4882a593Smuzhiyun     Any Modification which You create or to which You contribute must be
173*4882a593Smuzhiyun     made available in Source Code form under the terms of this License
174*4882a593Smuzhiyun     either on the same media as an Executable version or via an accepted
175*4882a593Smuzhiyun     Electronic Distribution Mechanism to anyone to whom you made an
176*4882a593Smuzhiyun     Executable version available; and if made available via Electronic
177*4882a593Smuzhiyun     Distribution Mechanism, must remain available for at least twelve (12)
178*4882a593Smuzhiyun     months after the date it initially became available, or at least six
179*4882a593Smuzhiyun     (6) months after a subsequent version of that particular Modification
180*4882a593Smuzhiyun     has been made available to such recipients. You are responsible for
181*4882a593Smuzhiyun     ensuring that the Source Code version remains available even if the
182*4882a593Smuzhiyun     Electronic Distribution Mechanism is maintained by a third party.
183*4882a593Smuzhiyun
184*4882a593Smuzhiyun     3.3. Description of Modifications.
185*4882a593Smuzhiyun     You must cause all Covered Code to which You contribute to contain a
186*4882a593Smuzhiyun     file documenting the changes You made to create that Covered Code and
187*4882a593Smuzhiyun     the date of any change. You must include a prominent statement that
188*4882a593Smuzhiyun     the Modification is derived, directly or indirectly, from Original
189*4882a593Smuzhiyun     Code provided by the Initial Developer and including the name of the
190*4882a593Smuzhiyun     Initial Developer in (a) the Source Code, and (b) in any notice in an
191*4882a593Smuzhiyun     Executable version or related documentation in which You describe the
192*4882a593Smuzhiyun     origin or ownership of the Covered Code.
193*4882a593Smuzhiyun
194*4882a593Smuzhiyun     3.4. Intellectual Property Matters
195*4882a593Smuzhiyun          (a) Third Party Claims.
196*4882a593Smuzhiyun          If Contributor has knowledge that a license under a third party's
197*4882a593Smuzhiyun          intellectual property rights is required to exercise the rights
198*4882a593Smuzhiyun          granted by such Contributor under Sections 2.1 or 2.2,
199*4882a593Smuzhiyun          Contributor must include a text file with the Source Code
200*4882a593Smuzhiyun          distribution titled "LEGAL" which describes the claim and the
201*4882a593Smuzhiyun          party making the claim in sufficient detail that a recipient will
202*4882a593Smuzhiyun          know whom to contact. If Contributor obtains such knowledge after
203*4882a593Smuzhiyun          the Modification is made available as described in Section 3.2,
204*4882a593Smuzhiyun          Contributor shall promptly modify the LEGAL file in all copies
205*4882a593Smuzhiyun          Contributor makes available thereafter and shall take other steps
206*4882a593Smuzhiyun          (such as notifying appropriate mailing lists or newsgroups)
207*4882a593Smuzhiyun          reasonably calculated to inform those who received the Covered
208*4882a593Smuzhiyun          Code that new knowledge has been obtained.
209*4882a593Smuzhiyun
210*4882a593Smuzhiyun          (b) Contributor APIs.
211*4882a593Smuzhiyun          If Contributor's Modifications include an application programming
212*4882a593Smuzhiyun          interface and Contributor has knowledge of patent licenses which
213*4882a593Smuzhiyun          are reasonably necessary to implement that API, Contributor must
214*4882a593Smuzhiyun          also include this information in the LEGAL file.
215*4882a593Smuzhiyun
216*4882a593Smuzhiyun               (c)    Representations.
217*4882a593Smuzhiyun          Contributor represents that, except as disclosed pursuant to
218*4882a593Smuzhiyun          Section 3.4(a) above, Contributor believes that Contributor's
219*4882a593Smuzhiyun          Modifications are Contributor's original creation(s) and/or
220*4882a593Smuzhiyun          Contributor has sufficient rights to grant the rights conveyed by
221*4882a593Smuzhiyun          this License.
222*4882a593Smuzhiyun
223*4882a593Smuzhiyun     3.5. Required Notices.
224*4882a593Smuzhiyun     You must duplicate the notice in Exhibit A in each file of the Source
225*4882a593Smuzhiyun     Code.  If it is not possible to put such notice in a particular Source
226*4882a593Smuzhiyun     Code file due to its structure, then You must include such notice in a
227*4882a593Smuzhiyun     location (such as a relevant directory) where a user would be likely
228*4882a593Smuzhiyun     to look for such a notice.  If You created one or more Modification(s)
229*4882a593Smuzhiyun     You may add your name as a Contributor to the notice described in
230*4882a593Smuzhiyun     Exhibit A.  You must also duplicate this License in any documentation
231*4882a593Smuzhiyun     for the Source Code where You describe recipients' rights or ownership
232*4882a593Smuzhiyun     rights relating to Covered Code.  You may choose to offer, and to
233*4882a593Smuzhiyun     charge a fee for, warranty, support, indemnity or liability
234*4882a593Smuzhiyun     obligations to one or more recipients of Covered Code. However, You
235*4882a593Smuzhiyun     may do so only on Your own behalf, and not on behalf of the Initial
236*4882a593Smuzhiyun     Developer or any Contributor. You must make it absolutely clear than
237*4882a593Smuzhiyun     any such warranty, support, indemnity or liability obligation is
238*4882a593Smuzhiyun     offered by You alone, and You hereby agree to indemnify the Initial
239*4882a593Smuzhiyun     Developer and every Contributor for any liability incurred by the
240*4882a593Smuzhiyun     Initial Developer or such Contributor as a result of warranty,
241*4882a593Smuzhiyun     support, indemnity or liability terms You offer.
242*4882a593Smuzhiyun
243*4882a593Smuzhiyun     3.6. Distribution of Executable Versions.
244*4882a593Smuzhiyun     You may distribute Covered Code in Executable form only if the
245*4882a593Smuzhiyun     requirements of Section 3.1-3.5 have been met for that Covered Code,
246*4882a593Smuzhiyun     and if You include a notice stating that the Source Code version of
247*4882a593Smuzhiyun     the Covered Code is available under the terms of this License,
248*4882a593Smuzhiyun     including a description of how and where You have fulfilled the
249*4882a593Smuzhiyun     obligations of Section 3.2. The notice must be conspicuously included
250*4882a593Smuzhiyun     in any notice in an Executable version, related documentation or
251*4882a593Smuzhiyun     collateral in which You describe recipients' rights relating to the
252*4882a593Smuzhiyun     Covered Code. You may distribute the Executable version of Covered
253*4882a593Smuzhiyun     Code or ownership rights under a license of Your choice, which may
254*4882a593Smuzhiyun     contain terms different from this License, provided that You are in
255*4882a593Smuzhiyun     compliance with the terms of this License and that the license for the
256*4882a593Smuzhiyun     Executable version does not attempt to limit or alter the recipient's
257*4882a593Smuzhiyun     rights in the Source Code version from the rights set forth in this
258*4882a593Smuzhiyun     License. If You distribute the Executable version under a different
259*4882a593Smuzhiyun     license You must make it absolutely clear that any terms which differ
260*4882a593Smuzhiyun     from this License are offered by You alone, not by the Initial
261*4882a593Smuzhiyun     Developer or any Contributor. You hereby agree to indemnify the
262*4882a593Smuzhiyun     Initial Developer and every Contributor for any liability incurred by
263*4882a593Smuzhiyun     the Initial Developer or such Contributor as a result of any such
264*4882a593Smuzhiyun     terms You offer.
265*4882a593Smuzhiyun
266*4882a593Smuzhiyun     3.7. Larger Works.
267*4882a593Smuzhiyun     You may create a Larger Work by combining Covered Code with other code
268*4882a593Smuzhiyun     not governed by the terms of this License and distribute the Larger
269*4882a593Smuzhiyun     Work as a single product. In such a case, You must make sure the
270*4882a593Smuzhiyun     requirements of this License are fulfilled for the Covered Code.
271*4882a593Smuzhiyun
272*4882a593Smuzhiyun4. Inability to Comply Due to Statute or Regulation.
273*4882a593Smuzhiyun
274*4882a593Smuzhiyun     If it is impossible for You to comply with any of the terms of this
275*4882a593Smuzhiyun     License with respect to some or all of the Covered Code due to
276*4882a593Smuzhiyun     statute, judicial order, or regulation then You must: (a) comply with
277*4882a593Smuzhiyun     the terms of this License to the maximum extent possible; and (b)
278*4882a593Smuzhiyun     describe the limitations and the code they affect. Such description
279*4882a593Smuzhiyun     must be included in the LEGAL file described in Section 3.4 and must
280*4882a593Smuzhiyun     be included with all distributions of the Source Code. Except to the
281*4882a593Smuzhiyun     extent prohibited by statute or regulation, such description must be
282*4882a593Smuzhiyun     sufficiently detailed for a recipient of ordinary skill to be able to
283*4882a593Smuzhiyun     understand it.
284*4882a593Smuzhiyun
285*4882a593Smuzhiyun5. Application of this License.
286*4882a593Smuzhiyun
287*4882a593Smuzhiyun     This License applies to code to which the Initial Developer has
288*4882a593Smuzhiyun     attached the notice in Exhibit A and to related Covered Code.
289*4882a593Smuzhiyun
290*4882a593Smuzhiyun6. Versions of the License.
291*4882a593Smuzhiyun
292*4882a593Smuzhiyun     6.1. New Versions.
293*4882a593Smuzhiyun     Netscape Communications Corporation ("Netscape") may publish revised
294*4882a593Smuzhiyun     and/or new versions of the License from time to time. Each version
295*4882a593Smuzhiyun     will be given a distinguishing version number.
296*4882a593Smuzhiyun
297*4882a593Smuzhiyun     6.2. Effect of New Versions.
298*4882a593Smuzhiyun     Once Covered Code has been published under a particular version of the
299*4882a593Smuzhiyun     License, You may always continue to use it under the terms of that
300*4882a593Smuzhiyun     version. You may also choose to use such Covered Code under the terms
301*4882a593Smuzhiyun     of any subsequent version of the License published by Netscape. No one
302*4882a593Smuzhiyun     other than Netscape has the right to modify the terms applicable to
303*4882a593Smuzhiyun     Covered Code created under this License.
304*4882a593Smuzhiyun
305*4882a593Smuzhiyun     6.3. Derivative Works.
306*4882a593Smuzhiyun     If You create or use a modified version of this License (which you may
307*4882a593Smuzhiyun     only do in order to apply it to code which is not already Covered Code
308*4882a593Smuzhiyun     governed by this License), You must (a) rename Your license so that
309*4882a593Smuzhiyun     the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
310*4882a593Smuzhiyun     "MPL", "NPL" or any confusingly similar phrase do not appear in your
311*4882a593Smuzhiyun     license (except to note that your license differs from this License)
312*4882a593Smuzhiyun     and (b) otherwise make it clear that Your version of the license
313*4882a593Smuzhiyun     contains terms which differ from the Mozilla Public License and
314*4882a593Smuzhiyun     Netscape Public License. (Filling in the name of the Initial
315*4882a593Smuzhiyun     Developer, Original Code or Contributor in the notice described in
316*4882a593Smuzhiyun     Exhibit A shall not of themselves be deemed to be modifications of
317*4882a593Smuzhiyun     this License.)
318*4882a593Smuzhiyun
319*4882a593Smuzhiyun7. DISCLAIMER OF WARRANTY.
320*4882a593Smuzhiyun
321*4882a593Smuzhiyun     COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
322*4882a593Smuzhiyun     WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
323*4882a593Smuzhiyun     WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
324*4882a593Smuzhiyun     DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
325*4882a593Smuzhiyun     THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
326*4882a593Smuzhiyun     IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
327*4882a593Smuzhiyun     YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
328*4882a593Smuzhiyun     COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
329*4882a593Smuzhiyun     OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
330*4882a593Smuzhiyun     ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
331*4882a593Smuzhiyun
332*4882a593Smuzhiyun8. TERMINATION.
333*4882a593Smuzhiyun
334*4882a593Smuzhiyun     8.1.  This License and the rights granted hereunder will terminate
335*4882a593Smuzhiyun     automatically if You fail to comply with terms herein and fail to cure
336*4882a593Smuzhiyun     such breach within 30 days of becoming aware of the breach. All
337*4882a593Smuzhiyun     sublicenses to the Covered Code which are properly granted shall
338*4882a593Smuzhiyun     survive any termination of this License. Provisions which, by their
339*4882a593Smuzhiyun     nature, must remain in effect beyond the termination of this License
340*4882a593Smuzhiyun     shall survive.
341*4882a593Smuzhiyun
342*4882a593Smuzhiyun     8.2.  If You initiate litigation by asserting a patent infringement
343*4882a593Smuzhiyun     claim (excluding declatory judgment actions) against Initial Developer
344*4882a593Smuzhiyun     or a Contributor (the Initial Developer or Contributor against whom
345*4882a593Smuzhiyun     You file such action is referred to as "Participant")  alleging that:
346*4882a593Smuzhiyun
347*4882a593Smuzhiyun     (a)  such Participant's Contributor Version directly or indirectly
348*4882a593Smuzhiyun     infringes any patent, then any and all rights granted by such
349*4882a593Smuzhiyun     Participant to You under Sections 2.1 and/or 2.2 of this License
350*4882a593Smuzhiyun     shall, upon 60 days notice from Participant terminate prospectively,
351*4882a593Smuzhiyun     unless if within 60 days after receipt of notice You either: (i)
352*4882a593Smuzhiyun     agree in writing to pay Participant a mutually agreeable reasonable
353*4882a593Smuzhiyun     royalty for Your past and future use of Modifications made by such
354*4882a593Smuzhiyun     Participant, or (ii) withdraw Your litigation claim with respect to
355*4882a593Smuzhiyun     the Contributor Version against such Participant.  If within 60 days
356*4882a593Smuzhiyun     of notice, a reasonable royalty and payment arrangement are not
357*4882a593Smuzhiyun     mutually agreed upon in writing by the parties or the litigation claim
358*4882a593Smuzhiyun     is not withdrawn, the rights granted by Participant to You under
359*4882a593Smuzhiyun     Sections 2.1 and/or 2.2 automatically terminate at the expiration of
360*4882a593Smuzhiyun     the 60 day notice period specified above.
361*4882a593Smuzhiyun
362*4882a593Smuzhiyun     (b)  any software, hardware, or device, other than such Participant's
363*4882a593Smuzhiyun     Contributor Version, directly or indirectly infringes any patent, then
364*4882a593Smuzhiyun     any rights granted to You by such Participant under Sections 2.1(b)
365*4882a593Smuzhiyun     and 2.2(b) are revoked effective as of the date You first made, used,
366*4882a593Smuzhiyun     sold, distributed, or had made, Modifications made by that
367*4882a593Smuzhiyun     Participant.
368*4882a593Smuzhiyun
369*4882a593Smuzhiyun     8.3.  If You assert a patent infringement claim against Participant
370*4882a593Smuzhiyun     alleging that such Participant's Contributor Version directly or
371*4882a593Smuzhiyun     indirectly infringes any patent where such claim is resolved (such as
372*4882a593Smuzhiyun     by license or settlement) prior to the initiation of patent
373*4882a593Smuzhiyun     infringement litigation, then the reasonable value of the licenses
374*4882a593Smuzhiyun     granted by such Participant under Sections 2.1 or 2.2 shall be taken
375*4882a593Smuzhiyun     into account in determining the amount or value of any payment or
376*4882a593Smuzhiyun     license.
377*4882a593Smuzhiyun
378*4882a593Smuzhiyun     8.4.  In the event of termination under Sections 8.1 or 8.2 above,
379*4882a593Smuzhiyun     all end user license agreements (excluding distributors and resellers)
380*4882a593Smuzhiyun     which have been validly granted by You or any distributor hereunder
381*4882a593Smuzhiyun     prior to termination shall survive termination.
382*4882a593Smuzhiyun
383*4882a593Smuzhiyun9. LIMITATION OF LIABILITY.
384*4882a593Smuzhiyun
385*4882a593Smuzhiyun     UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
386*4882a593Smuzhiyun     (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
387*4882a593Smuzhiyun     DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
388*4882a593Smuzhiyun     OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
389*4882a593Smuzhiyun     ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
390*4882a593Smuzhiyun     CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
391*4882a593Smuzhiyun     WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
392*4882a593Smuzhiyun     COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
393*4882a593Smuzhiyun     INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
394*4882a593Smuzhiyun     LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
395*4882a593Smuzhiyun     RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
396*4882a593Smuzhiyun     PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
397*4882a593Smuzhiyun     EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
398*4882a593Smuzhiyun     THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
399*4882a593Smuzhiyun
400*4882a593Smuzhiyun10. U.S. GOVERNMENT END USERS.
401*4882a593Smuzhiyun
402*4882a593Smuzhiyun     The Covered Code is a "commercial item," as that term is defined in
403*4882a593Smuzhiyun     48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
404*4882a593Smuzhiyun     software" and "commercial computer software documentation," as such
405*4882a593Smuzhiyun     terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
406*4882a593Smuzhiyun     C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
407*4882a593Smuzhiyun     all U.S. Government End Users acquire Covered Code with only those
408*4882a593Smuzhiyun     rights set forth herein.
409*4882a593Smuzhiyun
410*4882a593Smuzhiyun11. MISCELLANEOUS.
411*4882a593Smuzhiyun
412*4882a593Smuzhiyun     This License represents the complete agreement concerning subject
413*4882a593Smuzhiyun     matter hereof. If any provision of this License is held to be
414*4882a593Smuzhiyun     unenforceable, such provision shall be reformed only to the extent
415*4882a593Smuzhiyun     necessary to make it enforceable. This License shall be governed by
416*4882a593Smuzhiyun     California law provisions (except to the extent applicable law, if
417*4882a593Smuzhiyun     any, provides otherwise), excluding its conflict-of-law provisions.
418*4882a593Smuzhiyun     With respect to disputes in which at least one party is a citizen of,
419*4882a593Smuzhiyun     or an entity chartered or registered to do business in the United
420*4882a593Smuzhiyun     States of America, any litigation relating to this License shall be
421*4882a593Smuzhiyun     subject to the jurisdiction of the Federal Courts of the Northern
422*4882a593Smuzhiyun     District of California, with venue lying in Santa Clara County,
423*4882a593Smuzhiyun     California, with the losing party responsible for costs, including
424*4882a593Smuzhiyun     without limitation, court costs and reasonable attorneys' fees and
425*4882a593Smuzhiyun     expenses. The application of the United Nations Convention on
426*4882a593Smuzhiyun     Contracts for the International Sale of Goods is expressly excluded.
427*4882a593Smuzhiyun     Any law or regulation which provides that the language of a contract
428*4882a593Smuzhiyun     shall be construed against the drafter shall not apply to this
429*4882a593Smuzhiyun     License.
430*4882a593Smuzhiyun
431*4882a593Smuzhiyun12. RESPONSIBILITY FOR CLAIMS.
432*4882a593Smuzhiyun
433*4882a593Smuzhiyun     As between Initial Developer and the Contributors, each party is
434*4882a593Smuzhiyun     responsible for claims and damages arising, directly or indirectly,
435*4882a593Smuzhiyun     out of its utilization of rights under this License and You agree to
436*4882a593Smuzhiyun     work with Initial Developer and Contributors to distribute such
437*4882a593Smuzhiyun     responsibility on an equitable basis. Nothing herein is intended or
438*4882a593Smuzhiyun     shall be deemed to constitute any admission of liability.
439*4882a593Smuzhiyun
440*4882a593Smuzhiyun13. MULTIPLE-LICENSED CODE.
441*4882a593Smuzhiyun
442*4882a593Smuzhiyun     Initial Developer may designate portions of the Covered Code as
443*4882a593Smuzhiyun     "Multiple-Licensed".  "Multiple-Licensed" means that the Initial
444*4882a593Smuzhiyun     Developer permits you to utilize portions of the Covered Code under
445*4882a593Smuzhiyun     Your choice of the MPL or the alternative licenses, if any, specified
446*4882a593Smuzhiyun     by the Initial Developer in the file described in Exhibit A.
447*4882a593Smuzhiyun
448*4882a593SmuzhiyunEXHIBIT A -Mozilla Public License.
449*4882a593Smuzhiyun
450*4882a593Smuzhiyun     ``The contents of this file are subject to the Mozilla Public License
451*4882a593Smuzhiyun     Version 1.1 (the "License"); you may not use this file except in
452*4882a593Smuzhiyun     compliance with the License. You may obtain a copy of the License at
453*4882a593Smuzhiyun     https://www.mozilla.org/MPL/
454*4882a593Smuzhiyun
455*4882a593Smuzhiyun     Software distributed under the License is distributed on an "AS IS"
456*4882a593Smuzhiyun     basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
457*4882a593Smuzhiyun     License for the specific language governing rights and limitations
458*4882a593Smuzhiyun     under the License.
459*4882a593Smuzhiyun
460*4882a593Smuzhiyun     The Original Code is ______________________________________.
461*4882a593Smuzhiyun
462*4882a593Smuzhiyun     The Initial Developer of the Original Code is ________________________.
463*4882a593Smuzhiyun     Portions created by ______________________ are Copyright (C) ______
464*4882a593Smuzhiyun     _______________________. All Rights Reserved.
465*4882a593Smuzhiyun
466*4882a593Smuzhiyun     Contributor(s): ______________________________________.
467*4882a593Smuzhiyun
468*4882a593Smuzhiyun     Alternatively, the contents of this file may be used under the terms
469*4882a593Smuzhiyun     of the _____ license (the  "[___] License"), in which case the
470*4882a593Smuzhiyun     provisions of [______] License are applicable instead of those
471*4882a593Smuzhiyun     above.  If you wish to allow use of your version of this file only
472*4882a593Smuzhiyun     under the terms of the [____] License and not to allow others to use
473*4882a593Smuzhiyun     your version of this file under the MPL, indicate your decision by
474*4882a593Smuzhiyun     deleting  the provisions above and replace  them with the notice and
475*4882a593Smuzhiyun     other provisions required by the [___] License.  If you do not delete
476*4882a593Smuzhiyun     the provisions above, a recipient may use your version of this file
477*4882a593Smuzhiyun     under either the MPL or the [___] License."
478*4882a593Smuzhiyun
479*4882a593Smuzhiyun     [NOTE: The text of this Exhibit A may differ slightly from the text of
480*4882a593Smuzhiyun     the notices in the Source Code files of the Original Code. You should
481*4882a593Smuzhiyun     use the text of this Exhibit A rather than the text found in the
482*4882a593Smuzhiyun     Original Code Source Code for Your Modifications.]
483