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