LICENSE 26 KB

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