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