]> git.proxmox.com Git - swtpm.git/blob - LICENSE
tpm_ioctl.h is LGPL licensed
[swtpm.git] / LICENSE
1 SWTPM license
2 -------------
3
4 This project is made available with individual files under either one
5 of the two licenses printed in this file.
6
7 The following source files are made available under the GPL v2 license
8 whose license text can be found below under (1):
9
10 src/swtpm/cuse_tpm.c
11
12 This file is compiled to the executable swtpm_cuse which is therefore
13 also under the GPL v2 license.
14
15 The following include files are made available uder the LGPL v2.1 (or later)
16 license whose license text can be found below under (2)
17
18 include/swtpm/tpm_ioctl.h
19
20 All other source files are made available under the 3-clause BSD license
21 whose license text can be found below under (3).
22
23 -----------------------------------------------------------------------
24
25 (1) GPLv2 license
26
27 GNU GENERAL PUBLIC LICENSE
28 Version 2, June 1991
29
30 Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
31 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
32 Everyone is permitted to copy and distribute verbatim copies
33 of this license document, but changing it is not allowed.
34
35 Preamble
36
37 The licenses for most software are designed to take away your
38 freedom to share and change it. By contrast, the GNU General Public
39 License is intended to guarantee your freedom to share and change free
40 software--to make sure the software is free for all its users. This
41 General Public License applies to most of the Free Software
42 Foundation's software and to any other program whose authors commit to
43 using it. (Some other Free Software Foundation software is covered by
44 the GNU Lesser General Public License instead.) You can apply it to
45 your programs, too.
46
47 When we speak of free software, we are referring to freedom, not
48 price. Our General Public Licenses are designed to make sure that you
49 have the freedom to distribute copies of free software (and charge for
50 this service if you wish), that you receive source code or can get it
51 if you want it, that you can change the software or use pieces of it
52 in new free programs; and that you know you can do these things.
53
54 To protect your rights, we need to make restrictions that forbid
55 anyone to deny you these rights or to ask you to surrender the rights.
56 These restrictions translate to certain responsibilities for you if you
57 distribute copies of the software, or if you modify it.
58
59 For example, if you distribute copies of such a program, whether
60 gratis or for a fee, you must give the recipients all the rights that
61 you have. You must make sure that they, too, receive or can get the
62 source code. And you must show them these terms so they know their
63 rights.
64
65 We protect your rights with two steps: (1) copyright the software, and
66 (2) offer you this license which gives you legal permission to copy,
67 distribute and/or modify the software.
68
69 Also, for each author's protection and ours, we want to make certain
70 that everyone understands that there is no warranty for this free
71 software. If the software is modified by someone else and passed on, we
72 want its recipients to know that what they have is not the original, so
73 that any problems introduced by others will not reflect on the original
74 authors' reputations.
75
76 Finally, any free program is threatened constantly by software
77 patents. We wish to avoid the danger that redistributors of a free
78 program will individually obtain patent licenses, in effect making the
79 program proprietary. To prevent this, we have made it clear that any
80 patent must be licensed for everyone's free use or not licensed at all.
81
82 The precise terms and conditions for copying, distribution and
83 modification follow.
84
85 GNU GENERAL PUBLIC LICENSE
86 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
87
88 0. This License applies to any program or other work which contains
89 a notice placed by the copyright holder saying it may be distributed
90 under the terms of this General Public License. The "Program", below,
91 refers to any such program or work, and a "work based on the Program"
92 means either the Program or any derivative work under copyright law:
93 that is to say, a work containing the Program or a portion of it,
94 either verbatim or with modifications and/or translated into another
95 language. (Hereinafter, translation is included without limitation in
96 the term "modification".) Each licensee is addressed as "you".
97
98 Activities other than copying, distribution and modification are not
99 covered by this License; they are outside its scope. The act of
100 running the Program is not restricted, and the output from the Program
101 is covered only if its contents constitute a work based on the
102 Program (independent of having been made by running the Program).
103 Whether that is true depends on what the Program does.
104
105 1. You may copy and distribute verbatim copies of the Program's
106 source code as you receive it, in any medium, provided that you
107 conspicuously and appropriately publish on each copy an appropriate
108 copyright notice and disclaimer of warranty; keep intact all the
109 notices that refer to this License and to the absence of any warranty;
110 and give any other recipients of the Program a copy of this License
111 along with the Program.
112
113 You may charge a fee for the physical act of transferring a copy, and
114 you may at your option offer warranty protection in exchange for a fee.
115
116 2. You may modify your copy or copies of the Program or any portion
117 of it, thus forming a work based on the Program, and copy and
118 distribute such modifications or work under the terms of Section 1
119 above, provided that you also meet all of these conditions:
120
121 a) You must cause the modified files to carry prominent notices
122 stating that you changed the files and the date of any change.
123
124 b) You must cause any work that you distribute or publish, that in
125 whole or in part contains or is derived from the Program or any
126 part thereof, to be licensed as a whole at no charge to all third
127 parties under the terms of this License.
128
129 c) If the modified program normally reads commands interactively
130 when run, you must cause it, when started running for such
131 interactive use in the most ordinary way, to print or display an
132 announcement including an appropriate copyright notice and a
133 notice that there is no warranty (or else, saying that you provide
134 a warranty) and that users may redistribute the program under
135 these conditions, and telling the user how to view a copy of this
136 License. (Exception: if the Program itself is interactive but
137 does not normally print such an announcement, your work based on
138 the Program is not required to print an announcement.)
139
140 These requirements apply to the modified work as a whole. If
141 identifiable sections of that work are not derived from the Program,
142 and can be reasonably considered independent and separate works in
143 themselves, then this License, and its terms, do not apply to those
144 sections when you distribute them as separate works. But when you
145 distribute the same sections as part of a whole which is a work based
146 on the Program, the distribution of the whole must be on the terms of
147 this License, whose permissions for other licensees extend to the
148 entire whole, and thus to each and every part regardless of who wrote it.
149
150 Thus, it is not the intent of this section to claim rights or contest
151 your rights to work written entirely by you; rather, the intent is to
152 exercise the right to control the distribution of derivative or
153 collective works based on the Program.
154
155 In addition, mere aggregation of another work not based on the Program
156 with the Program (or with a work based on the Program) on a volume of
157 a storage or distribution medium does not bring the other work under
158 the scope of this License.
159
160 3. You may copy and distribute the Program (or a work based on it,
161 under Section 2) in object code or executable form under the terms of
162 Sections 1 and 2 above provided that you also do one of the following:
163
164 a) Accompany it with the complete corresponding machine-readable
165 source code, which must be distributed under the terms of Sections
166 1 and 2 above on a medium customarily used for software interchange; or,
167
168 b) Accompany it with a written offer, valid for at least three
169 years, to give any third party, for a charge no more than your
170 cost of physically performing source distribution, a complete
171 machine-readable copy of the corresponding source code, to be
172 distributed under the terms of Sections 1 and 2 above on a medium
173 customarily used for software interchange; or,
174
175 c) Accompany it with the information you received as to the offer
176 to distribute corresponding source code. (This alternative is
177 allowed only for noncommercial distribution and only if you
178 received the program in object code or executable form with such
179 an offer, in accord with Subsection b above.)
180
181 The source code for a work means the preferred form of the work for
182 making modifications to it. For an executable work, complete source
183 code means all the source code for all modules it contains, plus any
184 associated interface definition files, plus the scripts used to
185 control compilation and installation of the executable. However, as a
186 special exception, the source code distributed need not include
187 anything that is normally distributed (in either source or binary
188 form) with the major components (compiler, kernel, and so on) of the
189 operating system on which the executable runs, unless that component
190 itself accompanies the executable.
191
192 If distribution of executable or object code is made by offering
193 access to copy from a designated place, then offering equivalent
194 access to copy the source code from the same place counts as
195 distribution of the source code, even though third parties are not
196 compelled to copy the source along with the object code.
197
198 4. You may not copy, modify, sublicense, or distribute the Program
199 except as expressly provided under this License. Any attempt
200 otherwise to copy, modify, sublicense or distribute the Program is
201 void, and will automatically terminate your rights under this License.
202 However, parties who have received copies, or rights, from you under
203 this License will not have their licenses terminated so long as such
204 parties remain in full compliance.
205
206 5. You are not required to accept this License, since you have not
207 signed it. However, nothing else grants you permission to modify or
208 distribute the Program or its derivative works. These actions are
209 prohibited by law if you do not accept this License. Therefore, by
210 modifying or distributing the Program (or any work based on the
211 Program), you indicate your acceptance of this License to do so, and
212 all its terms and conditions for copying, distributing or modifying
213 the Program or works based on it.
214
215 6. Each time you redistribute the Program (or any work based on the
216 Program), the recipient automatically receives a license from the
217 original licensor to copy, distribute or modify the Program subject to
218 these terms and conditions. You may not impose any further
219 restrictions on the recipients' exercise of the rights granted herein.
220 You are not responsible for enforcing compliance by third parties to
221 this License.
222
223 7. If, as a consequence of a court judgment or allegation of patent
224 infringement or for any other reason (not limited to patent issues),
225 conditions are imposed on you (whether by court order, agreement or
226 otherwise) that contradict the conditions of this License, they do not
227 excuse you from the conditions of this License. If you cannot
228 distribute so as to satisfy simultaneously your obligations under this
229 License and any other pertinent obligations, then as a consequence you
230 may not distribute the Program at all. For example, if a patent
231 license would not permit royalty-free redistribution of the Program by
232 all those who receive copies directly or indirectly through you, then
233 the only way you could satisfy both it and this License would be to
234 refrain entirely from distribution of the Program.
235
236 If any portion of this section is held invalid or unenforceable under
237 any particular circumstance, the balance of the section is intended to
238 apply and the section as a whole is intended to apply in other
239 circumstances.
240
241 It is not the purpose of this section to induce you to infringe any
242 patents or other property right claims or to contest validity of any
243 such claims; this section has the sole purpose of protecting the
244 integrity of the free software distribution system, which is
245 implemented by public license practices. Many people have made
246 generous contributions to the wide range of software distributed
247 through that system in reliance on consistent application of that
248 system; it is up to the author/donor to decide if he or she is willing
249 to distribute software through any other system and a licensee cannot
250 impose that choice.
251
252 This section is intended to make thoroughly clear what is believed to
253 be a consequence of the rest of this License.
254
255 8. If the distribution and/or use of the Program is restricted in
256 certain countries either by patents or by copyrighted interfaces, the
257 original copyright holder who places the Program under this License
258 may add an explicit geographical distribution limitation excluding
259 those countries, so that distribution is permitted only in or among
260 countries not thus excluded. In such case, this License incorporates
261 the limitation as if written in the body of this License.
262
263 9. The Free Software Foundation may publish revised and/or new versions
264 of the General Public License from time to time. Such new versions will
265 be similar in spirit to the present version, but may differ in detail to
266 address new problems or concerns.
267
268 Each version is given a distinguishing version number. If the Program
269 specifies a version number of this License which applies to it and "any
270 later version", you have the option of following the terms and conditions
271 either of that version or of any later version published by the Free
272 Software Foundation. If the Program does not specify a version number of
273 this License, you may choose any version ever published by the Free Software
274 Foundation.
275
276 10. If you wish to incorporate parts of the Program into other free
277 programs whose distribution conditions are different, write to the author
278 to ask for permission. For software which is copyrighted by the Free
279 Software Foundation, write to the Free Software Foundation; we sometimes
280 make exceptions for this. Our decision will be guided by the two goals
281 of preserving the free status of all derivatives of our free software and
282 of promoting the sharing and reuse of software generally.
283
284 NO WARRANTY
285
286 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
287 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
288 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
289 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
290 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
291 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
292 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
293 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
294 REPAIR OR CORRECTION.
295
296 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
297 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
298 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
299 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
300 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
301 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
302 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
303 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
304 POSSIBILITY OF SUCH DAMAGES.
305
306 END OF TERMS AND CONDITIONS
307
308 -----------------------------------------------------------------------
309
310 (2) GNU Lesser General Publice License
311
312
313 GNU LESSER GENERAL PUBLIC LICENSE
314 Version 2.1, February 1999
315
316 Copyright (C) 1991, 1999 Free Software Foundation, Inc.
317 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
318 Everyone is permitted to copy and distribute verbatim copies
319 of this license document, but changing it is not allowed.
320
321 [This is the first released version of the Lesser GPL. It also counts
322 as the successor of the GNU Library Public License, version 2, hence
323 the version number 2.1.]
324
325 Preamble
326
327 The licenses for most software are designed to take away your
328 freedom to share and change it. By contrast, the GNU General Public
329 Licenses are intended to guarantee your freedom to share and change
330 free software--to make sure the software is free for all its users.
331
332 This license, the Lesser General Public License, applies to some
333 specially designated software packages--typically libraries--of the
334 Free Software Foundation and other authors who decide to use it. You
335 can use it too, but we suggest you first think carefully about whether
336 this license or the ordinary General Public License is the better
337 strategy to use in any particular case, based on the explanations below.
338
339 When we speak of free software, we are referring to freedom of use,
340 not price. Our General Public Licenses are designed to make sure that
341 you have the freedom to distribute copies of free software (and charge
342 for this service if you wish); that you receive source code or can get
343 it if you want it; that you can change the software and use pieces of
344 it in new free programs; and that you are informed that you can do
345 these things.
346
347 To protect your rights, we need to make restrictions that forbid
348 distributors to deny you these rights or to ask you to surrender these
349 rights. These restrictions translate to certain responsibilities for
350 you if you distribute copies of the library or if you modify it.
351
352 For example, if you distribute copies of the library, whether gratis
353 or for a fee, you must give the recipients all the rights that we gave
354 you. You must make sure that they, too, receive or can get the source
355 code. If you link other code with the library, you must provide
356 complete object files to the recipients, so that they can relink them
357 with the library after making changes to the library and recompiling
358 it. And you must show them these terms so they know their rights.
359
360 We protect your rights with a two-step method: (1) we copyright the
361 library, and (2) we offer you this license, which gives you legal
362 permission to copy, distribute and/or modify the library.
363
364 To protect each distributor, we want to make it very clear that
365 there is no warranty for the free library. Also, if the library is
366 modified by someone else and passed on, the recipients should know
367 that what they have is not the original version, so that the original
368 author's reputation will not be affected by problems that might be
369 introduced by others.
370
371 Finally, software patents pose a constant threat to the existence of
372 any free program. We wish to make sure that a company cannot
373 effectively restrict the users of a free program by obtaining a
374 restrictive license from a patent holder. Therefore, we insist that
375 any patent license obtained for a version of the library must be
376 consistent with the full freedom of use specified in this license.
377
378 Most GNU software, including some libraries, is covered by the
379 ordinary GNU General Public License. This license, the GNU Lesser
380 General Public License, applies to certain designated libraries, and
381 is quite different from the ordinary General Public License. We use
382 this license for certain libraries in order to permit linking those
383 libraries into non-free programs.
384
385 When a program is linked with a library, whether statically or using
386 a shared library, the combination of the two is legally speaking a
387 combined work, a derivative of the original library. The ordinary
388 General Public License therefore permits such linking only if the
389 entire combination fits its criteria of freedom. The Lesser General
390 Public License permits more lax criteria for linking other code with
391 the library.
392
393 We call this license the "Lesser" General Public License because it
394 does Less to protect the user's freedom than the ordinary General
395 Public License. It also provides other free software developers Less
396 of an advantage over competing non-free programs. These disadvantages
397 are the reason we use the ordinary General Public License for many
398 libraries. However, the Lesser license provides advantages in certain
399 special circumstances.
400
401 For example, on rare occasions, there may be a special need to
402 encourage the widest possible use of a certain library, so that it becomes
403 a de-facto standard. To achieve this, non-free programs must be
404 allowed to use the library. A more frequent case is that a free
405 library does the same job as widely used non-free libraries. In this
406 case, there is little to gain by limiting the free library to free
407 software only, so we use the Lesser General Public License.
408
409 In other cases, permission to use a particular library in non-free
410 programs enables a greater number of people to use a large body of
411 free software. For example, permission to use the GNU C Library in
412 non-free programs enables many more people to use the whole GNU
413 operating system, as well as its variant, the GNU/Linux operating
414 system.
415
416 Although the Lesser General Public License is Less protective of the
417 users' freedom, it does ensure that the user of a program that is
418 linked with the Library has the freedom and the wherewithal to run
419 that program using a modified version of the Library.
420
421 The precise terms and conditions for copying, distribution and
422 modification follow. Pay close attention to the difference between a
423 "work based on the library" and a "work that uses the library". The
424 former contains code derived from the library, whereas the latter must
425 be combined with the library in order to run.
426
427 GNU LESSER GENERAL PUBLIC LICENSE
428 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
429
430 0. This License Agreement applies to any software library or other
431 program which contains a notice placed by the copyright holder or
432 other authorized party saying it may be distributed under the terms of
433 this Lesser General Public License (also called "this License").
434 Each licensee is addressed as "you".
435
436 A "library" means a collection of software functions and/or data
437 prepared so as to be conveniently linked with application programs
438 (which use some of those functions and data) to form executables.
439
440 The "Library", below, refers to any such software library or work
441 which has been distributed under these terms. A "work based on the
442 Library" means either the Library or any derivative work under
443 copyright law: that is to say, a work containing the Library or a
444 portion of it, either verbatim or with modifications and/or translated
445 straightforwardly into another language. (Hereinafter, translation is
446 included without limitation in the term "modification".)
447
448 "Source code" for a work means the preferred form of the work for
449 making modifications to it. For a library, complete source code means
450 all the source code for all modules it contains, plus any associated
451 interface definition files, plus the scripts used to control compilation
452 and installation of the library.
453
454 Activities other than copying, distribution and modification are not
455 covered by this License; they are outside its scope. The act of
456 running a program using the Library is not restricted, and output from
457 such a program is covered only if its contents constitute a work based
458 on the Library (independent of the use of the Library in a tool for
459 writing it). Whether that is true depends on what the Library does
460 and what the program that uses the Library does.
461
462 1. You may copy and distribute verbatim copies of the Library's
463 complete source code as you receive it, in any medium, provided that
464 you conspicuously and appropriately publish on each copy an
465 appropriate copyright notice and disclaimer of warranty; keep intact
466 all the notices that refer to this License and to the absence of any
467 warranty; and distribute a copy of this License along with the
468 Library.
469
470 You may charge a fee for the physical act of transferring a copy,
471 and you may at your option offer warranty protection in exchange for a
472 fee.
473
474 2. You may modify your copy or copies of the Library or any portion
475 of it, thus forming a work based on the Library, and copy and
476 distribute such modifications or work under the terms of Section 1
477 above, provided that you also meet all of these conditions:
478
479 a) The modified work must itself be a software library.
480
481 b) You must cause the files modified to carry prominent notices
482 stating that you changed the files and the date of any change.
483
484 c) You must cause the whole of the work to be licensed at no
485 charge to all third parties under the terms of this License.
486
487 d) If a facility in the modified Library refers to a function or a
488 table of data to be supplied by an application program that uses
489 the facility, other than as an argument passed when the facility
490 is invoked, then you must make a good faith effort to ensure that,
491 in the event an application does not supply such function or
492 table, the facility still operates, and performs whatever part of
493 its purpose remains meaningful.
494
495 (For example, a function in a library to compute square roots has
496 a purpose that is entirely well-defined independent of the
497 application. Therefore, Subsection 2d requires that any
498 application-supplied function or table used by this function must
499 be optional: if the application does not supply it, the square
500 root function must still compute square roots.)
501
502 These requirements apply to the modified work as a whole. If
503 identifiable sections of that work are not derived from the Library,
504 and can be reasonably considered independent and separate works in
505 themselves, then this License, and its terms, do not apply to those
506 sections when you distribute them as separate works. But when you
507 distribute the same sections as part of a whole which is a work based
508 on the Library, the distribution of the whole must be on the terms of
509 this License, whose permissions for other licensees extend to the
510 entire whole, and thus to each and every part regardless of who wrote
511 it.
512
513 Thus, it is not the intent of this section to claim rights or contest
514 your rights to work written entirely by you; rather, the intent is to
515 exercise the right to control the distribution of derivative or
516 collective works based on the Library.
517
518 In addition, mere aggregation of another work not based on the Library
519 with the Library (or with a work based on the Library) on a volume of
520 a storage or distribution medium does not bring the other work under
521 the scope of this License.
522
523 3. You may opt to apply the terms of the ordinary GNU General Public
524 License instead of this License to a given copy of the Library. To do
525 this, you must alter all the notices that refer to this License, so
526 that they refer to the ordinary GNU General Public License, version 2,
527 instead of to this License. (If a newer version than version 2 of the
528 ordinary GNU General Public License has appeared, then you can specify
529 that version instead if you wish.) Do not make any other change in
530 these notices.
531
532 Once this change is made in a given copy, it is irreversible for
533 that copy, so the ordinary GNU General Public License applies to all
534 subsequent copies and derivative works made from that copy.
535
536 This option is useful when you wish to copy part of the code of
537 the Library into a program that is not a library.
538
539 4. You may copy and distribute the Library (or a portion or
540 derivative of it, under Section 2) in object code or executable form
541 under the terms of Sections 1 and 2 above provided that you accompany
542 it with the complete corresponding machine-readable source code, which
543 must be distributed under the terms of Sections 1 and 2 above on a
544 medium customarily used for software interchange.
545
546 If distribution of object code is made by offering access to copy
547 from a designated place, then offering equivalent access to copy the
548 source code from the same place satisfies the requirement to
549 distribute the source code, even though third parties are not
550 compelled to copy the source along with the object code.
551
552 5. A program that contains no derivative of any portion of the
553 Library, but is designed to work with the Library by being compiled or
554 linked with it, is called a "work that uses the Library". Such a
555 work, in isolation, is not a derivative work of the Library, and
556 therefore falls outside the scope of this License.
557
558 However, linking a "work that uses the Library" with the Library
559 creates an executable that is a derivative of the Library (because it
560 contains portions of the Library), rather than a "work that uses the
561 library". The executable is therefore covered by this License.
562 Section 6 states terms for distribution of such executables.
563
564 When a "work that uses the Library" uses material from a header file
565 that is part of the Library, the object code for the work may be a
566 derivative work of the Library even though the source code is not.
567 Whether this is true is especially significant if the work can be
568 linked without the Library, or if the work is itself a library. The
569 threshold for this to be true is not precisely defined by law.
570
571 If such an object file uses only numerical parameters, data
572 structure layouts and accessors, and small macros and small inline
573 functions (ten lines or less in length), then the use of the object
574 file is unrestricted, regardless of whether it is legally a derivative
575 work. (Executables containing this object code plus portions of the
576 Library will still fall under Section 6.)
577
578 Otherwise, if the work is a derivative of the Library, you may
579 distribute the object code for the work under the terms of Section 6.
580 Any executables containing that work also fall under Section 6,
581 whether or not they are linked directly with the Library itself.
582
583 6. As an exception to the Sections above, you may also combine or
584 link a "work that uses the Library" with the Library to produce a
585 work containing portions of the Library, and distribute that work
586 under terms of your choice, provided that the terms permit
587 modification of the work for the customer's own use and reverse
588 engineering for debugging such modifications.
589
590 You must give prominent notice with each copy of the work that the
591 Library is used in it and that the Library and its use are covered by
592 this License. You must supply a copy of this License. If the work
593 during execution displays copyright notices, you must include the
594 copyright notice for the Library among them, as well as a reference
595 directing the user to the copy of this License. Also, you must do one
596 of these things:
597
598 a) Accompany the work with the complete corresponding
599 machine-readable source code for the Library including whatever
600 changes were used in the work (which must be distributed under
601 Sections 1 and 2 above); and, if the work is an executable linked
602 with the Library, with the complete machine-readable "work that
603 uses the Library", as object code and/or source code, so that the
604 user can modify the Library and then relink to produce a modified
605 executable containing the modified Library. (It is understood
606 that the user who changes the contents of definitions files in the
607 Library will not necessarily be able to recompile the application
608 to use the modified definitions.)
609
610 b) Use a suitable shared library mechanism for linking with the
611 Library. A suitable mechanism is one that (1) uses at run time a
612 copy of the library already present on the user's computer system,
613 rather than copying library functions into the executable, and (2)
614 will operate properly with a modified version of the library, if
615 the user installs one, as long as the modified version is
616 interface-compatible with the version that the work was made with.
617
618 c) Accompany the work with a written offer, valid for at
619 least three years, to give the same user the materials
620 specified in Subsection 6a, above, for a charge no more
621 than the cost of performing this distribution.
622
623 d) If distribution of the work is made by offering access to copy
624 from a designated place, offer equivalent access to copy the above
625 specified materials from the same place.
626
627 e) Verify that the user has already received a copy of these
628 materials or that you have already sent this user a copy.
629
630 For an executable, the required form of the "work that uses the
631 Library" must include any data and utility programs needed for
632 reproducing the executable from it. However, as a special exception,
633 the materials to be distributed need not include anything that is
634 normally distributed (in either source or binary form) with the major
635 components (compiler, kernel, and so on) of the operating system on
636 which the executable runs, unless that component itself accompanies
637 the executable.
638
639 It may happen that this requirement contradicts the license
640 restrictions of other proprietary libraries that do not normally
641 accompany the operating system. Such a contradiction means you cannot
642 use both them and the Library together in an executable that you
643 distribute.
644
645 7. You may place library facilities that are a work based on the
646 Library side-by-side in a single library together with other library
647 facilities not covered by this License, and distribute such a combined
648 library, provided that the separate distribution of the work based on
649 the Library and of the other library facilities is otherwise
650 permitted, and provided that you do these two things:
651
652 a) Accompany the combined library with a copy of the same work
653 based on the Library, uncombined with any other library
654 facilities. This must be distributed under the terms of the
655 Sections above.
656
657 b) Give prominent notice with the combined library of the fact
658 that part of it is a work based on the Library, and explaining
659 where to find the accompanying uncombined form of the same work.
660
661 8. You may not copy, modify, sublicense, link with, or distribute
662 the Library except as expressly provided under this License. Any
663 attempt otherwise to copy, modify, sublicense, link with, or
664 distribute the Library is void, and will automatically terminate your
665 rights under this License. However, parties who have received copies,
666 or rights, from you under this License will not have their licenses
667 terminated so long as such parties remain in full compliance.
668
669 9. You are not required to accept this License, since you have not
670 signed it. However, nothing else grants you permission to modify or
671 distribute the Library or its derivative works. These actions are
672 prohibited by law if you do not accept this License. Therefore, by
673 modifying or distributing the Library (or any work based on the
674 Library), you indicate your acceptance of this License to do so, and
675 all its terms and conditions for copying, distributing or modifying
676 the Library or works based on it.
677
678 10. Each time you redistribute the Library (or any work based on the
679 Library), the recipient automatically receives a license from the
680 original licensor to copy, distribute, link with or modify the Library
681 subject to these terms and conditions. You may not impose any further
682 restrictions on the recipients' exercise of the rights granted herein.
683 You are not responsible for enforcing compliance by third parties with
684 this License.
685
686 11. If, as a consequence of a court judgment or allegation of patent
687 infringement or for any other reason (not limited to patent issues),
688 conditions are imposed on you (whether by court order, agreement or
689 otherwise) that contradict the conditions of this License, they do not
690 excuse you from the conditions of this License. If you cannot
691 distribute so as to satisfy simultaneously your obligations under this
692 License and any other pertinent obligations, then as a consequence you
693 may not distribute the Library at all. For example, if a patent
694 license would not permit royalty-free redistribution of the Library by
695 all those who receive copies directly or indirectly through you, then
696 the only way you could satisfy both it and this License would be to
697 refrain entirely from distribution of the Library.
698
699 If any portion of this section is held invalid or unenforceable under any
700 particular circumstance, the balance of the section is intended to apply,
701 and the section as a whole is intended to apply in other circumstances.
702
703 It is not the purpose of this section to induce you to infringe any
704 patents or other property right claims or to contest validity of any
705 such claims; this section has the sole purpose of protecting the
706 integrity of the free software distribution system which is
707 implemented by public license practices. Many people have made
708 generous contributions to the wide range of software distributed
709 through that system in reliance on consistent application of that
710 system; it is up to the author/donor to decide if he or she is willing
711 to distribute software through any other system and a licensee cannot
712 impose that choice.
713
714 This section is intended to make thoroughly clear what is believed to
715 be a consequence of the rest of this License.
716
717 12. If the distribution and/or use of the Library is restricted in
718 certain countries either by patents or by copyrighted interfaces, the
719 original copyright holder who places the Library under this License may add
720 an explicit geographical distribution limitation excluding those countries,
721 so that distribution is permitted only in or among countries not thus
722 excluded. In such case, this License incorporates the limitation as if
723 written in the body of this License.
724
725 13. The Free Software Foundation may publish revised and/or new
726 versions of the Lesser General Public License from time to time.
727 Such new versions will be similar in spirit to the present version,
728 but may differ in detail to address new problems or concerns.
729
730 Each version is given a distinguishing version number. If the Library
731 specifies a version number of this License which applies to it and
732 "any later version", you have the option of following the terms and
733 conditions either of that version or of any later version published by
734 the Free Software Foundation. If the Library does not specify a
735 license version number, you may choose any version ever published by
736 the Free Software Foundation.
737
738 14. If you wish to incorporate parts of the Library into other free
739 programs whose distribution conditions are incompatible with these,
740 write to the author to ask for permission. For software which is
741 copyrighted by the Free Software Foundation, write to the Free
742 Software Foundation; we sometimes make exceptions for this. Our
743 decision will be guided by the two goals of preserving the free status
744 of all derivatives of our free software and of promoting the sharing
745 and reuse of software generally.
746
747 NO WARRANTY
748
749 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
750 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
751 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
752 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
753 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
754 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
755 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
756 LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
757 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
758
759 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
760 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
761 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
762 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
763 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
764 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
765 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
766 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
767 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
768 DAMAGES.
769
770 -----------------------------------------------------------------------
771
772 (3) 3-clause BSD license
773
774
775 (c) Copyright IBM Corporation 2006, 2010.
776
777 All rights reserved.
778
779 Redistribution and use in source and binary forms, with or without
780 modification, are permitted provided that the following conditions are
781 met:
782
783 Redistributions of source code must retain the above copyright notice,
784 this list of conditions and the following disclaimer.
785
786 Redistributions in binary form must reproduce the above copyright
787 notice, this list of conditions and the following disclaimer in the
788 documentation and/or other materials provided with the distribution.
789
790 Neither the names of the IBM Corporation nor the names of its
791 contributors may be used to endorse or promote products derived from
792 this software without specific prior written permission.
793
794 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
795 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
796 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
797 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
798 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
799 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
800 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
801 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
802 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
803 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
804 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.