You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

COPYING.LIB 25KB

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