xref: /OK3568_Linux_fs/kernel/LICENSES/preferred/LGPL-2.0 (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunValid-License-Identifier: LGPL-2.0
2*4882a593SmuzhiyunValid-License-Identifier: LGPL-2.0+
3*4882a593SmuzhiyunSPDX-URL: https://spdx.org/licenses/LGPL-2.0.html
4*4882a593SmuzhiyunUsage-Guide:
5*4882a593Smuzhiyun  To use this license in source code, put one of the following SPDX
6*4882a593Smuzhiyun  tag/value pairs into a comment according to the placement
7*4882a593Smuzhiyun  guidelines in the licensing rules documentation.
8*4882a593Smuzhiyun  For 'GNU Library General Public License (LGPL) version 2.0 only' use:
9*4882a593Smuzhiyun    SPDX-License-Identifier: LGPL-2.0
10*4882a593Smuzhiyun  For 'GNU Library General Public License (LGPL) version 2.0 or any later
11*4882a593Smuzhiyun  version' use:
12*4882a593Smuzhiyun    SPDX-License-Identifier: LGPL-2.0+
13*4882a593SmuzhiyunLicense-Text:
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunGNU LIBRARY GENERAL PUBLIC LICENSE
16*4882a593SmuzhiyunVersion 2, June 1991
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunCopyright (C) 1991 Free Software Foundation, Inc.
19*4882a593Smuzhiyun51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunEveryone is permitted to copy and distribute verbatim copies of this
22*4882a593Smuzhiyunlicense document, but changing it is not allowed.
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun[This is the first released version of the library GPL. It is numbered 2
25*4882a593Smuzhiyunbecause it goes with version 2 of the ordinary GPL.]
26*4882a593Smuzhiyun
27*4882a593SmuzhiyunPreamble
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunThe licenses for most software are designed to take away your freedom to
30*4882a593Smuzhiyunshare and change it. By contrast, the GNU General Public Licenses are
31*4882a593Smuzhiyunintended to guarantee your freedom to share and change free software--to
32*4882a593Smuzhiyunmake sure the software is free for all its users.
33*4882a593Smuzhiyun
34*4882a593SmuzhiyunThis license, the Library General Public License, applies to some specially
35*4882a593Smuzhiyundesignated Free Software Foundation software, and to any other libraries
36*4882a593Smuzhiyunwhose authors decide to use it. You can use it for your libraries, too.
37*4882a593Smuzhiyun
38*4882a593SmuzhiyunWhen we speak of free software, we are referring to freedom, not price. Our
39*4882a593SmuzhiyunGeneral Public Licenses are designed to make sure that you have the freedom
40*4882a593Smuzhiyunto distribute copies of free software (and charge for this service if you
41*4882a593Smuzhiyunwish), that you receive source code or can get it if you want it, that you
42*4882a593Smuzhiyuncan change the software or use pieces of it in new free programs; and that
43*4882a593Smuzhiyunyou know you can do these things.
44*4882a593Smuzhiyun
45*4882a593SmuzhiyunTo protect your rights, we need to make restrictions that forbid anyone to
46*4882a593Smuzhiyundeny you these rights or to ask you to surrender the rights. These
47*4882a593Smuzhiyunrestrictions translate to certain responsibilities for you if you
48*4882a593Smuzhiyundistribute copies of the library, or if you modify it.
49*4882a593Smuzhiyun
50*4882a593SmuzhiyunFor example, if you distribute copies of the library, whether gratis or for
51*4882a593Smuzhiyuna fee, you must give the recipients all the rights that we gave you. You
52*4882a593Smuzhiyunmust make sure that they, too, receive or can get the source code. If you
53*4882a593Smuzhiyunlink a program with the library, you must provide complete object files to
54*4882a593Smuzhiyunthe recipients so that they can relink them with the library, after making
55*4882a593Smuzhiyunchanges to the library and recompiling it. And you must show them these
56*4882a593Smuzhiyunterms so they know their rights.
57*4882a593Smuzhiyun
58*4882a593SmuzhiyunOur method of protecting your rights has two steps: (1) copyright the
59*4882a593Smuzhiyunlibrary, and (2) offer you this license which gives you legal permission to
60*4882a593Smuzhiyuncopy, distribute and/or modify the library.
61*4882a593Smuzhiyun
62*4882a593SmuzhiyunAlso, for each distributor's protection, we want to make certain that
63*4882a593Smuzhiyuneveryone understands that there is no warranty for this free library. If
64*4882a593Smuzhiyunthe library is modified by someone else and passed on, we want its
65*4882a593Smuzhiyunrecipients to know that what they have is not the original version, so that
66*4882a593Smuzhiyunany problems introduced by others will not reflect on the original authors'
67*4882a593Smuzhiyunreputations.
68*4882a593Smuzhiyun
69*4882a593SmuzhiyunFinally, any free program is threatened constantly by software patents. We
70*4882a593Smuzhiyunwish to avoid the danger that companies distributing free software will
71*4882a593Smuzhiyunindividually obtain patent licenses, thus in effect transforming the
72*4882a593Smuzhiyunprogram into proprietary software. To prevent this, we have made it clear
73*4882a593Smuzhiyunthat any patent must be licensed for everyone's free use or not licensed at
74*4882a593Smuzhiyunall.
75*4882a593Smuzhiyun
76*4882a593SmuzhiyunMost GNU software, including some libraries, is covered by the ordinary GNU
77*4882a593SmuzhiyunGeneral Public License, which was designed for utility programs. This
78*4882a593Smuzhiyunlicense, the GNU Library General Public License, applies to certain
79*4882a593Smuzhiyundesignated libraries. This license is quite different from the ordinary
80*4882a593Smuzhiyunone; be sure to read it in full, and don't assume that anything in it is
81*4882a593Smuzhiyunthe same as in the ordinary license.
82*4882a593Smuzhiyun
83*4882a593SmuzhiyunThe reason we have a separate public license for some libraries is that
84*4882a593Smuzhiyunthey blur the distinction we usually make between modifying or adding to a
85*4882a593Smuzhiyunprogram and simply using it. Linking a program with a library, without
86*4882a593Smuzhiyunchanging the library, is in some sense simply using the library, and is
87*4882a593Smuzhiyunanalogous to running a utility program or application program. However, in
88*4882a593Smuzhiyuna textual and legal sense, the linked executable is a combined work, a
89*4882a593Smuzhiyunderivative of the original library, and the ordinary General Public License
90*4882a593Smuzhiyuntreats it as such.
91*4882a593Smuzhiyun
92*4882a593SmuzhiyunBecause of this blurred distinction, using the ordinary General Public
93*4882a593SmuzhiyunLicense for libraries did not effectively promote software sharing, because
94*4882a593Smuzhiyunmost developers did not use the libraries. We concluded that weaker
95*4882a593Smuzhiyunconditions might promote sharing better.
96*4882a593Smuzhiyun
97*4882a593SmuzhiyunHowever, unrestricted linking of non-free programs would deprive the users
98*4882a593Smuzhiyunof those programs of all benefit from the free status of the libraries
99*4882a593Smuzhiyunthemselves. This Library General Public License is intended to permit
100*4882a593Smuzhiyundevelopers of non-free programs to use free libraries, while preserving
101*4882a593Smuzhiyunyour freedom as a user of such programs to change the free libraries that
102*4882a593Smuzhiyunare incorporated in them. (We have not seen how to achieve this as regards
103*4882a593Smuzhiyunchanges in header files, but we have achieved it as regards changes in the
104*4882a593Smuzhiyunactual functions of the Library.) The hope is that this will lead to faster
105*4882a593Smuzhiyundevelopment of free libraries.
106*4882a593Smuzhiyun
107*4882a593SmuzhiyunThe precise terms and conditions for copying, distribution and modification
108*4882a593Smuzhiyunfollow. Pay close attention to the difference between a "work based on the
109*4882a593Smuzhiyunlibrary" and a "work that uses the library". The former contains code
110*4882a593Smuzhiyunderived from the library, while the latter only works together with the
111*4882a593Smuzhiyunlibrary.
112*4882a593Smuzhiyun
113*4882a593SmuzhiyunNote that it is possible for a library to be covered by the ordinary
114*4882a593SmuzhiyunGeneral Public License rather than by this special one.
115*4882a593Smuzhiyun
116*4882a593SmuzhiyunTERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
117*4882a593Smuzhiyun
118*4882a593Smuzhiyun0. This License Agreement applies to any software library which contains a
119*4882a593Smuzhiyun   notice placed by the copyright holder or other authorized party saying
120*4882a593Smuzhiyun   it may be distributed under the terms of this Library General Public
121*4882a593Smuzhiyun   License (also called "this License"). Each licensee is addressed as
122*4882a593Smuzhiyun   "you".
123*4882a593Smuzhiyun
124*4882a593Smuzhiyun   A "library" means a collection of software functions and/or data
125*4882a593Smuzhiyun   prepared so as to be conveniently linked with application programs
126*4882a593Smuzhiyun   (which use some of those functions and data) to form executables.
127*4882a593Smuzhiyun
128*4882a593Smuzhiyun   The "Library", below, refers to any such software library or work which
129*4882a593Smuzhiyun   has been distributed under these terms. A "work based on the Library"
130*4882a593Smuzhiyun   means either the Library or any derivative work under copyright law:
131*4882a593Smuzhiyun   that is to say, a work containing the Library or a portion of it, either
132*4882a593Smuzhiyun   verbatim or with modifications and/or translated straightforwardly into
133*4882a593Smuzhiyun   another language. (Hereinafter, translation is included without
134*4882a593Smuzhiyun   limitation in the term "modification".)
135*4882a593Smuzhiyun
136*4882a593Smuzhiyun   "Source code" for a work means the preferred form of the work for making
137*4882a593Smuzhiyun   modifications to it. For a library, complete source code means all the
138*4882a593Smuzhiyun   source code for all modules it contains, plus any associated interface
139*4882a593Smuzhiyun   definition files, plus the scripts used to control compilation and
140*4882a593Smuzhiyun   installation of the library.
141*4882a593Smuzhiyun
142*4882a593Smuzhiyun   Activities other than copying, distribution and modification are not
143*4882a593Smuzhiyun   covered by this License; they are outside its scope. The act of running
144*4882a593Smuzhiyun   a program using the Library is not restricted, and output from such a
145*4882a593Smuzhiyun   program is covered only if its contents constitute a work based on the
146*4882a593Smuzhiyun   Library (independent of the use of the Library in a tool for writing
147*4882a593Smuzhiyun   it). Whether that is true depends on what the Library does and what the
148*4882a593Smuzhiyun   program that uses the Library does.
149*4882a593Smuzhiyun
150*4882a593Smuzhiyun1. You may copy and distribute verbatim copies of the Library's complete
151*4882a593Smuzhiyun   source code as you receive it, in any medium, provided that you
152*4882a593Smuzhiyun   conspicuously and appropriately publish on each copy an appropriate
153*4882a593Smuzhiyun   copyright notice and disclaimer of warranty; keep intact all the notices
154*4882a593Smuzhiyun   that refer to this License and to the absence of any warranty; and
155*4882a593Smuzhiyun   distribute a copy of this License along with the Library.
156*4882a593Smuzhiyun
157*4882a593Smuzhiyun   You may charge a fee for the physical act of transferring a copy, and
158*4882a593Smuzhiyun   you may at your option offer warranty protection in exchange for a fee.
159*4882a593Smuzhiyun
160*4882a593Smuzhiyun2. You may modify your copy or copies of the Library or any portion of it,
161*4882a593Smuzhiyun   thus forming a work based on the Library, and copy and distribute such
162*4882a593Smuzhiyun   modifications or work under the terms of Section 1 above, provided that
163*4882a593Smuzhiyun   you also meet all of these conditions:
164*4882a593Smuzhiyun
165*4882a593Smuzhiyun   a) The modified work must itself be a software library.
166*4882a593Smuzhiyun
167*4882a593Smuzhiyun   b) You must cause the files modified to carry prominent notices stating
168*4882a593Smuzhiyun      that you changed the files and the date of any change.
169*4882a593Smuzhiyun
170*4882a593Smuzhiyun   c) You must cause the whole of the work to be licensed at no charge to
171*4882a593Smuzhiyun      all third parties under the terms of this License.
172*4882a593Smuzhiyun
173*4882a593Smuzhiyun   d) If a facility in the modified Library refers to a function or a table
174*4882a593Smuzhiyun      of data to be supplied by an application program that uses the
175*4882a593Smuzhiyun      facility, other than as an argument passed when the facility is
176*4882a593Smuzhiyun      invoked, then you must make a good faith effort to ensure that, in
177*4882a593Smuzhiyun      the event an application does not supply such function or table, the
178*4882a593Smuzhiyun      facility still operates, and performs whatever part of its purpose
179*4882a593Smuzhiyun      remains meaningful.
180*4882a593Smuzhiyun
181*4882a593Smuzhiyun   (For example, a function in a library to compute square roots has a
182*4882a593Smuzhiyun   purpose that is entirely well-defined independent of the
183*4882a593Smuzhiyun   application. Therefore, Subsection 2d requires that any
184*4882a593Smuzhiyun   application-supplied function or table used by this function must be
185*4882a593Smuzhiyun   optional: if the application does not supply it, the square root
186*4882a593Smuzhiyun   function must still compute square roots.)
187*4882a593Smuzhiyun
188*4882a593Smuzhiyun   These requirements apply to the modified work as a whole. If
189*4882a593Smuzhiyun   identifiable sections of that work are not derived from the Library, and
190*4882a593Smuzhiyun   can be reasonably considered independent and separate works in
191*4882a593Smuzhiyun   themselves, then this License, and its terms, do not apply to those
192*4882a593Smuzhiyun   sections when you distribute them as separate works. But when you
193*4882a593Smuzhiyun   distribute the same sections as part of a whole which is a work based on
194*4882a593Smuzhiyun   the Library, the distribution of the whole must be on the terms of this
195*4882a593Smuzhiyun   License, whose permissions for other licensees extend to the entire
196*4882a593Smuzhiyun   whole, and thus to each and every part regardless of who wrote it.
197*4882a593Smuzhiyun
198*4882a593Smuzhiyun   Thus, it is not the intent of this section to claim rights or contest
199*4882a593Smuzhiyun   your rights to work written entirely by you; rather, the intent is to
200*4882a593Smuzhiyun   exercise the right to control the distribution of derivative or
201*4882a593Smuzhiyun   collective works based on the Library.
202*4882a593Smuzhiyun
203*4882a593Smuzhiyun   In addition, mere aggregation of another work not based on the Library
204*4882a593Smuzhiyun   with the Library (or with a work based on the Library) on a volume of a
205*4882a593Smuzhiyun   storage or distribution medium does not bring the other work under the
206*4882a593Smuzhiyun   scope of this License.
207*4882a593Smuzhiyun
208*4882a593Smuzhiyun3. You may opt to apply the terms of the ordinary GNU General Public
209*4882a593Smuzhiyun   License instead of this License to a given copy of the Library. To do
210*4882a593Smuzhiyun   this, you must alter all the notices that refer to this License, so that
211*4882a593Smuzhiyun   they refer to the ordinary GNU General Public License, version 2,
212*4882a593Smuzhiyun   instead of to this License. (If a newer version than version 2 of the
213*4882a593Smuzhiyun   ordinary GNU General Public License has appeared, then you can specify
214*4882a593Smuzhiyun   that version instead if you wish.) Do not make any other change in these
215*4882a593Smuzhiyun   notices.
216*4882a593Smuzhiyun
217*4882a593Smuzhiyun   Once this change is made in a given copy, it is irreversible for that
218*4882a593Smuzhiyun   copy, so the ordinary GNU General Public License applies to all
219*4882a593Smuzhiyun   subsequent copies and derivative works made from that copy.
220*4882a593Smuzhiyun
221*4882a593Smuzhiyun   This option is useful when you wish to copy part of the code of the
222*4882a593Smuzhiyun   Library into a program that is not a library.
223*4882a593Smuzhiyun
224*4882a593Smuzhiyun4. You may copy and distribute the Library (or a portion or derivative of
225*4882a593Smuzhiyun   it, under Section 2) in object code or executable form under the terms
226*4882a593Smuzhiyun   of Sections 1 and 2 above provided that you accompany it with the
227*4882a593Smuzhiyun   complete corresponding machine-readable source code, which must be
228*4882a593Smuzhiyun   distributed under the terms of Sections 1 and 2 above on a medium
229*4882a593Smuzhiyun   customarily used for software interchange.
230*4882a593Smuzhiyun
231*4882a593Smuzhiyun   If distribution of object code is made by offering access to copy from a
232*4882a593Smuzhiyun   designated place, then offering equivalent access to copy the source
233*4882a593Smuzhiyun   code from the same place satisfies the requirement to distribute the
234*4882a593Smuzhiyun   source code, even though third parties are not compelled to copy the
235*4882a593Smuzhiyun   source along with the object code.
236*4882a593Smuzhiyun
237*4882a593Smuzhiyun5. A program that contains no derivative of any portion of the Library, but
238*4882a593Smuzhiyun   is designed to work with the Library by being compiled or linked with
239*4882a593Smuzhiyun   it, is called a "work that uses the Library". Such a work, in isolation,
240*4882a593Smuzhiyun   is not a derivative work of the Library, and therefore falls outside the
241*4882a593Smuzhiyun   scope of this License.
242*4882a593Smuzhiyun
243*4882a593Smuzhiyun   However, linking a "work that uses the Library" with the Library creates
244*4882a593Smuzhiyun   an executable that is a derivative of the Library (because it contains
245*4882a593Smuzhiyun   portions of the Library), rather than a "work that uses the
246*4882a593Smuzhiyun   library". The executable is therefore covered by this License. Section 6
247*4882a593Smuzhiyun   states terms for distribution of such executables.
248*4882a593Smuzhiyun
249*4882a593Smuzhiyun   When a "work that uses the Library" uses material from a header file
250*4882a593Smuzhiyun   that is part of the Library, the object code for the work may be a
251*4882a593Smuzhiyun   derivative work of the Library even though the source code is
252*4882a593Smuzhiyun   not. Whether this is true is especially significant if the work can be
253*4882a593Smuzhiyun   linked without the Library, or if the work is itself a library. The
254*4882a593Smuzhiyun   threshold for this to be true is not precisely defined by law.
255*4882a593Smuzhiyun
256*4882a593Smuzhiyun   If such an object file uses only numerical parameters, data structure
257*4882a593Smuzhiyun   layouts and accessors, and small macros and small inline functions (ten
258*4882a593Smuzhiyun   lines or less in length), then the use of the object file is
259*4882a593Smuzhiyun   unrestricted, regardless of whether it is legally a derivative
260*4882a593Smuzhiyun   work. (Executables containing this object code plus portions of the
261*4882a593Smuzhiyun   Library will still fall under Section 6.)
262*4882a593Smuzhiyun
263*4882a593Smuzhiyun   Otherwise, if the work is a derivative of the Library, you may
264*4882a593Smuzhiyun   distribute the object code for the work under the terms of Section
265*4882a593Smuzhiyun   6. Any executables containing that work also fall under Section 6,
266*4882a593Smuzhiyun   whether or not they are linked directly with the Library itself.
267*4882a593Smuzhiyun
268*4882a593Smuzhiyun6. As an exception to the Sections above, you may also compile or link a
269*4882a593Smuzhiyun   "work that uses the Library" with the Library to produce a work
270*4882a593Smuzhiyun   containing portions of the Library, and distribute that work under terms
271*4882a593Smuzhiyun   of your choice, provided that the terms permit modification of the work
272*4882a593Smuzhiyun   for the customer's own use and reverse engineering for debugging such
273*4882a593Smuzhiyun   modifications.
274*4882a593Smuzhiyun
275*4882a593Smuzhiyun   You must give prominent notice with each copy of the work that the
276*4882a593Smuzhiyun   Library is used in it and that the Library and its use are covered by
277*4882a593Smuzhiyun   this License. You must supply a copy of this License. If the work during
278*4882a593Smuzhiyun   execution displays copyright notices, you must include the copyright
279*4882a593Smuzhiyun   notice for the Library among them, as well as a reference directing the
280*4882a593Smuzhiyun   user to the copy of this License. Also, you must do one of these things:
281*4882a593Smuzhiyun
282*4882a593Smuzhiyun   a) Accompany the work with the complete corresponding machine-readable
283*4882a593Smuzhiyun      source code for the Library including whatever changes were used in
284*4882a593Smuzhiyun      the work (which must be distributed under Sections 1 and 2 above);
285*4882a593Smuzhiyun      and, if the work is an executable linked with the Library, with the
286*4882a593Smuzhiyun      complete machine-readable "work that uses the Library", as object
287*4882a593Smuzhiyun      code and/or source code, so that the user can modify the Library and
288*4882a593Smuzhiyun      then relink to produce a modified executable containing the modified
289*4882a593Smuzhiyun      Library. (It is understood that the user who changes the contents of
290*4882a593Smuzhiyun      definitions files in the Library will not necessarily be able to
291*4882a593Smuzhiyun      recompile the application to use the modified definitions.)
292*4882a593Smuzhiyun
293*4882a593Smuzhiyun   b) Accompany the work with a written offer, valid for at least three
294*4882a593Smuzhiyun      years, to give the same user the materials specified in Subsection
295*4882a593Smuzhiyun      6a, above, for a charge no more than the cost of performing this
296*4882a593Smuzhiyun      distribution.
297*4882a593Smuzhiyun
298*4882a593Smuzhiyun   c) If distribution of the work is made by offering access to copy from a
299*4882a593Smuzhiyun      designated place, offer equivalent access to copy the above specified
300*4882a593Smuzhiyun      materials from the same place.
301*4882a593Smuzhiyun
302*4882a593Smuzhiyun   d) Verify that the user has already received a copy of these materials
303*4882a593Smuzhiyun      or that you have already sent this user a copy.
304*4882a593Smuzhiyun
305*4882a593Smuzhiyun   For an executable, the required form of the "work that uses the Library"
306*4882a593Smuzhiyun   must include any data and utility programs needed for reproducing the
307*4882a593Smuzhiyun   executable from it. However, as a special exception, the source code
308*4882a593Smuzhiyun   distributed need not include anything that is normally distributed (in
309*4882a593Smuzhiyun   either source or binary form) with the major components (compiler,
310*4882a593Smuzhiyun   kernel, and so on) of the operating system on which the executable runs,
311*4882a593Smuzhiyun   unless that component itself accompanies the executable.
312*4882a593Smuzhiyun
313*4882a593Smuzhiyun   It may happen that this requirement contradicts the license restrictions
314*4882a593Smuzhiyun   of other proprietary libraries that do not normally accompany the
315*4882a593Smuzhiyun   operating system. Such a contradiction means you cannot use both them
316*4882a593Smuzhiyun   and the Library together in an executable that you distribute.
317*4882a593Smuzhiyun
318*4882a593Smuzhiyun7. You may place library facilities that are a work based on the Library
319*4882a593Smuzhiyun   side-by-side in a single library together with other library facilities
320*4882a593Smuzhiyun   not covered by this License, and distribute such a combined library,
321*4882a593Smuzhiyun   provided that the separate distribution of the work based on the Library
322*4882a593Smuzhiyun   and of the other library facilities is otherwise permitted, and provided
323*4882a593Smuzhiyun   that you do these two things:
324*4882a593Smuzhiyun
325*4882a593Smuzhiyun   a) Accompany the combined library with a copy of the same work based on
326*4882a593Smuzhiyun      the Library, uncombined with any other library facilities. This must
327*4882a593Smuzhiyun      be distributed under the terms of the Sections above.
328*4882a593Smuzhiyun
329*4882a593Smuzhiyun   b) Give prominent notice with the combined library of the fact that part
330*4882a593Smuzhiyun      of it is a work based on the Library, and explaining where to find
331*4882a593Smuzhiyun      the accompanying uncombined form of the same work.
332*4882a593Smuzhiyun
333*4882a593Smuzhiyun8. You may not copy, modify, sublicense, link with, or distribute the
334*4882a593Smuzhiyun   Library except as expressly provided under this License. Any attempt
335*4882a593Smuzhiyun   otherwise to copy, modify, sublicense, link with, or distribute the
336*4882a593Smuzhiyun   Library is void, and will automatically terminate your rights under this
337*4882a593Smuzhiyun   License. However, parties who have received copies, or rights, from you
338*4882a593Smuzhiyun   under this License will not have their licenses terminated so long as
339*4882a593Smuzhiyun   such parties remain in full compliance.
340*4882a593Smuzhiyun
341*4882a593Smuzhiyun9. You are not required to accept this License, since you have not signed
342*4882a593Smuzhiyun   it. However, nothing else grants you permission to modify or distribute
343*4882a593Smuzhiyun   the Library or its derivative works. These actions are prohibited by law
344*4882a593Smuzhiyun   if you do not accept this License. Therefore, by modifying or
345*4882a593Smuzhiyun   distributing the Library (or any work based on the Library), you
346*4882a593Smuzhiyun   indicate your acceptance of this License to do so, and all its terms and
347*4882a593Smuzhiyun   conditions for copying, distributing or modifying the Library or works
348*4882a593Smuzhiyun   based on it.
349*4882a593Smuzhiyun
350*4882a593Smuzhiyun10. Each time you redistribute the Library (or any work based on the
351*4882a593Smuzhiyun    Library), the recipient automatically receives a license from the
352*4882a593Smuzhiyun    original licensor to copy, distribute, link with or modify the Library
353*4882a593Smuzhiyun    subject to these terms and conditions. You may not impose any further
354*4882a593Smuzhiyun    restrictions on the recipients' exercise of the rights granted
355*4882a593Smuzhiyun    herein. You are not responsible for enforcing compliance by third
356*4882a593Smuzhiyun    parties to this License.
357*4882a593Smuzhiyun
358*4882a593Smuzhiyun11. If, as a consequence of a court judgment or allegation of patent
359*4882a593Smuzhiyun    infringement or for any other reason (not limited to patent issues),
360*4882a593Smuzhiyun    conditions are imposed on you (whether by court order, agreement or
361*4882a593Smuzhiyun    otherwise) that contradict the conditions of this License, they do not
362*4882a593Smuzhiyun    excuse you from the conditions of this License. If you cannot
363*4882a593Smuzhiyun    distribute so as to satisfy simultaneously your obligations under this
364*4882a593Smuzhiyun    License and any other pertinent obligations, then as a consequence you
365*4882a593Smuzhiyun    may not distribute the Library at all. For example, if a patent license
366*4882a593Smuzhiyun    would not permit royalty-free redistribution of the Library by all
367*4882a593Smuzhiyun    those who receive copies directly or indirectly through you, then the
368*4882a593Smuzhiyun    only way you could satisfy both it and this License would be to refrain
369*4882a593Smuzhiyun    entirely from distribution of the Library.
370*4882a593Smuzhiyun
371*4882a593Smuzhiyun    If any portion of this section is held invalid or unenforceable under
372*4882a593Smuzhiyun    any particular circumstance, the balance of the section is intended to
373*4882a593Smuzhiyun    apply, and the section as a whole is intended to apply in other
374*4882a593Smuzhiyun    circumstances.
375*4882a593Smuzhiyun
376*4882a593Smuzhiyun    It is not the purpose of this section to induce you to infringe any
377*4882a593Smuzhiyun    patents or other property right claims or to contest validity of any
378*4882a593Smuzhiyun    such claims; this section has the sole purpose of protecting the
379*4882a593Smuzhiyun    integrity of the free software distribution system which is implemented
380*4882a593Smuzhiyun    by public license practices. Many people have made generous
381*4882a593Smuzhiyun    contributions to the wide range of software distributed through that
382*4882a593Smuzhiyun    system in reliance on consistent application of that system; it is up
383*4882a593Smuzhiyun    to the author/donor to decide if he or she is willing to distribute
384*4882a593Smuzhiyun    software through any other system and a licensee cannot impose that
385*4882a593Smuzhiyun    choice.
386*4882a593Smuzhiyun
387*4882a593Smuzhiyun    This section is intended to make thoroughly clear what is believed to
388*4882a593Smuzhiyun    be a consequence of the rest of this License.
389*4882a593Smuzhiyun
390*4882a593Smuzhiyun12. If the distribution and/or use of the Library is restricted in certain
391*4882a593Smuzhiyun    countries either by patents or by copyrighted interfaces, the original
392*4882a593Smuzhiyun    copyright holder who places the Library under this License may add an
393*4882a593Smuzhiyun    explicit geographical distribution limitation excluding those
394*4882a593Smuzhiyun    countries, so that distribution is permitted only in or among countries
395*4882a593Smuzhiyun    not thus excluded. In such case, this License incorporates the
396*4882a593Smuzhiyun    limitation as if written in the body of this License.
397*4882a593Smuzhiyun
398*4882a593Smuzhiyun13. The Free Software Foundation may publish revised and/or new versions of
399*4882a593Smuzhiyun    the Library General Public License from time to time. Such new versions
400*4882a593Smuzhiyun    will be similar in spirit to the present version, but may differ in
401*4882a593Smuzhiyun    detail to address new problems or concerns.
402*4882a593Smuzhiyun
403*4882a593Smuzhiyun    Each version is given a distinguishing version number. If the Library
404*4882a593Smuzhiyun    specifies a version number of this License which applies to it and "any
405*4882a593Smuzhiyun    later version", you have the option of following the terms and
406*4882a593Smuzhiyun    conditions either of that version or of any later version published by
407*4882a593Smuzhiyun    the Free Software Foundation. If the Library does not specify a license
408*4882a593Smuzhiyun    version number, you may choose any version ever published by the Free
409*4882a593Smuzhiyun    Software Foundation.
410*4882a593Smuzhiyun
411*4882a593Smuzhiyun14. If you wish to incorporate parts of the Library into other free
412*4882a593Smuzhiyun    programs whose distribution conditions are incompatible with these,
413*4882a593Smuzhiyun    write to the author to ask for permission. For software which is
414*4882a593Smuzhiyun    copyrighted by the Free Software Foundation, write to the Free Software
415*4882a593Smuzhiyun    Foundation; we sometimes make exceptions for this. Our decision will be
416*4882a593Smuzhiyun    guided by the two goals of preserving the free status of all
417*4882a593Smuzhiyun    derivatives of our free software and of promoting the sharing and reuse
418*4882a593Smuzhiyun    of software generally.
419*4882a593Smuzhiyun
420*4882a593SmuzhiyunNO WARRANTY
421*4882a593Smuzhiyun
422*4882a593Smuzhiyun15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
423*4882a593Smuzhiyun    FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
424*4882a593Smuzhiyun    OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
425*4882a593Smuzhiyun    PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
426*4882a593Smuzhiyun    EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
427*4882a593Smuzhiyun    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
428*4882a593Smuzhiyun    ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH
429*4882a593Smuzhiyun    YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
430*4882a593Smuzhiyun    NECESSARY SERVICING, REPAIR OR CORRECTION.
431*4882a593Smuzhiyun
432*4882a593Smuzhiyun16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
433*4882a593Smuzhiyun    WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
434*4882a593Smuzhiyun    REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
435*4882a593Smuzhiyun    DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
436*4882a593Smuzhiyun    DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY
437*4882a593Smuzhiyun    (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
438*4882a593Smuzhiyun    INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF
439*4882a593Smuzhiyun    THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR
440*4882a593Smuzhiyun    OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
441*4882a593Smuzhiyun
442*4882a593SmuzhiyunEND OF TERMS AND CONDITIONS
443*4882a593Smuzhiyun
444*4882a593SmuzhiyunHow to Apply These Terms to Your New Libraries
445*4882a593Smuzhiyun
446*4882a593SmuzhiyunIf you develop a new library, and you want it to be of the greatest
447*4882a593Smuzhiyunpossible use to the public, we recommend making it free software that
448*4882a593Smuzhiyuneveryone can redistribute and change. You can do so by permitting
449*4882a593Smuzhiyunredistribution under these terms (or, alternatively, under the terms of the
450*4882a593Smuzhiyunordinary General Public License).
451*4882a593Smuzhiyun
452*4882a593SmuzhiyunTo apply these terms, attach the following notices to the library. It is
453*4882a593Smuzhiyunsafest to attach them to the start of each source file to most effectively
454*4882a593Smuzhiyunconvey the exclusion of warranty; and each file should have at least the
455*4882a593Smuzhiyun"copyright" line and a pointer to where the full notice is found.
456*4882a593Smuzhiyun
457*4882a593Smuzhiyunone line to give the library's name and an idea of what it does.
458*4882a593SmuzhiyunCopyright (C) year name of author
459*4882a593Smuzhiyun
460*4882a593SmuzhiyunThis library is free software; you can redistribute it and/or modify it
461*4882a593Smuzhiyununder the terms of the GNU Library General Public License as published by
462*4882a593Smuzhiyunthe Free Software Foundation; either version 2 of the License, or (at your
463*4882a593Smuzhiyunoption) any later version.
464*4882a593Smuzhiyun
465*4882a593SmuzhiyunThis library is distributed in the hope that it will be useful, but WITHOUT
466*4882a593SmuzhiyunANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
467*4882a593SmuzhiyunFITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
468*4882a593SmuzhiyunLicense for more details.
469*4882a593Smuzhiyun
470*4882a593SmuzhiyunYou should have received a copy of the GNU Library General Public License
471*4882a593Smuzhiyunalong with this library; if not, write to the Free Software Foundation,
472*4882a593SmuzhiyunInc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
473*4882a593Smuzhiyun
474*4882a593SmuzhiyunAlso add information on how to contact you by electronic and paper mail.
475*4882a593Smuzhiyun
476*4882a593SmuzhiyunYou should also get your employer (if you work as a programmer) or your
477*4882a593Smuzhiyunschool, if any, to sign a "copyright disclaimer" for the library, if
478*4882a593Smuzhiyunnecessary. Here is a sample; alter the names:
479*4882a593Smuzhiyun
480*4882a593SmuzhiyunYoyodyne, Inc., hereby disclaims all copyright interest in
481*4882a593Smuzhiyunthe library `Frob' (a library for tweaking knobs) written
482*4882a593Smuzhiyunby James Random Hacker.
483*4882a593Smuzhiyun
484*4882a593Smuzhiyunsignature of Ty Coon, 1 April 1990
485*4882a593SmuzhiyunTy Coon, President of Vice
486*4882a593Smuzhiyun
487*4882a593SmuzhiyunThat's all there is to it!
488