1D-Bus is licensed to you under your choice of the Academic Free 2License version 2.1, or the GNU General Public License version 2 3(or, at your option any later version). 4 5Both licenses are included here. Some of the standalone binaries are 6under the GPL only; in particular, but not limited to, 7tools/dbus-cleanup-sockets.c and test/decode-gcov.c. Each source code 8file is marked with the proper copyright information - if you find a 9file that isn't marked please bring it to our attention. 10 11The Academic Free License 12v. 2.1 13 14This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following notice immediately following the copyright notice for the Original Work: 15 16Licensed under the Academic Free License version 2.1 17 181) Grant of Copyright License. Licensor hereby grants You a 19world-wide, royalty-free, non-exclusive, perpetual, sublicenseable 20license to do the following: 21 22a) to reproduce the Original Work in copies; 23 24b) to prepare derivative works ("Derivative Works") based upon the Original Work; 25 26c) to distribute copies of the Original Work and Derivative Works to the public; 27 28d) to perform the Original Work publicly; and 29 30e) to display the Original Work publicly. 31 322) Grant of Patent License. Licensor hereby grants You a world-wide, 33royalty-free, non-exclusive, perpetual, sublicenseable license, under 34patent claims owned or controlled by the Licensor that are embodied in 35the Original Work as furnished by the Licensor, to make, use, sell and 36offer for sale the Original Work and Derivative Works. 37 383) Grant of Source Code License. The term "Source Code" means the 39preferred form of the Original Work for making modifications to it and 40all available documentation describing how to modify the Original 41Work. Licensor hereby agrees to provide a machine-readable copy of the 42Source Code of the Original Work along with each copy of the Original 43Work that Licensor distributes. Licensor reserves the right to satisfy 44this obligation by placing a machine-readable copy of the Source Code 45in an information repository reasonably calculated to permit 46inexpensive and convenient access by You for as long as Licensor 47continues to distribute the Original Work, and by publishing the 48address of that information repository in a notice immediately 49following the copyright notice that applies to the Original Work. 50 514) Exclusions From License Grant. Neither the names of Licensor, nor 52the names of any contributors to the Original Work, nor any of their 53trademarks or service marks, may be used to endorse or promote 54products derived from this Original Work without express prior written 55permission of the Licensor. Nothing in this License shall be deemed to 56grant any rights to trademarks, copyrights, patents, trade secrets or 57any other intellectual property of Licensor except as expressly stated 58herein. No patent license is granted to make, use, sell or offer to 59sell embodiments of any patent claims other than the licensed claims 60defined in Section 2. No right is granted to the trademarks of 61Licensor even if such marks are included in the Original Work. Nothing 62in this License shall be interpreted to prohibit Licensor from 63licensing under different terms from this License any Original Work 64that Licensor otherwise would have a right to license. 65 665) This section intentionally omitted. 67 686) Attribution Rights. You must retain, in the Source Code of any 69Derivative Works that You create, all copyright, patent or trademark 70notices from the Source Code of the Original Work, as well as any 71notices of licensing and any descriptive text identified therein as an 72"Attribution Notice." You must cause the Source Code for any 73Derivative Works that You create to carry a prominent Attribution 74Notice reasonably calculated to inform recipients that You have 75modified the Original Work. 76 777) Warranty of Provenance and Disclaimer of Warranty. Licensor 78warrants that the copyright in and to the Original Work and the patent 79rights granted herein by Licensor are owned by the Licensor or are 80sublicensed to You under the terms of this License with the permission 81of the contributor(s) of those copyrights and patent rights. Except as 82expressly stated in the immediately proceeding sentence, the Original 83Work is provided under this License on an "AS IS" BASIS and WITHOUT 84WARRANTY, either express or implied, including, without limitation, 85the warranties of NON-INFRINGEMENT, MERCHANTABILITY or FITNESS FOR A 86PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL 87WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential 88part of this License. No license to Original Work is granted hereunder 89except under this disclaimer. 90 918) Limitation of Liability. Under no circumstances and under no legal 92theory, whether in tort (including negligence), contract, or 93otherwise, shall the Licensor be liable to any person for any direct, 94indirect, special, incidental, or consequential damages of any 95character arising as a result of this License or the use of the 96Original Work including, without limitation, damages for loss of 97goodwill, work stoppage, computer failure or malfunction, or any and 98all other commercial damages or losses. This limitation of liability 99shall not apply to liability for death or personal injury resulting 100from Licensor's negligence to the extent applicable law prohibits such 101limitation. Some jurisdictions do not allow the exclusion or 102limitation of incidental or consequential damages, so this exclusion 103and limitation may not apply to You. 104 1059) Acceptance and Termination. If You distribute copies of the 106Original Work or a Derivative Work, You must make a reasonable effort 107under the circumstances to obtain the express assent of recipients to 108the terms of this License. Nothing else but this License (or another 109written agreement between Licensor and You) grants You permission to 110create Derivative Works based upon the Original Work or to exercise 111any of the rights granted in Section 1 herein, and any attempt to do 112so except under the terms of this License (or another written 113agreement between Licensor and You) is expressly prohibited by 114U.S. copyright law, the equivalent laws of other countries, and by 115international treaty. Therefore, by exercising any of the rights 116granted to You in Section 1 herein, You indicate Your acceptance of 117this License and all of its terms and conditions. 118 11910) Termination for Patent Action. This License shall terminate 120automatically and You may no longer exercise any of the rights granted 121to You by this License as of the date You commence an action, 122including a cross-claim or counterclaim, against Licensor or any 123licensee alleging that the Original Work infringes a patent. This 124termination provision shall not apply for an action alleging patent 125infringement by combinations of the Original Work with other software 126or hardware. 127 12811) Jurisdiction, Venue and Governing Law. Any action or suit relating 129to this License may be brought only in the courts of a jurisdiction 130wherein the Licensor resides or in which Licensor conducts its primary 131business, and under the laws of that jurisdiction excluding its 132conflict-of-law provisions. The application of the United Nations 133Convention on Contracts for the International Sale of Goods is 134expressly excluded. Any use of the Original Work outside the scope of 135this License or after its termination shall be subject to the 136requirements and penalties of the U.S. Copyright Act, 17 U.S.C. § 101 137et seq., the equivalent laws of other countries, and international 138treaty. This section shall survive the termination of this License. 139 14012) Attorneys Fees. In any action to enforce the terms of this License 141or seeking damages relating thereto, the prevailing party shall be 142entitled to recover its costs and expenses, including, without 143limitation, reasonable attorneys' fees and costs incurred in 144connection with such action, including any appeal of such action. This 145section shall survive the termination of this License. 146 14713) Miscellaneous. This License represents the complete agreement 148concerning the subject matter hereof. If any provision of this License 149is held to be unenforceable, such provision shall be reformed only to 150the extent necessary to make it enforceable. 151 15214) Definition of "You" in This License. "You" throughout this 153License, whether in upper or lower case, means an individual or a 154legal entity exercising rights under, and complying with all of the 155terms of, this License. For legal entities, "You" includes any entity 156that controls, is controlled by, or is under common control with 157you. For purposes of this definition, "control" means (i) the power, 158direct or indirect, to cause the direction or management of such 159entity, whether by contract or otherwise, or (ii) ownership of fifty 160percent (50%) or more of the outstanding shares, or (iii) beneficial 161ownership of such entity. 162 16315) Right to Use. You may use the Original Work in all ways not 164otherwise restricted or conditioned by this License or by law, and 165Licensor promises not to interfere with or be responsible for such 166uses by You. 167 168This license is Copyright (C) 2003-2004 Lawrence E. Rosen. All rights 169reserved. Permission is hereby granted to copy and distribute this 170license without modification. This license may not be modified without 171the express written permission of its copyright owner. 172 173 174-- 175END OF ACADEMIC FREE LICENSE. The following is intended to describe the essential 176differences between the Academic Free License (AFL) version 1.0 and other 177open source licenses: 178 179The Academic Free License is similar to the BSD, MIT, UoI/NCSA and Apache 180licenses in many respects but it is intended to solve a few problems with 181those licenses. 182 183* The AFL is written so as to make it clear what software is being 184licensed (by the inclusion of a statement following the copyright notice 185in the software). This way, the license functions better than a template 186license. The BSD, MIT and UoI/NCSA licenses apply to unidentified software. 187 188* The AFL contains a complete copyright grant to the software. The BSD 189and Apache licenses are vague and incomplete in that respect. 190 191* The AFL contains a complete patent grant to the software. The BSD, MIT, 192UoI/NCSA and Apache licenses rely on an implied patent license and contain 193no explicit patent grant. 194 195* The AFL makes it clear that no trademark rights are granted to the 196licensor's trademarks. The Apache license contains such a provision, but the 197BSD, MIT and UoI/NCSA licenses do not. 198 199* The AFL includes the warranty by the licensor that it either owns the 200copyright or that it is distributing the software under a license. None of 201the other licenses contain that warranty. All other warranties are disclaimed, 202as is the case for the other licenses. 203 204* The AFL is itself copyrighted (with the right granted to copy and distribute 205without modification). This ensures that the owner of the copyright to the 206license will control changes. The Apache license contains a copyright notice, 207but the BSD, MIT and UoI/NCSA licenses do not. 208-- 209START OF GNU GENERAL PUBLIC LICENSE 210-- 211 212 GNU GENERAL PUBLIC LICENSE 213 Version 2, June 1991 214 215 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 216 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 217 218 Everyone is permitted to copy and distribute verbatim copies 219 of this license document, but changing it is not allowed. 220 221 Preamble 222 223 The licenses for most software are designed to take away your 224freedom to share and change it. By contrast, the GNU General Public 225License is intended to guarantee your freedom to share and change free 226software--to make sure the software is free for all its users. This 227General Public License applies to most of the Free Software 228Foundation's software and to any other program whose authors commit to 229using it. (Some other Free Software Foundation software is covered by 230the GNU Library General Public License instead.) You can apply it to 231your programs, too. 232 233 When we speak of free software, we are referring to freedom, not 234price. Our General Public Licenses are designed to make sure that you 235have the freedom to distribute copies of free software (and charge for 236this service if you wish), that you receive source code or can get it 237if you want it, that you can change the software or use pieces of it 238in new free programs; and that you know you can do these things. 239 240 To protect your rights, we need to make restrictions that forbid 241anyone to deny you these rights or to ask you to surrender the rights. 242These restrictions translate to certain responsibilities for you if you 243distribute copies of the software, or if you modify it. 244 245 For example, if you distribute copies of such a program, whether 246gratis or for a fee, you must give the recipients all the rights that 247you have. You must make sure that they, too, receive or can get the 248source code. And you must show them these terms so they know their 249rights. 250 251 We protect your rights with two steps: (1) copyright the software, and 252(2) offer you this license which gives you legal permission to copy, 253distribute and/or modify the software. 254 255 Also, for each author's protection and ours, we want to make certain 256that everyone understands that there is no warranty for this free 257software. If the software is modified by someone else and passed on, we 258want its recipients to know that what they have is not the original, so 259that any problems introduced by others will not reflect on the original 260authors' reputations. 261 262 Finally, any free program is threatened constantly by software 263patents. We wish to avoid the danger that redistributors of a free 264program will individually obtain patent licenses, in effect making the 265program proprietary. To prevent this, we have made it clear that any 266patent must be licensed for everyone's free use or not licensed at all. 267 268 The precise terms and conditions for copying, distribution and 269modification follow. 270 271 GNU GENERAL PUBLIC LICENSE 272 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 273 274 0. This License applies to any program or other work which contains 275a notice placed by the copyright holder saying it may be distributed 276under the terms of this General Public License. The "Program", below, 277refers to any such program or work, and a "work based on the Program" 278means either the Program or any derivative work under copyright law: 279that is to say, a work containing the Program or a portion of it, 280either verbatim or with modifications and/or translated into another 281language. (Hereinafter, translation is included without limitation in 282the term "modification".) Each licensee is addressed as "you". 283 284Activities other than copying, distribution and modification are not 285covered by this License; they are outside its scope. The act of 286running the Program is not restricted, and the output from the Program 287is covered only if its contents constitute a work based on the 288Program (independent of having been made by running the Program). 289Whether that is true depends on what the Program does. 290 291 1. You may copy and distribute verbatim copies of the Program's 292source code as you receive it, in any medium, provided that you 293conspicuously and appropriately publish on each copy an appropriate 294copyright notice and disclaimer of warranty; keep intact all the 295notices that refer to this License and to the absence of any warranty; 296and give any other recipients of the Program a copy of this License 297along with the Program. 298 299You may charge a fee for the physical act of transferring a copy, and 300you may at your option offer warranty protection in exchange for a fee. 301 302 2. You may modify your copy or copies of the Program or any portion 303of it, thus forming a work based on the Program, and copy and 304distribute such modifications or work under the terms of Section 1 305above, provided that you also meet all of these conditions: 306 307 a) You must cause the modified files to carry prominent notices 308 stating that you changed the files and the date of any change. 309 310 b) You must cause any work that you distribute or publish, that in 311 whole or in part contains or is derived from the Program or any 312 part thereof, to be licensed as a whole at no charge to all third 313 parties under the terms of this License. 314 315 c) If the modified program normally reads commands interactively 316 when run, you must cause it, when started running for such 317 interactive use in the most ordinary way, to print or display an 318 announcement including an appropriate copyright notice and a 319 notice that there is no warranty (or else, saying that you provide 320 a warranty) and that users may redistribute the program under 321 these conditions, and telling the user how to view a copy of this 322 License. (Exception: if the Program itself is interactive but 323 does not normally print such an announcement, your work based on 324 the Program is not required to print an announcement.) 325 326These requirements apply to the modified work as a whole. If 327identifiable sections of that work are not derived from the Program, 328and can be reasonably considered independent and separate works in 329themselves, then this License, and its terms, do not apply to those 330sections when you distribute them as separate works. But when you 331distribute the same sections as part of a whole which is a work based 332on the Program, the distribution of the whole must be on the terms of 333this License, whose permissions for other licensees extend to the 334entire whole, and thus to each and every part regardless of who wrote it. 335 336Thus, it is not the intent of this section to claim rights or contest 337your rights to work written entirely by you; rather, the intent is to 338exercise the right to control the distribution of derivative or 339collective works based on the Program. 340 341In addition, mere aggregation of another work not based on the Program 342with the Program (or with a work based on the Program) on a volume of 343a storage or distribution medium does not bring the other work under 344the scope of this License. 345 346 3. You may copy and distribute the Program (or a work based on it, 347under Section 2) in object code or executable form under the terms of 348Sections 1 and 2 above provided that you also do one of the following: 349 350 a) Accompany it with the complete corresponding machine-readable 351 source code, which must be distributed under the terms of Sections 352 1 and 2 above on a medium customarily used for software interchange; or, 353 354 b) Accompany it with a written offer, valid for at least three 355 years, to give any third party, for a charge no more than your 356 cost of physically performing source distribution, a complete 357 machine-readable copy of the corresponding source code, to be 358 distributed under the terms of Sections 1 and 2 above on a medium 359 customarily used for software interchange; or, 360 361 c) Accompany it with the information you received as to the offer 362 to distribute corresponding source code. (This alternative is 363 allowed only for noncommercial distribution and only if you 364 received the program in object code or executable form with such 365 an offer, in accord with Subsection b above.) 366 367The source code for a work means the preferred form of the work for 368making modifications to it. For an executable work, complete source 369code means all the source code for all modules it contains, plus any 370associated interface definition files, plus the scripts used to 371control compilation and installation of the executable. However, as a 372special exception, the source code distributed need not include 373anything that is normally distributed (in either source or binary 374form) with the major components (compiler, kernel, and so on) of the 375operating system on which the executable runs, unless that component 376itself accompanies the executable. 377 378If distribution of executable or object code is made by offering 379access to copy from a designated place, then offering equivalent 380access to copy the source code from the same place counts as 381distribution of the source code, even though third parties are not 382compelled to copy the source along with the object code. 383 384 4. You may not copy, modify, sublicense, or distribute the Program 385except as expressly provided under this License. Any attempt 386otherwise to copy, modify, sublicense or distribute the Program is 387void, and will automatically terminate your rights under this License. 388However, parties who have received copies, or rights, from you under 389this License will not have their licenses terminated so long as such 390parties remain in full compliance. 391 392 5. You are not required to accept this License, since you have not 393signed it. However, nothing else grants you permission to modify or 394distribute the Program or its derivative works. These actions are 395prohibited by law if you do not accept this License. Therefore, by 396modifying or distributing the Program (or any work based on the 397Program), you indicate your acceptance of this License to do so, and 398all its terms and conditions for copying, distributing or modifying 399the Program or works based on it. 400 401 6. Each time you redistribute the Program (or any work based on the 402Program), the recipient automatically receives a license from the 403original licensor to copy, distribute or modify the Program subject to 404these terms and conditions. You may not impose any further 405restrictions on the recipients' exercise of the rights granted herein. 406You are not responsible for enforcing compliance by third parties to 407this License. 408 409 7. If, as a consequence of a court judgment or allegation of patent 410infringement or for any other reason (not limited to patent issues), 411conditions are imposed on you (whether by court order, agreement or 412otherwise) that contradict the conditions of this License, they do not 413excuse you from the conditions of this License. If you cannot 414distribute so as to satisfy simultaneously your obligations under this 415License and any other pertinent obligations, then as a consequence you 416may not distribute the Program at all. For example, if a patent 417license would not permit royalty-free redistribution of the Program by 418all those who receive copies directly or indirectly through you, then 419the only way you could satisfy both it and this License would be to 420refrain entirely from distribution of the Program. 421 422If any portion of this section is held invalid or unenforceable under 423any particular circumstance, the balance of the section is intended to 424apply and the section as a whole is intended to apply in other 425circumstances. 426 427It is not the purpose of this section to induce you to infringe any 428patents or other property right claims or to contest validity of any 429such claims; this section has the sole purpose of protecting the 430integrity of the free software distribution system, which is 431implemented by public license practices. Many people have made 432generous contributions to the wide range of software distributed 433through that system in reliance on consistent application of that 434system; it is up to the author/donor to decide if he or she is willing 435to distribute software through any other system and a licensee cannot 436impose that choice. 437 438This section is intended to make thoroughly clear what is believed to 439be a consequence of the rest of this License. 440 441 8. If the distribution and/or use of the Program is restricted in 442certain countries either by patents or by copyrighted interfaces, the 443original copyright holder who places the Program under this License 444may add an explicit geographical distribution limitation excluding 445those countries, so that distribution is permitted only in or among 446countries not thus excluded. In such case, this License incorporates 447the limitation as if written in the body of this License. 448 449 9. The Free Software Foundation may publish revised and/or new versions 450of the General Public License from time to time. Such new versions will 451be similar in spirit to the present version, but may differ in detail to 452address new problems or concerns. 453 454Each version is given a distinguishing version number. If the Program 455specifies a version number of this License which applies to it and "any 456later version", you have the option of following the terms and conditions 457either of that version or of any later version published by the Free 458Software Foundation. If the Program does not specify a version number of 459this License, you may choose any version ever published by the Free Software 460Foundation. 461 462 10. If you wish to incorporate parts of the Program into other free 463programs whose distribution conditions are different, write to the author 464to ask for permission. For software which is copyrighted by the Free 465Software Foundation, write to the Free Software Foundation; we sometimes 466make exceptions for this. Our decision will be guided by the two goals 467of preserving the free status of all derivatives of our free software and 468of promoting the sharing and reuse of software generally. 469 470 NO WARRANTY 471 472 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 473FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 474OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 475PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 476OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 477MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 478TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 479PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 480REPAIR OR CORRECTION. 481 482 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 483WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 484REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 485INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 486OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 487TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 488YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 489PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 490POSSIBILITY OF SUCH DAMAGES. 491 492 END OF TERMS AND CONDITIONS 493 494 How to Apply These Terms to Your New Programs 495 496 If you develop a new program, and you want it to be of the greatest 497possible use to the public, the best way to achieve this is to make it 498free software which everyone can redistribute and change under these terms. 499 500 To do so, attach the following notices to the program. It is safest 501to attach them to the start of each source file to most effectively 502convey the exclusion of warranty; and each file should have at least 503the "copyright" line and a pointer to where the full notice is found. 504 505 <one line to give the program's name and a brief idea of what it does.> 506 Copyright (C) <year> <name of author> 507 508 This program is free software; you can redistribute it and/or modify 509 it under the terms of the GNU General Public License as published by 510 the Free Software Foundation; either version 2 of the License, or 511 (at your option) any later version. 512 513 This program is distributed in the hope that it will be useful, 514 but WITHOUT ANY WARRANTY; without even the implied warranty of 515 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 516 GNU General Public License for more details. 517 518 You should have received a copy of the GNU General Public License 519 along with this program; if not, write to the Free Software 520 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 521 522 523Also add information on how to contact you by electronic and paper mail. 524 525If the program is interactive, make it output a short notice like this 526when it starts in an interactive mode: 527 528 Gnomovision version 69, Copyright (C) year name of author 529 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 530 This is free software, and you are welcome to redistribute it 531 under certain conditions; type `show c' for details. 532 533The hypothetical commands `show w' and `show c' should show the appropriate 534parts of the General Public License. Of course, the commands you use may 535be called something other than `show w' and `show c'; they could even be 536mouse-clicks or menu items--whatever suits your program. 537 538You should also get your employer (if you work as a programmer) or your 539school, if any, to sign a "copyright disclaimer" for the program, if 540necessary. Here is a sample; alter the names: 541 542 Yoyodyne, Inc., hereby disclaims all copyright interest in the program 543 `Gnomovision' (which makes passes at compilers) written by James Hacker. 544 545 <signature of Ty Coon>, 1 April 1989 546 Ty Coon, President of Vice 547 548This General Public License does not permit incorporating your program into 549proprietary programs. If your program is a subroutine library, you may 550consider it more useful to permit linking proprietary applications with the 551library. If this is what you want to do, use the GNU Library General 552Public License instead of this License. 553