xref: /openbmc/linux/LICENSES/preferred/LGPL-2.1 (revision 03ab8e6297acd1bc0eedaa050e2a1635c576fd11)
163595c8aSThomas GleixnerValid-License-Identifier: LGPL-2.1
2*bc128349SMauro Carvalho ChehabValid-License-Identifier: LGPL-2.1-only
363595c8aSThomas GleixnerValid-License-Identifier: LGPL-2.1+
4*bc128349SMauro Carvalho ChehabValid-License-Identifier: LGPL-2.1-or-later
563595c8aSThomas GleixnerSPDX-URL: https://spdx.org/licenses/LGPL-2.1.html
663595c8aSThomas GleixnerUsage-Guide:
763595c8aSThomas Gleixner  To use this license in source code, put one of the following SPDX
863595c8aSThomas Gleixner  tag/value pairs into a comment according to the placement
963595c8aSThomas Gleixner  guidelines in the licensing rules documentation.
1063595c8aSThomas Gleixner  For 'GNU Lesser General Public License (LGPL) version 2.1 only' use:
1163595c8aSThomas Gleixner    SPDX-License-Identifier: LGPL-2.1
1263595c8aSThomas Gleixner  For 'GNU Lesser General Public License (LGPL) version 2.1 or any later
1363595c8aSThomas Gleixner  version' use:
1463595c8aSThomas Gleixner    SPDX-License-Identifier: LGPL-2.1+
1563595c8aSThomas GleixnerLicense-Text:
1663595c8aSThomas Gleixner
1763595c8aSThomas GleixnerGNU LESSER GENERAL PUBLIC LICENSE
1863595c8aSThomas GleixnerVersion 2.1, February 1999
1963595c8aSThomas Gleixner
2063595c8aSThomas GleixnerCopyright (C) 1991, 1999 Free Software Foundation, Inc.
2163595c8aSThomas Gleixner51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2263595c8aSThomas Gleixner
2363595c8aSThomas GleixnerEveryone is permitted to copy and distribute verbatim copies of this
2463595c8aSThomas Gleixnerlicense document, but changing it is not allowed.
2563595c8aSThomas Gleixner
2663595c8aSThomas Gleixner[This is the first released version of the Lesser GPL. It also counts as
2763595c8aSThomas Gleixnerthe successor of the GNU Library Public License, version 2, hence the
2863595c8aSThomas Gleixnerversion number 2.1.]
2963595c8aSThomas Gleixner
3063595c8aSThomas GleixnerPreamble
3163595c8aSThomas Gleixner
3263595c8aSThomas GleixnerThe licenses for most software are designed to take away your freedom to
3363595c8aSThomas Gleixnershare and change it. By contrast, the GNU General Public Licenses are
3463595c8aSThomas Gleixnerintended to guarantee your freedom to share and change free software--to
3563595c8aSThomas Gleixnermake sure the software is free for all its users.
3663595c8aSThomas Gleixner
3763595c8aSThomas GleixnerThis license, the Lesser General Public License, applies to some specially
3863595c8aSThomas Gleixnerdesignated software packages--typically libraries--of the Free Software
3963595c8aSThomas GleixnerFoundation and other authors who decide to use it. You can use it too, but
4063595c8aSThomas Gleixnerwe suggest you first think carefully about whether this license or the
4163595c8aSThomas Gleixnerordinary General Public License is the better strategy to use in any
4263595c8aSThomas Gleixnerparticular case, based on the explanations below.
4363595c8aSThomas Gleixner
4463595c8aSThomas GleixnerWhen we speak of free software, we are referring to freedom of use, not
4563595c8aSThomas Gleixnerprice. Our General Public Licenses are designed to make sure that you have
4663595c8aSThomas Gleixnerthe freedom to distribute copies of free software (and charge for this
4763595c8aSThomas Gleixnerservice if you wish); that you receive source code or can get it if you
4863595c8aSThomas Gleixnerwant it; that you can change the software and use pieces of it in new free
4963595c8aSThomas Gleixnerprograms; and that you are informed that you can do these things.
5063595c8aSThomas Gleixner
5163595c8aSThomas GleixnerTo protect your rights, we need to make restrictions that forbid
5263595c8aSThomas Gleixnerdistributors to deny you these rights or to ask you to surrender these
5363595c8aSThomas Gleixnerrights. These restrictions translate to certain responsibilities for you if
5463595c8aSThomas Gleixneryou distribute copies of the library or if you modify it.
5563595c8aSThomas Gleixner
5663595c8aSThomas GleixnerFor example, if you distribute copies of the library, whether gratis or for
5763595c8aSThomas Gleixnera fee, you must give the recipients all the rights that we gave you. You
5863595c8aSThomas Gleixnermust make sure that they, too, receive or can get the source code. If you
5963595c8aSThomas Gleixnerlink other code with the library, you must provide complete object files to
6063595c8aSThomas Gleixnerthe recipients, so that they can relink them with the library after making
6163595c8aSThomas Gleixnerchanges to the library and recompiling it. And you must show them these
6263595c8aSThomas Gleixnerterms so they know their rights.
6363595c8aSThomas Gleixner
6463595c8aSThomas GleixnerWe protect your rights with a two-step method: (1) we copyright the
6563595c8aSThomas Gleixnerlibrary, and (2) we offer you this license, which gives you legal
6663595c8aSThomas Gleixnerpermission to copy, distribute and/or modify the library.
6763595c8aSThomas Gleixner
6863595c8aSThomas GleixnerTo protect each distributor, we want to make it very clear that there is no
6963595c8aSThomas Gleixnerwarranty for the free library. Also, if the library is modified by someone
7063595c8aSThomas Gleixnerelse and passed on, the recipients should know that what they have is not
7163595c8aSThomas Gleixnerthe original version, so that the original author's reputation will not be
7263595c8aSThomas Gleixneraffected by problems that might be introduced by others.
7363595c8aSThomas Gleixner
7463595c8aSThomas GleixnerFinally, software patents pose a constant threat to the existence of any
7563595c8aSThomas Gleixnerfree program. We wish to make sure that a company cannot effectively
7663595c8aSThomas Gleixnerrestrict the users of a free program by obtaining a restrictive license
7763595c8aSThomas Gleixnerfrom a patent holder. Therefore, we insist that any patent license obtained
7863595c8aSThomas Gleixnerfor a version of the library must be consistent with the full freedom of
7963595c8aSThomas Gleixneruse specified in this license.
8063595c8aSThomas Gleixner
8163595c8aSThomas GleixnerMost GNU software, including some libraries, is covered by the ordinary GNU
8263595c8aSThomas GleixnerGeneral Public License. This license, the GNU Lesser General Public
8363595c8aSThomas GleixnerLicense, applies to certain designated libraries, and is quite different
8463595c8aSThomas Gleixnerfrom the ordinary General Public License. We use this license for certain
8563595c8aSThomas Gleixnerlibraries in order to permit linking those libraries into non-free
8663595c8aSThomas Gleixnerprograms.
8763595c8aSThomas Gleixner
8863595c8aSThomas GleixnerWhen a program is linked with a library, whether statically or using a
8963595c8aSThomas Gleixnershared library, the combination of the two is legally speaking a combined
9063595c8aSThomas Gleixnerwork, a derivative of the original library. The ordinary General Public
9163595c8aSThomas GleixnerLicense therefore permits such linking only if the entire combination fits
9263595c8aSThomas Gleixnerits criteria of freedom. The Lesser General Public License permits more lax
9363595c8aSThomas Gleixnercriteria for linking other code with the library.
9463595c8aSThomas Gleixner
9563595c8aSThomas GleixnerWe call this license the "Lesser" General Public License because it does
9663595c8aSThomas GleixnerLess to protect the user's freedom than the ordinary General Public
9763595c8aSThomas GleixnerLicense. It also provides other free software developers Less of an
9863595c8aSThomas Gleixneradvantage over competing non-free programs. These disadvantages are the
9963595c8aSThomas Gleixnerreason we use the ordinary General Public License for many
10063595c8aSThomas Gleixnerlibraries. However, the Lesser license provides advantages in certain
10163595c8aSThomas Gleixnerspecial circumstances.
10263595c8aSThomas Gleixner
10363595c8aSThomas GleixnerFor example, on rare occasions, there may be a special need to encourage
10463595c8aSThomas Gleixnerthe widest possible use of a certain library, so that it becomes a de-facto
10563595c8aSThomas Gleixnerstandard. To achieve this, non-free programs must be allowed to use the
10663595c8aSThomas Gleixnerlibrary. A more frequent case is that a free library does the same job as
10763595c8aSThomas Gleixnerwidely used non-free libraries. In this case, there is little to gain by
10863595c8aSThomas Gleixnerlimiting the free library to free software only, so we use the Lesser
10963595c8aSThomas GleixnerGeneral Public License.
11063595c8aSThomas Gleixner
11163595c8aSThomas GleixnerIn other cases, permission to use a particular library in non-free programs
11263595c8aSThomas Gleixnerenables a greater number of people to use a large body of free
11363595c8aSThomas Gleixnersoftware. For example, permission to use the GNU C Library in non-free
11463595c8aSThomas Gleixnerprograms enables many more people to use the whole GNU operating system, as
11563595c8aSThomas Gleixnerwell as its variant, the GNU/Linux operating system.
11663595c8aSThomas Gleixner
11763595c8aSThomas GleixnerAlthough the Lesser General Public License is Less protective of the users'
11863595c8aSThomas Gleixnerfreedom, it does ensure that the user of a program that is linked with the
11963595c8aSThomas GleixnerLibrary has the freedom and the wherewithal to run that program using a
12063595c8aSThomas Gleixnermodified version of the Library.
12163595c8aSThomas Gleixner
12263595c8aSThomas GleixnerThe precise terms and conditions for copying, distribution and modification
12363595c8aSThomas Gleixnerfollow. Pay close attention to the difference between a "work based on the
12463595c8aSThomas Gleixnerlibrary" and a "work that uses the library". The former contains code
12563595c8aSThomas Gleixnerderived from the library, whereas the latter must be combined with the
12663595c8aSThomas Gleixnerlibrary in order to run.
12763595c8aSThomas Gleixner
12863595c8aSThomas GleixnerTERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
12963595c8aSThomas Gleixner
13063595c8aSThomas Gleixner0. This License Agreement applies to any software library or other program
13163595c8aSThomas Gleixner   which contains a notice placed by the copyright holder or other
13263595c8aSThomas Gleixner   authorized party saying it may be distributed under the terms of this
13363595c8aSThomas Gleixner   Lesser General Public License (also called "this License"). Each
13463595c8aSThomas Gleixner   licensee is addressed as "you".
13563595c8aSThomas Gleixner
13663595c8aSThomas Gleixner   A "library" means a collection of software functions and/or data
13763595c8aSThomas Gleixner   prepared so as to be conveniently linked with application programs
13863595c8aSThomas Gleixner   (which use some of those functions and data) to form executables.
13963595c8aSThomas Gleixner
14063595c8aSThomas Gleixner   The "Library", below, refers to any such software library or work which
14163595c8aSThomas Gleixner   has been distributed under these terms. A "work based on the Library"
14263595c8aSThomas Gleixner   means either the Library or any derivative work under copyright law:
14363595c8aSThomas Gleixner   that is to say, a work containing the Library or a portion of it, either
14463595c8aSThomas Gleixner   verbatim or with modifications and/or translated straightforwardly into
14563595c8aSThomas Gleixner   another language. (Hereinafter, translation is included without
14663595c8aSThomas Gleixner   limitation in the term "modification".)
14763595c8aSThomas Gleixner
14863595c8aSThomas Gleixner   "Source code" for a work means the preferred form of the work for making
14963595c8aSThomas Gleixner   modifications to it. For a library, complete source code means all the
15063595c8aSThomas Gleixner   source code for all modules it contains, plus any associated interface
15163595c8aSThomas Gleixner   definition files, plus the scripts used to control compilation and
15263595c8aSThomas Gleixner   installation of the library.
15363595c8aSThomas Gleixner
15463595c8aSThomas Gleixner    Activities other than copying, distribution and modification are not
15563595c8aSThomas Gleixner    covered by this License; they are outside its scope. The act of running
15663595c8aSThomas Gleixner    a program using the Library is not restricted, and output from such a
15763595c8aSThomas Gleixner    program is covered only if its contents constitute a work based on the
15863595c8aSThomas Gleixner    Library (independent of the use of the Library in a tool for writing
15963595c8aSThomas Gleixner    it). Whether that is true depends on what the Library does and what the
16063595c8aSThomas Gleixner    program that uses the Library does.
16163595c8aSThomas Gleixner
16263595c8aSThomas Gleixner1. You may copy and distribute verbatim copies of the Library's complete
16363595c8aSThomas Gleixner   source code as you receive it, in any medium, provided that you
16463595c8aSThomas Gleixner   conspicuously and appropriately publish on each copy an appropriate
16563595c8aSThomas Gleixner   copyright notice and disclaimer of warranty; keep intact all the notices
16663595c8aSThomas Gleixner   that refer to this License and to the absence of any warranty; and
16763595c8aSThomas Gleixner   distribute a copy of this License along with the Library.
16863595c8aSThomas Gleixner
16963595c8aSThomas Gleixner   You may charge a fee for the physical act of transferring a copy, and
17063595c8aSThomas Gleixner   you may at your option offer warranty protection in exchange for a fee.
17163595c8aSThomas Gleixner
17263595c8aSThomas Gleixner2. You may modify your copy or copies of the Library or any portion of it,
17363595c8aSThomas Gleixner   thus forming a work based on the Library, and copy and distribute such
17463595c8aSThomas Gleixner   modifications or work under the terms of Section 1 above, provided that
17563595c8aSThomas Gleixner   you also meet all of these conditions:
17663595c8aSThomas Gleixner
17763595c8aSThomas Gleixner   a) The modified work must itself be a software library.
17863595c8aSThomas Gleixner
17963595c8aSThomas Gleixner   b) You must cause the files modified to carry prominent notices stating
18063595c8aSThomas Gleixner      that you changed the files and the date of any change.
18163595c8aSThomas Gleixner
18263595c8aSThomas Gleixner   c) You must cause the whole of the work to be licensed at no charge to
18363595c8aSThomas Gleixner      all third parties under the terms of this License.
18463595c8aSThomas Gleixner
18563595c8aSThomas Gleixner   d) If a facility in the modified Library refers to a function or a table
18663595c8aSThomas Gleixner      of data to be supplied by an application program that uses the
18763595c8aSThomas Gleixner      facility, other than as an argument passed when the facility is
18863595c8aSThomas Gleixner      invoked, then you must make a good faith effort to ensure that, in
18963595c8aSThomas Gleixner      the event an application does not supply such function or table, the
19063595c8aSThomas Gleixner      facility still operates, and performs whatever part of its purpose
19163595c8aSThomas Gleixner      remains meaningful.
19263595c8aSThomas Gleixner
19363595c8aSThomas Gleixner   (For example, a function in a library to compute square roots has a
19463595c8aSThomas Gleixner    purpose that is entirely well-defined independent of the
19563595c8aSThomas Gleixner    application. Therefore, Subsection 2d requires that any
19663595c8aSThomas Gleixner    application-supplied function or table used by this function must be
19763595c8aSThomas Gleixner    optional: if the application does not supply it, the square root
19863595c8aSThomas Gleixner    function must still compute square roots.)
19963595c8aSThomas Gleixner
20063595c8aSThomas Gleixner   These requirements apply to the modified work as a whole. If
20163595c8aSThomas Gleixner   identifiable sections of that work are not derived from the Library, and
20263595c8aSThomas Gleixner   can be reasonably considered independent and separate works in
20363595c8aSThomas Gleixner   themselves, then this License, and its terms, do not apply to those
20463595c8aSThomas Gleixner   sections when you distribute them as separate works. But when you
20563595c8aSThomas Gleixner   distribute the same sections as part of a whole which is a work based on
20663595c8aSThomas Gleixner   the Library, the distribution of the whole must be on the terms of this
20763595c8aSThomas Gleixner   License, whose permissions for other licensees extend to the entire
20863595c8aSThomas Gleixner   whole, and thus to each and every part regardless of who wrote it.
20963595c8aSThomas Gleixner
21063595c8aSThomas Gleixner   Thus, it is not the intent of this section to claim rights or contest
21163595c8aSThomas Gleixner   your rights to work written entirely by you; rather, the intent is to
21263595c8aSThomas Gleixner   exercise the right to control the distribution of derivative or
21363595c8aSThomas Gleixner   collective works based on the Library.
21463595c8aSThomas Gleixner
21563595c8aSThomas Gleixner   In addition, mere aggregation of another work not based on the Library
21663595c8aSThomas Gleixner   with the Library (or with a work based on the Library) on a volume of a
21763595c8aSThomas Gleixner   storage or distribution medium does not bring the other work under the
21863595c8aSThomas Gleixner   scope of this License.
21963595c8aSThomas Gleixner
22063595c8aSThomas Gleixner3. You may opt to apply the terms of the ordinary GNU General Public
22163595c8aSThomas Gleixner   License instead of this License to a given copy of the Library. To do
22263595c8aSThomas Gleixner   this, you must alter all the notices that refer to this License, so that
22363595c8aSThomas Gleixner   they refer to the ordinary GNU General Public License, version 2,
22463595c8aSThomas Gleixner   instead of to this License. (If a newer version than version 2 of the
22563595c8aSThomas Gleixner   ordinary GNU General Public License has appeared, then you can specify
22663595c8aSThomas Gleixner   that version instead if you wish.) Do not make any other change in these
22763595c8aSThomas Gleixner   notices.
22863595c8aSThomas Gleixner
22963595c8aSThomas Gleixner   Once this change is made in a given copy, it is irreversible for that
23063595c8aSThomas Gleixner   copy, so the ordinary GNU General Public License applies to all
23163595c8aSThomas Gleixner   subsequent copies and derivative works made from that copy.
23263595c8aSThomas Gleixner
23363595c8aSThomas Gleixner   This option is useful when you wish to copy part of the code of the
23463595c8aSThomas Gleixner   Library into a program that is not a library.
23563595c8aSThomas Gleixner
23663595c8aSThomas Gleixner4. You may copy and distribute the Library (or a portion or derivative of
23763595c8aSThomas Gleixner   it, under Section 2) in object code or executable form under the terms
23863595c8aSThomas Gleixner   of Sections 1 and 2 above provided that you accompany it with the
23963595c8aSThomas Gleixner   complete corresponding machine-readable source code, which must be
24063595c8aSThomas Gleixner   distributed under the terms of Sections 1 and 2 above on a medium
24163595c8aSThomas Gleixner   customarily used for software interchange.
24263595c8aSThomas Gleixner
24363595c8aSThomas Gleixner   If distribution of object code is made by offering access to copy from a
24463595c8aSThomas Gleixner   designated place, then offering equivalent access to copy the source
24563595c8aSThomas Gleixner   code from the same place satisfies the requirement to distribute the
24663595c8aSThomas Gleixner   source code, even though third parties are not compelled to copy the
24763595c8aSThomas Gleixner   source along with the object code.
24863595c8aSThomas Gleixner
24963595c8aSThomas Gleixner5. A program that contains no derivative of any portion of the Library, but
25063595c8aSThomas Gleixner   is designed to work with the Library by being compiled or linked with
25163595c8aSThomas Gleixner   it, is called a "work that uses the Library". Such a work, in isolation,
25263595c8aSThomas Gleixner   is not a derivative work of the Library, and therefore falls outside the
25363595c8aSThomas Gleixner   scope of this License.
25463595c8aSThomas Gleixner
25563595c8aSThomas Gleixner   However, linking a "work that uses the Library" with the Library creates
25663595c8aSThomas Gleixner   an executable that is a derivative of the Library (because it contains
25763595c8aSThomas Gleixner   portions of the Library), rather than a "work that uses the
25863595c8aSThomas Gleixner   library". The executable is therefore covered by this License. Section 6
25963595c8aSThomas Gleixner   states terms for distribution of such executables.
26063595c8aSThomas Gleixner
26163595c8aSThomas Gleixner   When a "work that uses the Library" uses material from a header file
26263595c8aSThomas Gleixner   that is part of the Library, the object code for the work may be a
26363595c8aSThomas Gleixner   derivative work of the Library even though the source code is
26463595c8aSThomas Gleixner   not. Whether this is true is especially significant if the work can be
26563595c8aSThomas Gleixner   linked without the Library, or if the work is itself a library. The
26663595c8aSThomas Gleixner   threshold for this to be true is not precisely defined by law.
26763595c8aSThomas Gleixner
26863595c8aSThomas Gleixner   If such an object file uses only numerical parameters, data structure
26963595c8aSThomas Gleixner   layouts and accessors, and small macros and small inline functions (ten
27063595c8aSThomas Gleixner   lines or less in length), then the use of the object file is
27163595c8aSThomas Gleixner   unrestricted, regardless of whether it is legally a derivative
27263595c8aSThomas Gleixner   work. (Executables containing this object code plus portions of the
27363595c8aSThomas Gleixner   Library will still fall under Section 6.)
27463595c8aSThomas Gleixner
27563595c8aSThomas Gleixner   Otherwise, if the work is a derivative of the Library, you may
27663595c8aSThomas Gleixner   distribute the object code for the work under the terms of Section
27763595c8aSThomas Gleixner   6. Any executables containing that work also fall under Section 6,
27863595c8aSThomas Gleixner   whether or not they are linked directly with the Library itself.
27963595c8aSThomas Gleixner
28063595c8aSThomas Gleixner6. As an exception to the Sections above, you may also combine or link a
28163595c8aSThomas Gleixner   "work that uses the Library" with the Library to produce a work
28263595c8aSThomas Gleixner   containing portions of the Library, and distribute that work under terms
28363595c8aSThomas Gleixner   of your choice, provided that the terms permit modification of the work
28463595c8aSThomas Gleixner   for the customer's own use and reverse engineering for debugging such
28563595c8aSThomas Gleixner   modifications.
28663595c8aSThomas Gleixner
28763595c8aSThomas Gleixner   You must give prominent notice with each copy of the work that the
28863595c8aSThomas Gleixner   Library is used in it and that the Library and its use are covered by
28963595c8aSThomas Gleixner   this License. You must supply a copy of this License. If the work during
29063595c8aSThomas Gleixner   execution displays copyright notices, you must include the copyright
29163595c8aSThomas Gleixner   notice for the Library among them, as well as a reference directing the
29263595c8aSThomas Gleixner   user to the copy of this License. Also, you must do one of these things:
29363595c8aSThomas Gleixner
29463595c8aSThomas Gleixner   a) Accompany the work with the complete corresponding machine-readable
29563595c8aSThomas Gleixner      source code for the Library including whatever changes were used in
29663595c8aSThomas Gleixner      the work (which must be distributed under Sections 1 and 2 above);
29763595c8aSThomas Gleixner      and, if the work is an executable linked with the Library, with the
29863595c8aSThomas Gleixner      complete machine-readable "work that uses the Library", as object
29963595c8aSThomas Gleixner      code and/or source code, so that the user can modify the Library and
30063595c8aSThomas Gleixner      then relink to produce a modified executable containing the modified
30163595c8aSThomas Gleixner      Library. (It is understood that the user who changes the contents of
30263595c8aSThomas Gleixner      definitions files in the Library will not necessarily be able to
30363595c8aSThomas Gleixner      recompile the application to use the modified definitions.)
30463595c8aSThomas Gleixner
30563595c8aSThomas Gleixner   b) Use a suitable shared library mechanism for linking with the
30663595c8aSThomas Gleixner      Library. A suitable mechanism is one that (1) uses at run time a copy
30763595c8aSThomas Gleixner      of the library already present on the user's computer system, rather
30863595c8aSThomas Gleixner      than copying library functions into the executable, and (2) will
30963595c8aSThomas Gleixner      operate properly with a modified version of the library, if the user
31063595c8aSThomas Gleixner      installs one, as long as the modified version is interface-compatible
31163595c8aSThomas Gleixner      with the version that the work was made with.
31263595c8aSThomas Gleixner
31363595c8aSThomas Gleixner   c) Accompany the work with a written offer, valid for at least three
31463595c8aSThomas Gleixner      years, to give the same user the materials specified in Subsection
31563595c8aSThomas Gleixner      6a, above, for a charge no more than the cost of performing this
31663595c8aSThomas Gleixner      distribution.
31763595c8aSThomas Gleixner
31863595c8aSThomas Gleixner   d) If distribution of the work is made by offering access to copy from a
31963595c8aSThomas Gleixner      designated place, offer equivalent access to copy the above specified
32063595c8aSThomas Gleixner      materials from the same place.
32163595c8aSThomas Gleixner
32263595c8aSThomas Gleixner   e) Verify that the user has already received a copy of these materials
32363595c8aSThomas Gleixner      or that you have already sent this user a copy.
32463595c8aSThomas Gleixner
32563595c8aSThomas Gleixner   For an executable, the required form of the "work that uses the Library"
32663595c8aSThomas Gleixner   must include any data and utility programs needed for reproducing the
32763595c8aSThomas Gleixner   executable from it. However, as a special exception, the materials to be
32863595c8aSThomas Gleixner   distributed need not include anything that is normally distributed (in
32963595c8aSThomas Gleixner   either source or binary form) with the major components (compiler,
33063595c8aSThomas Gleixner   kernel, and so on) of the operating system on which the executable runs,
33163595c8aSThomas Gleixner   unless that component itself accompanies the executable.
33263595c8aSThomas Gleixner
33363595c8aSThomas Gleixner   It may happen that this requirement contradicts the license restrictions
33463595c8aSThomas Gleixner   of other proprietary libraries that do not normally accompany the
33563595c8aSThomas Gleixner   operating system. Such a contradiction means you cannot use both them
33663595c8aSThomas Gleixner   and the Library together in an executable that you distribute.
33763595c8aSThomas Gleixner
33863595c8aSThomas Gleixner7. You may place library facilities that are a work based on the Library
33963595c8aSThomas Gleixner   side-by-side in a single library together with other library facilities
34063595c8aSThomas Gleixner   not covered by this License, and distribute such a combined library,
34163595c8aSThomas Gleixner   provided that the separate distribution of the work based on the Library
34263595c8aSThomas Gleixner   and of the other library facilities is otherwise permitted, and provided
34363595c8aSThomas Gleixner   that you do these two things:
34463595c8aSThomas Gleixner
34563595c8aSThomas Gleixner   a) Accompany the combined library with a copy of the same work based on
34663595c8aSThomas Gleixner      the Library, uncombined with any other library facilities. This must
34763595c8aSThomas Gleixner      be distributed under the terms of the Sections above.
34863595c8aSThomas Gleixner
34963595c8aSThomas Gleixner   b) Give prominent notice with the combined library of the fact that part
35063595c8aSThomas Gleixner      of it is a work based on the Library, and explaining where to find
35163595c8aSThomas Gleixner      the accompanying uncombined form of the same work.
35263595c8aSThomas Gleixner
35363595c8aSThomas Gleixner8. You may not copy, modify, sublicense, link with, or distribute the
35463595c8aSThomas Gleixner   Library except as expressly provided under this License. Any attempt
35563595c8aSThomas Gleixner   otherwise to copy, modify, sublicense, link with, or distribute the
35663595c8aSThomas Gleixner   Library is void, and will automatically terminate your rights under this
35763595c8aSThomas Gleixner   License. However, parties who have received copies, or rights, from you
35863595c8aSThomas Gleixner   under this License will not have their licenses terminated so long as
35963595c8aSThomas Gleixner   such parties remain in full compliance.
36063595c8aSThomas Gleixner
36163595c8aSThomas Gleixner9. You are not required to accept this License, since you have not signed
36263595c8aSThomas Gleixner   it. However, nothing else grants you permission to modify or distribute
36363595c8aSThomas Gleixner   the Library or its derivative works. These actions are prohibited by law
36463595c8aSThomas Gleixner   if you do not accept this License. Therefore, by modifying or
36563595c8aSThomas Gleixner   distributing the Library (or any work based on the Library), you
36663595c8aSThomas Gleixner   indicate your acceptance of this License to do so, and all its terms and
36763595c8aSThomas Gleixner   conditions for copying, distributing or modifying the Library or works
36863595c8aSThomas Gleixner   based on it.
36963595c8aSThomas Gleixner
37063595c8aSThomas Gleixner10. Each time you redistribute the Library (or any work based on the
37163595c8aSThomas Gleixner    Library), the recipient automatically receives a license from the
37263595c8aSThomas Gleixner    original licensor to copy, distribute, link with or modify the Library
37363595c8aSThomas Gleixner    subject to these terms and conditions. You may not impose any further
37463595c8aSThomas Gleixner    restrictions on the recipients' exercise of the rights granted
37563595c8aSThomas Gleixner    herein. You are not responsible for enforcing compliance by third
37663595c8aSThomas Gleixner    parties with this License.
37763595c8aSThomas Gleixner
37863595c8aSThomas Gleixner11. If, as a consequence of a court judgment or allegation of patent
37963595c8aSThomas Gleixner    infringement or for any other reason (not limited to patent issues),
38063595c8aSThomas Gleixner    conditions are imposed on you (whether by court order, agreement or
38163595c8aSThomas Gleixner    otherwise) that contradict the conditions of this License, they do not
38263595c8aSThomas Gleixner    excuse you from the conditions of this License. If you cannot
38363595c8aSThomas Gleixner    distribute so as to satisfy simultaneously your obligations under this
38463595c8aSThomas Gleixner    License and any other pertinent obligations, then as a consequence you
38563595c8aSThomas Gleixner    may not distribute the Library at all. For example, if a patent license
38663595c8aSThomas Gleixner    would not permit royalty-free redistribution of the Library by all
38763595c8aSThomas Gleixner    those who receive copies directly or indirectly through you, then the
38863595c8aSThomas Gleixner    only way you could satisfy both it and this License would be to refrain
38963595c8aSThomas Gleixner    entirely from distribution of the Library.
39063595c8aSThomas Gleixner
39163595c8aSThomas Gleixner    If any portion of this section is held invalid or unenforceable under
39263595c8aSThomas Gleixner    any particular circumstance, the balance of the section is intended to
39363595c8aSThomas Gleixner    apply, and the section as a whole is intended to apply in other
39463595c8aSThomas Gleixner    circumstances.
39563595c8aSThomas Gleixner
39663595c8aSThomas Gleixner    It is not the purpose of this section to induce you to infringe any
39763595c8aSThomas Gleixner    patents or other property right claims or to contest validity of any
39863595c8aSThomas Gleixner    such claims; this section has the sole purpose of protecting the
39963595c8aSThomas Gleixner    integrity of the free software distribution system which is implemented
40063595c8aSThomas Gleixner    by public license practices. Many people have made generous
40163595c8aSThomas Gleixner    contributions to the wide range of software distributed through that
40263595c8aSThomas Gleixner    system in reliance on consistent application of that system; it is up
40363595c8aSThomas Gleixner    to the author/donor to decide if he or she is willing to distribute
40463595c8aSThomas Gleixner    software through any other system and a licensee cannot impose that
40563595c8aSThomas Gleixner    choice.
40663595c8aSThomas Gleixner
40763595c8aSThomas Gleixner    This section is intended to make thoroughly clear what is believed to
40863595c8aSThomas Gleixner    be a consequence of the rest of this License.
40963595c8aSThomas Gleixner
41063595c8aSThomas Gleixner12. If the distribution and/or use of the Library is restricted in certain
41163595c8aSThomas Gleixner    countries either by patents or by copyrighted interfaces, the original
41263595c8aSThomas Gleixner    copyright holder who places the Library under this License may add an
41363595c8aSThomas Gleixner    explicit geographical distribution limitation excluding those
41463595c8aSThomas Gleixner    countries, so that distribution is permitted only in or among countries
41563595c8aSThomas Gleixner    not thus excluded. In such case, this License incorporates the
41663595c8aSThomas Gleixner    limitation as if written in the body of this License.
41763595c8aSThomas Gleixner
41863595c8aSThomas Gleixner13. The Free Software Foundation may publish revised and/or new versions of
41963595c8aSThomas Gleixner    the Lesser General Public License from time to time. Such new versions
42063595c8aSThomas Gleixner    will be similar in spirit to the present version, but may differ in
42163595c8aSThomas Gleixner    detail to address new problems or concerns.
42263595c8aSThomas Gleixner
42363595c8aSThomas Gleixner    Each version is given a distinguishing version number. If the Library
42463595c8aSThomas Gleixner    specifies a version number of this License which applies to it and "any
42563595c8aSThomas Gleixner    later version", you have the option of following the terms and
42663595c8aSThomas Gleixner    conditions either of that version or of any later version published by
42763595c8aSThomas Gleixner    the Free Software Foundation. If the Library does not specify a license
42863595c8aSThomas Gleixner    version number, you may choose any version ever published by the Free
42963595c8aSThomas Gleixner    Software Foundation.
43063595c8aSThomas Gleixner
43163595c8aSThomas Gleixner14. If you wish to incorporate parts of the Library into other free
43263595c8aSThomas Gleixner    programs whose distribution conditions are incompatible with these,
43363595c8aSThomas Gleixner    write to the author to ask for permission. For software which is
43463595c8aSThomas Gleixner    copyrighted by the Free Software Foundation, write to the Free Software
43563595c8aSThomas Gleixner    Foundation; we sometimes make exceptions for this. Our decision will be
43663595c8aSThomas Gleixner    guided by the two goals of preserving the free status of all
43763595c8aSThomas Gleixner    derivatives of our free software and of promoting the sharing and reuse
43863595c8aSThomas Gleixner    of software generally.
43963595c8aSThomas Gleixner
44063595c8aSThomas GleixnerNO WARRANTY
44163595c8aSThomas Gleixner
44263595c8aSThomas Gleixner15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
44363595c8aSThomas Gleixner    FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
44463595c8aSThomas Gleixner    OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
44563595c8aSThomas Gleixner    PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
44663595c8aSThomas Gleixner    EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
44763595c8aSThomas Gleixner    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
44863595c8aSThomas Gleixner    ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH
44963595c8aSThomas Gleixner    YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
45063595c8aSThomas Gleixner    NECESSARY SERVICING, REPAIR OR CORRECTION.
45163595c8aSThomas Gleixner
45263595c8aSThomas Gleixner16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
45363595c8aSThomas Gleixner    WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
45463595c8aSThomas Gleixner    REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
45563595c8aSThomas Gleixner    DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
45663595c8aSThomas Gleixner    DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY
45763595c8aSThomas Gleixner    (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
45863595c8aSThomas Gleixner    INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF
45963595c8aSThomas Gleixner    THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR
46063595c8aSThomas Gleixner    OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
46163595c8aSThomas Gleixner
46263595c8aSThomas GleixnerEND OF TERMS AND CONDITIONS
46363595c8aSThomas Gleixner
46463595c8aSThomas GleixnerHow to Apply These Terms to Your New Libraries
46563595c8aSThomas Gleixner
46663595c8aSThomas GleixnerIf you develop a new library, and you want it to be of the greatest
46763595c8aSThomas Gleixnerpossible use to the public, we recommend making it free software that
46863595c8aSThomas Gleixnereveryone can redistribute and change. You can do so by permitting
46963595c8aSThomas Gleixnerredistribution under these terms (or, alternatively, under the terms of the
47063595c8aSThomas Gleixnerordinary General Public License).
47163595c8aSThomas Gleixner
47263595c8aSThomas GleixnerTo apply these terms, attach the following notices to the library. It is
47363595c8aSThomas Gleixnersafest to attach them to the start of each source file to most effectively
47463595c8aSThomas Gleixnerconvey the exclusion of warranty; and each file should have at least the
47563595c8aSThomas Gleixner"copyright" line and a pointer to where the full notice is found.
47663595c8aSThomas Gleixner
47763595c8aSThomas Gleixnerone line to give the library's name and an idea of what it does.
47863595c8aSThomas GleixnerCopyright (C) year name of author
47963595c8aSThomas Gleixner
48063595c8aSThomas GleixnerThis library is free software; you can redistribute it and/or modify it
48163595c8aSThomas Gleixnerunder the terms of the GNU Lesser General Public License as published by
48263595c8aSThomas Gleixnerthe Free Software Foundation; either version 2.1 of the License, or (at
48363595c8aSThomas Gleixneryour option) any later version.
48463595c8aSThomas Gleixner
48563595c8aSThomas GleixnerThis library is distributed in the hope that it will be useful, but WITHOUT
48663595c8aSThomas GleixnerANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
48763595c8aSThomas GleixnerFITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
48863595c8aSThomas Gleixnerfor more details.
48963595c8aSThomas Gleixner
49063595c8aSThomas GleixnerYou should have received a copy of the GNU Lesser General Public License
49163595c8aSThomas Gleixneralong with this library; if not, write to the Free Software Foundation,
49263595c8aSThomas GleixnerInc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add
49363595c8aSThomas Gleixnerinformation on how to contact you by electronic and paper mail.
49463595c8aSThomas Gleixner
49563595c8aSThomas GleixnerYou should also get your employer (if you work as a programmer) or your
49663595c8aSThomas Gleixnerschool, if any, to sign a "copyright disclaimer" for the library, if
49763595c8aSThomas Gleixnernecessary. Here is a sample; alter the names:
49863595c8aSThomas Gleixner
49963595c8aSThomas GleixnerYoyodyne, Inc., hereby disclaims all copyright interest in
50063595c8aSThomas Gleixnerthe library `Frob' (a library for tweaking knobs) written
50163595c8aSThomas Gleixnerby James Random Hacker.
50263595c8aSThomas Gleixner
50363595c8aSThomas Gleixnersignature of Ty Coon, 1 April 1990
50463595c8aSThomas GleixnerTy Coon, President of Vice
50563595c8aSThomas GleixnerThat's all there is to it!
506