1 Copyright (C) 2016 The Android Open Source Project 2 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14 15 ================================================================================ 16 17 musl as a whole is licensed under the following standard MIT license: 18 19 ---------------------------------------------------------------------- 20 Copyright 2005-2014 Rich Felker, et al. 21 22 Permission is hereby granted, free of charge, to any person obtaining 23 a copy of this software and associated documentation files (the 24 "Software"), to deal in the Software without restriction, including 25 without limitation the rights to use, copy, modify, merge, publish, 26 distribute, sublicense, and/or sell copies of the Software, and to 27 permit persons to whom the Software is furnished to do so, subject to 28 the following conditions: 29 30 The above copyright notice and this permission notice shall be 31 included in all copies or substantial portions of the Software. 32 33 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 35 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 36 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 37 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 38 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 39 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 40 ---------------------------------------------------------------------- 41 42 Authors/contributors include: 43 44 Alexander Monakov 45 Anthony G. Basile 46 Arvid Picciani 47 Bobby Bingham 48 Boris Brezillon 49 Brent Cook 50 Chris Spiegel 51 Clment Vasseur 52 Denys Vlasenko 53 Emil Renner Berthing 54 Felix Fietkau 55 Felix Janda 56 Gianluca Anzolin 57 Hiltjo Posthuma 58 Isaac Dunham 59 Jens Gustedt 60 Jeremy Huntwork 61 Joakim Sindholt 62 John Spencer 63 Josiah Worcester 64 Justin Cormack 65 Luca Barbato 66 Luka Perkov 67 M Farkas-Dyck (Strake) 68 Michael Forney 69 Nicholas J. Kain 70 orc 71 Pascal Cuoq 72 Pierre Carrier 73 Rich Felker 74 Richard Pennington 75 sin 76 Solar Designer 77 Stefan Kristiansson 78 Szabolcs Nagy 79 Timo Ters 80 Trutz Behn 81 Valentin Ochs 82 William Haddon 83 84 Portions of this software are derived from third-party works licensed 85 under terms compatible with the above MIT license: 86 87 The TRE regular expression implementation (src/regex/reg* and 88 src/regex/tre*) is Copyright 2001-2008 Ville Laurikari and licensed 89 under a 2-clause BSD license (license text in the source files). The 90 included version has been heavily modified by Rich Felker in 2012, in 91 the interests of size, simplicity, and namespace cleanliness. 92 93 Much of the math library code (src/math/* and src/complex/*) is 94 Copyright 1993,2004 Sun Microsystems or 95 Copyright 2003-2011 David Schultz or 96 Copyright 2003-2009 Steven G. Kargl or 97 Copyright 2003-2009 Bruce D. Evans or 98 Copyright 2008 Stephen L. Moshier 99 and labelled as such in comments in the individual source files. All 100 have been licensed under extremely permissive terms. 101 102 The ARM memcpy code (src/string/armel/memcpy.s) is Copyright 2008 103 The Android Open Source Project and is licensed under a two-clause BSD 104 license. It was taken from Bionic libc, used on Android. 105 106 The implementation of DES for crypt (src/misc/crypt_des.c) is 107 Copyright 1994 David Burren. It is licensed under a BSD license. 108 109 The implementation of blowfish crypt (src/misc/crypt_blowfish.c) was 110 originally written by Solar Designer and placed into the public 111 domain. The code also comes with a fallback permissive license for use 112 in jurisdictions that may not recognize the public domain. 113 114 The smoothsort implementation (src/stdlib/qsort.c) is Copyright 2011 115 Valentin Ochs and is licensed under an MIT-style license. 116 117 The BSD PRNG implementation (src/prng/random.c) and XSI search API 118 (src/search/*.c) functions are Copyright 2011 Szabolcs Nagy and 119 licensed under following terms: "Permission to use, copy, modify, 120 and/or distribute this code for any purpose with or without fee is 121 hereby granted. There is no warranty." 122 123 The x86_64 port was written by Nicholas J. Kain. Several files (crt) 124 were released into the public domain; others are licensed under the 125 standard MIT license terms at the top of this file. See individual 126 files for their copyright status. 127 128 The mips and microblaze ports were originally written by Richard 129 Pennington for use in the ellcc project. The original code was adapted 130 by Rich Felker for build system and code conventions during upstream 131 integration. It is licensed under the standard MIT terms. 132 133 The powerpc port was also originally written by Richard Pennington, 134 and later supplemented and integrated by John Spencer. It is licensed 135 under the standard MIT terms. 136 137 All other files which have no copyright comments are original works 138 produced specifically for use as part of this library, written either 139 by Rich Felker, the main author of the library, or by one or more 140 contibutors listed above. Details on authorship of individual files 141 can be found in the git version control history of the project. The 142 omission of copyright and license comments in each file is in the 143 interest of source tree size. 144 145 All public header files (include/* and arch/*/bits/*) should be 146 treated as Public Domain as they intentionally contain no content 147 which can be covered by copyright. Some source modules may fall in 148 this category as well. If you believe that a file is so trivial that 149 it should be in the Public Domain, please contact the authors and 150 request an explicit statement releasing it from copyright. 151 152 The following files are trivial, believed not to be copyrightable in 153 the first place, and hereby explicitly released to the Public Domain: 154 155 All public headers: include/*, arch/*/bits/* 156 Startup files: crt/* 157