xref: /aosp_15_r20/external/autotest/autotest_lib/client/LICENSE (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1*9c5db199SXin Li		    GNU GENERAL PUBLIC LICENSE
2*9c5db199SXin Li		       Version 2, June 1991
3*9c5db199SXin Li
4*9c5db199SXin Li Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5*9c5db199SXin Li                       51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
6*9c5db199SXin Li Everyone is permitted to copy and distribute verbatim copies
7*9c5db199SXin Li of this license document, but changing it is not allowed.
8*9c5db199SXin Li
9*9c5db199SXin Li			    Preamble
10*9c5db199SXin Li
11*9c5db199SXin Li  The licenses for most software are designed to take away your
12*9c5db199SXin Lifreedom to share and change it.  By contrast, the GNU General Public
13*9c5db199SXin LiLicense is intended to guarantee your freedom to share and change free
14*9c5db199SXin Lisoftware--to make sure the software is free for all its users.  This
15*9c5db199SXin LiGeneral Public License applies to most of the Free Software
16*9c5db199SXin LiFoundation's software and to any other program whose authors commit to
17*9c5db199SXin Liusing it.  (Some other Free Software Foundation software is covered by
18*9c5db199SXin Lithe GNU Library General Public License instead.)  You can apply it to
19*9c5db199SXin Liyour programs, too.
20*9c5db199SXin Li
21*9c5db199SXin Li  When we speak of free software, we are referring to freedom, not
22*9c5db199SXin Liprice.  Our General Public Licenses are designed to make sure that you
23*9c5db199SXin Lihave the freedom to distribute copies of free software (and charge for
24*9c5db199SXin Lithis service if you wish), that you receive source code or can get it
25*9c5db199SXin Liif you want it, that you can change the software or use pieces of it
26*9c5db199SXin Liin new free programs; and that you know you can do these things.
27*9c5db199SXin Li
28*9c5db199SXin Li  To protect your rights, we need to make restrictions that forbid
29*9c5db199SXin Lianyone to deny you these rights or to ask you to surrender the rights.
30*9c5db199SXin LiThese restrictions translate to certain responsibilities for you if you
31*9c5db199SXin Lidistribute copies of the software, or if you modify it.
32*9c5db199SXin Li
33*9c5db199SXin Li  For example, if you distribute copies of such a program, whether
34*9c5db199SXin Ligratis or for a fee, you must give the recipients all the rights that
35*9c5db199SXin Liyou have.  You must make sure that they, too, receive or can get the
36*9c5db199SXin Lisource code.  And you must show them these terms so they know their
37*9c5db199SXin Lirights.
38*9c5db199SXin Li
39*9c5db199SXin Li  We protect your rights with two steps: (1) copyright the software, and
40*9c5db199SXin Li(2) offer you this license which gives you legal permission to copy,
41*9c5db199SXin Lidistribute and/or modify the software.
42*9c5db199SXin Li
43*9c5db199SXin Li  Also, for each author's protection and ours, we want to make certain
44*9c5db199SXin Lithat everyone understands that there is no warranty for this free
45*9c5db199SXin Lisoftware.  If the software is modified by someone else and passed on, we
46*9c5db199SXin Liwant its recipients to know that what they have is not the original, so
47*9c5db199SXin Lithat any problems introduced by others will not reflect on the original
48*9c5db199SXin Liauthors' reputations.
49*9c5db199SXin Li
50*9c5db199SXin Li  Finally, any free program is threatened constantly by software
51*9c5db199SXin Lipatents.  We wish to avoid the danger that redistributors of a free
52*9c5db199SXin Liprogram will individually obtain patent licenses, in effect making the
53*9c5db199SXin Liprogram proprietary.  To prevent this, we have made it clear that any
54*9c5db199SXin Lipatent must be licensed for everyone's free use or not licensed at all.
55*9c5db199SXin Li
56*9c5db199SXin Li  The precise terms and conditions for copying, distribution and
57*9c5db199SXin Limodification follow.
58*9c5db199SXin Li
59*9c5db199SXin Li		    GNU GENERAL PUBLIC LICENSE
60*9c5db199SXin Li   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61*9c5db199SXin Li
62*9c5db199SXin Li  0. This License applies to any program or other work which contains
63*9c5db199SXin Lia notice placed by the copyright holder saying it may be distributed
64*9c5db199SXin Liunder the terms of this General Public License.  The "Program", below,
65*9c5db199SXin Lirefers to any such program or work, and a "work based on the Program"
66*9c5db199SXin Limeans either the Program or any derivative work under copyright law:
67*9c5db199SXin Lithat is to say, a work containing the Program or a portion of it,
68*9c5db199SXin Lieither verbatim or with modifications and/or translated into another
69*9c5db199SXin Lilanguage.  (Hereinafter, translation is included without limitation in
70*9c5db199SXin Lithe term "modification".)  Each licensee is addressed as "you".
71*9c5db199SXin Li
72*9c5db199SXin LiActivities other than copying, distribution and modification are not
73*9c5db199SXin Licovered by this License; they are outside its scope.  The act of
74*9c5db199SXin Lirunning the Program is not restricted, and the output from the Program
75*9c5db199SXin Liis covered only if its contents constitute a work based on the
76*9c5db199SXin LiProgram (independent of having been made by running the Program).
77*9c5db199SXin LiWhether that is true depends on what the Program does.
78*9c5db199SXin Li
79*9c5db199SXin Li  1. You may copy and distribute verbatim copies of the Program's
80*9c5db199SXin Lisource code as you receive it, in any medium, provided that you
81*9c5db199SXin Liconspicuously and appropriately publish on each copy an appropriate
82*9c5db199SXin Licopyright notice and disclaimer of warranty; keep intact all the
83*9c5db199SXin Linotices that refer to this License and to the absence of any warranty;
84*9c5db199SXin Liand give any other recipients of the Program a copy of this License
85*9c5db199SXin Lialong with the Program.
86*9c5db199SXin Li
87*9c5db199SXin LiYou may charge a fee for the physical act of transferring a copy, and
88*9c5db199SXin Liyou may at your option offer warranty protection in exchange for a fee.
89*9c5db199SXin Li
90*9c5db199SXin Li  2. You may modify your copy or copies of the Program or any portion
91*9c5db199SXin Liof it, thus forming a work based on the Program, and copy and
92*9c5db199SXin Lidistribute such modifications or work under the terms of Section 1
93*9c5db199SXin Liabove, provided that you also meet all of these conditions:
94*9c5db199SXin Li
95*9c5db199SXin Li    a) You must cause the modified files to carry prominent notices
96*9c5db199SXin Li    stating that you changed the files and the date of any change.
97*9c5db199SXin Li
98*9c5db199SXin Li    b) You must cause any work that you distribute or publish, that in
99*9c5db199SXin Li    whole or in part contains or is derived from the Program or any
100*9c5db199SXin Li    part thereof, to be licensed as a whole at no charge to all third
101*9c5db199SXin Li    parties under the terms of this License.
102*9c5db199SXin Li
103*9c5db199SXin Li    c) If the modified program normally reads commands interactively
104*9c5db199SXin Li    when run, you must cause it, when started running for such
105*9c5db199SXin Li    interactive use in the most ordinary way, to print or display an
106*9c5db199SXin Li    announcement including an appropriate copyright notice and a
107*9c5db199SXin Li    notice that there is no warranty (or else, saying that you provide
108*9c5db199SXin Li    a warranty) and that users may redistribute the program under
109*9c5db199SXin Li    these conditions, and telling the user how to view a copy of this
110*9c5db199SXin Li    License.  (Exception: if the Program itself is interactive but
111*9c5db199SXin Li    does not normally print such an announcement, your work based on
112*9c5db199SXin Li    the Program is not required to print an announcement.)
113*9c5db199SXin Li
114*9c5db199SXin LiThese requirements apply to the modified work as a whole.  If
115*9c5db199SXin Liidentifiable sections of that work are not derived from the Program,
116*9c5db199SXin Liand can be reasonably considered independent and separate works in
117*9c5db199SXin Lithemselves, then this License, and its terms, do not apply to those
118*9c5db199SXin Lisections when you distribute them as separate works.  But when you
119*9c5db199SXin Lidistribute the same sections as part of a whole which is a work based
120*9c5db199SXin Lion the Program, the distribution of the whole must be on the terms of
121*9c5db199SXin Lithis License, whose permissions for other licensees extend to the
122*9c5db199SXin Lientire whole, and thus to each and every part regardless of who wrote it.
123*9c5db199SXin Li
124*9c5db199SXin LiThus, it is not the intent of this section to claim rights or contest
125*9c5db199SXin Liyour rights to work written entirely by you; rather, the intent is to
126*9c5db199SXin Liexercise the right to control the distribution of derivative or
127*9c5db199SXin Licollective works based on the Program.
128*9c5db199SXin Li
129*9c5db199SXin LiIn addition, mere aggregation of another work not based on the Program
130*9c5db199SXin Liwith the Program (or with a work based on the Program) on a volume of
131*9c5db199SXin Lia storage or distribution medium does not bring the other work under
132*9c5db199SXin Lithe scope of this License.
133*9c5db199SXin Li
134*9c5db199SXin Li  3. You may copy and distribute the Program (or a work based on it,
135*9c5db199SXin Liunder Section 2) in object code or executable form under the terms of
136*9c5db199SXin LiSections 1 and 2 above provided that you also do one of the following:
137*9c5db199SXin Li
138*9c5db199SXin Li    a) Accompany it with the complete corresponding machine-readable
139*9c5db199SXin Li    source code, which must be distributed under the terms of Sections
140*9c5db199SXin Li    1 and 2 above on a medium customarily used for software interchange; or,
141*9c5db199SXin Li
142*9c5db199SXin Li    b) Accompany it with a written offer, valid for at least three
143*9c5db199SXin Li    years, to give any third party, for a charge no more than your
144*9c5db199SXin Li    cost of physically performing source distribution, a complete
145*9c5db199SXin Li    machine-readable copy of the corresponding source code, to be
146*9c5db199SXin Li    distributed under the terms of Sections 1 and 2 above on a medium
147*9c5db199SXin Li    customarily used for software interchange; or,
148*9c5db199SXin Li
149*9c5db199SXin Li    c) Accompany it with the information you received as to the offer
150*9c5db199SXin Li    to distribute corresponding source code.  (This alternative is
151*9c5db199SXin Li    allowed only for noncommercial distribution and only if you
152*9c5db199SXin Li    received the program in object code or executable form with such
153*9c5db199SXin Li    an offer, in accord with Subsection b above.)
154*9c5db199SXin Li
155*9c5db199SXin LiThe source code for a work means the preferred form of the work for
156*9c5db199SXin Limaking modifications to it.  For an executable work, complete source
157*9c5db199SXin Licode means all the source code for all modules it contains, plus any
158*9c5db199SXin Liassociated interface definition files, plus the scripts used to
159*9c5db199SXin Licontrol compilation and installation of the executable.  However, as a
160*9c5db199SXin Lispecial exception, the source code distributed need not include
161*9c5db199SXin Lianything that is normally distributed (in either source or binary
162*9c5db199SXin Liform) with the major components (compiler, kernel, and so on) of the
163*9c5db199SXin Lioperating system on which the executable runs, unless that component
164*9c5db199SXin Liitself accompanies the executable.
165*9c5db199SXin Li
166*9c5db199SXin LiIf distribution of executable or object code is made by offering
167*9c5db199SXin Liaccess to copy from a designated place, then offering equivalent
168*9c5db199SXin Liaccess to copy the source code from the same place counts as
169*9c5db199SXin Lidistribution of the source code, even though third parties are not
170*9c5db199SXin Licompelled to copy the source along with the object code.
171*9c5db199SXin Li
172*9c5db199SXin Li  4. You may not copy, modify, sublicense, or distribute the Program
173*9c5db199SXin Liexcept as expressly provided under this License.  Any attempt
174*9c5db199SXin Liotherwise to copy, modify, sublicense or distribute the Program is
175*9c5db199SXin Livoid, and will automatically terminate your rights under this License.
176*9c5db199SXin LiHowever, parties who have received copies, or rights, from you under
177*9c5db199SXin Lithis License will not have their licenses terminated so long as such
178*9c5db199SXin Liparties remain in full compliance.
179*9c5db199SXin Li
180*9c5db199SXin Li  5. You are not required to accept this License, since you have not
181*9c5db199SXin Lisigned it.  However, nothing else grants you permission to modify or
182*9c5db199SXin Lidistribute the Program or its derivative works.  These actions are
183*9c5db199SXin Liprohibited by law if you do not accept this License.  Therefore, by
184*9c5db199SXin Limodifying or distributing the Program (or any work based on the
185*9c5db199SXin LiProgram), you indicate your acceptance of this License to do so, and
186*9c5db199SXin Liall its terms and conditions for copying, distributing or modifying
187*9c5db199SXin Lithe Program or works based on it.
188*9c5db199SXin Li
189*9c5db199SXin Li  6. Each time you redistribute the Program (or any work based on the
190*9c5db199SXin LiProgram), the recipient automatically receives a license from the
191*9c5db199SXin Lioriginal licensor to copy, distribute or modify the Program subject to
192*9c5db199SXin Lithese terms and conditions.  You may not impose any further
193*9c5db199SXin Lirestrictions on the recipients' exercise of the rights granted herein.
194*9c5db199SXin LiYou are not responsible for enforcing compliance by third parties to
195*9c5db199SXin Lithis License.
196*9c5db199SXin Li
197*9c5db199SXin Li  7. If, as a consequence of a court judgment or allegation of patent
198*9c5db199SXin Liinfringement or for any other reason (not limited to patent issues),
199*9c5db199SXin Liconditions are imposed on you (whether by court order, agreement or
200*9c5db199SXin Liotherwise) that contradict the conditions of this License, they do not
201*9c5db199SXin Liexcuse you from the conditions of this License.  If you cannot
202*9c5db199SXin Lidistribute so as to satisfy simultaneously your obligations under this
203*9c5db199SXin LiLicense and any other pertinent obligations, then as a consequence you
204*9c5db199SXin Limay not distribute the Program at all.  For example, if a patent
205*9c5db199SXin Lilicense would not permit royalty-free redistribution of the Program by
206*9c5db199SXin Liall those who receive copies directly or indirectly through you, then
207*9c5db199SXin Lithe only way you could satisfy both it and this License would be to
208*9c5db199SXin Lirefrain entirely from distribution of the Program.
209*9c5db199SXin Li
210*9c5db199SXin LiIf any portion of this section is held invalid or unenforceable under
211*9c5db199SXin Liany particular circumstance, the balance of the section is intended to
212*9c5db199SXin Liapply and the section as a whole is intended to apply in other
213*9c5db199SXin Licircumstances.
214*9c5db199SXin Li
215*9c5db199SXin LiIt is not the purpose of this section to induce you to infringe any
216*9c5db199SXin Lipatents or other property right claims or to contest validity of any
217*9c5db199SXin Lisuch claims; this section has the sole purpose of protecting the
218*9c5db199SXin Liintegrity of the free software distribution system, which is
219*9c5db199SXin Liimplemented by public license practices.  Many people have made
220*9c5db199SXin Ligenerous contributions to the wide range of software distributed
221*9c5db199SXin Lithrough that system in reliance on consistent application of that
222*9c5db199SXin Lisystem; it is up to the author/donor to decide if he or she is willing
223*9c5db199SXin Lito distribute software through any other system and a licensee cannot
224*9c5db199SXin Liimpose that choice.
225*9c5db199SXin Li
226*9c5db199SXin LiThis section is intended to make thoroughly clear what is believed to
227*9c5db199SXin Libe a consequence of the rest of this License.
228*9c5db199SXin Li
229*9c5db199SXin Li  8. If the distribution and/or use of the Program is restricted in
230*9c5db199SXin Licertain countries either by patents or by copyrighted interfaces, the
231*9c5db199SXin Lioriginal copyright holder who places the Program under this License
232*9c5db199SXin Limay add an explicit geographical distribution limitation excluding
233*9c5db199SXin Lithose countries, so that distribution is permitted only in or among
234*9c5db199SXin Licountries not thus excluded.  In such case, this License incorporates
235*9c5db199SXin Lithe limitation as if written in the body of this License.
236*9c5db199SXin Li
237*9c5db199SXin Li  9. The Free Software Foundation may publish revised and/or new versions
238*9c5db199SXin Liof the General Public License from time to time.  Such new versions will
239*9c5db199SXin Libe similar in spirit to the present version, but may differ in detail to
240*9c5db199SXin Liaddress new problems or concerns.
241*9c5db199SXin Li
242*9c5db199SXin LiEach version is given a distinguishing version number.  If the Program
243*9c5db199SXin Lispecifies a version number of this License which applies to it and "any
244*9c5db199SXin Lilater version", you have the option of following the terms and conditions
245*9c5db199SXin Lieither of that version or of any later version published by the Free
246*9c5db199SXin LiSoftware Foundation.  If the Program does not specify a version number of
247*9c5db199SXin Lithis License, you may choose any version ever published by the Free Software
248*9c5db199SXin LiFoundation.
249*9c5db199SXin Li
250*9c5db199SXin Li  10. If you wish to incorporate parts of the Program into other free
251*9c5db199SXin Liprograms whose distribution conditions are different, write to the author
252*9c5db199SXin Lito ask for permission.  For software which is copyrighted by the Free
253*9c5db199SXin LiSoftware Foundation, write to the Free Software Foundation; we sometimes
254*9c5db199SXin Limake exceptions for this.  Our decision will be guided by the two goals
255*9c5db199SXin Liof preserving the free status of all derivatives of our free software and
256*9c5db199SXin Liof promoting the sharing and reuse of software generally.
257*9c5db199SXin Li
258*9c5db199SXin Li			    NO WARRANTY
259*9c5db199SXin Li
260*9c5db199SXin Li  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261*9c5db199SXin LiFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
262*9c5db199SXin LiOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263*9c5db199SXin LiPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264*9c5db199SXin LiOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265*9c5db199SXin LiMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
266*9c5db199SXin LiTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
267*9c5db199SXin LiPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268*9c5db199SXin LiREPAIR OR CORRECTION.
269*9c5db199SXin Li
270*9c5db199SXin Li  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271*9c5db199SXin LiWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272*9c5db199SXin LiREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273*9c5db199SXin LiINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274*9c5db199SXin LiOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275*9c5db199SXin LiTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276*9c5db199SXin LiYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277*9c5db199SXin LiPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278*9c5db199SXin LiPOSSIBILITY OF SUCH DAMAGES.
279*9c5db199SXin Li
280*9c5db199SXin Li		     END OF TERMS AND CONDITIONS
281*9c5db199SXin Li
282*9c5db199SXin Li	    How to Apply These Terms to Your New Programs
283*9c5db199SXin Li
284*9c5db199SXin Li  If you develop a new program, and you want it to be of the greatest
285*9c5db199SXin Lipossible use to the public, the best way to achieve this is to make it
286*9c5db199SXin Lifree software which everyone can redistribute and change under these terms.
287*9c5db199SXin Li
288*9c5db199SXin Li  To do so, attach the following notices to the program.  It is safest
289*9c5db199SXin Lito attach them to the start of each source file to most effectively
290*9c5db199SXin Liconvey the exclusion of warranty; and each file should have at least
291*9c5db199SXin Lithe "copyright" line and a pointer to where the full notice is found.
292*9c5db199SXin Li
293*9c5db199SXin Li    <one line to give the program's name and a brief idea of what it does.>
294*9c5db199SXin Li    Copyright (C) <year>  <name of author>
295*9c5db199SXin Li
296*9c5db199SXin Li    This program is free software; you can redistribute it and/or modify
297*9c5db199SXin Li    it under the terms of the GNU General Public License as published by
298*9c5db199SXin Li    the Free Software Foundation; either version 2 of the License, or
299*9c5db199SXin Li    (at your option) any later version.
300*9c5db199SXin Li
301*9c5db199SXin Li    This program is distributed in the hope that it will be useful,
302*9c5db199SXin Li    but WITHOUT ANY WARRANTY; without even the implied warranty of
303*9c5db199SXin Li    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
304*9c5db199SXin Li    GNU General Public License for more details.
305*9c5db199SXin Li
306*9c5db199SXin Li    You should have received a copy of the GNU General Public License
307*9c5db199SXin Li    along with this program; if not, write to the Free Software
308*9c5db199SXin Li    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
309*9c5db199SXin Li
310*9c5db199SXin Li
311*9c5db199SXin LiAlso add information on how to contact you by electronic and paper mail.
312*9c5db199SXin Li
313*9c5db199SXin LiIf the program is interactive, make it output a short notice like this
314*9c5db199SXin Liwhen it starts in an interactive mode:
315*9c5db199SXin Li
316*9c5db199SXin Li    Gnomovision version 69, Copyright (C) year name of author
317*9c5db199SXin Li    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
318*9c5db199SXin Li    This is free software, and you are welcome to redistribute it
319*9c5db199SXin Li    under certain conditions; type `show c' for details.
320*9c5db199SXin Li
321*9c5db199SXin LiThe hypothetical commands `show w' and `show c' should show the appropriate
322*9c5db199SXin Liparts of the General Public License.  Of course, the commands you use may
323*9c5db199SXin Libe called something other than `show w' and `show c'; they could even be
324*9c5db199SXin Limouse-clicks or menu items--whatever suits your program.
325*9c5db199SXin Li
326*9c5db199SXin LiYou should also get your employer (if you work as a programmer) or your
327*9c5db199SXin Lischool, if any, to sign a "copyright disclaimer" for the program, if
328*9c5db199SXin Linecessary.  Here is a sample; alter the names:
329*9c5db199SXin Li
330*9c5db199SXin Li  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
331*9c5db199SXin Li  `Gnomovision' (which makes passes at compilers) written by James Hacker.
332*9c5db199SXin Li
333*9c5db199SXin Li  <signature of Ty Coon>, 1 April 1989
334*9c5db199SXin Li  Ty Coon, President of Vice
335*9c5db199SXin Li
336*9c5db199SXin LiThis General Public License does not permit incorporating your program into
337*9c5db199SXin Liproprietary programs.  If your program is a subroutine library, you may
338*9c5db199SXin Liconsider it more useful to permit linking proprietary applications with the
339*9c5db199SXin Lilibrary.  If this is what you want to do, use the GNU Library General
340*9c5db199SXin LiPublic License instead of this License.
341