LICENSE 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726
  1. Apache License
  2. Version 2.0, January 2004
  3. http://www.apache.org/licenses/
  4. TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
  5. 1. Definitions.
  6. "License" shall mean the terms and conditions for use, reproduction,
  7. and distribution as defined by Sections 1 through 9 of this document.
  8. "Licensor" shall mean the copyright owner or entity authorized by
  9. the copyright owner that is granting the License.
  10. "Legal Entity" shall mean the union of the acting entity and all
  11. other entities that control, are controlled by, or are under common
  12. control with that entity. For the purposes of this definition,
  13. "control" means (i) the power, direct or indirect, to cause the
  14. direction or management of such entity, whether by contract or
  15. otherwise, or (ii) ownership of fifty percent (50%) or more of the
  16. outstanding shares, or (iii) beneficial ownership of such entity.
  17. "You" (or "Your") shall mean an individual or Legal Entity
  18. exercising permissions granted by this License.
  19. "Source" form shall mean the preferred form for making modifications,
  20. including but not limited to software source code, documentation
  21. source, and configuration files.
  22. "Object" form shall mean any form resulting from mechanical
  23. transformation or translation of a Source form, including but
  24. not limited to compiled object code, generated documentation,
  25. and conversions to other media types.
  26. "Work" shall mean the work of authorship, whether in Source or
  27. Object form, made available under the License, as indicated by a
  28. copyright notice that is included in or attached to the work
  29. (an example is provided in the Appendix below).
  30. "Derivative Works" shall mean any work, whether in Source or Object
  31. form, that is based on (or derived from) the Work and for which the
  32. editorial revisions, annotations, elaborations, or other modifications
  33. represent, as a whole, an original work of authorship. For the purposes
  34. of this License, Derivative Works shall not include works that remain
  35. separable from, or merely link (or bind by name) to the interfaces of,
  36. the Work and Derivative Works thereof.
  37. "Contribution" shall mean any work of authorship, including
  38. the original version of the Work and any modifications or additions
  39. to that Work or Derivative Works thereof, that is intentionally
  40. submitted to Licensor for inclusion in the Work by the copyright owner
  41. or by an individual or Legal Entity authorized to submit on behalf of
  42. the copyright owner. For the purposes of this definition, "submitted"
  43. means any form of electronic, verbal, or written communication sent
  44. to the Licensor or its representatives, including but not limited to
  45. communication on electronic mailing lists, source code control systems,
  46. and issue tracking systems that are managed by, or on behalf of, the
  47. Licensor for the purpose of discussing and improving the Work, but
  48. excluding communication that is conspicuously marked or otherwise
  49. designated in writing by the copyright owner as "Not a Contribution."
  50. "Contributor" shall mean Licensor and any individual or Legal Entity
  51. on behalf of whom a Contribution has been received by Licensor and
  52. subsequently incorporated within the Work.
  53. 2. Grant of Copyright License. Subject to the terms and conditions of
  54. this License, each Contributor hereby grants to You a perpetual,
  55. worldwide, non-exclusive, no-charge, royalty-free, irrevocable
  56. copyright license to reproduce, prepare Derivative Works of,
  57. publicly display, publicly perform, sublicense, and distribute the
  58. Work and such Derivative Works in Source or Object form.
  59. 3. Grant of Patent License. Subject to the terms and conditions of
  60. this License, each Contributor hereby grants to You a perpetual,
  61. worldwide, non-exclusive, no-charge, royalty-free, irrevocable
  62. (except as stated in this section) patent license to make, have made,
  63. use, offer to sell, sell, import, and otherwise transfer the Work,
  64. where such license applies only to those patent claims licensable
  65. by such Contributor that are necessarily infringed by their
  66. Contribution(s) alone or by combination of their Contribution(s)
  67. with the Work to which such Contribution(s) was submitted. If You
  68. institute patent litigation against any entity (including a
  69. cross-claim or counterclaim in a lawsuit) alleging that the Work
  70. or a Contribution incorporated within the Work constitutes direct
  71. or contributory patent infringement, then any patent licenses
  72. granted to You under this License for that Work shall terminate
  73. as of the date such litigation is filed.
  74. 4. Redistribution. You may reproduce and distribute copies of the
  75. Work or Derivative Works thereof in any medium, with or without
  76. modifications, and in Source or Object form, provided that You
  77. meet the following conditions:
  78. (a) You must give any other recipients of the Work or
  79. Derivative Works a copy of this License; and
  80. (b) You must cause any modified files to carry prominent notices
  81. stating that You changed the files; and
  82. (c) You must retain, in the Source form of any Derivative Works
  83. that You distribute, all copyright, patent, trademark, and
  84. attribution notices from the Source form of the Work,
  85. excluding those notices that do not pertain to any part of
  86. the Derivative Works; and
  87. (d) If the Work includes a "NOTICE" text file as part of its
  88. distribution, then any Derivative Works that You distribute must
  89. include a readable copy of the attribution notices contained
  90. within such NOTICE file, excluding those notices that do not
  91. pertain to any part of the Derivative Works, in at least one
  92. of the following places: within a NOTICE text file distributed
  93. as part of the Derivative Works; within the Source form or
  94. documentation, if provided along with the Derivative Works; or,
  95. within a display generated by the Derivative Works, if and
  96. wherever such third-party notices normally appear. The contents
  97. of the NOTICE file are for informational purposes only and
  98. do not modify the License. You may add Your own attribution
  99. notices within Derivative Works that You distribute, alongside
  100. or as an addendum to the NOTICE text from the Work, provided
  101. that such additional attribution notices cannot be construed
  102. as modifying the License.
  103. You may add Your own copyright statement to Your modifications and
  104. may provide additional or different license terms and conditions
  105. for use, reproduction, or distribution of Your modifications, or
  106. for any such Derivative Works as a whole, provided Your use,
  107. reproduction, and distribution of the Work otherwise complies with
  108. the conditions stated in this License.
  109. 5. Submission of Contributions. Unless You explicitly state otherwise,
  110. any Contribution intentionally submitted for inclusion in the Work
  111. by You to the Licensor shall be under the terms and conditions of
  112. this License, without any additional terms or conditions.
  113. Notwithstanding the above, nothing herein shall supersede or modify
  114. the terms of any separate license agreement you may have executed
  115. with Licensor regarding such Contributions.
  116. 6. Trademarks. This License does not grant permission to use the trade
  117. names, trademarks, service marks, or product names of the Licensor,
  118. except as required for reasonable and customary use in describing the
  119. origin of the Work and reproducing the content of the NOTICE file.
  120. 7. Disclaimer of Warranty. Unless required by applicable law or
  121. agreed to in writing, Licensor provides the Work (and each
  122. Contributor provides its Contributions) on an "AS IS" BASIS,
  123. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  124. implied, including, without limitation, any warranties or conditions
  125. of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
  126. PARTICULAR PURPOSE. You are solely responsible for determining the
  127. appropriateness of using or redistributing the Work and assume any
  128. risks associated with Your exercise of permissions under this License.
  129. 8. Limitation of Liability. In no event and under no legal theory,
  130. whether in tort (including negligence), contract, or otherwise,
  131. unless required by applicable law (such as deliberate and grossly
  132. negligent acts) or agreed to in writing, shall any Contributor be
  133. liable to You for damages, including any direct, indirect, special,
  134. incidental, or consequential damages of any character arising as a
  135. result of this License or out of the use or inability to use the
  136. Work (including but not limited to damages for loss of goodwill,
  137. work stoppage, computer failure or malfunction, or any and all
  138. other commercial damages or losses), even if such Contributor
  139. has been advised of the possibility of such damages.
  140. 9. Accepting Warranty or Additional Liability. While redistributing
  141. the Work or Derivative Works thereof, You may choose to offer,
  142. and charge a fee for, acceptance of support, warranty, indemnity,
  143. or other liability obligations and/or rights consistent with this
  144. License. However, in accepting such obligations, You may act only
  145. on Your own behalf and on Your sole responsibility, not on behalf
  146. of any other Contributor, and only if You agree to indemnify,
  147. defend, and hold each Contributor harmless for any liability
  148. incurred by, or claims asserted against, such Contributor by reason
  149. of your accepting any such warranty or additional liability.
  150. END OF TERMS AND CONDITIONS
  151. --------------------------------------------------------------------------------
  152. src/butil/third_party/dmg_fp: licensed under the following terms:
  153. The author of this software is David M. Gay.
  154. Copyright (c) 1991, 2000, 2001 by Lucent Technologies.
  155. Permission to use, copy, modify, and distribute this software for any
  156. purpose without fee is hereby granted, provided that this entire notice
  157. is included in all copies of any software which is or includes a copy
  158. or modification of this software and in all copies of the supporting
  159. documentation for such software.
  160. THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
  161. WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR LUCENT MAKES ANY
  162. REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
  163. OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
  164. --------------------------------------------------------------------------------
  165. src/butil/third_party/dynamic_annotations: licensed under the following terms:
  166. Copyright (c) 2008-2009, Google Inc.
  167. All rights reserved.
  168. Redistribution and use in source and binary forms, with or without
  169. modification, are permitted provided that the following conditions are
  170. met:
  171. * Redistributions of source code must retain the above copyright
  172. notice, this list of conditions and the following disclaimer.
  173. * Neither the name of Google Inc. nor the names of its
  174. contributors may be used to endorse or promote products derived from
  175. this software without specific prior written permission.
  176. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  177. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  178. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  179. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  180. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  181. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  182. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  183. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  184. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  185. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  186. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  187. ---
  188. Author: Kostya Serebryany
  189. --------------------------------------------------------------------------------
  190. src/butil/third_party/icu: licensed under the following terms:
  191. ICU License - ICU 1.8.1 and later
  192. COPYRIGHT AND PERMISSION NOTICE
  193. Copyright (c) 1995-2009 International Business Machines Corporation and others
  194. All rights reserved.
  195. Permission is hereby granted, free of charge, to any person obtaining
  196. a copy of this software and associated documentation files (the
  197. "Software"), to deal in the Software without restriction, including
  198. without limitation the rights to use, copy, modify, merge, publish,
  199. distribute, and/or sell copies of the Software, and to permit persons
  200. to whom the Software is furnished to do so, provided that the above
  201. copyright notice(s) and this permission notice appear in all copies of
  202. the Software and that both the above copyright notice(s) and this
  203. permission notice appear in supporting documentation.
  204. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  205. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  206. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
  207. OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
  208. HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY
  209. SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER
  210. RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
  211. CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  212. CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  213. Except as contained in this notice, the name of a copyright holder
  214. shall not be used in advertising or otherwise to promote the sale, use
  215. or other dealings in this Software without prior written authorization
  216. of the copyright holder.
  217. --------------------------------------------------------------------------------
  218. src/butil/third_party/modp_b64: licensed under the following terms:
  219. MODP_B64 - High performance base64 encoder/decoder
  220. Version 1.3 -- 17-Mar-2006
  221. http://modp.com/release/base64
  222. Copyright (c) 2005, 2006 Nick Galbreath -- nickg [at] modp [dot] com
  223. All rights reserved.
  224. Redistribution and use in source and binary forms, with or without
  225. modification, are permitted provided that the following conditions are
  226. met:
  227. Redistributions of source code must retain the above copyright
  228. notice, this list of conditions and the following disclaimer.
  229. Redistributions in binary form must reproduce the above copyright
  230. notice, this list of conditions and the following disclaimer in the
  231. documentation and/or other materials provided with the distribution.
  232. Neither the name of the modp.com nor the names of its
  233. contributors may be used to endorse or promote products derived from
  234. this software without specific prior written permission.
  235. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  236. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  237. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  238. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  239. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  240. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  241. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  242. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  243. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  244. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  245. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  246. --------------------------------------------------------------------------------
  247. src/butil/third_party/murmurhash3: MIT license
  248. MurmurHash3 was written by Austin Appleby, and is placed in the public
  249. domain. The author hereby disclaims copyright to this source code.
  250. Permission is hereby granted, free of charge, to any person obtaining a copy of this
  251. software and associated documentation files (the "Software"), to deal in the Software
  252. without restriction, including without limitation the rights to use, copy, modify,
  253. merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
  254. permit persons to whom the Software is furnished to do so, subject to the following
  255. conditions:
  256. The above copyright notice and this permission notice shall be included in all copies or
  257. substantial portions of the Software.
  258. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  259. INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  260. PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  261. LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
  262. OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  263. OTHER DEALINGS IN THE SOFTWARE.
  264. --------------------------------------------------------------------------------
  265. src/butil/third_party/rapidjson: MIT license
  266. Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
  267. Permission is hereby granted, free of charge, to any person obtaining a copy of this
  268. software and associated documentation files (the "Software"), to deal in the Software
  269. without restriction, including without limitation the rights to use, copy, modify,
  270. merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
  271. permit persons to whom the Software is furnished to do so, subject to the following
  272. conditions:
  273. The above copyright notice and this permission notice shall be included in all copies or
  274. substantial portions of the Software.
  275. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  276. INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  277. PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  278. LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
  279. OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  280. OTHER DEALINGS IN THE SOFTWARE.
  281. --------------------------------------------------------------------------------
  282. src/butil/third_party/superfasthash: licensed under the following terms:
  283. Paul Hsieh OLD BSD license
  284. Copyright (c) 2010, Paul Hsieh
  285. All rights reserved.
  286. Redistribution and use in source and binary forms, with or without modification,
  287. are permitted provided that the following conditions are met:
  288. * Redistributions of source code must retain the above copyright notice, this
  289. list of conditions and the following disclaimer.
  290. * Redistributions in binary form must reproduce the above copyright notice, this
  291. list of conditions and the following disclaimer in the documentation and/or
  292. other materials provided with the distribution.
  293. * Neither my name, Paul Hsieh, nor the names of any other contributors to the
  294. code use may not be used to endorse or promote products derived from this
  295. software without specific prior written permission.
  296. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  297. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  298. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  299. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
  300. ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  301. (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  302. LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  303. ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  304. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  305. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  306. --------------------------------------------------------------------------------
  307. src/butil/third_party/valgrind/valgrind.h: licensed under the following terms:
  308. This file is part of Valgrind, a dynamic binary instrumentation
  309. framework.
  310. Copyright (C) 2000-2008 Julian Seward. All rights reserved.
  311. Redistribution and use in source and binary forms, with or without
  312. modification, are permitted provided that the following conditions
  313. are met:
  314. 1. Redistributions of source code must retain the above copyright
  315. notice, this list of conditions and the following disclaimer.
  316. 2. The origin of this software must not be misrepresented; you must
  317. not claim that you wrote the original software. If you use this
  318. software in a product, an acknowledgment in the product
  319. documentation would be appreciated but is not required.
  320. 3. Altered source versions must be plainly marked as such, and must
  321. not be misrepresented as being the original software.
  322. 4. The name of the author may not be used to endorse or promote
  323. products derived from this software without specific prior written
  324. permission.
  325. THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
  326. OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  327. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  328. ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
  329. DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  330. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  331. GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  332. INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  333. WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  334. NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  335. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  336. --------------------------------------------------------------------------------
  337. src/butil/crc32c.h, src/butil/crc32c.cc: licensed under the following terms:
  338. Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
  339. This source code is licensed under the BSD-style license found in the
  340. LICENSE file in the root directory of this source tree. An additional grant
  341. of patent rights can be found in the PATENTS file in the same directory.
  342. Copyright (c) 2011 The LevelDB Authors. All rights reserved.
  343. Use of this source code is governed by a BSD-style license that can be
  344. found in the LICENSE file. See the AUTHORS file for names of contributors.
  345. --------------------------------------------------------------------------------
  346. src/butil/unique_ptr.h: licensed under the following terms:
  347. Copyright 2009 Howard Hinnant, Ion Gaztañaga.
  348. Distributed under the Boost Software License, Version 1.0. (See
  349. accompanying file LICENSE_1_0.txt or copy at
  350. http://www.boost.org/LICENSE_1_0.txt)
  351. --------------------------------------------------------------------------------
  352. src/butil/intrusive_ptr.hpp: licensed under the following terms:
  353. Copyright (c) 2001, 2002 Peter Dimov
  354. Distributed under the Boost Software License, Version 1.0. (See
  355. accompanying file LICENSE_1_0.txt or copy at
  356. http://www.boost.org/LICENSE_1_0.txt)
  357. --------------------------------------------------------------------------------
  358. src/butil/string_printf.cpp: licensed under the following terms:
  359. Copyright 2012 Facebook, Inc.
  360. Licensed under the Apache License, Version 2.0 (the "License");
  361. you may not use this file except in compliance with the License.
  362. You may obtain a copy of the License at
  363. http://www.apache.org/licenses/LICENSE-2.0
  364. Unless required by applicable law or agreed to in writing, software
  365. distributed under the License is distributed on an "AS IS" BASIS,
  366. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  367. See the License for the specific language governing permissions and
  368. limitations under the License.
  369. --------------------------------------------------------------------------------
  370. src/butil/memory/scoped_array.h: 3-clause BSD
  371. Copyright (c) 2017, Tencent Inc.
  372. All rights reserved.
  373. Redistribution and use in source and binary forms, with or without
  374. modification, are permitted provided that the following conditions are met:
  375. * Redistributions of source code must retain the above copyright notice, this
  376. list of conditions and the following disclaimer.
  377. * Redistributions in binary form must reproduce the above copyright notice,
  378. this list of conditions and the following disclaimer in the documentation
  379. and/or other materials provided with the distribution.
  380. * Neither the name of the copyright holder nor the names of its
  381. contributors may be used to endorse or promote products derived from
  382. this software without specific prior written permission.
  383. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  384. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  385. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  386. DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
  387. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  388. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  389. SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  390. CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  391. OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  392. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  393. --------------------------------------------------------------------------------
  394. src/bthread/context.h, src/bthread/context.cpp: licensed under the following terms:
  395. libcontext - a slightly more portable version of boost::context
  396. Copyright Martin Husemann 2013.
  397. Copyright Oliver Kowalke 2009.
  398. Copyright Sergue E. Leontiev 2013.
  399. Copyright Thomas Sailer 2013.
  400. Minor modifications by Tomasz Wlostowski 2016.
  401. Distributed under the Boost Software License, Version 1.0.
  402. (See accompanying file LICENSE_1_0.txt or copy at
  403. http://www.boost.org/LICENSE_1_0.txt)
  404. --------------------------------------------------------------------------------
  405. src/brpc/details/tcmalloc_extension.h: 3-clause BSD
  406. Copyright (c) 2005, Google Inc.
  407. All rights reserved.
  408. Redistribution and use in source and binary forms, with or without
  409. modification, are permitted provided that the following conditions are
  410. met:
  411. * Redistributions of source code must retain the above copyright
  412. notice, this list of conditions and the following disclaimer.
  413. * Redistributions in binary form must reproduce the above
  414. copyright notice, this list of conditions and the following disclaimer
  415. in the documentation and/or other materials provided with the
  416. distribution.
  417. * Neither the name of Google Inc. nor the names of its
  418. contributors may be used to endorse or promote products derived from
  419. this software without specific prior written permission.
  420. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  421. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  422. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  423. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  424. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  425. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  426. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  427. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  428. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  429. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  430. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  431. --------------------------------------------------------------------------------
  432. src/brpc/details/http_parser.h, src/brpc/details/http_parser.cpp:
  433. licensed under the following terms:
  434. Based on src/http/ngx_http_parse.c from NGINX copyright Igor Sysoev
  435. Additional changes are licensed under the same terms as NGINX and
  436. copyright Joyent, Inc. and other Node contributors. All rights reserved.
  437. Permission is hereby granted, free of charge, to any person obtaining a copy
  438. of this software and associated documentation files (the "Software"), to
  439. deal in the Software without restriction, including without limitation the
  440. rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  441. sell copies of the Software, and to permit persons to whom the Software is
  442. furnished to do so, subject to the following conditions:
  443. The above copyright notice and this permission notice shall be included in
  444. all copies or substantial portions of the Software.
  445. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  446. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  447. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  448. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  449. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  450. FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  451. IN THE SOFTWARE.
  452. --------------------------------------------------------------------------------
  453. src/brpc/ts.h, src/brpc/ts.cpp, src/brpc/policy/dh.h, src/brpc/policy/dh.cpp: MIT license
  454. Copyright (c) 2013-2015 SRS(ossrs)
  455. Permission is hereby granted, free of charge, to any person obtaining a copy of
  456. this software and associated documentation files (the "Software"), to deal in
  457. the Software without restriction, including without limitation the rights to
  458. use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  459. the Software, and to permit persons to whom the Software is furnished to do so,
  460. subject to the following conditions:
  461. The above copyright notice and this permission notice shall be included in all
  462. copies or substantial portions of the Software.
  463. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  464. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  465. FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  466. COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  467. IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  468. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  469. --------------------------------------------------------------------------------
  470. src/brpc/builtin/pprof_perl.cpp: 3-clause BSD
  471. Copyright (c) 1998-2007, Google Inc.
  472. All rights reserved.
  473. Redistribution and use in source and binary forms, with or without
  474. modification, are permitted provided that the following conditions are
  475. met:
  476. * Redistributions of source code must retain the above copyright
  477. notice, this list of conditions and the following disclaimer.
  478. * Redistributions in binary form must reproduce the above
  479. copyright notice, this list of conditions and the following disclaimer
  480. in the documentation and/or other materials provided with the
  481. distribution.
  482. * Neither the name of Google Inc. nor the names of its
  483. contributors may be used to endorse or promote products derived from
  484. this software without specific prior written permission.
  485. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  486. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  487. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  488. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  489. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  490. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  491. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  492. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  493. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  494. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  495. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  496. --------------------------------------------------------------------------------
  497. src/brpc/builtin/flamegraph_perl.cpp: licensed under the following terms:
  498. Copyright 2016 Netflix, Inc.
  499. Copyright 2011 Joyent, Inc. All rights reserved.
  500. Copyright 2011 Brendan Gregg. All rights reserved.
  501. CDDL HEADER START
  502. The contents of this file are subject to the terms of the
  503. Common Development and Distribution License (the "License").
  504. You may not use this file except in compliance with the License.
  505. You can obtain a copy of the license at docs/cddl1.txt or
  506. http://opensource.org/licenses/CDDL-1.0.
  507. See the License for the specific language governing permissions
  508. and limitations under the License.
  509. When distributing Covered Code, include this CDDL HEADER in each
  510. file and include the License file at docs/cddl1.txt.
  511. If applicable, add the following below this CDDL HEADER, with the
  512. fields enclosed by brackets "[]" replaced with your own identifying
  513. information: Portions Copyright [yyyy] [name of copyright owner]
  514. CDDL HEADER END
  515. --------------------------------------------------------------------------------
  516. src/brpc/callback.h: 3-clause BSD
  517. Protocol Buffers - Google's data interchange format
  518. Copyright 2008 Google Inc. All rights reserved.
  519. http://code.google.com/p/protobuf/
  520. Redistribution and use in source and binary forms, with or without
  521. modification, are permitted provided that the following conditions are
  522. met:
  523. * Redistributions of source code must retain the above copyright
  524. notice, this list of conditions and the following disclaimer.
  525. * Redistributions in binary form must reproduce the above
  526. copyright notice, this list of conditions and the following disclaimer
  527. in the documentation and/or other materials provided with the
  528. distribution.
  529. * Neither the name of Google Inc. nor the names of its
  530. contributors may be used to endorse or promote products derived from
  531. this software without specific prior written permission.
  532. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  533. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  534. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  535. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  536. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  537. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  538. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  539. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  540. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  541. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  542. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  543. --------------------------------------------------------------------------------
  544. src/butil/(some files), test/(some files): 3-clause BSD
  545. Some portions of these files are derived from code in the Chromium project,
  546. copyright (c) Google inc and (c) The Chromium Authors and licensed under the
  547. 3-clause BSD license:
  548. Copyright (c) 2000 - 2014 The Chromium Authors. All rights reserved.
  549. Redistribution and use in source and binary forms, with or without
  550. modification, are permitted provided that the following conditions are
  551. met:
  552. * Redistributions of source code must retain the above copyright
  553. notice, this list of conditions and the following disclaimer.
  554. * Redistributions in binary form must reproduce the above
  555. copyright notice, this list of conditions and the following disclaimer
  556. in the documentation and/or other materials provided with the
  557. distribution.
  558. * Neither the name of Google Inc. nor the names of its
  559. contributors may be used to endorse or promote products derived from
  560. this software without specific prior written permission.
  561. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  562. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  563. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  564. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  565. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  566. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  567. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  568. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  569. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  570. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  571. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.