xref: /aosp_15_r20/external/f2fs-tools/COPYING (revision 59bfda1f02d633cd6b8b69f31eee485d40f6eef6)
1*59bfda1fSAndroid Build Coastguard WorkerThe tools for F2FS are covered by GNU Public License version 2.
2*59bfda1fSAndroid Build Coastguard WorkerExceptionally, the following files are also covered by the GNU Lesser General
3*59bfda1fSAndroid Build Coastguard WorkerPublic License Version 2.1 as the dual licenses.
4*59bfda1fSAndroid Build Coastguard Worker- include/f2fs_fs.h
5*59bfda1fSAndroid Build Coastguard Worker- lib/libf2fs.c
6*59bfda1fSAndroid Build Coastguard Worker- lib/libf2fs_io.c
7*59bfda1fSAndroid Build Coastguard Worker- mkfs/f2fs_format.c
8*59bfda1fSAndroid Build Coastguard Worker- mkfs/f2fs_format_main.c
9*59bfda1fSAndroid Build Coastguard Worker- mkfs/f2fs_format_utils.c
10*59bfda1fSAndroid Build Coastguard Worker- mkfs/f2fs_format_utils.h
11*59bfda1fSAndroid Build Coastguard Worker
12*59bfda1fSAndroid Build Coastguard Worker================================================================================
13*59bfda1fSAndroid Build Coastguard WorkerCopyright (c) 2012 Samsung Electronics Co., Ltd.
14*59bfda1fSAndroid Build Coastguard Worker             http://www.samsung.com/
15*59bfda1fSAndroid Build Coastguard Worker
16*59bfda1fSAndroid Build Coastguard WorkerThis program is free software; you can redistribute it and/or modify
17*59bfda1fSAndroid Build Coastguard Workerit under the terms of the GNU General Public License version 2 as
18*59bfda1fSAndroid Build Coastguard Workerpublished by the Free Software Foundation.
19*59bfda1fSAndroid Build Coastguard Worker
20*59bfda1fSAndroid Build Coastguard Worker================================================================================
21*59bfda1fSAndroid Build Coastguard Worker		    GNU GENERAL PUBLIC LICENSE
22*59bfda1fSAndroid Build Coastguard Worker		       Version 2, June 1991
23*59bfda1fSAndroid Build Coastguard Worker
24*59bfda1fSAndroid Build Coastguard Worker Copyright (C) 1989, 1991 Free Software Foundation, Inc.
25*59bfda1fSAndroid Build Coastguard Worker     51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
26*59bfda1fSAndroid Build Coastguard Worker Everyone is permitted to copy and distribute verbatim copies
27*59bfda1fSAndroid Build Coastguard Worker of this license document, but changing it is not allowed.
28*59bfda1fSAndroid Build Coastguard Worker
29*59bfda1fSAndroid Build Coastguard Worker			    Preamble
30*59bfda1fSAndroid Build Coastguard Worker
31*59bfda1fSAndroid Build Coastguard Worker  The licenses for most software are designed to take away your
32*59bfda1fSAndroid Build Coastguard Workerfreedom to share and change it.  By contrast, the GNU General Public
33*59bfda1fSAndroid Build Coastguard WorkerLicense is intended to guarantee your freedom to share and change free
34*59bfda1fSAndroid Build Coastguard Workersoftware--to make sure the software is free for all its users.  This
35*59bfda1fSAndroid Build Coastguard WorkerGeneral Public License applies to most of the Free Software
36*59bfda1fSAndroid Build Coastguard WorkerFoundation's software and to any other program whose authors commit to
37*59bfda1fSAndroid Build Coastguard Workerusing it.  (Some other Free Software Foundation software is covered by
38*59bfda1fSAndroid Build Coastguard Workerthe GNU Library General Public License instead.)  You can apply it to
39*59bfda1fSAndroid Build Coastguard Workeryour programs, too.
40*59bfda1fSAndroid Build Coastguard Worker
41*59bfda1fSAndroid Build Coastguard Worker  When we speak of free software, we are referring to freedom, not
42*59bfda1fSAndroid Build Coastguard Workerprice.  Our General Public Licenses are designed to make sure that you
43*59bfda1fSAndroid Build Coastguard Workerhave the freedom to distribute copies of free software (and charge for
44*59bfda1fSAndroid Build Coastguard Workerthis service if you wish), that you receive source code or can get it
45*59bfda1fSAndroid Build Coastguard Workerif you want it, that you can change the software or use pieces of it
46*59bfda1fSAndroid Build Coastguard Workerin new free programs; and that you know you can do these things.
47*59bfda1fSAndroid Build Coastguard Worker
48*59bfda1fSAndroid Build Coastguard Worker  To protect your rights, we need to make restrictions that forbid
49*59bfda1fSAndroid Build Coastguard Workeranyone to deny you these rights or to ask you to surrender the rights.
50*59bfda1fSAndroid Build Coastguard WorkerThese restrictions translate to certain responsibilities for you if you
51*59bfda1fSAndroid Build Coastguard Workerdistribute copies of the software, or if you modify it.
52*59bfda1fSAndroid Build Coastguard Worker
53*59bfda1fSAndroid Build Coastguard Worker  For example, if you distribute copies of such a program, whether
54*59bfda1fSAndroid Build Coastguard Workergratis or for a fee, you must give the recipients all the rights that
55*59bfda1fSAndroid Build Coastguard Workeryou have.  You must make sure that they, too, receive or can get the
56*59bfda1fSAndroid Build Coastguard Workersource code.  And you must show them these terms so they know their
57*59bfda1fSAndroid Build Coastguard Workerrights.
58*59bfda1fSAndroid Build Coastguard Worker
59*59bfda1fSAndroid Build Coastguard Worker  We protect your rights with two steps: (1) copyright the software, and
60*59bfda1fSAndroid Build Coastguard Worker(2) offer you this license which gives you legal permission to copy,
61*59bfda1fSAndroid Build Coastguard Workerdistribute and/or modify the software.
62*59bfda1fSAndroid Build Coastguard Worker
63*59bfda1fSAndroid Build Coastguard Worker  Also, for each author's protection and ours, we want to make certain
64*59bfda1fSAndroid Build Coastguard Workerthat everyone understands that there is no warranty for this free
65*59bfda1fSAndroid Build Coastguard Workersoftware.  If the software is modified by someone else and passed on, we
66*59bfda1fSAndroid Build Coastguard Workerwant its recipients to know that what they have is not the original, so
67*59bfda1fSAndroid Build Coastguard Workerthat any problems introduced by others will not reflect on the original
68*59bfda1fSAndroid Build Coastguard Workerauthors' reputations.
69*59bfda1fSAndroid Build Coastguard Worker
70*59bfda1fSAndroid Build Coastguard Worker  Finally, any free program is threatened constantly by software
71*59bfda1fSAndroid Build Coastguard Workerpatents.  We wish to avoid the danger that redistributors of a free
72*59bfda1fSAndroid Build Coastguard Workerprogram will individually obtain patent licenses, in effect making the
73*59bfda1fSAndroid Build Coastguard Workerprogram proprietary.  To prevent this, we have made it clear that any
74*59bfda1fSAndroid Build Coastguard Workerpatent must be licensed for everyone's free use or not licensed at all.
75*59bfda1fSAndroid Build Coastguard Worker
76*59bfda1fSAndroid Build Coastguard Worker  The precise terms and conditions for copying, distribution and
77*59bfda1fSAndroid Build Coastguard Workermodification follow.
78*59bfda1fSAndroid Build Coastguard Worker
79*59bfda1fSAndroid Build Coastguard Worker		    GNU GENERAL PUBLIC LICENSE
80*59bfda1fSAndroid Build Coastguard Worker   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
81*59bfda1fSAndroid Build Coastguard Worker
82*59bfda1fSAndroid Build Coastguard Worker  0. This License applies to any program or other work which contains
83*59bfda1fSAndroid Build Coastguard Workera notice placed by the copyright holder saying it may be distributed
84*59bfda1fSAndroid Build Coastguard Workerunder the terms of this General Public License.  The "Program", below,
85*59bfda1fSAndroid Build Coastguard Workerrefers to any such program or work, and a "work based on the Program"
86*59bfda1fSAndroid Build Coastguard Workermeans either the Program or any derivative work under copyright law:
87*59bfda1fSAndroid Build Coastguard Workerthat is to say, a work containing the Program or a portion of it,
88*59bfda1fSAndroid Build Coastguard Workereither verbatim or with modifications and/or translated into another
89*59bfda1fSAndroid Build Coastguard Workerlanguage.  (Hereinafter, translation is included without limitation in
90*59bfda1fSAndroid Build Coastguard Workerthe term "modification".)  Each licensee is addressed as "you".
91*59bfda1fSAndroid Build Coastguard Worker
92*59bfda1fSAndroid Build Coastguard WorkerActivities other than copying, distribution and modification are not
93*59bfda1fSAndroid Build Coastguard Workercovered by this License; they are outside its scope.  The act of
94*59bfda1fSAndroid Build Coastguard Workerrunning the Program is not restricted, and the output from the Program
95*59bfda1fSAndroid Build Coastguard Workeris covered only if its contents constitute a work based on the
96*59bfda1fSAndroid Build Coastguard WorkerProgram (independent of having been made by running the Program).
97*59bfda1fSAndroid Build Coastguard WorkerWhether that is true depends on what the Program does.
98*59bfda1fSAndroid Build Coastguard Worker
99*59bfda1fSAndroid Build Coastguard Worker  1. You may copy and distribute verbatim copies of the Program's
100*59bfda1fSAndroid Build Coastguard Workersource code as you receive it, in any medium, provided that you
101*59bfda1fSAndroid Build Coastguard Workerconspicuously and appropriately publish on each copy an appropriate
102*59bfda1fSAndroid Build Coastguard Workercopyright notice and disclaimer of warranty; keep intact all the
103*59bfda1fSAndroid Build Coastguard Workernotices that refer to this License and to the absence of any warranty;
104*59bfda1fSAndroid Build Coastguard Workerand give any other recipients of the Program a copy of this License
105*59bfda1fSAndroid Build Coastguard Workeralong with the Program.
106*59bfda1fSAndroid Build Coastguard Worker
107*59bfda1fSAndroid Build Coastguard WorkerYou may charge a fee for the physical act of transferring a copy, and
108*59bfda1fSAndroid Build Coastguard Workeryou may at your option offer warranty protection in exchange for a fee.
109*59bfda1fSAndroid Build Coastguard Worker
110*59bfda1fSAndroid Build Coastguard Worker  2. You may modify your copy or copies of the Program or any portion
111*59bfda1fSAndroid Build Coastguard Workerof it, thus forming a work based on the Program, and copy and
112*59bfda1fSAndroid Build Coastguard Workerdistribute such modifications or work under the terms of Section 1
113*59bfda1fSAndroid Build Coastguard Workerabove, provided that you also meet all of these conditions:
114*59bfda1fSAndroid Build Coastguard Worker
115*59bfda1fSAndroid Build Coastguard Worker    a) You must cause the modified files to carry prominent notices
116*59bfda1fSAndroid Build Coastguard Worker    stating that you changed the files and the date of any change.
117*59bfda1fSAndroid Build Coastguard Worker
118*59bfda1fSAndroid Build Coastguard Worker    b) You must cause any work that you distribute or publish, that in
119*59bfda1fSAndroid Build Coastguard Worker    whole or in part contains or is derived from the Program or any
120*59bfda1fSAndroid Build Coastguard Worker    part thereof, to be licensed as a whole at no charge to all third
121*59bfda1fSAndroid Build Coastguard Worker    parties under the terms of this License.
122*59bfda1fSAndroid Build Coastguard Worker
123*59bfda1fSAndroid Build Coastguard Worker    c) If the modified program normally reads commands interactively
124*59bfda1fSAndroid Build Coastguard Worker    when run, you must cause it, when started running for such
125*59bfda1fSAndroid Build Coastguard Worker    interactive use in the most ordinary way, to print or display an
126*59bfda1fSAndroid Build Coastguard Worker    announcement including an appropriate copyright notice and a
127*59bfda1fSAndroid Build Coastguard Worker    notice that there is no warranty (or else, saying that you provide
128*59bfda1fSAndroid Build Coastguard Worker    a warranty) and that users may redistribute the program under
129*59bfda1fSAndroid Build Coastguard Worker    these conditions, and telling the user how to view a copy of this
130*59bfda1fSAndroid Build Coastguard Worker    License.  (Exception: if the Program itself is interactive but
131*59bfda1fSAndroid Build Coastguard Worker    does not normally print such an announcement, your work based on
132*59bfda1fSAndroid Build Coastguard Worker    the Program is not required to print an announcement.)
133*59bfda1fSAndroid Build Coastguard Worker
134*59bfda1fSAndroid Build Coastguard WorkerThese requirements apply to the modified work as a whole.  If
135*59bfda1fSAndroid Build Coastguard Workeridentifiable sections of that work are not derived from the Program,
136*59bfda1fSAndroid Build Coastguard Workerand can be reasonably considered independent and separate works in
137*59bfda1fSAndroid Build Coastguard Workerthemselves, then this License, and its terms, do not apply to those
138*59bfda1fSAndroid Build Coastguard Workersections when you distribute them as separate works.  But when you
139*59bfda1fSAndroid Build Coastguard Workerdistribute the same sections as part of a whole which is a work based
140*59bfda1fSAndroid Build Coastguard Workeron the Program, the distribution of the whole must be on the terms of
141*59bfda1fSAndroid Build Coastguard Workerthis License, whose permissions for other licensees extend to the
142*59bfda1fSAndroid Build Coastguard Workerentire whole, and thus to each and every part regardless of who wrote it.
143*59bfda1fSAndroid Build Coastguard Worker
144*59bfda1fSAndroid Build Coastguard WorkerThus, it is not the intent of this section to claim rights or contest
145*59bfda1fSAndroid Build Coastguard Workeryour rights to work written entirely by you; rather, the intent is to
146*59bfda1fSAndroid Build Coastguard Workerexercise the right to control the distribution of derivative or
147*59bfda1fSAndroid Build Coastguard Workercollective works based on the Program.
148*59bfda1fSAndroid Build Coastguard Worker
149*59bfda1fSAndroid Build Coastguard WorkerIn addition, mere aggregation of another work not based on the Program
150*59bfda1fSAndroid Build Coastguard Workerwith the Program (or with a work based on the Program) on a volume of
151*59bfda1fSAndroid Build Coastguard Workera storage or distribution medium does not bring the other work under
152*59bfda1fSAndroid Build Coastguard Workerthe scope of this License.
153*59bfda1fSAndroid Build Coastguard Worker
154*59bfda1fSAndroid Build Coastguard Worker  3. You may copy and distribute the Program (or a work based on it,
155*59bfda1fSAndroid Build Coastguard Workerunder Section 2) in object code or executable form under the terms of
156*59bfda1fSAndroid Build Coastguard WorkerSections 1 and 2 above provided that you also do one of the following:
157*59bfda1fSAndroid Build Coastguard Worker
158*59bfda1fSAndroid Build Coastguard Worker    a) Accompany it with the complete corresponding machine-readable
159*59bfda1fSAndroid Build Coastguard Worker    source code, which must be distributed under the terms of Sections
160*59bfda1fSAndroid Build Coastguard Worker    1 and 2 above on a medium customarily used for software interchange; or,
161*59bfda1fSAndroid Build Coastguard Worker
162*59bfda1fSAndroid Build Coastguard Worker    b) Accompany it with a written offer, valid for at least three
163*59bfda1fSAndroid Build Coastguard Worker    years, to give any third party, for a charge no more than your
164*59bfda1fSAndroid Build Coastguard Worker    cost of physically performing source distribution, a complete
165*59bfda1fSAndroid Build Coastguard Worker    machine-readable copy of the corresponding source code, to be
166*59bfda1fSAndroid Build Coastguard Worker    distributed under the terms of Sections 1 and 2 above on a medium
167*59bfda1fSAndroid Build Coastguard Worker    customarily used for software interchange; or,
168*59bfda1fSAndroid Build Coastguard Worker
169*59bfda1fSAndroid Build Coastguard Worker    c) Accompany it with the information you received as to the offer
170*59bfda1fSAndroid Build Coastguard Worker    to distribute corresponding source code.  (This alternative is
171*59bfda1fSAndroid Build Coastguard Worker    allowed only for noncommercial distribution and only if you
172*59bfda1fSAndroid Build Coastguard Worker    received the program in object code or executable form with such
173*59bfda1fSAndroid Build Coastguard Worker    an offer, in accord with Subsection b above.)
174*59bfda1fSAndroid Build Coastguard Worker
175*59bfda1fSAndroid Build Coastguard WorkerThe source code for a work means the preferred form of the work for
176*59bfda1fSAndroid Build Coastguard Workermaking modifications to it.  For an executable work, complete source
177*59bfda1fSAndroid Build Coastguard Workercode means all the source code for all modules it contains, plus any
178*59bfda1fSAndroid Build Coastguard Workerassociated interface definition files, plus the scripts used to
179*59bfda1fSAndroid Build Coastguard Workercontrol compilation and installation of the executable.  However, as a
180*59bfda1fSAndroid Build Coastguard Workerspecial exception, the source code distributed need not include
181*59bfda1fSAndroid Build Coastguard Workeranything that is normally distributed (in either source or binary
182*59bfda1fSAndroid Build Coastguard Workerform) with the major components (compiler, kernel, and so on) of the
183*59bfda1fSAndroid Build Coastguard Workeroperating system on which the executable runs, unless that component
184*59bfda1fSAndroid Build Coastguard Workeritself accompanies the executable.
185*59bfda1fSAndroid Build Coastguard Worker
186*59bfda1fSAndroid Build Coastguard WorkerIf distribution of executable or object code is made by offering
187*59bfda1fSAndroid Build Coastguard Workeraccess to copy from a designated place, then offering equivalent
188*59bfda1fSAndroid Build Coastguard Workeraccess to copy the source code from the same place counts as
189*59bfda1fSAndroid Build Coastguard Workerdistribution of the source code, even though third parties are not
190*59bfda1fSAndroid Build Coastguard Workercompelled to copy the source along with the object code.
191*59bfda1fSAndroid Build Coastguard Worker
192*59bfda1fSAndroid Build Coastguard Worker  4. You may not copy, modify, sublicense, or distribute the Program
193*59bfda1fSAndroid Build Coastguard Workerexcept as expressly provided under this License.  Any attempt
194*59bfda1fSAndroid Build Coastguard Workerotherwise to copy, modify, sublicense or distribute the Program is
195*59bfda1fSAndroid Build Coastguard Workervoid, and will automatically terminate your rights under this License.
196*59bfda1fSAndroid Build Coastguard WorkerHowever, parties who have received copies, or rights, from you under
197*59bfda1fSAndroid Build Coastguard Workerthis License will not have their licenses terminated so long as such
198*59bfda1fSAndroid Build Coastguard Workerparties remain in full compliance.
199*59bfda1fSAndroid Build Coastguard Worker
200*59bfda1fSAndroid Build Coastguard Worker  5. You are not required to accept this License, since you have not
201*59bfda1fSAndroid Build Coastguard Workersigned it.  However, nothing else grants you permission to modify or
202*59bfda1fSAndroid Build Coastguard Workerdistribute the Program or its derivative works.  These actions are
203*59bfda1fSAndroid Build Coastguard Workerprohibited by law if you do not accept this License.  Therefore, by
204*59bfda1fSAndroid Build Coastguard Workermodifying or distributing the Program (or any work based on the
205*59bfda1fSAndroid Build Coastguard WorkerProgram), you indicate your acceptance of this License to do so, and
206*59bfda1fSAndroid Build Coastguard Workerall its terms and conditions for copying, distributing or modifying
207*59bfda1fSAndroid Build Coastguard Workerthe Program or works based on it.
208*59bfda1fSAndroid Build Coastguard Worker
209*59bfda1fSAndroid Build Coastguard Worker  6. Each time you redistribute the Program (or any work based on the
210*59bfda1fSAndroid Build Coastguard WorkerProgram), the recipient automatically receives a license from the
211*59bfda1fSAndroid Build Coastguard Workeroriginal licensor to copy, distribute or modify the Program subject to
212*59bfda1fSAndroid Build Coastguard Workerthese terms and conditions.  You may not impose any further
213*59bfda1fSAndroid Build Coastguard Workerrestrictions on the recipients' exercise of the rights granted herein.
214*59bfda1fSAndroid Build Coastguard WorkerYou are not responsible for enforcing compliance by third parties to
215*59bfda1fSAndroid Build Coastguard Workerthis License.
216*59bfda1fSAndroid Build Coastguard Worker
217*59bfda1fSAndroid Build Coastguard Worker  7. If, as a consequence of a court judgment or allegation of patent
218*59bfda1fSAndroid Build Coastguard Workerinfringement or for any other reason (not limited to patent issues),
219*59bfda1fSAndroid Build Coastguard Workerconditions are imposed on you (whether by court order, agreement or
220*59bfda1fSAndroid Build Coastguard Workerotherwise) that contradict the conditions of this License, they do not
221*59bfda1fSAndroid Build Coastguard Workerexcuse you from the conditions of this License.  If you cannot
222*59bfda1fSAndroid Build Coastguard Workerdistribute so as to satisfy simultaneously your obligations under this
223*59bfda1fSAndroid Build Coastguard WorkerLicense and any other pertinent obligations, then as a consequence you
224*59bfda1fSAndroid Build Coastguard Workermay not distribute the Program at all.  For example, if a patent
225*59bfda1fSAndroid Build Coastguard Workerlicense would not permit royalty-free redistribution of the Program by
226*59bfda1fSAndroid Build Coastguard Workerall those who receive copies directly or indirectly through you, then
227*59bfda1fSAndroid Build Coastguard Workerthe only way you could satisfy both it and this License would be to
228*59bfda1fSAndroid Build Coastguard Workerrefrain entirely from distribution of the Program.
229*59bfda1fSAndroid Build Coastguard Worker
230*59bfda1fSAndroid Build Coastguard WorkerIf any portion of this section is held invalid or unenforceable under
231*59bfda1fSAndroid Build Coastguard Workerany particular circumstance, the balance of the section is intended to
232*59bfda1fSAndroid Build Coastguard Workerapply and the section as a whole is intended to apply in other
233*59bfda1fSAndroid Build Coastguard Workercircumstances.
234*59bfda1fSAndroid Build Coastguard Worker
235*59bfda1fSAndroid Build Coastguard WorkerIt is not the purpose of this section to induce you to infringe any
236*59bfda1fSAndroid Build Coastguard Workerpatents or other property right claims or to contest validity of any
237*59bfda1fSAndroid Build Coastguard Workersuch claims; this section has the sole purpose of protecting the
238*59bfda1fSAndroid Build Coastguard Workerintegrity of the free software distribution system, which is
239*59bfda1fSAndroid Build Coastguard Workerimplemented by public license practices.  Many people have made
240*59bfda1fSAndroid Build Coastguard Workergenerous contributions to the wide range of software distributed
241*59bfda1fSAndroid Build Coastguard Workerthrough that system in reliance on consistent application of that
242*59bfda1fSAndroid Build Coastguard Workersystem; it is up to the author/donor to decide if he or she is willing
243*59bfda1fSAndroid Build Coastguard Workerto distribute software through any other system and a licensee cannot
244*59bfda1fSAndroid Build Coastguard Workerimpose that choice.
245*59bfda1fSAndroid Build Coastguard Worker
246*59bfda1fSAndroid Build Coastguard WorkerThis section is intended to make thoroughly clear what is believed to
247*59bfda1fSAndroid Build Coastguard Workerbe a consequence of the rest of this License.
248*59bfda1fSAndroid Build Coastguard Worker
249*59bfda1fSAndroid Build Coastguard Worker  8. If the distribution and/or use of the Program is restricted in
250*59bfda1fSAndroid Build Coastguard Workercertain countries either by patents or by copyrighted interfaces, the
251*59bfda1fSAndroid Build Coastguard Workeroriginal copyright holder who places the Program under this License
252*59bfda1fSAndroid Build Coastguard Workermay add an explicit geographical distribution limitation excluding
253*59bfda1fSAndroid Build Coastguard Workerthose countries, so that distribution is permitted only in or among
254*59bfda1fSAndroid Build Coastguard Workercountries not thus excluded.  In such case, this License incorporates
255*59bfda1fSAndroid Build Coastguard Workerthe limitation as if written in the body of this License.
256*59bfda1fSAndroid Build Coastguard Worker
257*59bfda1fSAndroid Build Coastguard Worker  9. The Free Software Foundation may publish revised and/or new versions
258*59bfda1fSAndroid Build Coastguard Workerof the General Public License from time to time.  Such new versions will
259*59bfda1fSAndroid Build Coastguard Workerbe similar in spirit to the present version, but may differ in detail to
260*59bfda1fSAndroid Build Coastguard Workeraddress new problems or concerns.
261*59bfda1fSAndroid Build Coastguard Worker
262*59bfda1fSAndroid Build Coastguard WorkerEach version is given a distinguishing version number.  If the Program
263*59bfda1fSAndroid Build Coastguard Workerspecifies a version number of this License which applies to it and "any
264*59bfda1fSAndroid Build Coastguard Workerlater version", you have the option of following the terms and conditions
265*59bfda1fSAndroid Build Coastguard Workereither of that version or of any later version published by the Free
266*59bfda1fSAndroid Build Coastguard WorkerSoftware Foundation.  If the Program does not specify a version number of
267*59bfda1fSAndroid Build Coastguard Workerthis License, you may choose any version ever published by the Free Software
268*59bfda1fSAndroid Build Coastguard WorkerFoundation.
269*59bfda1fSAndroid Build Coastguard Worker
270*59bfda1fSAndroid Build Coastguard Worker  10. If you wish to incorporate parts of the Program into other free
271*59bfda1fSAndroid Build Coastguard Workerprograms whose distribution conditions are different, write to the author
272*59bfda1fSAndroid Build Coastguard Workerto ask for permission.  For software which is copyrighted by the Free
273*59bfda1fSAndroid Build Coastguard WorkerSoftware Foundation, write to the Free Software Foundation; we sometimes
274*59bfda1fSAndroid Build Coastguard Workermake exceptions for this.  Our decision will be guided by the two goals
275*59bfda1fSAndroid Build Coastguard Workerof preserving the free status of all derivatives of our free software and
276*59bfda1fSAndroid Build Coastguard Workerof promoting the sharing and reuse of software generally.
277*59bfda1fSAndroid Build Coastguard Worker
278*59bfda1fSAndroid Build Coastguard Worker			    NO WARRANTY
279*59bfda1fSAndroid Build Coastguard Worker
280*59bfda1fSAndroid Build Coastguard Worker  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
281*59bfda1fSAndroid Build Coastguard WorkerFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
282*59bfda1fSAndroid Build Coastguard WorkerOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
283*59bfda1fSAndroid Build Coastguard WorkerPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
284*59bfda1fSAndroid Build Coastguard WorkerOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
285*59bfda1fSAndroid Build Coastguard WorkerMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
286*59bfda1fSAndroid Build Coastguard WorkerTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
287*59bfda1fSAndroid Build Coastguard WorkerPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
288*59bfda1fSAndroid Build Coastguard WorkerREPAIR OR CORRECTION.
289*59bfda1fSAndroid Build Coastguard Worker
290*59bfda1fSAndroid Build Coastguard Worker  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
291*59bfda1fSAndroid Build Coastguard WorkerWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
292*59bfda1fSAndroid Build Coastguard WorkerREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
293*59bfda1fSAndroid Build Coastguard WorkerINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
294*59bfda1fSAndroid Build Coastguard WorkerOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
295*59bfda1fSAndroid Build Coastguard WorkerTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
296*59bfda1fSAndroid Build Coastguard WorkerYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
297*59bfda1fSAndroid Build Coastguard WorkerPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
298*59bfda1fSAndroid Build Coastguard WorkerPOSSIBILITY OF SUCH DAMAGES.
299*59bfda1fSAndroid Build Coastguard Worker
300*59bfda1fSAndroid Build Coastguard Worker		     END OF TERMS AND CONDITIONS
301*59bfda1fSAndroid Build Coastguard Worker
302*59bfda1fSAndroid Build Coastguard Worker	    How to Apply These Terms to Your New Programs
303*59bfda1fSAndroid Build Coastguard Worker
304*59bfda1fSAndroid Build Coastguard Worker  If you develop a new program, and you want it to be of the greatest
305*59bfda1fSAndroid Build Coastguard Workerpossible use to the public, the best way to achieve this is to make it
306*59bfda1fSAndroid Build Coastguard Workerfree software which everyone can redistribute and change under these terms.
307*59bfda1fSAndroid Build Coastguard Worker
308*59bfda1fSAndroid Build Coastguard Worker  To do so, attach the following notices to the program.  It is safest
309*59bfda1fSAndroid Build Coastguard Workerto attach them to the start of each source file to most effectively
310*59bfda1fSAndroid Build Coastguard Workerconvey the exclusion of warranty; and each file should have at least
311*59bfda1fSAndroid Build Coastguard Workerthe "copyright" line and a pointer to where the full notice is found.
312*59bfda1fSAndroid Build Coastguard Worker
313*59bfda1fSAndroid Build Coastguard Worker    <one line to give the program's name and a brief idea of what it does.>
314*59bfda1fSAndroid Build Coastguard Worker    Copyright (C) <year>  <name of author>
315*59bfda1fSAndroid Build Coastguard Worker
316*59bfda1fSAndroid Build Coastguard Worker    This program is free software; you can redistribute it and/or modify
317*59bfda1fSAndroid Build Coastguard Worker    it under the terms of the GNU General Public License as published by
318*59bfda1fSAndroid Build Coastguard Worker    the Free Software Foundation; either version 2 of the License, or
319*59bfda1fSAndroid Build Coastguard Worker    (at your option) any later version.
320*59bfda1fSAndroid Build Coastguard Worker
321*59bfda1fSAndroid Build Coastguard Worker    This program is distributed in the hope that it will be useful,
322*59bfda1fSAndroid Build Coastguard Worker    but WITHOUT ANY WARRANTY; without even the implied warranty of
323*59bfda1fSAndroid Build Coastguard Worker    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
324*59bfda1fSAndroid Build Coastguard Worker    GNU General Public License for more details.
325*59bfda1fSAndroid Build Coastguard Worker
326*59bfda1fSAndroid Build Coastguard Worker    You should have received a copy of the GNU General Public License
327*59bfda1fSAndroid Build Coastguard Worker    along with this program; if not, write to the Free Software
328*59bfda1fSAndroid Build Coastguard Worker    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
329*59bfda1fSAndroid Build Coastguard Worker
330*59bfda1fSAndroid Build Coastguard Worker
331*59bfda1fSAndroid Build Coastguard WorkerAlso add information on how to contact you by electronic and paper mail.
332*59bfda1fSAndroid Build Coastguard Worker
333*59bfda1fSAndroid Build Coastguard WorkerIf the program is interactive, make it output a short notice like this
334*59bfda1fSAndroid Build Coastguard Workerwhen it starts in an interactive mode:
335*59bfda1fSAndroid Build Coastguard Worker
336*59bfda1fSAndroid Build Coastguard Worker    Gnomovision version 69, Copyright (C) year  name of author
337*59bfda1fSAndroid Build Coastguard Worker    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
338*59bfda1fSAndroid Build Coastguard Worker    This is free software, and you are welcome to redistribute it
339*59bfda1fSAndroid Build Coastguard Worker    under certain conditions; type `show c' for details.
340*59bfda1fSAndroid Build Coastguard Worker
341*59bfda1fSAndroid Build Coastguard WorkerThe hypothetical commands `show w' and `show c' should show the appropriate
342*59bfda1fSAndroid Build Coastguard Workerparts of the General Public License.  Of course, the commands you use may
343*59bfda1fSAndroid Build Coastguard Workerbe called something other than `show w' and `show c'; they could even be
344*59bfda1fSAndroid Build Coastguard Workermouse-clicks or menu items--whatever suits your program.
345*59bfda1fSAndroid Build Coastguard Worker
346*59bfda1fSAndroid Build Coastguard WorkerYou should also get your employer (if you work as a programmer) or your
347*59bfda1fSAndroid Build Coastguard Workerschool, if any, to sign a "copyright disclaimer" for the program, if
348*59bfda1fSAndroid Build Coastguard Workernecessary.  Here is a sample; alter the names:
349*59bfda1fSAndroid Build Coastguard Worker
350*59bfda1fSAndroid Build Coastguard Worker  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
351*59bfda1fSAndroid Build Coastguard Worker  `Gnomovision' (which makes passes at compilers) written by James Hacker.
352*59bfda1fSAndroid Build Coastguard Worker
353*59bfda1fSAndroid Build Coastguard Worker  <signature of Ty Coon>, 1 April 1989
354*59bfda1fSAndroid Build Coastguard Worker  Ty Coon, President of Vice
355*59bfda1fSAndroid Build Coastguard Worker
356*59bfda1fSAndroid Build Coastguard WorkerThis General Public License does not permit incorporating your program into
357*59bfda1fSAndroid Build Coastguard Workerproprietary programs.  If your program is a subroutine library, you may
358*59bfda1fSAndroid Build Coastguard Workerconsider it more useful to permit linking proprietary applications with the
359*59bfda1fSAndroid Build Coastguard Workerlibrary.  If this is what you want to do, use the GNU Library General
360*59bfda1fSAndroid Build Coastguard WorkerPublic License instead of this License.
361*59bfda1fSAndroid Build Coastguard Worker
362*59bfda1fSAndroid Build Coastguard Worker================================================================================
363*59bfda1fSAndroid Build Coastguard Worker                  GNU LESSER GENERAL PUBLIC LICENSE
364*59bfda1fSAndroid Build Coastguard Worker                       Version 2.1, February 1999
365*59bfda1fSAndroid Build Coastguard Worker
366*59bfda1fSAndroid Build Coastguard Worker Copyright (C) 1991, 1999 Free Software Foundation, Inc.
367*59bfda1fSAndroid Build Coastguard Worker 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
368*59bfda1fSAndroid Build Coastguard Worker Everyone is permitted to copy and distribute verbatim copies
369*59bfda1fSAndroid Build Coastguard Worker of this license document, but changing it is not allowed.
370*59bfda1fSAndroid Build Coastguard Worker
371*59bfda1fSAndroid Build Coastguard Worker[This is the first released version of the Lesser GPL.  It also counts
372*59bfda1fSAndroid Build Coastguard Worker as the successor of the GNU Library Public License, version 2, hence
373*59bfda1fSAndroid Build Coastguard Worker the version number 2.1.]
374*59bfda1fSAndroid Build Coastguard Worker
375*59bfda1fSAndroid Build Coastguard Worker                            Preamble
376*59bfda1fSAndroid Build Coastguard Worker
377*59bfda1fSAndroid Build Coastguard Worker  The licenses for most software are designed to take away your
378*59bfda1fSAndroid Build Coastguard Workerfreedom to share and change it.  By contrast, the GNU General Public
379*59bfda1fSAndroid Build Coastguard WorkerLicenses are intended to guarantee your freedom to share and change
380*59bfda1fSAndroid Build Coastguard Workerfree software--to make sure the software is free for all its users.
381*59bfda1fSAndroid Build Coastguard Worker
382*59bfda1fSAndroid Build Coastguard Worker  This license, the Lesser General Public License, applies to some
383*59bfda1fSAndroid Build Coastguard Workerspecially designated software packages--typically libraries--of the
384*59bfda1fSAndroid Build Coastguard WorkerFree Software Foundation and other authors who decide to use it.  You
385*59bfda1fSAndroid Build Coastguard Workercan use it too, but we suggest you first think carefully about whether
386*59bfda1fSAndroid Build Coastguard Workerthis license or the ordinary General Public License is the better
387*59bfda1fSAndroid Build Coastguard Workerstrategy to use in any particular case, based on the explanations below.
388*59bfda1fSAndroid Build Coastguard Worker
389*59bfda1fSAndroid Build Coastguard Worker  When we speak of free software, we are referring to freedom of use,
390*59bfda1fSAndroid Build Coastguard Workernot price.  Our General Public Licenses are designed to make sure that
391*59bfda1fSAndroid Build Coastguard Workeryou have the freedom to distribute copies of free software (and charge
392*59bfda1fSAndroid Build Coastguard Workerfor this service if you wish); that you receive source code or can get
393*59bfda1fSAndroid Build Coastguard Workerit if you want it; that you can change the software and use pieces of
394*59bfda1fSAndroid Build Coastguard Workerit in new free programs; and that you are informed that you can do
395*59bfda1fSAndroid Build Coastguard Workerthese things.
396*59bfda1fSAndroid Build Coastguard Worker
397*59bfda1fSAndroid Build Coastguard Worker  To protect your rights, we need to make restrictions that forbid
398*59bfda1fSAndroid Build Coastguard Workerdistributors to deny you these rights or to ask you to surrender these
399*59bfda1fSAndroid Build Coastguard Workerrights.  These restrictions translate to certain responsibilities for
400*59bfda1fSAndroid Build Coastguard Workeryou if you distribute copies of the library or if you modify it.
401*59bfda1fSAndroid Build Coastguard Worker
402*59bfda1fSAndroid Build Coastguard Worker  For example, if you distribute copies of the library, whether gratis
403*59bfda1fSAndroid Build Coastguard Workeror for a fee, you must give the recipients all the rights that we gave
404*59bfda1fSAndroid Build Coastguard Workeryou.  You must make sure that they, too, receive or can get the source
405*59bfda1fSAndroid Build Coastguard Workercode.  If you link other code with the library, you must provide
406*59bfda1fSAndroid Build Coastguard Workercomplete object files to the recipients, so that they can relink them
407*59bfda1fSAndroid Build Coastguard Workerwith the library after making changes to the library and recompiling
408*59bfda1fSAndroid Build Coastguard Workerit.  And you must show them these terms so they know their rights.
409*59bfda1fSAndroid Build Coastguard Worker
410*59bfda1fSAndroid Build Coastguard Worker  We protect your rights with a two-step method: (1) we copyright the
411*59bfda1fSAndroid Build Coastguard Workerlibrary, and (2) we offer you this license, which gives you legal
412*59bfda1fSAndroid Build Coastguard Workerpermission to copy, distribute and/or modify the library.
413*59bfda1fSAndroid Build Coastguard Worker
414*59bfda1fSAndroid Build Coastguard Worker  To protect each distributor, we want to make it very clear that
415*59bfda1fSAndroid Build Coastguard Workerthere is no warranty for the free library.  Also, if the library is
416*59bfda1fSAndroid Build Coastguard Workermodified by someone else and passed on, the recipients should know
417*59bfda1fSAndroid Build Coastguard Workerthat what they have is not the original version, so that the original
418*59bfda1fSAndroid Build Coastguard Workerauthor's reputation will not be affected by problems that might be
419*59bfda1fSAndroid Build Coastguard Workerintroduced by others.
420*59bfda1fSAndroid Build Coastguard Worker
421*59bfda1fSAndroid Build Coastguard Worker  Finally, software patents pose a constant threat to the existence of
422*59bfda1fSAndroid Build Coastguard Workerany free program.  We wish to make sure that a company cannot
423*59bfda1fSAndroid Build Coastguard Workereffectively restrict the users of a free program by obtaining a
424*59bfda1fSAndroid Build Coastguard Workerrestrictive license from a patent holder.  Therefore, we insist that
425*59bfda1fSAndroid Build Coastguard Workerany patent license obtained for a version of the library must be
426*59bfda1fSAndroid Build Coastguard Workerconsistent with the full freedom of use specified in this license.
427*59bfda1fSAndroid Build Coastguard Worker
428*59bfda1fSAndroid Build Coastguard Worker  Most GNU software, including some libraries, is covered by the
429*59bfda1fSAndroid Build Coastguard Workerordinary GNU General Public License.  This license, the GNU Lesser
430*59bfda1fSAndroid Build Coastguard WorkerGeneral Public License, applies to certain designated libraries, and
431*59bfda1fSAndroid Build Coastguard Workeris quite different from the ordinary General Public License.  We use
432*59bfda1fSAndroid Build Coastguard Workerthis license for certain libraries in order to permit linking those
433*59bfda1fSAndroid Build Coastguard Workerlibraries into non-free programs.
434*59bfda1fSAndroid Build Coastguard Worker
435*59bfda1fSAndroid Build Coastguard Worker  When a program is linked with a library, whether statically or using
436*59bfda1fSAndroid Build Coastguard Workera shared library, the combination of the two is legally speaking a
437*59bfda1fSAndroid Build Coastguard Workercombined work, a derivative of the original library.  The ordinary
438*59bfda1fSAndroid Build Coastguard WorkerGeneral Public License therefore permits such linking only if the
439*59bfda1fSAndroid Build Coastguard Workerentire combination fits its criteria of freedom.  The Lesser General
440*59bfda1fSAndroid Build Coastguard WorkerPublic License permits more lax criteria for linking other code with
441*59bfda1fSAndroid Build Coastguard Workerthe library.
442*59bfda1fSAndroid Build Coastguard Worker
443*59bfda1fSAndroid Build Coastguard Worker  We call this license the "Lesser" General Public License because it
444*59bfda1fSAndroid Build Coastguard Workerdoes Less to protect the user's freedom than the ordinary General
445*59bfda1fSAndroid Build Coastguard WorkerPublic License.  It also provides other free software developers Less
446*59bfda1fSAndroid Build Coastguard Workerof an advantage over competing non-free programs.  These disadvantages
447*59bfda1fSAndroid Build Coastguard Workerare the reason we use the ordinary General Public License for many
448*59bfda1fSAndroid Build Coastguard Workerlibraries.  However, the Lesser license provides advantages in certain
449*59bfda1fSAndroid Build Coastguard Workerspecial circumstances.
450*59bfda1fSAndroid Build Coastguard Worker
451*59bfda1fSAndroid Build Coastguard Worker  For example, on rare occasions, there may be a special need to
452*59bfda1fSAndroid Build Coastguard Workerencourage the widest possible use of a certain library, so that it becomes
453*59bfda1fSAndroid Build Coastguard Workera de-facto standard.  To achieve this, non-free programs must be
454*59bfda1fSAndroid Build Coastguard Workerallowed to use the library.  A more frequent case is that a free
455*59bfda1fSAndroid Build Coastguard Workerlibrary does the same job as widely used non-free libraries.  In this
456*59bfda1fSAndroid Build Coastguard Workercase, there is little to gain by limiting the free library to free
457*59bfda1fSAndroid Build Coastguard Workersoftware only, so we use the Lesser General Public License.
458*59bfda1fSAndroid Build Coastguard Worker
459*59bfda1fSAndroid Build Coastguard Worker  In other cases, permission to use a particular library in non-free
460*59bfda1fSAndroid Build Coastguard Workerprograms enables a greater number of people to use a large body of
461*59bfda1fSAndroid Build Coastguard Workerfree software.  For example, permission to use the GNU C Library in
462*59bfda1fSAndroid Build Coastguard Workernon-free programs enables many more people to use the whole GNU
463*59bfda1fSAndroid Build Coastguard Workeroperating system, as well as its variant, the GNU/Linux operating
464*59bfda1fSAndroid Build Coastguard Workersystem.
465*59bfda1fSAndroid Build Coastguard Worker
466*59bfda1fSAndroid Build Coastguard Worker  Although the Lesser General Public License is Less protective of the
467*59bfda1fSAndroid Build Coastguard Workerusers' freedom, it does ensure that the user of a program that is
468*59bfda1fSAndroid Build Coastguard Workerlinked with the Library has the freedom and the wherewithal to run
469*59bfda1fSAndroid Build Coastguard Workerthat program using a modified version of the Library.
470*59bfda1fSAndroid Build Coastguard Worker
471*59bfda1fSAndroid Build Coastguard Worker  The precise terms and conditions for copying, distribution and
472*59bfda1fSAndroid Build Coastguard Workermodification follow.  Pay close attention to the difference between a
473*59bfda1fSAndroid Build Coastguard Worker"work based on the library" and a "work that uses the library".  The
474*59bfda1fSAndroid Build Coastguard Workerformer contains code derived from the library, whereas the latter must
475*59bfda1fSAndroid Build Coastguard Workerbe combined with the library in order to run.
476*59bfda1fSAndroid Build Coastguard Worker
477*59bfda1fSAndroid Build Coastguard Worker                  GNU LESSER GENERAL PUBLIC LICENSE
478*59bfda1fSAndroid Build Coastguard Worker   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
479*59bfda1fSAndroid Build Coastguard Worker
480*59bfda1fSAndroid Build Coastguard Worker  0. This License Agreement applies to any software library or other
481*59bfda1fSAndroid Build Coastguard Workerprogram which contains a notice placed by the copyright holder or
482*59bfda1fSAndroid Build Coastguard Workerother authorized party saying it may be distributed under the terms of
483*59bfda1fSAndroid Build Coastguard Workerthis Lesser General Public License (also called "this License").
484*59bfda1fSAndroid Build Coastguard WorkerEach licensee is addressed as "you".
485*59bfda1fSAndroid Build Coastguard Worker
486*59bfda1fSAndroid Build Coastguard Worker  A "library" means a collection of software functions and/or data
487*59bfda1fSAndroid Build Coastguard Workerprepared so as to be conveniently linked with application programs
488*59bfda1fSAndroid Build Coastguard Worker(which use some of those functions and data) to form executables.
489*59bfda1fSAndroid Build Coastguard Worker
490*59bfda1fSAndroid Build Coastguard Worker  The "Library", below, refers to any such software library or work
491*59bfda1fSAndroid Build Coastguard Workerwhich has been distributed under these terms.  A "work based on the
492*59bfda1fSAndroid Build Coastguard WorkerLibrary" means either the Library or any derivative work under
493*59bfda1fSAndroid Build Coastguard Workercopyright law: that is to say, a work containing the Library or a
494*59bfda1fSAndroid Build Coastguard Workerportion of it, either verbatim or with modifications and/or translated
495*59bfda1fSAndroid Build Coastguard Workerstraightforwardly into another language.  (Hereinafter, translation is
496*59bfda1fSAndroid Build Coastguard Workerincluded without limitation in the term "modification".)
497*59bfda1fSAndroid Build Coastguard Worker
498*59bfda1fSAndroid Build Coastguard Worker  "Source code" for a work means the preferred form of the work for
499*59bfda1fSAndroid Build Coastguard Workermaking modifications to it.  For a library, complete source code means
500*59bfda1fSAndroid Build Coastguard Workerall the source code for all modules it contains, plus any associated
501*59bfda1fSAndroid Build Coastguard Workerinterface definition files, plus the scripts used to control compilation
502*59bfda1fSAndroid Build Coastguard Workerand installation of the library.
503*59bfda1fSAndroid Build Coastguard Worker
504*59bfda1fSAndroid Build Coastguard Worker  Activities other than copying, distribution and modification are not
505*59bfda1fSAndroid Build Coastguard Workercovered by this License; they are outside its scope.  The act of
506*59bfda1fSAndroid Build Coastguard Workerrunning a program using the Library is not restricted, and output from
507*59bfda1fSAndroid Build Coastguard Workersuch a program is covered only if its contents constitute a work based
508*59bfda1fSAndroid Build Coastguard Workeron the Library (independent of the use of the Library in a tool for
509*59bfda1fSAndroid Build Coastguard Workerwriting it).  Whether that is true depends on what the Library does
510*59bfda1fSAndroid Build Coastguard Workerand what the program that uses the Library does.
511*59bfda1fSAndroid Build Coastguard Worker
512*59bfda1fSAndroid Build Coastguard Worker  1. You may copy and distribute verbatim copies of the Library's
513*59bfda1fSAndroid Build Coastguard Workercomplete source code as you receive it, in any medium, provided that
514*59bfda1fSAndroid Build Coastguard Workeryou conspicuously and appropriately publish on each copy an
515*59bfda1fSAndroid Build Coastguard Workerappropriate copyright notice and disclaimer of warranty; keep intact
516*59bfda1fSAndroid Build Coastguard Workerall the notices that refer to this License and to the absence of any
517*59bfda1fSAndroid Build Coastguard Workerwarranty; and distribute a copy of this License along with the
518*59bfda1fSAndroid Build Coastguard WorkerLibrary.
519*59bfda1fSAndroid Build Coastguard Worker
520*59bfda1fSAndroid Build Coastguard Worker  You may charge a fee for the physical act of transferring a copy,
521*59bfda1fSAndroid Build Coastguard Workerand you may at your option offer warranty protection in exchange for a
522*59bfda1fSAndroid Build Coastguard Workerfee.
523*59bfda1fSAndroid Build Coastguard Worker
524*59bfda1fSAndroid Build Coastguard Worker  2. You may modify your copy or copies of the Library or any portion
525*59bfda1fSAndroid Build Coastguard Workerof it, thus forming a work based on the Library, and copy and
526*59bfda1fSAndroid Build Coastguard Workerdistribute such modifications or work under the terms of Section 1
527*59bfda1fSAndroid Build Coastguard Workerabove, provided that you also meet all of these conditions:
528*59bfda1fSAndroid Build Coastguard Worker
529*59bfda1fSAndroid Build Coastguard Worker    a) The modified work must itself be a software library.
530*59bfda1fSAndroid Build Coastguard Worker
531*59bfda1fSAndroid Build Coastguard Worker    b) You must cause the files modified to carry prominent notices
532*59bfda1fSAndroid Build Coastguard Worker    stating that you changed the files and the date of any change.
533*59bfda1fSAndroid Build Coastguard Worker
534*59bfda1fSAndroid Build Coastguard Worker    c) You must cause the whole of the work to be licensed at no
535*59bfda1fSAndroid Build Coastguard Worker    charge to all third parties under the terms of this License.
536*59bfda1fSAndroid Build Coastguard Worker
537*59bfda1fSAndroid Build Coastguard Worker    d) If a facility in the modified Library refers to a function or a
538*59bfda1fSAndroid Build Coastguard Worker    table of data to be supplied by an application program that uses
539*59bfda1fSAndroid Build Coastguard Worker    the facility, other than as an argument passed when the facility
540*59bfda1fSAndroid Build Coastguard Worker    is invoked, then you must make a good faith effort to ensure that,
541*59bfda1fSAndroid Build Coastguard Worker    in the event an application does not supply such function or
542*59bfda1fSAndroid Build Coastguard Worker    table, the facility still operates, and performs whatever part of
543*59bfda1fSAndroid Build Coastguard Worker    its purpose remains meaningful.
544*59bfda1fSAndroid Build Coastguard Worker
545*59bfda1fSAndroid Build Coastguard Worker    (For example, a function in a library to compute square roots has
546*59bfda1fSAndroid Build Coastguard Worker    a purpose that is entirely well-defined independent of the
547*59bfda1fSAndroid Build Coastguard Worker    application.  Therefore, Subsection 2d requires that any
548*59bfda1fSAndroid Build Coastguard Worker    application-supplied function or table used by this function must
549*59bfda1fSAndroid Build Coastguard Worker    be optional: if the application does not supply it, the square
550*59bfda1fSAndroid Build Coastguard Worker    root function must still compute square roots.)
551*59bfda1fSAndroid Build Coastguard Worker
552*59bfda1fSAndroid Build Coastguard WorkerThese requirements apply to the modified work as a whole.  If
553*59bfda1fSAndroid Build Coastguard Workeridentifiable sections of that work are not derived from the Library,
554*59bfda1fSAndroid Build Coastguard Workerand can be reasonably considered independent and separate works in
555*59bfda1fSAndroid Build Coastguard Workerthemselves, then this License, and its terms, do not apply to those
556*59bfda1fSAndroid Build Coastguard Workersections when you distribute them as separate works.  But when you
557*59bfda1fSAndroid Build Coastguard Workerdistribute the same sections as part of a whole which is a work based
558*59bfda1fSAndroid Build Coastguard Workeron the Library, the distribution of the whole must be on the terms of
559*59bfda1fSAndroid Build Coastguard Workerthis License, whose permissions for other licensees extend to the
560*59bfda1fSAndroid Build Coastguard Workerentire whole, and thus to each and every part regardless of who wrote
561*59bfda1fSAndroid Build Coastguard Workerit.
562*59bfda1fSAndroid Build Coastguard Worker
563*59bfda1fSAndroid Build Coastguard WorkerThus, it is not the intent of this section to claim rights or contest
564*59bfda1fSAndroid Build Coastguard Workeryour rights to work written entirely by you; rather, the intent is to
565*59bfda1fSAndroid Build Coastguard Workerexercise the right to control the distribution of derivative or
566*59bfda1fSAndroid Build Coastguard Workercollective works based on the Library.
567*59bfda1fSAndroid Build Coastguard Worker
568*59bfda1fSAndroid Build Coastguard WorkerIn addition, mere aggregation of another work not based on the Library
569*59bfda1fSAndroid Build Coastguard Workerwith the Library (or with a work based on the Library) on a volume of
570*59bfda1fSAndroid Build Coastguard Workera storage or distribution medium does not bring the other work under
571*59bfda1fSAndroid Build Coastguard Workerthe scope of this License.
572*59bfda1fSAndroid Build Coastguard Worker
573*59bfda1fSAndroid Build Coastguard Worker  3. You may opt to apply the terms of the ordinary GNU General Public
574*59bfda1fSAndroid Build Coastguard WorkerLicense instead of this License to a given copy of the Library.  To do
575*59bfda1fSAndroid Build Coastguard Workerthis, you must alter all the notices that refer to this License, so
576*59bfda1fSAndroid Build Coastguard Workerthat they refer to the ordinary GNU General Public License, version 2,
577*59bfda1fSAndroid Build Coastguard Workerinstead of to this License.  (If a newer version than version 2 of the
578*59bfda1fSAndroid Build Coastguard Workerordinary GNU General Public License has appeared, then you can specify
579*59bfda1fSAndroid Build Coastguard Workerthat version instead if you wish.)  Do not make any other change in
580*59bfda1fSAndroid Build Coastguard Workerthese notices.
581*59bfda1fSAndroid Build Coastguard Worker
582*59bfda1fSAndroid Build Coastguard Worker  Once this change is made in a given copy, it is irreversible for
583*59bfda1fSAndroid Build Coastguard Workerthat copy, so the ordinary GNU General Public License applies to all
584*59bfda1fSAndroid Build Coastguard Workersubsequent copies and derivative works made from that copy.
585*59bfda1fSAndroid Build Coastguard Worker
586*59bfda1fSAndroid Build Coastguard Worker  This option is useful when you wish to copy part of the code of
587*59bfda1fSAndroid Build Coastguard Workerthe Library into a program that is not a library.
588*59bfda1fSAndroid Build Coastguard Worker
589*59bfda1fSAndroid Build Coastguard Worker  4. You may copy and distribute the Library (or a portion or
590*59bfda1fSAndroid Build Coastguard Workerderivative of it, under Section 2) in object code or executable form
591*59bfda1fSAndroid Build Coastguard Workerunder the terms of Sections 1 and 2 above provided that you accompany
592*59bfda1fSAndroid Build Coastguard Workerit with the complete corresponding machine-readable source code, which
593*59bfda1fSAndroid Build Coastguard Workermust be distributed under the terms of Sections 1 and 2 above on a
594*59bfda1fSAndroid Build Coastguard Workermedium customarily used for software interchange.
595*59bfda1fSAndroid Build Coastguard Worker
596*59bfda1fSAndroid Build Coastguard Worker  If distribution of object code is made by offering access to copy
597*59bfda1fSAndroid Build Coastguard Workerfrom a designated place, then offering equivalent access to copy the
598*59bfda1fSAndroid Build Coastguard Workersource code from the same place satisfies the requirement to
599*59bfda1fSAndroid Build Coastguard Workerdistribute the source code, even though third parties are not
600*59bfda1fSAndroid Build Coastguard Workercompelled to copy the source along with the object code.
601*59bfda1fSAndroid Build Coastguard Worker
602*59bfda1fSAndroid Build Coastguard Worker  5. A program that contains no derivative of any portion of the
603*59bfda1fSAndroid Build Coastguard WorkerLibrary, but is designed to work with the Library by being compiled or
604*59bfda1fSAndroid Build Coastguard Workerlinked with it, is called a "work that uses the Library".  Such a
605*59bfda1fSAndroid Build Coastguard Workerwork, in isolation, is not a derivative work of the Library, and
606*59bfda1fSAndroid Build Coastguard Workertherefore falls outside the scope of this License.
607*59bfda1fSAndroid Build Coastguard Worker
608*59bfda1fSAndroid Build Coastguard Worker  However, linking a "work that uses the Library" with the Library
609*59bfda1fSAndroid Build Coastguard Workercreates an executable that is a derivative of the Library (because it
610*59bfda1fSAndroid Build Coastguard Workercontains portions of the Library), rather than a "work that uses the
611*59bfda1fSAndroid Build Coastguard Workerlibrary".  The executable is therefore covered by this License.
612*59bfda1fSAndroid Build Coastguard WorkerSection 6 states terms for distribution of such executables.
613*59bfda1fSAndroid Build Coastguard Worker
614*59bfda1fSAndroid Build Coastguard Worker  When a "work that uses the Library" uses material from a header file
615*59bfda1fSAndroid Build Coastguard Workerthat is part of the Library, the object code for the work may be a
616*59bfda1fSAndroid Build Coastguard Workerderivative work of the Library even though the source code is not.
617*59bfda1fSAndroid Build Coastguard WorkerWhether this is true is especially significant if the work can be
618*59bfda1fSAndroid Build Coastguard Workerlinked without the Library, or if the work is itself a library.  The
619*59bfda1fSAndroid Build Coastguard Workerthreshold for this to be true is not precisely defined by law.
620*59bfda1fSAndroid Build Coastguard Worker
621*59bfda1fSAndroid Build Coastguard Worker  If such an object file uses only numerical parameters, data
622*59bfda1fSAndroid Build Coastguard Workerstructure layouts and accessors, and small macros and small inline
623*59bfda1fSAndroid Build Coastguard Workerfunctions (ten lines or less in length), then the use of the object
624*59bfda1fSAndroid Build Coastguard Workerfile is unrestricted, regardless of whether it is legally a derivative
625*59bfda1fSAndroid Build Coastguard Workerwork.  (Executables containing this object code plus portions of the
626*59bfda1fSAndroid Build Coastguard WorkerLibrary will still fall under Section 6.)
627*59bfda1fSAndroid Build Coastguard Worker
628*59bfda1fSAndroid Build Coastguard Worker  Otherwise, if the work is a derivative of the Library, you may
629*59bfda1fSAndroid Build Coastguard Workerdistribute the object code for the work under the terms of Section 6.
630*59bfda1fSAndroid Build Coastguard WorkerAny executables containing that work also fall under Section 6,
631*59bfda1fSAndroid Build Coastguard Workerwhether or not they are linked directly with the Library itself.
632*59bfda1fSAndroid Build Coastguard Worker
633*59bfda1fSAndroid Build Coastguard Worker  6. As an exception to the Sections above, you may also combine or
634*59bfda1fSAndroid Build Coastguard Workerlink a "work that uses the Library" with the Library to produce a
635*59bfda1fSAndroid Build Coastguard Workerwork containing portions of the Library, and distribute that work
636*59bfda1fSAndroid Build Coastguard Workerunder terms of your choice, provided that the terms permit
637*59bfda1fSAndroid Build Coastguard Workermodification of the work for the customer's own use and reverse
638*59bfda1fSAndroid Build Coastguard Workerengineering for debugging such modifications.
639*59bfda1fSAndroid Build Coastguard Worker
640*59bfda1fSAndroid Build Coastguard Worker  You must give prominent notice with each copy of the work that the
641*59bfda1fSAndroid Build Coastguard WorkerLibrary is used in it and that the Library and its use are covered by
642*59bfda1fSAndroid Build Coastguard Workerthis License.  You must supply a copy of this License.  If the work
643*59bfda1fSAndroid Build Coastguard Workerduring execution displays copyright notices, you must include the
644*59bfda1fSAndroid Build Coastguard Workercopyright notice for the Library among them, as well as a reference
645*59bfda1fSAndroid Build Coastguard Workerdirecting the user to the copy of this License.  Also, you must do one
646*59bfda1fSAndroid Build Coastguard Workerof these things:
647*59bfda1fSAndroid Build Coastguard Worker
648*59bfda1fSAndroid Build Coastguard Worker    a) Accompany the work with the complete corresponding
649*59bfda1fSAndroid Build Coastguard Worker    machine-readable source code for the Library including whatever
650*59bfda1fSAndroid Build Coastguard Worker    changes were used in the work (which must be distributed under
651*59bfda1fSAndroid Build Coastguard Worker    Sections 1 and 2 above); and, if the work is an executable linked
652*59bfda1fSAndroid Build Coastguard Worker    with the Library, with the complete machine-readable "work that
653*59bfda1fSAndroid Build Coastguard Worker    uses the Library", as object code and/or source code, so that the
654*59bfda1fSAndroid Build Coastguard Worker    user can modify the Library and then relink to produce a modified
655*59bfda1fSAndroid Build Coastguard Worker    executable containing the modified Library.  (It is understood
656*59bfda1fSAndroid Build Coastguard Worker    that the user who changes the contents of definitions files in the
657*59bfda1fSAndroid Build Coastguard Worker    Library will not necessarily be able to recompile the application
658*59bfda1fSAndroid Build Coastguard Worker    to use the modified definitions.)
659*59bfda1fSAndroid Build Coastguard Worker
660*59bfda1fSAndroid Build Coastguard Worker    b) Use a suitable shared library mechanism for linking with the
661*59bfda1fSAndroid Build Coastguard Worker    Library.  A suitable mechanism is one that (1) uses at run time a
662*59bfda1fSAndroid Build Coastguard Worker    copy of the library already present on the user's computer system,
663*59bfda1fSAndroid Build Coastguard Worker    rather than copying library functions into the executable, and (2)
664*59bfda1fSAndroid Build Coastguard Worker    will operate properly with a modified version of the library, if
665*59bfda1fSAndroid Build Coastguard Worker    the user installs one, as long as the modified version is
666*59bfda1fSAndroid Build Coastguard Worker    interface-compatible with the version that the work was made with.
667*59bfda1fSAndroid Build Coastguard Worker
668*59bfda1fSAndroid Build Coastguard Worker    c) Accompany the work with a written offer, valid for at
669*59bfda1fSAndroid Build Coastguard Worker    least three years, to give the same user the materials
670*59bfda1fSAndroid Build Coastguard Worker    specified in Subsection 6a, above, for a charge no more
671*59bfda1fSAndroid Build Coastguard Worker    than the cost of performing this distribution.
672*59bfda1fSAndroid Build Coastguard Worker
673*59bfda1fSAndroid Build Coastguard Worker    d) If distribution of the work is made by offering access to copy
674*59bfda1fSAndroid Build Coastguard Worker    from a designated place, offer equivalent access to copy the above
675*59bfda1fSAndroid Build Coastguard Worker    specified materials from the same place.
676*59bfda1fSAndroid Build Coastguard Worker
677*59bfda1fSAndroid Build Coastguard Worker    e) Verify that the user has already received a copy of these
678*59bfda1fSAndroid Build Coastguard Worker    materials or that you have already sent this user a copy.
679*59bfda1fSAndroid Build Coastguard Worker
680*59bfda1fSAndroid Build Coastguard Worker  For an executable, the required form of the "work that uses the
681*59bfda1fSAndroid Build Coastguard WorkerLibrary" must include any data and utility programs needed for
682*59bfda1fSAndroid Build Coastguard Workerreproducing the executable from it.  However, as a special exception,
683*59bfda1fSAndroid Build Coastguard Workerthe materials to be distributed need not include anything that is
684*59bfda1fSAndroid Build Coastguard Workernormally distributed (in either source or binary form) with the major
685*59bfda1fSAndroid Build Coastguard Workercomponents (compiler, kernel, and so on) of the operating system on
686*59bfda1fSAndroid Build Coastguard Workerwhich the executable runs, unless that component itself accompanies
687*59bfda1fSAndroid Build Coastguard Workerthe executable.
688*59bfda1fSAndroid Build Coastguard Worker
689*59bfda1fSAndroid Build Coastguard Worker  It may happen that this requirement contradicts the license
690*59bfda1fSAndroid Build Coastguard Workerrestrictions of other proprietary libraries that do not normally
691*59bfda1fSAndroid Build Coastguard Workeraccompany the operating system.  Such a contradiction means you cannot
692*59bfda1fSAndroid Build Coastguard Workeruse both them and the Library together in an executable that you
693*59bfda1fSAndroid Build Coastguard Workerdistribute.
694*59bfda1fSAndroid Build Coastguard Worker
695*59bfda1fSAndroid Build Coastguard Worker  7. You may place library facilities that are a work based on the
696*59bfda1fSAndroid Build Coastguard WorkerLibrary side-by-side in a single library together with other library
697*59bfda1fSAndroid Build Coastguard Workerfacilities not covered by this License, and distribute such a combined
698*59bfda1fSAndroid Build Coastguard Workerlibrary, provided that the separate distribution of the work based on
699*59bfda1fSAndroid Build Coastguard Workerthe Library and of the other library facilities is otherwise
700*59bfda1fSAndroid Build Coastguard Workerpermitted, and provided that you do these two things:
701*59bfda1fSAndroid Build Coastguard Worker
702*59bfda1fSAndroid Build Coastguard Worker    a) Accompany the combined library with a copy of the same work
703*59bfda1fSAndroid Build Coastguard Worker    based on the Library, uncombined with any other library
704*59bfda1fSAndroid Build Coastguard Worker    facilities.  This must be distributed under the terms of the
705*59bfda1fSAndroid Build Coastguard Worker    Sections above.
706*59bfda1fSAndroid Build Coastguard Worker
707*59bfda1fSAndroid Build Coastguard Worker    b) Give prominent notice with the combined library of the fact
708*59bfda1fSAndroid Build Coastguard Worker    that part of it is a work based on the Library, and explaining
709*59bfda1fSAndroid Build Coastguard Worker    where to find the accompanying uncombined form of the same work.
710*59bfda1fSAndroid Build Coastguard Worker
711*59bfda1fSAndroid Build Coastguard Worker  8. You may not copy, modify, sublicense, link with, or distribute
712*59bfda1fSAndroid Build Coastguard Workerthe Library except as expressly provided under this License.  Any
713*59bfda1fSAndroid Build Coastguard Workerattempt otherwise to copy, modify, sublicense, link with, or
714*59bfda1fSAndroid Build Coastguard Workerdistribute the Library is void, and will automatically terminate your
715*59bfda1fSAndroid Build Coastguard Workerrights under this License.  However, parties who have received copies,
716*59bfda1fSAndroid Build Coastguard Workeror rights, from you under this License will not have their licenses
717*59bfda1fSAndroid Build Coastguard Workerterminated so long as such parties remain in full compliance.
718*59bfda1fSAndroid Build Coastguard Worker
719*59bfda1fSAndroid Build Coastguard Worker  9. You are not required to accept this License, since you have not
720*59bfda1fSAndroid Build Coastguard Workersigned it.  However, nothing else grants you permission to modify or
721*59bfda1fSAndroid Build Coastguard Workerdistribute the Library or its derivative works.  These actions are
722*59bfda1fSAndroid Build Coastguard Workerprohibited by law if you do not accept this License.  Therefore, by
723*59bfda1fSAndroid Build Coastguard Workermodifying or distributing the Library (or any work based on the
724*59bfda1fSAndroid Build Coastguard WorkerLibrary), you indicate your acceptance of this License to do so, and
725*59bfda1fSAndroid Build Coastguard Workerall its terms and conditions for copying, distributing or modifying
726*59bfda1fSAndroid Build Coastguard Workerthe Library or works based on it.
727*59bfda1fSAndroid Build Coastguard Worker
728*59bfda1fSAndroid Build Coastguard Worker  10. Each time you redistribute the Library (or any work based on the
729*59bfda1fSAndroid Build Coastguard WorkerLibrary), the recipient automatically receives a license from the
730*59bfda1fSAndroid Build Coastguard Workeroriginal licensor to copy, distribute, link with or modify the Library
731*59bfda1fSAndroid Build Coastguard Workersubject to these terms and conditions.  You may not impose any further
732*59bfda1fSAndroid Build Coastguard Workerrestrictions on the recipients' exercise of the rights granted herein.
733*59bfda1fSAndroid Build Coastguard WorkerYou are not responsible for enforcing compliance by third parties with
734*59bfda1fSAndroid Build Coastguard Workerthis License.
735*59bfda1fSAndroid Build Coastguard Worker
736*59bfda1fSAndroid Build Coastguard Worker  11. If, as a consequence of a court judgment or allegation of patent
737*59bfda1fSAndroid Build Coastguard Workerinfringement or for any other reason (not limited to patent issues),
738*59bfda1fSAndroid Build Coastguard Workerconditions are imposed on you (whether by court order, agreement or
739*59bfda1fSAndroid Build Coastguard Workerotherwise) that contradict the conditions of this License, they do not
740*59bfda1fSAndroid Build Coastguard Workerexcuse you from the conditions of this License.  If you cannot
741*59bfda1fSAndroid Build Coastguard Workerdistribute so as to satisfy simultaneously your obligations under this
742*59bfda1fSAndroid Build Coastguard WorkerLicense and any other pertinent obligations, then as a consequence you
743*59bfda1fSAndroid Build Coastguard Workermay not distribute the Library at all.  For example, if a patent
744*59bfda1fSAndroid Build Coastguard Workerlicense would not permit royalty-free redistribution of the Library by
745*59bfda1fSAndroid Build Coastguard Workerall those who receive copies directly or indirectly through you, then
746*59bfda1fSAndroid Build Coastguard Workerthe only way you could satisfy both it and this License would be to
747*59bfda1fSAndroid Build Coastguard Workerrefrain entirely from distribution of the Library.
748*59bfda1fSAndroid Build Coastguard Worker
749*59bfda1fSAndroid Build Coastguard WorkerIf any portion of this section is held invalid or unenforceable under any
750*59bfda1fSAndroid Build Coastguard Workerparticular circumstance, the balance of the section is intended to apply,
751*59bfda1fSAndroid Build Coastguard Workerand the section as a whole is intended to apply in other circumstances.
752*59bfda1fSAndroid Build Coastguard Worker
753*59bfda1fSAndroid Build Coastguard WorkerIt is not the purpose of this section to induce you to infringe any
754*59bfda1fSAndroid Build Coastguard Workerpatents or other property right claims or to contest validity of any
755*59bfda1fSAndroid Build Coastguard Workersuch claims; this section has the sole purpose of protecting the
756*59bfda1fSAndroid Build Coastguard Workerintegrity of the free software distribution system which is
757*59bfda1fSAndroid Build Coastguard Workerimplemented by public license practices.  Many people have made
758*59bfda1fSAndroid Build Coastguard Workergenerous contributions to the wide range of software distributed
759*59bfda1fSAndroid Build Coastguard Workerthrough that system in reliance on consistent application of that
760*59bfda1fSAndroid Build Coastguard Workersystem; it is up to the author/donor to decide if he or she is willing
761*59bfda1fSAndroid Build Coastguard Workerto distribute software through any other system and a licensee cannot
762*59bfda1fSAndroid Build Coastguard Workerimpose that choice.
763*59bfda1fSAndroid Build Coastguard Worker
764*59bfda1fSAndroid Build Coastguard WorkerThis section is intended to make thoroughly clear what is believed to
765*59bfda1fSAndroid Build Coastguard Workerbe a consequence of the rest of this License.
766*59bfda1fSAndroid Build Coastguard Worker
767*59bfda1fSAndroid Build Coastguard Worker  12. If the distribution and/or use of the Library is restricted in
768*59bfda1fSAndroid Build Coastguard Workercertain countries either by patents or by copyrighted interfaces, the
769*59bfda1fSAndroid Build Coastguard Workeroriginal copyright holder who places the Library under this License may add
770*59bfda1fSAndroid Build Coastguard Workeran explicit geographical distribution limitation excluding those countries,
771*59bfda1fSAndroid Build Coastguard Workerso that distribution is permitted only in or among countries not thus
772*59bfda1fSAndroid Build Coastguard Workerexcluded.  In such case, this License incorporates the limitation as if
773*59bfda1fSAndroid Build Coastguard Workerwritten in the body of this License.
774*59bfda1fSAndroid Build Coastguard Worker
775*59bfda1fSAndroid Build Coastguard Worker  13. The Free Software Foundation may publish revised and/or new
776*59bfda1fSAndroid Build Coastguard Workerversions of the Lesser General Public License from time to time.
777*59bfda1fSAndroid Build Coastguard WorkerSuch new versions will be similar in spirit to the present version,
778*59bfda1fSAndroid Build Coastguard Workerbut may differ in detail to address new problems or concerns.
779*59bfda1fSAndroid Build Coastguard Worker
780*59bfda1fSAndroid Build Coastguard WorkerEach version is given a distinguishing version number.  If the Library
781*59bfda1fSAndroid Build Coastguard Workerspecifies a version number of this License which applies to it and
782*59bfda1fSAndroid Build Coastguard Worker"any later version", you have the option of following the terms and
783*59bfda1fSAndroid Build Coastguard Workerconditions either of that version or of any later version published by
784*59bfda1fSAndroid Build Coastguard Workerthe Free Software Foundation.  If the Library does not specify a
785*59bfda1fSAndroid Build Coastguard Workerlicense version number, you may choose any version ever published by
786*59bfda1fSAndroid Build Coastguard Workerthe Free Software Foundation.
787*59bfda1fSAndroid Build Coastguard Worker
788*59bfda1fSAndroid Build Coastguard Worker  14. If you wish to incorporate parts of the Library into other free
789*59bfda1fSAndroid Build Coastguard Workerprograms whose distribution conditions are incompatible with these,
790*59bfda1fSAndroid Build Coastguard Workerwrite to the author to ask for permission.  For software which is
791*59bfda1fSAndroid Build Coastguard Workercopyrighted by the Free Software Foundation, write to the Free
792*59bfda1fSAndroid Build Coastguard WorkerSoftware Foundation; we sometimes make exceptions for this.  Our
793*59bfda1fSAndroid Build Coastguard Workerdecision will be guided by the two goals of preserving the free status
794*59bfda1fSAndroid Build Coastguard Workerof all derivatives of our free software and of promoting the sharing
795*59bfda1fSAndroid Build Coastguard Workerand reuse of software generally.
796*59bfda1fSAndroid Build Coastguard Worker
797*59bfda1fSAndroid Build Coastguard Worker                            NO WARRANTY
798*59bfda1fSAndroid Build Coastguard Worker
799*59bfda1fSAndroid Build Coastguard Worker  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
800*59bfda1fSAndroid Build Coastguard WorkerWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
801*59bfda1fSAndroid Build Coastguard WorkerEXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
802*59bfda1fSAndroid Build Coastguard WorkerOTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
803*59bfda1fSAndroid Build Coastguard WorkerKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
804*59bfda1fSAndroid Build Coastguard WorkerIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
805*59bfda1fSAndroid Build Coastguard WorkerPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
806*59bfda1fSAndroid Build Coastguard WorkerLIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
807*59bfda1fSAndroid Build Coastguard WorkerTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
808*59bfda1fSAndroid Build Coastguard Worker
809*59bfda1fSAndroid Build Coastguard Worker  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
810*59bfda1fSAndroid Build Coastguard WorkerWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
811*59bfda1fSAndroid Build Coastguard WorkerAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
812*59bfda1fSAndroid Build Coastguard WorkerFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
813*59bfda1fSAndroid Build Coastguard WorkerCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
814*59bfda1fSAndroid Build Coastguard WorkerLIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
815*59bfda1fSAndroid Build Coastguard WorkerRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
816*59bfda1fSAndroid Build Coastguard WorkerFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
817*59bfda1fSAndroid Build Coastguard WorkerSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
818*59bfda1fSAndroid Build Coastguard WorkerDAMAGES.
819*59bfda1fSAndroid Build Coastguard Worker
820*59bfda1fSAndroid Build Coastguard Worker                     END OF TERMS AND CONDITIONS
821*59bfda1fSAndroid Build Coastguard Worker
822*59bfda1fSAndroid Build Coastguard Worker           How to Apply These Terms to Your New Libraries
823*59bfda1fSAndroid Build Coastguard Worker
824*59bfda1fSAndroid Build Coastguard Worker  If you develop a new library, and you want it to be of the greatest
825*59bfda1fSAndroid Build Coastguard Workerpossible use to the public, we recommend making it free software that
826*59bfda1fSAndroid Build Coastguard Workereveryone can redistribute and change.  You can do so by permitting
827*59bfda1fSAndroid Build Coastguard Workerredistribution under these terms (or, alternatively, under the terms of the
828*59bfda1fSAndroid Build Coastguard Workerordinary General Public License).
829*59bfda1fSAndroid Build Coastguard Worker
830*59bfda1fSAndroid Build Coastguard Worker  To apply these terms, attach the following notices to the library.  It is
831*59bfda1fSAndroid Build Coastguard Workersafest to attach them to the start of each source file to most effectively
832*59bfda1fSAndroid Build Coastguard Workerconvey the exclusion of warranty; and each file should have at least the
833*59bfda1fSAndroid Build Coastguard Worker"copyright" line and a pointer to where the full notice is found.
834*59bfda1fSAndroid Build Coastguard Worker
835*59bfda1fSAndroid Build Coastguard Worker    <one line to give the library's name and a brief idea of what it does.>
836*59bfda1fSAndroid Build Coastguard Worker    Copyright (C) <year>  <name of author>
837*59bfda1fSAndroid Build Coastguard Worker
838*59bfda1fSAndroid Build Coastguard Worker    This library is free software; you can redistribute it and/or
839*59bfda1fSAndroid Build Coastguard Worker    modify it under the terms of the GNU Lesser General Public
840*59bfda1fSAndroid Build Coastguard Worker    License as published by the Free Software Foundation; either
841*59bfda1fSAndroid Build Coastguard Worker    version 2.1 of the License, or (at your option) any later version.
842*59bfda1fSAndroid Build Coastguard Worker
843*59bfda1fSAndroid Build Coastguard Worker    This library is distributed in the hope that it will be useful,
844*59bfda1fSAndroid Build Coastguard Worker    but WITHOUT ANY WARRANTY; without even the implied warranty of
845*59bfda1fSAndroid Build Coastguard Worker    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
846*59bfda1fSAndroid Build Coastguard Worker    Lesser General Public License for more details.
847*59bfda1fSAndroid Build Coastguard Worker
848*59bfda1fSAndroid Build Coastguard Worker    You should have received a copy of the GNU Lesser General Public
849*59bfda1fSAndroid Build Coastguard Worker    License along with this library; if not, write to the Free Software
850*59bfda1fSAndroid Build Coastguard Worker    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
851*59bfda1fSAndroid Build Coastguard Worker
852*59bfda1fSAndroid Build Coastguard WorkerAlso add information on how to contact you by electronic and paper mail.
853*59bfda1fSAndroid Build Coastguard Worker
854*59bfda1fSAndroid Build Coastguard WorkerYou should also get your employer (if you work as a programmer) or your
855*59bfda1fSAndroid Build Coastguard Workerschool, if any, to sign a "copyright disclaimer" for the library, if
856*59bfda1fSAndroid Build Coastguard Workernecessary.  Here is a sample; alter the names:
857*59bfda1fSAndroid Build Coastguard Worker
858*59bfda1fSAndroid Build Coastguard Worker  Yoyodyne, Inc., hereby disclaims all copyright interest in the
859*59bfda1fSAndroid Build Coastguard Worker  library `Frob' (a library for tweaking knobs) written by James Random Hacker.
860*59bfda1fSAndroid Build Coastguard Worker
861*59bfda1fSAndroid Build Coastguard Worker  <signature of Ty Coon>, 1 April 1990
862*59bfda1fSAndroid Build Coastguard Worker  Ty Coon, President of Vice
863*59bfda1fSAndroid Build Coastguard Worker
864*59bfda1fSAndroid Build Coastguard WorkerThat's all there is to it!
865