Mirror of strace – the linux syscall tracer
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.

LGPL-2.1-or-later 26KB

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