1 GNU GENERAL PUBLIC LICENSE 2 Version 2, June 1991 3 4 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 Everyone is permitted to copy and distribute verbatim copies 7 of this license document, but changing it is not allowed. 8 9 Preamble 10 11 The licenses for most software are designed to take away your 12freedom to share and change it. By contrast, the GNU General Public 13License is intended to guarantee your freedom to share and change free 14software--to make sure the software is free for all its users. This 15General Public License applies to most of the Free Software 16Foundation's software and to any other program whose authors commit to 17using it. (Some other Free Software Foundation software is covered by 18the GNU Lesser General Public License instead.) You can apply it to 19your programs, too. 20 21 When we speak of free software, we are referring to freedom, not 22price. Our General Public Licenses are designed to make sure that you 23have the freedom to distribute copies of free software (and charge for 24this service if you wish), that you receive source code or can get it 25if you want it, that you can change the software or use pieces of it 26in new free programs; and that you know you can do these things. 27 28 To protect your rights, we need to make restrictions that forbid 29anyone to deny you these rights or to ask you to surrender the rights. 30These restrictions translate to certain responsibilities for you if you 31distribute copies of the software, or if you modify it. 32 33 For example, if you distribute copies of such a program, whether 34gratis or for a fee, you must give the recipients all the rights that 35you have. You must make sure that they, too, receive or can get the 36source code. And you must show them these terms so they know their 37rights. 38 39 We protect your rights with two steps: (1) copyright the software, and 40(2) offer you this license which gives you legal permission to copy, 41distribute and/or modify the software. 42 43 Also, for each author's protection and ours, we want to make certain 44that everyone understands that there is no warranty for this free 45software. If the software is modified by someone else and passed on, we 46want its recipients to know that what they have is not the original, so 47that any problems introduced by others will not reflect on the original 48authors' reputations. 49 50 Finally, any free program is threatened constantly by software 51patents. We wish to avoid the danger that redistributors of a free 52program will individually obtain patent licenses, in effect making the 53program proprietary. To prevent this, we have made it clear that any 54patent must be licensed for everyone's free use or not licensed at all. 55 56 The precise terms and conditions for copying, distribution and 57modification follow. 58 59 GNU GENERAL PUBLIC LICENSE 60 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 62 0. This License applies to any program or other work which contains 63a notice placed by the copyright holder saying it may be distributed 64under the terms of this General Public License. The "Program", below, 65refers to any such program or work, and a "work based on the Program" 66means either the Program or any derivative work under copyright law: 67that is to say, a work containing the Program or a portion of it, 68either verbatim or with modifications and/or translated into another 69language. (Hereinafter, translation is included without limitation in 70the term "modification".) Each licensee is addressed as "you". 71 72Activities other than copying, distribution and modification are not 73covered by this License; they are outside its scope. The act of 74running the Program is not restricted, and the output from the Program 75is covered only if its contents constitute a work based on the 76Program (independent of having been made by running the Program). 77Whether that is true depends on what the Program does. 78 79 1. You may copy and distribute verbatim copies of the Program's 80source code as you receive it, in any medium, provided that you 81conspicuously and appropriately publish on each copy an appropriate 82copyright notice and disclaimer of warranty; keep intact all the 83notices that refer to this License and to the absence of any warranty; 84and give any other recipients of the Program a copy of this License 85along with the Program. 86 87You may charge a fee for the physical act of transferring a copy, and 88you may at your option offer warranty protection in exchange for a fee. 89 90 2. You may modify your copy or copies of the Program or any portion 91of it, thus forming a work based on the Program, and copy and 92distribute such modifications or work under the terms of Section 1 93above, provided that you also meet all of these conditions: 94 95 a) You must cause the modified files to carry prominent notices 96 stating that you changed the files and the date of any change. 97 98 b) You must cause any work that you distribute or publish, that in 99 whole or in part contains or is derived from the Program or any 100 part thereof, to be licensed as a whole at no charge to all third 101 parties under the terms of this License. 102 103 c) If the modified program normally reads commands interactively 104 when run, you must cause it, when started running for such 105 interactive use in the most ordinary way, to print or display an 106 announcement including an appropriate copyright notice and a 107 notice that there is no warranty (or else, saying that you provide 108 a warranty) and that users may redistribute the program under 109 these conditions, and telling the user how to view a copy of this 110 License. (Exception: if the Program itself is interactive but 111 does not normally print such an announcement, your work based on 112 the Program is not required to print an announcement.) 113 114These requirements apply to the modified work as a whole. If 115identifiable sections of that work are not derived from the Program, 116and can be reasonably considered independent and separate works in 117themselves, then this License, and its terms, do not apply to those 118sections when you distribute them as separate works. But when you 119distribute the same sections as part of a whole which is a work based 120on the Program, the distribution of the whole must be on the terms of 121this License, whose permissions for other licensees extend to the 122entire whole, and thus to each and every part regardless of who wrote it. 123 124Thus, it is not the intent of this section to claim rights or contest 125your rights to work written entirely by you; rather, the intent is to 126exercise the right to control the distribution of derivative or 127collective works based on the Program. 128 129In addition, mere aggregation of another work not based on the Program 130with the Program (or with a work based on the Program) on a volume of 131a storage or distribution medium does not bring the other work under 132the scope of this License. 133 134 3. You may copy and distribute the Program (or a work based on it, 135under Section 2) in object code or executable form under the terms of 136Sections 1 and 2 above provided that you also do one of the following: 137 138 a) Accompany it with the complete corresponding machine-readable 139 source code, which must be distributed under the terms of Sections 140 1 and 2 above on a medium customarily used for software interchange; or, 141 142 b) Accompany it with a written offer, valid for at least three 143 years, to give any third party, for a charge no more than your 144 cost of physically performing source distribution, a complete 145 machine-readable copy of the corresponding source code, to be 146 distributed under the terms of Sections 1 and 2 above on a medium 147 customarily used for software interchange; or, 148 149 c) Accompany it with the information you received as to the offer 150 to distribute corresponding source code. (This alternative is 151 allowed only for noncommercial distribution and only if you 152 received the program in object code or executable form with such 153 an offer, in accord with Subsection b above.) 154 155The source code for a work means the preferred form of the work for 156making modifications to it. For an executable work, complete source 157code means all the source code for all modules it contains, plus any 158associated interface definition files, plus the scripts used to 159control compilation and installation of the executable. However, as a 160special exception, the source code distributed need not include 161anything that is normally distributed (in either source or binary 162form) with the major components (compiler, kernel, and so on) of the 163operating system on which the executable runs, unless that component 164itself accompanies the executable. 165 166If distribution of executable or object code is made by offering 167access to copy from a designated place, then offering equivalent 168access to copy the source code from the same place counts as 169distribution of the source code, even though third parties are not 170compelled to copy the source along with the object code. 171 172 4. You may not copy, modify, sublicense, or distribute the Program 173except as expressly provided under this License. Any attempt 174otherwise to copy, modify, sublicense or distribute the Program is 175void, and will automatically terminate your rights under this License. 176However, parties who have received copies, or rights, from you under 177this License will not have their licenses terminated so long as such 178parties remain in full compliance. 179 180 5. You are not required to accept this License, since you have not 181signed it. However, nothing else grants you permission to modify or 182distribute the Program or its derivative works. These actions are 183prohibited by law if you do not accept this License. Therefore, by 184modifying or distributing the Program (or any work based on the 185Program), you indicate your acceptance of this License to do so, and 186all its terms and conditions for copying, distributing or modifying 187the Program or works based on it. 188 189 6. Each time you redistribute the Program (or any work based on the 190Program), the recipient automatically receives a license from the 191original licensor to copy, distribute or modify the Program subject to 192these terms and conditions. You may not impose any further 193restrictions on the recipients' exercise of the rights granted herein. 194You are not responsible for enforcing compliance by third parties to 195this License. 196 197 7. If, as a consequence of a court judgment or allegation of patent 198infringement or for any other reason (not limited to patent issues), 199conditions are imposed on you (whether by court order, agreement or 200otherwise) that contradict the conditions of this License, they do not 201excuse you from the conditions of this License. If you cannot 202distribute so as to satisfy simultaneously your obligations under this 203License and any other pertinent obligations, then as a consequence you 204may not distribute the Program at all. For example, if a patent 205license would not permit royalty-free redistribution of the Program by 206all those who receive copies directly or indirectly through you, then 207the only way you could satisfy both it and this License would be to 208refrain entirely from distribution of the Program. 209 210If any portion of this section is held invalid or unenforceable under 211any particular circumstance, the balance of the section is intended to 212apply and the section as a whole is intended to apply in other 213circumstances. 214 215It is not the purpose of this section to induce you to infringe any 216patents or other property right claims or to contest validity of any 217such claims; this section has the sole purpose of protecting the 218integrity of the free software distribution system, which is 219implemented by public license practices. Many people have made 220generous contributions to the wide range of software distributed 221through that system in reliance on consistent application of that 222system; it is up to the author/donor to decide if he or she is willing 223to distribute software through any other system and a licensee cannot 224impose that choice. 225 226This section is intended to make thoroughly clear what is believed to 227be a consequence of the rest of this License. 228 229 8. If the distribution and/or use of the Program is restricted in 230certain countries either by patents or by copyrighted interfaces, the 231original copyright holder who places the Program under this License 232may add an explicit geographical distribution limitation excluding 233those countries, so that distribution is permitted only in or among 234countries not thus excluded. In such case, this License incorporates 235the limitation as if written in the body of this License. 236 237 9. The Free Software Foundation may publish revised and/or new versions 238of the General Public License from time to time. Such new versions will 239be similar in spirit to the present version, but may differ in detail to 240address new problems or concerns. 241 242Each version is given a distinguishing version number. If the Program 243specifies a version number of this License which applies to it and "any 244later version", you have the option of following the terms and conditions 245either of that version or of any later version published by the Free 246Software Foundation. If the Program does not specify a version number of 247this License, you may choose any version ever published by the Free Software 248Foundation. 249 250 10. If you wish to incorporate parts of the Program into other free 251programs whose distribution conditions are different, write to the author 252to ask for permission. For software which is copyrighted by the Free 253Software Foundation, write to the Free Software Foundation; we sometimes 254make exceptions for this. Our decision will be guided by the two goals 255of preserving the free status of all derivatives of our free software and 256of promoting the sharing and reuse of software generally. 257 258 NO WARRANTY 259 260 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268REPAIR OR CORRECTION. 269 270 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278POSSIBILITY OF SUCH DAMAGES. 279 280 END OF TERMS AND CONDITIONS 281 282 How to Apply These Terms to Your New Programs 283 284 If you develop a new program, and you want it to be of the greatest 285possible use to the public, the best way to achieve this is to make it 286free software which everyone can redistribute and change under these terms. 287 288 To do so, attach the following notices to the program. It is safest 289to attach them to the start of each source file to most effectively 290convey the exclusion of warranty; and each file should have at least 291the "copyright" line and a pointer to where the full notice is found. 292 293 <one line to give the program's name and a brief idea of what it does.> 294 Copyright (C) <year> <name of author> 295 296 This program is free software; you can redistribute it and/or modify 297 it under the terms of the GNU General Public License as published by 298 the Free Software Foundation; either version 2 of the License, or 299 (at your option) any later version. 300 301 This program is distributed in the hope that it will be useful, 302 but WITHOUT ANY WARRANTY; without even the implied warranty of 303 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 GNU General Public License for more details. 305 306 You should have received a copy of the GNU General Public License along 307 with this program; if not, write to the Free Software Foundation, Inc., 308 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 310Also add information on how to contact you by electronic and paper mail. 311 312If the program is interactive, make it output a short notice like this 313when it starts in an interactive mode: 314 315 Gnomovision version 69, Copyright (C) year name of author 316 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 This is free software, and you are welcome to redistribute it 318 under certain conditions; type `show c' for details. 319 320The hypothetical commands `show w' and `show c' should show the appropriate 321parts of the General Public License. Of course, the commands you use may 322be called something other than `show w' and `show c'; they could even be 323mouse-clicks or menu items--whatever suits your program. 324 325You should also get your employer (if you work as a programmer) or your 326school, if any, to sign a "copyright disclaimer" for the program, if 327necessary. Here is a sample; alter the names: 328 329 Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 332 <signature of Ty Coon>, 1 April 1989 333 Ty Coon, President of Vice 334 335This General Public License does not permit incorporating your program into 336proprietary programs. If your program is a subroutine library, you may 337consider it more useful to permit linking proprietary applications with the 338library. If this is what you want to do, use the GNU Lesser General 339Public License instead of this License. 340 341--- 342 343Files: util/git-hooks/commit-msg 344 345 Apache License 346 Version 2.0, January 2004 347 http://www.apache.org/licenses/ 348 349 TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 350 351 1. Definitions. 352 353 "License" shall mean the terms and conditions for use, reproduction, 354 and distribution as defined by Sections 1 through 9 of this document. 355 356 "Licensor" shall mean the copyright owner or entity authorized by 357 the copyright owner that is granting the License. 358 359 "Legal Entity" shall mean the union of the acting entity and all 360 other entities that control, are controlled by, or are under common 361 control with that entity. For the purposes of this definition, 362 "control" means (i) the power, direct or indirect, to cause the 363 direction or management of such entity, whether by contract or 364 otherwise, or (ii) ownership of fifty percent (50%) or more of the 365 outstanding shares, or (iii) beneficial ownership of such entity. 366 367 "You" (or "Your") shall mean an individual or Legal Entity 368 exercising permissions granted by this License. 369 370 "Source" form shall mean the preferred form for making modifications, 371 including but not limited to software source code, documentation 372 source, and configuration files. 373 374 "Object" form shall mean any form resulting from mechanical 375 transformation or translation of a Source form, including but 376 not limited to compiled object code, generated documentation, 377 and conversions to other media types. 378 379 "Work" shall mean the work of authorship, whether in Source or 380 Object form, made available under the License, as indicated by a 381 copyright notice that is included in or attached to the work 382 (an example is provided in the Appendix below). 383 384 "Derivative Works" shall mean any work, whether in Source or Object 385 form, that is based on (or derived from) the Work and for which the 386 editorial revisions, annotations, elaborations, or other modifications 387 represent, as a whole, an original work of authorship. For the purposes 388 of this License, Derivative Works shall not include works that remain 389 separable from, or merely link (or bind by name) to the interfaces of, 390 the Work and Derivative Works thereof. 391 392 "Contribution" shall mean any work of authorship, including 393 the original version of the Work and any modifications or additions 394 to that Work or Derivative Works thereof, that is intentionally 395 submitted to Licensor for inclusion in the Work by the copyright owner 396 or by an individual or Legal Entity authorized to submit on behalf of 397 the copyright owner. For the purposes of this definition, "submitted" 398 means any form of electronic, verbal, or written communication sent 399 to the Licensor or its representatives, including but not limited to 400 communication on electronic mailing lists, source code control systems, 401 and issue tracking systems that are managed by, or on behalf of, the 402 Licensor for the purpose of discussing and improving the Work, but 403 excluding communication that is conspicuously marked or otherwise 404 designated in writing by the copyright owner as "Not a Contribution." 405 406 "Contributor" shall mean Licensor and any individual or Legal Entity 407 on behalf of whom a Contribution has been received by Licensor and 408 subsequently incorporated within the Work. 409 410 2. Grant of Copyright License. Subject to the terms and conditions of 411 this License, each Contributor hereby grants to You a perpetual, 412 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 413 copyright license to reproduce, prepare Derivative Works of, 414 publicly display, publicly perform, sublicense, and distribute the 415 Work and such Derivative Works in Source or Object form. 416 417 3. Grant of Patent License. Subject to the terms and conditions of 418 this License, each Contributor hereby grants to You a perpetual, 419 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 420 (except as stated in this section) patent license to make, have made, 421 use, offer to sell, sell, import, and otherwise transfer the Work, 422 where such license applies only to those patent claims licensable 423 by such Contributor that are necessarily infringed by their 424 Contribution(s) alone or by combination of their Contribution(s) 425 with the Work to which such Contribution(s) was submitted. If You 426 institute patent litigation against any entity (including a 427 cross-claim or counterclaim in a lawsuit) alleging that the Work 428 or a Contribution incorporated within the Work constitutes direct 429 or contributory patent infringement, then any patent licenses 430 granted to You under this License for that Work shall terminate 431 as of the date such litigation is filed. 432 433 4. Redistribution. You may reproduce and distribute copies of the 434 Work or Derivative Works thereof in any medium, with or without 435 modifications, and in Source or Object form, provided that You 436 meet the following conditions: 437 438 (a) You must give any other recipients of the Work or 439 Derivative Works a copy of this License; and 440 441 (b) You must cause any modified files to carry prominent notices 442 stating that You changed the files; and 443 444 (c) You must retain, in the Source form of any Derivative Works 445 that You distribute, all copyright, patent, trademark, and 446 attribution notices from the Source form of the Work, 447 excluding those notices that do not pertain to any part of 448 the Derivative Works; and 449 450 (d) If the Work includes a "NOTICE" text file as part of its 451 distribution, then any Derivative Works that You distribute must 452 include a readable copy of the attribution notices contained 453 within such NOTICE file, excluding those notices that do not 454 pertain to any part of the Derivative Works, in at least one 455 of the following places: within a NOTICE text file distributed 456 as part of the Derivative Works; within the Source form or 457 documentation, if provided along with the Derivative Works; or, 458 within a display generated by the Derivative Works, if and 459 wherever such third-party notices normally appear. The contents 460 of the NOTICE file are for informational purposes only and 461 do not modify the License. You may add Your own attribution 462 notices within Derivative Works that You distribute, alongside 463 or as an addendum to the NOTICE text from the Work, provided 464 that such additional attribution notices cannot be construed 465 as modifying the License. 466 467 You may add Your own copyright statement to Your modifications and 468 may provide additional or different license terms and conditions 469 for use, reproduction, or distribution of Your modifications, or 470 for any such Derivative Works as a whole, provided Your use, 471 reproduction, and distribution of the Work otherwise complies with 472 the conditions stated in this License. 473 474 5. Submission of Contributions. Unless You explicitly state otherwise, 475 any Contribution intentionally submitted for inclusion in the Work 476 by You to the Licensor shall be under the terms and conditions of 477 this License, without any additional terms or conditions. 478 Notwithstanding the above, nothing herein shall supersede or modify 479 the terms of any separate license agreement you may have executed 480 with Licensor regarding such Contributions. 481 482 6. Trademarks. This License does not grant permission to use the trade 483 names, trademarks, service marks, or product names of the Licensor, 484 except as required for reasonable and customary use in describing the 485 origin of the Work and reproducing the content of the NOTICE file. 486 487 7. Disclaimer of Warranty. Unless required by applicable law or 488 agreed to in writing, Licensor provides the Work (and each 489 Contributor provides its Contributions) on an "AS IS" BASIS, 490 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 491 implied, including, without limitation, any warranties or conditions 492 of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 493 PARTICULAR PURPOSE. You are solely responsible for determining the 494 appropriateness of using or redistributing the Work and assume any 495 risks associated with Your exercise of permissions under this License. 496 497 8. Limitation of Liability. In no event and under no legal theory, 498 whether in tort (including negligence), contract, or otherwise, 499 unless required by applicable law (such as deliberate and grossly 500 negligent acts) or agreed to in writing, shall any Contributor be 501 liable to You for damages, including any direct, indirect, special, 502 incidental, or consequential damages of any character arising as a 503 result of this License or out of the use or inability to use the 504 Work (including but not limited to damages for loss of goodwill, 505 work stoppage, computer failure or malfunction, or any and all 506 other commercial damages or losses), even if such Contributor 507 has been advised of the possibility of such damages. 508 509 9. Accepting Warranty or Additional Liability. While redistributing 510 the Work or Derivative Works thereof, You may choose to offer, 511 and charge a fee for, acceptance of support, warranty, indemnity, 512 or other liability obligations and/or rights consistent with this 513 License. However, in accepting such obligations, You may act only 514 on Your own behalf and on Your sole responsibility, not on behalf 515 of any other Contributor, and only if You agree to indemnify, 516 defend, and hold each Contributor harmless for any liability 517 incurred by, or claims asserted against, such Contributor by reason 518 of your accepting any such warranty or additional liability. 519 520 END OF TERMS AND CONDITIONS 521 522 APPENDIX: How to apply the Apache License to your work. 523 524 To apply the Apache License to your work, attach the following 525 boilerplate notice, with the fields enclosed by brackets "[]" 526 replaced with your own identifying information. (Don't include 527 the brackets!) The text should be enclosed in the appropriate 528 comment syntax for the file format. We also recommend that a 529 file or class name and description of purpose be included on the 530 same "printed page" as the copyright notice for easier 531 identification within third-party archives. 532 533 Copyright (C) 2017 Stefan Tauner 534 535 Licensed under the Apache License, Version 2.0 (the "License"); 536 you may not use this file except in compliance with the License. 537 You may obtain a copy of the License at 538 539 http://www.apache.org/licenses/LICENSE-2.0 540 541 Unless required by applicable law or agreed to in writing, software 542 distributed under the License is distributed on an "AS IS" BASIS, 543 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 544 See the License for the specific language governing permissions and 545 limitations under the License. 546 547--- 548 549Files: 550 big_lock.c 551 big_lock.h 552 cros_ec.c 553 file_lock.c 554 fmap.c 555 include/fmap.h 556 ipc_lock.h 557 raiden_debug_spi.c 558 tests/io_mock.h 559 util/flashrom_tester/* 560 561BSD 3-Clause License 562 563Copyright (c) 2012, Google Inc. 564 565Redistribution and use in source and binary forms, with or without 566modification, are permitted provided that the following conditions are met: 567 5681. Redistributions of source code must retain the above copyright notice, this 569 list of conditions and the following disclaimer. 570 5712. Redistributions in binary form must reproduce the above copyright notice, 572 this list of conditions and the following disclaimer in the documentation 573 and/or other materials provided with the distribution. 574 5753. Neither the name of the copyright holder nor the names of its 576 contributors may be used to endorse or promote products derived from 577 this software without specific prior written permission. 578 579THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 580AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 581IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 582DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 583FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 584DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 585SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 586CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 587OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 588OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 589 590--- 591 592Files: doc/* 593 594Attribution 4.0 International 595 596======================================================================= 597 598Creative Commons Corporation ("Creative Commons") is not a law firm and 599does not provide legal services or legal advice. Distribution of 600Creative Commons public licenses does not create a lawyer-client or 601other relationship. Creative Commons makes its licenses and related 602information available on an "as-is" basis. Creative Commons gives no 603warranties regarding its licenses, any material licensed under their 604terms and conditions, or any related information. Creative Commons 605disclaims all liability for damages resulting from their use to the 606fullest extent possible. 607 608Using Creative Commons Public Licenses 609 610Creative Commons public licenses provide a standard set of terms and 611conditions that creators and other rights holders may use to share 612original works of authorship and other material subject to copyright 613and certain other rights specified in the public license below. The 614following considerations are for informational purposes only, are not 615exhaustive, and do not form part of our licenses. 616 617 Considerations for licensors: Our public licenses are 618 intended for use by those authorized to give the public 619 permission to use material in ways otherwise restricted by 620 copyright and certain other rights. Our licenses are 621 irrevocable. Licensors should read and understand the terms 622 and conditions of the license they choose before applying it. 623 Licensors should also secure all rights necessary before 624 applying our licenses so that the public can reuse the 625 material as expected. Licensors should clearly mark any 626 material not subject to the license. This includes other CC- 627 licensed material, or material used under an exception or 628 limitation to copyright. More considerations for licensors: 629 wiki.creativecommons.org/Considerations_for_licensors 630 631 Considerations for the public: By using one of our public 632 licenses, a licensor grants the public permission to use the 633 licensed material under specified terms and conditions. If 634 the licensor's permission is not necessary for any reason--for 635 example, because of any applicable exception or limitation to 636 copyright--then that use is not regulated by the license. Our 637 licenses grant only permissions under copyright and certain 638 other rights that a licensor has authority to grant. Use of 639 the licensed material may still be restricted for other 640 reasons, including because others have copyright or other 641 rights in the material. A licensor may make special requests, 642 such as asking that all changes be marked or described. 643 Although not required by our licenses, you are encouraged to 644 respect those requests where reasonable. More considerations 645 for the public: 646 wiki.creativecommons.org/Considerations_for_licensees 647 648======================================================================= 649 650Creative Commons Attribution 4.0 International Public License 651 652By exercising the Licensed Rights (defined below), You accept and agree 653to be bound by the terms and conditions of this Creative Commons 654Attribution 4.0 International Public License ("Public License"). To the 655extent this Public License may be interpreted as a contract, You are 656granted the Licensed Rights in consideration of Your acceptance of 657these terms and conditions, and the Licensor grants You such rights in 658consideration of benefits the Licensor receives from making the 659Licensed Material available under these terms and conditions. 660 661 662Section 1 -- Definitions. 663 664 a. Adapted Material means material subject to Copyright and Similar 665 Rights that is derived from or based upon the Licensed Material 666 and in which the Licensed Material is translated, altered, 667 arranged, transformed, or otherwise modified in a manner requiring 668 permission under the Copyright and Similar Rights held by the 669 Licensor. For purposes of this Public License, where the Licensed 670 Material is a musical work, performance, or sound recording, 671 Adapted Material is always produced where the Licensed Material is 672 synched in timed relation with a moving image. 673 674 b. Adapter's License means the license You apply to Your Copyright 675 and Similar Rights in Your contributions to Adapted Material in 676 accordance with the terms and conditions of this Public License. 677 678 c. Copyright and Similar Rights means copyright and/or similar rights 679 closely related to copyright including, without limitation, 680 performance, broadcast, sound recording, and Sui Generis Database 681 Rights, without regard to how the rights are labeled or 682 categorized. For purposes of this Public License, the rights 683 specified in Section 2(b)(1)-(2) are not Copyright and Similar 684 Rights. 685 686 d. Effective Technological Measures means those measures that, in the 687 absence of proper authority, may not be circumvented under laws 688 fulfilling obligations under Article 11 of the WIPO Copyright 689 Treaty adopted on December 20, 1996, and/or similar international 690 agreements. 691 692 e. Exceptions and Limitations means fair use, fair dealing, and/or 693 any other exception or limitation to Copyright and Similar Rights 694 that applies to Your use of the Licensed Material. 695 696 f. Licensed Material means the artistic or literary work, database, 697 or other material to which the Licensor applied this Public 698 License. 699 700 g. Licensed Rights means the rights granted to You subject to the 701 terms and conditions of this Public License, which are limited to 702 all Copyright and Similar Rights that apply to Your use of the 703 Licensed Material and that the Licensor has authority to license. 704 705 h. Licensor means the individual(s) or entity(ies) granting rights 706 under this Public License. 707 708 i. Share means to provide material to the public by any means or 709 process that requires permission under the Licensed Rights, such 710 as reproduction, public display, public performance, distribution, 711 dissemination, communication, or importation, and to make material 712 available to the public including in ways that members of the 713 public may access the material from a place and at a time 714 individually chosen by them. 715 716 j. Sui Generis Database Rights means rights other than copyright 717 resulting from Directive 96/9/EC of the European Parliament and of 718 the Council of 11 March 1996 on the legal protection of databases, 719 as amended and/or succeeded, as well as other essentially 720 equivalent rights anywhere in the world. 721 722 k. You means the individual or entity exercising the Licensed Rights 723 under this Public License. Your has a corresponding meaning. 724 725 726Section 2 -- Scope. 727 728 a. License grant. 729 730 1. Subject to the terms and conditions of this Public License, 731 the Licensor hereby grants You a worldwide, royalty-free, 732 non-sublicensable, non-exclusive, irrevocable license to 733 exercise the Licensed Rights in the Licensed Material to: 734 735 a. reproduce and Share the Licensed Material, in whole or 736 in part; and 737 738 b. produce, reproduce, and Share Adapted Material. 739 740 2. Exceptions and Limitations. For the avoidance of doubt, where 741 Exceptions and Limitations apply to Your use, this Public 742 License does not apply, and You do not need to comply with 743 its terms and conditions. 744 745 3. Term. The term of this Public License is specified in Section 746 6(a). 747 748 4. Media and formats; technical modifications allowed. The 749 Licensor authorizes You to exercise the Licensed Rights in 750 all media and formats whether now known or hereafter created, 751 and to make technical modifications necessary to do so. The 752 Licensor waives and/or agrees not to assert any right or 753 authority to forbid You from making technical modifications 754 necessary to exercise the Licensed Rights, including 755 technical modifications necessary to circumvent Effective 756 Technological Measures. For purposes of this Public License, 757 simply making modifications authorized by this Section 2(a) 758 (4) never produces Adapted Material. 759 760 5. Downstream recipients. 761 762 a. Offer from the Licensor -- Licensed Material. Every 763 recipient of the Licensed Material automatically 764 receives an offer from the Licensor to exercise the 765 Licensed Rights under the terms and conditions of this 766 Public License. 767 768 b. No downstream restrictions. You may not offer or impose 769 any additional or different terms or conditions on, or 770 apply any Effective Technological Measures to, the 771 Licensed Material if doing so restricts exercise of the 772 Licensed Rights by any recipient of the Licensed 773 Material. 774 775 6. No endorsement. Nothing in this Public License constitutes or 776 may be construed as permission to assert or imply that You 777 are, or that Your use of the Licensed Material is, connected 778 with, or sponsored, endorsed, or granted official status by, 779 the Licensor or others designated to receive attribution as 780 provided in Section 3(a)(1)(A)(i). 781 782 b. Other rights. 783 784 1. Moral rights, such as the right of integrity, are not 785 licensed under this Public License, nor are publicity, 786 privacy, and/or other similar personality rights; however, to 787 the extent possible, the Licensor waives and/or agrees not to 788 assert any such rights held by the Licensor to the limited 789 extent necessary to allow You to exercise the Licensed 790 Rights, but not otherwise. 791 792 2. Patent and trademark rights are not licensed under this 793 Public License. 794 795 3. To the extent possible, the Licensor waives any right to 796 collect royalties from You for the exercise of the Licensed 797 Rights, whether directly or through a collecting society 798 under any voluntary or waivable statutory or compulsory 799 licensing scheme. In all other cases the Licensor expressly 800 reserves any right to collect such royalties. 801 802 803Section 3 -- License Conditions. 804 805Your exercise of the Licensed Rights is expressly made subject to the 806following conditions. 807 808 a. Attribution. 809 810 1. If You Share the Licensed Material (including in modified 811 form), You must: 812 813 a. retain the following if it is supplied by the Licensor 814 with the Licensed Material: 815 816 i. identification of the creator(s) of the Licensed 817 Material and any others designated to receive 818 attribution, in any reasonable manner requested by 819 the Licensor (including by pseudonym if 820 designated); 821 822 ii. a copyright notice; 823 824 iii. a notice that refers to this Public License; 825 826 iv. a notice that refers to the disclaimer of 827 warranties; 828 829 v. a URI or hyperlink to the Licensed Material to the 830 extent reasonably practicable; 831 832 b. indicate if You modified the Licensed Material and 833 retain an indication of any previous modifications; and 834 835 c. indicate the Licensed Material is licensed under this 836 Public License, and include the text of, or the URI or 837 hyperlink to, this Public License. 838 839 2. You may satisfy the conditions in Section 3(a)(1) in any 840 reasonable manner based on the medium, means, and context in 841 which You Share the Licensed Material. For example, it may be 842 reasonable to satisfy the conditions by providing a URI or 843 hyperlink to a resource that includes the required 844 information. 845 846 3. If requested by the Licensor, You must remove any of the 847 information required by Section 3(a)(1)(A) to the extent 848 reasonably practicable. 849 850 4. If You Share Adapted Material You produce, the Adapter's 851 License You apply must not prevent recipients of the Adapted 852 Material from complying with this Public License. 853 854 855Section 4 -- Sui Generis Database Rights. 856 857Where the Licensed Rights include Sui Generis Database Rights that 858apply to Your use of the Licensed Material: 859 860 a. for the avoidance of doubt, Section 2(a)(1) grants You the right 861 to extract, reuse, reproduce, and Share all or a substantial 862 portion of the contents of the database; 863 864 b. if You include all or a substantial portion of the database 865 contents in a database in which You have Sui Generis Database 866 Rights, then the database in which You have Sui Generis Database 867 Rights (but not its individual contents) is Adapted Material; and 868 869 c. You must comply with the conditions in Section 3(a) if You Share 870 all or a substantial portion of the contents of the database. 871 872For the avoidance of doubt, this Section 4 supplements and does not 873replace Your obligations under this Public License where the Licensed 874Rights include other Copyright and Similar Rights. 875 876 877Section 5 -- Disclaimer of Warranties and Limitation of Liability. 878 879 a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE 880 EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS 881 AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF 882 ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, 883 IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, 884 WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR 885 PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, 886 ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT 887 KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT 888 ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. 889 890 b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE 891 TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, 892 NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, 893 INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, 894 COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR 895 USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN 896 ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR 897 DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR 898 IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. 899 900 c. The disclaimer of warranties and limitation of liability provided 901 above shall be interpreted in a manner that, to the extent 902 possible, most closely approximates an absolute disclaimer and 903 waiver of all liability. 904 905 906Section 6 -- Term and Termination. 907 908 a. This Public License applies for the term of the Copyright and 909 Similar Rights licensed here. However, if You fail to comply with 910 this Public License, then Your rights under this Public License 911 terminate automatically. 912 913 b. Where Your right to use the Licensed Material has terminated under 914 Section 6(a), it reinstates: 915 916 1. automatically as of the date the violation is cured, provided 917 it is cured within 30 days of Your discovery of the 918 violation; or 919 920 2. upon express reinstatement by the Licensor. 921 922 For the avoidance of doubt, this Section 6(b) does not affect any 923 right the Licensor may have to seek remedies for Your violations 924 of this Public License. 925 926 c. For the avoidance of doubt, the Licensor may also offer the 927 Licensed Material under separate terms or conditions or stop 928 distributing the Licensed Material at any time; however, doing so 929 will not terminate this Public License. 930 931 d. Sections 1, 5, 6, 7, and 8 survive termination of this Public 932 License. 933 934 935Section 7 -- Other Terms and Conditions. 936 937 a. The Licensor shall not be bound by any additional or different 938 terms or conditions communicated by You unless expressly agreed. 939 940 b. Any arrangements, understandings, or agreements regarding the 941 Licensed Material not stated herein are separate from and 942 independent of the terms and conditions of this Public License. 943 944 945Section 8 -- Interpretation. 946 947 a. For the avoidance of doubt, this Public License does not, and 948 shall not be interpreted to, reduce, limit, restrict, or impose 949 conditions on any use of the Licensed Material that could lawfully 950 be made without permission under this Public License. 951 952 b. To the extent possible, if any provision of this Public License is 953 deemed unenforceable, it shall be automatically reformed to the 954 minimum extent necessary to make it enforceable. If the provision 955 cannot be reformed, it shall be severed from this Public License 956 without affecting the enforceability of the remaining terms and 957 conditions. 958 959 c. No term or condition of this Public License will be waived and no 960 failure to comply consented to unless expressly agreed to by the 961 Licensor. 962 963 d. Nothing in this Public License constitutes or may be interpreted 964 as a limitation upon, or waiver of, any privileges and immunities 965 that apply to the Licensor or You, including from the legal 966 processes of any jurisdiction or authority. 967 968 969======================================================================= 970 971Creative Commons is not a party to its public 972licenses. Notwithstanding, Creative Commons may elect to apply one of 973its public licenses to material it publishes and in those instances 974will be considered the “Licensor.” The text of the Creative Commons 975public licenses is dedicated to the public domain under the CC0 Public 976Domain Dedication. Except for the limited purpose of indicating that 977material is shared under a Creative Commons public license or as 978otherwise permitted by the Creative Commons policies published at 979creativecommons.org/policies, Creative Commons does not authorize the 980use of the trademark "Creative Commons" or any other trademark or logo 981of Creative Commons without its prior written consent including, 982without limitation, in connection with any unauthorized modifications 983to any of its public licenses or any other arrangements, 984understandings, or agreements concerning use of licensed material. For 985the avoidance of doubt, this paragraph does not form part of the 986public licenses. 987 988Creative Commons may be contacted at creativecommons.org. 989 990--- 991 992Files: cli_getopt.c 993 994MIT License 995 996Copyringht (C) 2023 Rich Felker and the musl authors 997Adjusted for flashrom by Thomas Heijligen<[email protected]> 998 999Permission is hereby granted, free of charge, to any person obtaining a copy 1000of this software and associated documentation files (the "Software"), to deal 1001in the Software without restriction, including without limitation the rights 1002to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 1003copies of the Software, and to permit persons to whom the Software is 1004furnished to do so, subject to the following conditions: 1005 1006The above copyright notice and this permission notice shall be included in all 1007copies or substantial portions of the Software. 1008 1009THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1010IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1011FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1012AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1013LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 1014OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 1015SOFTWARE. 1016