Merging NList MCC 0.119 into the main branch.
[AROS.git] / workbench / classes / zune / nlist / COPYING
blob1c1b2c6a687859e4b2d49e4e5951b9bc3314dc57
1          GNU Lesser General Public License
2             Version 2.1, February 1999
4    Copyright (C) 1991, 1999 Free Software Foundation, Inc.
5    59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
6    Everyone is permitted to copy and distribute verbatim copies
7    of this license document, but changing it is not allowed.
9    [This is the first released version of the Lesser GPL. It also counts
10    as the successor of the GNU Library Public License, version 2, hence
11    the version number 2.1.]
14             Preamble
16 The licenses for most software are designed to take away your freedom to share
17 and change it. By contrast, the GNU General Public Licenses are intended to
18 guarantee your freedom to share and change free software--to make sure the
19 software is free for all its users.
21 This license, the Lesser General Public License, applies to some specially
22 designated software packages--typically libraries--of the Free Software
23 Foundation and other authors who decide to use it. You can use it too, but we
24 suggest you first think carefully about whether this license or the ordinary
25 General Public License is the better strategy to use in any particular case,
26 based on the explanations below.
28 When we speak of free software, we are referring to freedom of use, not price.
29 Our General Public Licenses are designed to make sure that you have the
30 freedom to distribute copies of free software (and charge for this service if
31 you wish); that you receive source code or can get it if you want it; that you
32 can change the software and use pieces of it in new free programs; and that
33 you are informed that you can do these things.
35 To protect your rights, we need to make restrictions that forbid distributors
36 to deny you these rights or to ask you to surrender these rights. These
37 restrictions translate to certain responsibilities for you if you distribute
38 copies of the library or if you modify it.
40 For example, if you distribute copies of the library, whether gratis or for a
41 fee, you must give the recipients all the rights that we gave you. You must
42 make sure that they, too, receive or can get the source code. If you link
43 other code with the library, you must provide complete object files to the
44 recipients, so that they can relink them with the library after making changes
45 to the library and recompiling it. And you must show them these terms so they
46 know their rights.
48 We protect your rights with a two-step method: (1) we copyright the library,
49 and (2) we offer you this license, which gives you legal permission to copy,
50 distribute and/or modify the library.
52 To protect each distributor, we want to make it very clear that there is no
53 warranty for the free library. Also, if the library is modified by someone
54 else and passed on, the recipients should know that what they have is not the
55 original version, so that the original author's reputation will not be
56 affected by problems that might be introduced by others.
58 Finally, software patents pose a constant threat to the existence of any free
59 program. We wish to make sure that a company cannot effectively restrict the
60 users of a free program by obtaining a restrictive license from a patent
61 holder. Therefore, we insist that any patent license obtained for a version of
62 the library must be consistent with the full freedom of use specified in this
63 license.
65 Most GNU software, including some libraries, is covered by the ordinary GNU
66 General Public License. This license, the GNU Lesser General Public License,
67 applies to certain designated libraries, and is quite different from the
68 ordinary General Public License. We use this license for certain libraries in
69 order to permit linking those libraries into non-free programs.
71 When a program is linked with a library, whether statically or using a shared
72 library, the combination of the two is legally speaking a combined work, a
73 derivative of the original library. The ordinary General Public License
74 therefore permits such linking only if the entire combination fits its
75 criteria of freedom. The Lesser General Public License permits more lax
76 criteria for linking other code with the library.
78 We call this license the "Lesser" General Public License because it does Less
79 to protect the user's freedom than the ordinary General Public License. It
80 also provides other free software developers Less of an advantage over
81 competing non-free programs. These disadvantages are the reason we use the
82 ordinary General Public License for many libraries. However, the Lesser
83 license provides advantages in certain special circumstances.
85 For example, on rare occasions, there may be a special need to encourage the
86 widest possible use of a certain library, so that it becomes a de-facto
87 standard. To achieve this, non-free programs must be allowed to use the
88 library. A more frequent case is that a free library does the same job as
89 widely used non-free libraries. In this case, there is little to gain by
90 limiting the free library to free software only, so we use the Lesser General
91 Public License.
93 In other cases, permission to use a particular library in non-free programs
94 enables a greater number of people to use a large body of free software. For
95 example, permission to use the GNU C Library in non-free programs enables many
96 more people to use the whole GNU operating system, as well as its variant, the
97 GNU/Linux operating system.
99 Although the Lesser General Public License is Less protective of the users'
100 freedom, it does ensure that the user of a program that is linked with the
101 Library has the freedom and the wherewithal to run that program using a
102 modified version of the Library.
104 The precise terms and conditions for copying, distribution and modification
105 follow. Pay close attention to the difference between a "work based on the
106 library" and a "work that uses the library". The former contains code derived
107 from the library, whereas the latter must be combined with the library in
108 order to run.
111             TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
113 0. This License Agreement applies to any software library or other program
114 which contains a notice placed by the copyright holder or other authorized
115 party saying it may be distributed under the terms of this Lesser General
116 Public License (also called "this License"). Each licensee is addressed as
117 "you".
119 A "library" means a collection of software functions and/or data prepared so
120 as to be conveniently linked with application programs (which use some of
121 those functions and data) to form executables.
123 The "Library", below, refers to any such software library or work which has
124 been distributed under these terms. A "work based on the Library" means
125 either the Library or any derivative work under copyright law: that is to say,
126 a work containing the Library or a portion of it, either verbatim or with
127 modifications and/or translated straightforwardly into another language.
128 (Hereinafter, translation is included without limitation in the term
129 "modification".)
131 "Source code" for a work means the preferred form of the work for making
132 modifications to it. For a library, complete source code means all the source
133 code for all modules it contains, plus any associated interface definition
134 files, plus the scripts used to control compilation and installation of the
135 library.
137 Activities other than copying, distribution and modification are not covered
138 by this License; they are outside its scope. The act of running a program
139 using the Library is not restricted, and output from such a program is covered
140 only if its contents constitute a work based on the Library (independent of
141 the use of the Library in a tool for writing it). Whether that is true depends
142 on what the Library does and what the program that uses the Library does.
144 1. You may copy and distribute verbatim copies of the Library's complete
145 source code as you receive it, in any medium, provided that you conspicuously
146 and appropriately publish on each copy an appropriate copyright notice and
147 disclaimer of warranty; keep intact all the notices that refer to this License
148 and to the absence of any warranty; and distribute a copy of this License
149 along with the Library.
151 You may charge a fee for the physical act of transferring a copy, and you may
152 at your option offer warranty protection in exchange for a fee.
154 2. You may modify your copy or copies of the Library or any portion of it,
155 thus forming a work based on the Library, and copy and distribute such
156 modifications or work under the terms of Section 1 above, provided that you
157 also meet all of these conditions:
159    a) The modified work must itself be a software library.
161    b) You must cause the files modified to carry prominent notices stating
162       that you changed the files and the date of any change.
164    c) You must cause the whole of the work to be licensed at no charge to all
165       third parties under the terms of this License.
167    d) If a facility in the modified Library refers to a function or a table of
168       data to be supplied by an application program that uses the facility,
169       other than as an argument passed when the facility is invoked, then you
170       must make a good faith effort to ensure that, in the event an
171       application does not supply such function or table, the facility still
172       operates, and performs whatever part of its purpose remains meaningful.
174       (For example, a function in a library to compute square roots has a
175       purpose that is entirely well-defined independent of the application.
176       Therefore, Subsection 2d requires that any application-supplied function
177       or table used by this function must be optional: if the application does
178       not supply it, the square root function must still compute square
179       roots.)
181       These requirements apply to the modified work as a whole. If
182       identifiable sections of that work are not derived from the Library, and
183       can be reasonably considered independent and separate works in
184       themselves, then this License, and its terms, do not apply to those
185       sections when you distribute them as separate works. But when you
186       distribute the same sections as part of a whole which is a work based on
187       the Library, the distribution of the whole must be on the terms of this
188       License, whose permissions for other licensees extend to the entire
189       whole, and thus to each and every part regardless of who wrote it.
191       Thus, it is not the intent of this section to claim rights or contest
192       your rights to work written entirely by you; rather, the intent is to
193       exercise the right to control the distribution of derivative or
194       collective works based on the Library.
196       In addition, mere aggregation of another work not based on the Library
197       with the Library (or with a work based on the Library) on a volume of a
198       storage or distribution medium does not bring the other work under the
199       scope of this License.
201 3. You may opt to apply the terms of the ordinary GNU General Public License
202 instead of this License to a given copy of the Library. To do this, you must
203 alter all the notices that refer to this License, so that they refer to the
204 ordinary GNU General Public License, version 2, instead of to this License.
205 (If a newer version than version 2 of the ordinary GNU General Public License
206 has appeared, then you can specify that version instead if you wish.) Do not
207 make any other change in these notices.
209 Once this change is made in a given copy, it is irreversible for that copy, so
210 the ordinary GNU General Public License applies to all subsequent copies and
211 derivative works made from that copy.
213 This option is useful when you wish to copy part of the code of the Library
214 into a program that is not a library.
216 4. You may copy and distribute the Library (or a portion or derivative of it,
217 under Section 2) in object code or executable form under the terms of Sections
218 1 and 2 above provided that you accompany it with the complete corresponding
219 machine-readable source code, which must be distributed under the terms of
220 Sections 1 and 2 above on a medium customarily used for software interchange.
222 If distribution of object code is made by offering access to copy from a
223 designated place, then offering equivalent access to copy the source code from
224 the same place satisfies the requirement to distribute the source code, even
225 though third parties are not compelled to copy the source along with the
226 object code.
228 5. A program that contains no derivative of any portion of the Library, but is
229 designed to work with the Library by being compiled or linked with it, is
230 called a "work that uses the Library". Such a work, in isolation, is not a
231 derivative work of the Library, and therefore falls outside the scope of
232 this License.
234 However, linking a "work that uses the Library" with the Library creates an
235 executable that is a derivative of the Library (because it contains portions
236 of the Library), rather than a "work that uses the library". The executable is
237 therefore covered by this License. Section 6 states terms for distribution of
238 such executables.
240 When a "work that uses the Library" uses material from a header file that is
241 part of the Library, the object code for the work may be a derivative work of
242 the Library even though the source code is not. Whether this is true is
243 especially significant if the work can be linked without the Library, or if
244 the work is itself a library. The threshold for this to be true is not
245 precisely defined by law.
247 If such an object file uses only numerical parameters, data structure layouts
248 and accessors, and small macros and small inline functions (ten lines or less
249 in length), then the use of the object file is unrestricted, regardless of
250 whether it is legally a derivative work. (Executables containing this object
251 code plus portions of the Library will still fall under Section 6.)
253 Otherwise, if the work is a derivative of the Library, you may distribute the
254 object code for the work under the terms of Section 6. Any executables
255 containing that work also fall under Section 6, whether or not they are linked
256 directly with the Library itself.
258 6. As an exception to the Sections above, you may also combine or link a "work
259 that uses the Library" with the Library to produce a work containing portions
260 of the Library, and distribute that work under terms of your choice, provided
261 that the terms permit modification of the work for the customer's own use and
262 reverse engineering for debugging such modifications.
264 You must give prominent notice with each copy of the work that the Library is
265 used in it and that the Library and its use are covered by this License. You
266 must supply a copy of this License. If the work during execution displays
267 copyright notices, you must include the copyright notice for the Library among
268 them, as well as a reference directing the user to the copy of this License.
269 Also, you must do one of these things:
271    a) Accompany the work with the complete corresponding machine-readable
272       source code for the Library including whatever changes were used in the
273       work (which must be distributed under Sections 1 and 2 above); and, if
274       the work is an executable linked with the Library, with the complete
275       machine-readable "work that uses the Library", as object code and/or
276       source code, so that the user can modify the Library and then relink to
277       produce a modified executable containing the modified Library. (It is
278       understood that the user who changes the contents of definitions files
279       in the Library will not necessarily be able to recompile the application
280       to use the modified definitions.)
282    b) Use a suitable shared library mechanism for linking with the Library. A
283       suitable mechanism is one that (1) uses at run time a copy of the
284       library already present on the user's computer system, rather than
285       copying library functions into the executable, and (2) will operate
286       properly with a modified version of the library, if the user installs
287       one, as long as the modified version is interface-compatible with the
288       version that the work was made with.
290    c) Accompany the work with a written offer, valid for at least three years,
291       to give the same user the materials specified in Subsection 6a, above,
292       for a charge no more than the cost of performing this distribution.
294    d) If distribution of the work is made by offering access to copy from a
295       designated place, offer equivalent access to copy the above specified
296       materials from the same place.
298    e) Verify that the user has already received a copy of these materials or
299       that you have already sent this user a copy.
301 For an executable, the required form of the "work that uses the Library" must
302 include any data and utility programs needed for reproducing the executable
303 from it. However, as a special exception, the materials to be distributed need
304 not include anything that is normally distributed (in either source or binary
305 form) with the major components (compiler, kernel, and so on) of the operating
306 system on which the executable runs, unless that component itself accompanies
307 the executable.
309 It may happen that this requirement contradicts the license restrictions of
310 other proprietary libraries that do not normally accompany the operating
311 system. Such a contradiction means you cannot use both them and the Library
312 together in an executable that you distribute.
314 7. You may place library facilities that are a work based on the Library
315 side-by-side in a single library together with other library facilities not
316 covered by this License, and distribute such a combined library, provided that
317 the separate distribution of the work based on the Library and of the other
318 library facilities is otherwise permitted, and provided that you do these two
319 things:
321    a) Accompany the combined library with a copy of the same work based on the
322    Library, uncombined with any other library facilities. This must be
323    distributed under the terms of the Sections above.
325    b) Give prominent notice with the combined library of the fact that part of
326    it is a work based on the Library, and explaining where to find the
327    accompanying uncombined form of the same work.
329 8. You may not copy, modify, sublicense, link with, or distribute the Library
330 except as expressly provided under this License. Any attempt otherwise to
331 copy, modify, sublicense, link with, or distribute the Library is void, and
332 will automatically terminate your rights under this License. However, parties
333 who have received copies, or rights, from you under this License will not have
334 their licenses terminated so long as such parties remain in full compliance.
336 9. You are not required to accept this License, since you have not signed it.
337 However, nothing else grants you permission to modify or distribute the
338 Library or its derivative works. These actions are prohibited by law if you do
339 not accept this License. Therefore, by modifying or distributing the Library
340 (or any work based on the Library), you indicate your acceptance of this
341 License to do so, and all its terms and conditions for copying, distributing
342 or modifying the Library or works based on it.
344 10. Each time you redistribute the Library (or any work based on the Library),
345 the recipient automatically receives a license from the original licensor to
346 copy, distribute, link with or modify the Library subject to these terms and
347 conditions. You may not impose any further restrictions on the recipients'
348 exercise of the rights granted herein. You are not responsible for enforcing
349 compliance by third parties with this License.
351 11. If, as a consequence of a court judgment or allegation of patent
352 infringement or for any other reason (not limited to patent issues),
353 conditions are imposed on you (whether by court order, agreement or
354 otherwise) that contradict the conditions of this License, they do not excuse
355 you from the conditions of this License. If you cannot distribute so as to
356 satisfy simultaneously your obligations under this License and any other
357 pertinent obligations, then as a consequence you may not distribute the
358 Library at all. For example, if a patent license would not permit royalty-free
359 redistribution of the Library by all those who receive copies directly or
360 indirectly through you, then the only way you could satisfy both it and this
361 License would be to refrain entirely from distribution of the Library.
363 If any portion of this section is held invalid or unenforceable under any
364 particular circumstance, the balance of the section is intended to apply, and
365 the section as a whole is intended to apply in other circumstances.
367 It is not the purpose of this section to induce you to infringe any patents or
368 other property right claims or to contest validity of any such claims; this
369 section has the sole purpose of protecting the integrity of the free software
370 distribution system which is implemented by public license practices. Many
371 people have made generous contributions to the wide range of software
372 distributed through that system in reliance on consistent application of that
373 system; it is up to the author/donor to decide if he or she is willing to
374 distribute software through any other system and a licensee cannot impose that
375 choice.
377 This section is intended to make thoroughly clear what is believed to be a
378 consequence of the rest of this License.
380 12. If the distribution and/or use of the Library is restricted in certain
381 countries either by patents or by copyrighted interfaces, the original
382 copyright holder who places the Library under this License may add an explicit
383 geographical distribution limitation excluding those countries, so that
384 distribution is permitted only in or among countries not thus excluded. In
385 such case, this License incorporates the limitation as if written in the body
386 of this License.
388 13. The Free Software Foundation may publish revised and/or new versions of
389 the Lesser General Public License from time to time. Such new versions will be
390 similar in spirit to the present version, but may differ in detail to address
391 new problems or concerns.
393 Each version is given a distinguishing version number. If the Library
394 specifies a version number of this License which applies to it and "any later
395 version", you have the option of following the terms and conditions either of
396 that version or of any later version published by the Free Software
397 Foundation. If the Library does not specify a license version number, you may
398 choose any version ever published by the Free Software Foundation.
400 14. If you wish to incorporate parts of the Library into other free programs
401 whose distribution conditions are incompatible with these, write to the author
402 to ask for permission. For software which is copyrighted by the Free Software
403 Foundation, write to the Free Software Foundation; we sometimes make
404 exceptions for this. Our decision will be guided by the two goals of
405 preserving the free status of all derivatives of our free software and of
406 promoting the sharing and reuse of software generally.
408 NO WARRANTY
410 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
411 THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
412 STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE
413 LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
414 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
415 FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
416 PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE,
417 YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
419 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL
420 ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE
421 THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
422 GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE
423 OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR
424 DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR
425 A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH
426 HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
428             END OF TERMS AND CONDITIONS