xref: /illumos-gate/usr/src/contrib/ast/LICENSE (revision b30d1939)
1*b30d1939SAndy FiddamanEclipse Public License - v 1.0
2*b30d1939SAndy Fiddaman
3*b30d1939SAndy FiddamanTHE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
4*b30d1939SAndy FiddamanLICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM
5*b30d1939SAndy FiddamanCONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
6*b30d1939SAndy Fiddaman
7*b30d1939SAndy Fiddaman   1. DEFINITIONS
8*b30d1939SAndy Fiddaman
9*b30d1939SAndy Fiddaman   "Contribution" means:
10*b30d1939SAndy Fiddaman
11*b30d1939SAndy Fiddamana) in the case of the initial Contributor, the initial code and documentation
12*b30d1939SAndy Fiddamandistributed under this Agreement, and
13*b30d1939SAndy Fiddaman
14*b30d1939SAndy Fiddaman      b) in the case of each subsequent Contributor:
15*b30d1939SAndy Fiddaman
16*b30d1939SAndy Fiddaman         i) changes to the Program, and
17*b30d1939SAndy Fiddaman
18*b30d1939SAndy Fiddaman         ii) additions to the Program;
19*b30d1939SAndy Fiddaman
20*b30d1939SAndy Fiddamanwhere such changes and/or additions to the Program originate from and are
21*b30d1939SAndy Fiddamandistributed by that particular Contributor. A Contribution 'originates' from
22*b30d1939SAndy Fiddamana Contributor if it was added to the Program by such Contributor itself or
23*b30d1939SAndy Fiddamananyone acting on such Contributor's behalf. Contributions do not include additions
24*b30d1939SAndy Fiddamanto the Program which: (i) are separate modules of software distributed in
25*b30d1939SAndy Fiddamanconjunction with the Program under their own license agreement, and (ii) are
26*b30d1939SAndy Fiddamannot derivative works of the Program.
27*b30d1939SAndy Fiddaman
28*b30d1939SAndy Fiddaman   "Contributor" means any person or entity that distributes the Program.
29*b30d1939SAndy Fiddaman
30*b30d1939SAndy Fiddaman"Licensed Patents" mean patent claims licensable by a Contributor which are
31*b30d1939SAndy Fiddamannecessarily infringed by the use or sale of its Contribution alone or when
32*b30d1939SAndy Fiddamancombined with the Program.
33*b30d1939SAndy Fiddaman
34*b30d1939SAndy Fiddaman"Program" means the Contributions distributed in accordance with this Agreement.
35*b30d1939SAndy Fiddaman
36*b30d1939SAndy Fiddaman"Recipient" means anyone who receives the Program under this Agreement, including
37*b30d1939SAndy Fiddamanall Contributors.
38*b30d1939SAndy Fiddaman
39*b30d1939SAndy Fiddaman   2. GRANT OF RIGHTS
40*b30d1939SAndy Fiddaman
41*b30d1939SAndy Fiddamana) Subject to the terms of this Agreement, each Contributor hereby grants
42*b30d1939SAndy FiddamanRecipient a non-exclusive, worldwide, royalty-free copyright license to reproduce,
43*b30d1939SAndy Fiddamanprepare derivative works of, publicly display, publicly perform, distribute
44*b30d1939SAndy Fiddamanand sublicense the Contribution of such Contributor, if any, and such derivative
45*b30d1939SAndy Fiddamanworks, in source code and object code form.
46*b30d1939SAndy Fiddaman
47*b30d1939SAndy Fiddamanb) Subject to the terms of this Agreement, each Contributor hereby grants
48*b30d1939SAndy FiddamanRecipient a non-exclusive, worldwide, royalty-free patent license under Licensed
49*b30d1939SAndy FiddamanPatents to make, use, sell, offer to sell, import and otherwise transfer the
50*b30d1939SAndy FiddamanContribution of such Contributor, if any, in source code and object code form.
51*b30d1939SAndy FiddamanThis patent license shall apply to the combination of the Contribution and
52*b30d1939SAndy Fiddamanthe Program if, at the time the Contribution is added by the Contributor,
53*b30d1939SAndy Fiddamansuch addition of the Contribution causes such combination to be covered by
54*b30d1939SAndy Fiddamanthe Licensed Patents. The patent license shall not apply to any other combinations
55*b30d1939SAndy Fiddamanwhich include the Contribution. No hardware per se is licensed hereunder.
56*b30d1939SAndy Fiddaman
57*b30d1939SAndy Fiddamanc) Recipient understands that although each Contributor grants the licenses
58*b30d1939SAndy Fiddamanto its Contributions set forth herein, no assurances are provided by any Contributor
59*b30d1939SAndy Fiddamanthat the Program does not infringe the patent or other intellectual property
60*b30d1939SAndy Fiddamanrights of any other entity. Each Contributor disclaims any liability to Recipient
61*b30d1939SAndy Fiddamanfor claims brought by any other entity based on infringement of intellectual
62*b30d1939SAndy Fiddamanproperty rights or otherwise. As a condition to exercising the rights and
63*b30d1939SAndy Fiddamanlicenses granted hereunder, each Recipient hereby assumes sole responsibility
64*b30d1939SAndy Fiddamanto secure any other intellectual property rights needed, if any. For example,
65*b30d1939SAndy Fiddamanif a third party patent license is required to allow Recipient to distribute
66*b30d1939SAndy Fiddamanthe Program, it is Recipient's responsibility to acquire that license before
67*b30d1939SAndy Fiddamandistributing the Program.
68*b30d1939SAndy Fiddaman
69*b30d1939SAndy Fiddamand) Each Contributor represents that to its knowledge it has sufficient copyright
70*b30d1939SAndy Fiddamanrights in its Contribution, if any, to grant the copyright license set forth
71*b30d1939SAndy Fiddamanin this Agreement.
72*b30d1939SAndy Fiddaman
73*b30d1939SAndy Fiddaman   3. REQUIREMENTS
74*b30d1939SAndy Fiddaman
75*b30d1939SAndy FiddamanA Contributor may choose to distribute the Program in object code form under
76*b30d1939SAndy Fiddamanits own license agreement, provided that:
77*b30d1939SAndy Fiddaman
78*b30d1939SAndy Fiddaman      a) it complies with the terms and conditions of this Agreement; and
79*b30d1939SAndy Fiddaman
80*b30d1939SAndy Fiddaman      b) its license agreement:
81*b30d1939SAndy Fiddaman
82*b30d1939SAndy Fiddamani) effectively disclaims on behalf of all Contributors all warranties and
83*b30d1939SAndy Fiddamanconditions, express and implied, including warranties or conditions of title
84*b30d1939SAndy Fiddamanand non-infringement, and implied warranties or conditions of merchantability
85*b30d1939SAndy Fiddamanand fitness for a particular purpose;
86*b30d1939SAndy Fiddaman
87*b30d1939SAndy Fiddamanii) effectively excludes on behalf of all Contributors all liability for damages,
88*b30d1939SAndy Fiddamanincluding direct, indirect, special, incidental and consequential damages,
89*b30d1939SAndy Fiddamansuch as lost profits;
90*b30d1939SAndy Fiddaman
91*b30d1939SAndy Fiddamaniii) states that any provisions which differ from this Agreement are offered
92*b30d1939SAndy Fiddamanby that Contributor alone and not by any other party; and
93*b30d1939SAndy Fiddaman
94*b30d1939SAndy Fiddamaniv) states that source code for the Program is available from such Contributor,
95*b30d1939SAndy Fiddamanand informs licensees how to obtain it in a reasonable manner on or through
96*b30d1939SAndy Fiddamana medium customarily used for software exchange.
97*b30d1939SAndy Fiddaman
98*b30d1939SAndy Fiddaman   When the Program is made available in source code form:
99*b30d1939SAndy Fiddaman
100*b30d1939SAndy Fiddaman      a) it must be made available under this Agreement; and
101*b30d1939SAndy Fiddaman
102*b30d1939SAndy Fiddamanb) a copy of this Agreement must be included with each copy of the Program.
103*b30d1939SAndy Fiddaman
104*b30d1939SAndy FiddamanContributors may not remove or alter any copyright notices contained within
105*b30d1939SAndy Fiddamanthe Program.
106*b30d1939SAndy Fiddaman
107*b30d1939SAndy FiddamanEach Contributor must identify itself as the originator of its Contribution,
108*b30d1939SAndy Fiddamanif any, in a manner that reasonably allows subsequent Recipients to identify
109*b30d1939SAndy Fiddamanthe originator of the Contribution.
110*b30d1939SAndy Fiddaman
111*b30d1939SAndy Fiddaman   4. COMMERCIAL DISTRIBUTION
112*b30d1939SAndy Fiddaman
113*b30d1939SAndy FiddamanCommercial distributors of software may accept certain responsibilities with
114*b30d1939SAndy Fiddamanrespect to end users, business partners and the like. While this license is
115*b30d1939SAndy Fiddamanintended to facilitate the commercial use of the Program, the Contributor
116*b30d1939SAndy Fiddamanwho includes the Program in a commercial product offering should do so in
117*b30d1939SAndy Fiddamana manner which does not create potential liability for other Contributors.
118*b30d1939SAndy FiddamanTherefore, if a Contributor includes the Program in a commercial product offering,
119*b30d1939SAndy Fiddamansuch Contributor ("Commercial Contributor") hereby agrees to defend and indemnify
120*b30d1939SAndy Fiddamanevery other Contributor ("Indemnified Contributor") against any losses, damages
121*b30d1939SAndy Fiddamanand costs (collectively "Losses") arising from claims, lawsuits and other
122*b30d1939SAndy Fiddamanlegal actions brought by a third party against the Indemnified Contributor
123*b30d1939SAndy Fiddamanto the extent caused by the acts or omissions of such Commercial Contributor
124*b30d1939SAndy Fiddamanin connection with its distribution of the Program in a commercial product
125*b30d1939SAndy Fiddamanoffering. The obligations in this section do not apply to any claims or Losses
126*b30d1939SAndy Fiddamanrelating to any actual or alleged intellectual property infringement. In order
127*b30d1939SAndy Fiddamanto qualify, an Indemnified Contributor must: a) promptly notify the Commercial
128*b30d1939SAndy FiddamanContributor in writing of such claim, and b) allow the Commercial Contributor
129*b30d1939SAndy Fiddamanto control, and cooperate with the Commercial Contributor in, the defense
130*b30d1939SAndy Fiddamanand any related settlement negotiations. The Indemnified Contributor may participate
131*b30d1939SAndy Fiddamanin any such claim at its own expense.
132*b30d1939SAndy Fiddaman
133*b30d1939SAndy FiddamanFor example, a Contributor might include the Program in a commercial product
134*b30d1939SAndy Fiddamanoffering, Product X. That Contributor is then a Commercial Contributor. If
135*b30d1939SAndy Fiddamanthat Commercial Contributor then makes performance claims, or offers warranties
136*b30d1939SAndy Fiddamanrelated to Product X, those performance claims and warranties are such Commercial
137*b30d1939SAndy FiddamanContributor's responsibility alone. Under this section, the Commercial Contributor
138*b30d1939SAndy Fiddamanwould have to defend claims against the other Contributors related to those
139*b30d1939SAndy Fiddamanperformance claims and warranties, and if a court requires any other Contributor
140*b30d1939SAndy Fiddamanto pay any damages as a result, the Commercial Contributor must pay those
141*b30d1939SAndy Fiddamandamages.
142*b30d1939SAndy Fiddaman
143*b30d1939SAndy Fiddaman   5. NO WARRANTY
144*b30d1939SAndy Fiddaman
145*b30d1939SAndy FiddamanEXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON
146*b30d1939SAndy FiddamanAN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS
147*b30d1939SAndy FiddamanOR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF
148*b30d1939SAndy FiddamanTITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
149*b30d1939SAndy FiddamanEach Recipient is solely responsible for determining the appropriateness of
150*b30d1939SAndy Fiddamanusing and distributing the Program and assumes all risks associated with its
151*b30d1939SAndy Fiddamanexercise of rights under this Agreement, including but not limited to the
152*b30d1939SAndy Fiddamanrisks and costs of program errors, compliance with applicable laws, damage
153*b30d1939SAndy Fiddamanto or loss of data, programs or equipment, and unavailability or interruption
154*b30d1939SAndy Fiddamanof operations.
155*b30d1939SAndy Fiddaman
156*b30d1939SAndy Fiddaman   6. DISCLAIMER OF LIABILITY
157*b30d1939SAndy Fiddaman
158*b30d1939SAndy FiddamanEXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY
159*b30d1939SAndy FiddamanCONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL,
160*b30d1939SAndy FiddamanSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION
161*b30d1939SAndy FiddamanLOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
162*b30d1939SAndy FiddamanSTRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
163*b30d1939SAndy FiddamanWAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS
164*b30d1939SAndy FiddamanGRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
165*b30d1939SAndy Fiddaman
166*b30d1939SAndy Fiddaman   7. GENERAL
167*b30d1939SAndy Fiddaman
168*b30d1939SAndy FiddamanIf any provision of this Agreement is invalid or unenforceable under applicable
169*b30d1939SAndy Fiddamanlaw, it shall not affect the validity or enforceability of the remainder of
170*b30d1939SAndy Fiddamanthe terms of this Agreement, and without further action by the parties hereto,
171*b30d1939SAndy Fiddamansuch provision shall be reformed to the minimum extent necessary to make such
172*b30d1939SAndy Fiddamanprovision valid and enforceable.
173*b30d1939SAndy Fiddaman
174*b30d1939SAndy FiddamanIf Recipient institutes patent litigation against any entity (including a
175*b30d1939SAndy Fiddamancross-claim or counterclaim in a lawsuit) alleging that the Program itself
176*b30d1939SAndy Fiddaman(excluding combinations of the Program with other software or hardware) infringes
177*b30d1939SAndy Fiddamansuch Recipient's patent(s), then such Recipient's rights granted under Section
178*b30d1939SAndy Fiddaman2(b) shall terminate as of the date such litigation is filed.
179*b30d1939SAndy Fiddaman
180*b30d1939SAndy FiddamanAll Recipient's rights under this Agreement shall terminate if it fails to
181*b30d1939SAndy Fiddamancomply with any of the material terms or conditions of this Agreement and
182*b30d1939SAndy Fiddamandoes not cure such failure in a reasonable period of time after becoming aware
183*b30d1939SAndy Fiddamanof such noncompliance. If all Recipient's rights under this Agreement terminate,
184*b30d1939SAndy FiddamanRecipient agrees to cease use and distribution of the Program as soon as reasonably
185*b30d1939SAndy Fiddamanpracticable. However, Recipient's obligations under this Agreement and any
186*b30d1939SAndy Fiddamanlicenses granted by Recipient relating to the Program shall continue and survive.
187*b30d1939SAndy Fiddaman
188*b30d1939SAndy FiddamanEveryone is permitted to copy and distribute copies of this Agreement, but
189*b30d1939SAndy Fiddamanin order to avoid inconsistency the Agreement is copyrighted and may only
190*b30d1939SAndy Fiddamanbe modified in the following manner. The Agreement Steward reserves the right
191*b30d1939SAndy Fiddamanto publish new versions (including revisions) of this Agreement from time
192*b30d1939SAndy Fiddamanto time. No one other than the Agreement Steward has the right to modify this
193*b30d1939SAndy FiddamanAgreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse
194*b30d1939SAndy FiddamanFoundation may assign the responsibility to serve as the Agreement Steward
195*b30d1939SAndy Fiddamanto a suitable separate entity. Each new version of the Agreement will be given
196*b30d1939SAndy Fiddamana distinguishing version number. The Program (including Contributions) may
197*b30d1939SAndy Fiddamanalways be distributed subject to the version of the Agreement under which
198*b30d1939SAndy Fiddamanit was received. In addition, after a new version of the Agreement is published,
199*b30d1939SAndy FiddamanContributor may elect to distribute the Program (including its Contributions)
200*b30d1939SAndy Fiddamanunder the new version. Except as expressly stated in Sections 2(a) and 2(b)
201*b30d1939SAndy Fiddamanabove, Recipient receives no rights or licenses to the intellectual property
202*b30d1939SAndy Fiddamanof any Contributor under this Agreement, whether expressly, by implication,
203*b30d1939SAndy Fiddamanestoppel or otherwise. All rights in the Program not expressly granted under
204*b30d1939SAndy Fiddamanthis Agreement are reserved.
205*b30d1939SAndy Fiddaman
206*b30d1939SAndy FiddamanThis Agreement is governed by the laws of the State of New York and the intellectual
207*b30d1939SAndy Fiddamanproperty laws of the United States of America. No party to this Agreement
208*b30d1939SAndy Fiddamanwill bring a legal action under this Agreement more than one year after the
209*b30d1939SAndy Fiddamancause of action arose. Each party waives its rights to a jury trial in any
210*b30d1939SAndy Fiddamanresulting litigation.