Makefile 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. # toolbox for OpenADK on memory-constrained NOMMU binfmt_flat systems
  2. # Copyright © 2017
  3. # mirabilos <m@mirbsd.org>
  4. # Derived from Android Toolbox
  5. # platform/system/core, as of commit efbf36f2dad8f083de6f48dbb682461d7cfa9781
  6. #
  7. # Provided that these terms and disclaimer and all copyright notices
  8. # are retained or reproduced in an accompanying document, permission
  9. # is granted to deal in this work without restriction, including un‐
  10. # limited rights to use, publicly perform, distribute, sell, modify,
  11. # merge, give away, or sublicence.
  12. #
  13. # This work is provided “AS IS” and WITHOUT WARRANTY of any kind, to
  14. # the utmost extent permitted by applicable law, neither express nor
  15. # implied; without malicious intent or gross negligence. In no event
  16. # may a licensor, author or contributor be held liable for indirect,
  17. # direct, other damage, loss, or other issues arising in any way out
  18. # of dealing in the work, even if advised of the possibility of such
  19. # damage or existence of a defect, except proven that it results out
  20. # of said person’s immediate fault when using the work as intended.
  21. #
  22. # Individual files are covered by their own licence notices, which are
  23. # also reproduced below (at the end of the top-level Makefile, this file).
  24. # Changes to those files done within the OpenADK toolbox and the build
  25. # system of the toolbox are published under Ⓕ The MirOS Licence as above.
  26. #
  27. # Summarising the licences used:
  28. # • 3-clause BSD
  29. # • ISC (OpenBSD)
  30. # • MirOS
  31. # • Public Domain
  32. SUBDIR+= lib
  33. SUBDIR+= cat
  34. SUBDIR+= chmod
  35. SUBDIR+= chown
  36. SUBDIR+= clear
  37. SUBDIR+= cmp
  38. SUBDIR+= cp
  39. SUBDIR+= date
  40. SUBDIR+= dd
  41. SUBDIR+= df
  42. SUBDIR+= dmesg
  43. SUBDIR+= du
  44. SUBDIR+= exists
  45. SUBDIR+= grep
  46. SUBDIR+= hd
  47. SUBDIR+= id
  48. SUBDIR+= ifconfig
  49. SUBDIR+= iftop
  50. SUBDIR+= insmod
  51. # SUBDIR+= ioctl needs pthread.h
  52. SUBDIR+= kill
  53. SUBDIR+= ln
  54. SUBDIR+= ls
  55. SUBDIR+= lsof
  56. SUBDIR+= md5
  57. SUBDIR+= mkdir
  58. SUBDIR+= mknod
  59. SUBDIR+= mount
  60. SUBDIR+= mv
  61. SUBDIR+= netstat
  62. SUBDIR+= notify
  63. SUBDIR+= printenv
  64. SUBDIR+= ps
  65. SUBDIR+= readlink
  66. SUBDIR+= renice
  67. SUBDIR+= rm
  68. SUBDIR+= rmdir
  69. SUBDIR+= rmmod
  70. SUBDIR+= route
  71. SUBDIR+= schedtop
  72. SUBDIR+= sed
  73. SUBDIR+= setkey
  74. SUBDIR+= sleep
  75. SUBDIR+= sync
  76. SUBDIR+= top
  77. SUBDIR+= touch
  78. SUBDIR+= umount
  79. SUBDIR+= vmstat
  80. %:
  81. @for subdir in ${SUBDIR}; do \
  82. echo "==> $$subdir"; \
  83. ${MAKE} --no-print-directory -I.. \
  84. -C "$$subdir" $@ || exit $?; \
  85. echo "<== $$subdir"; \
  86. done
  87. all:
  88. #======================================
  89. # Now follows the original NOTICE file:
  90. #======================================
  91. # Copyright (c) 2010, The Android Open Source Project.
  92. # All rights reserved.
  93. #
  94. # Redistribution and use in source and binary forms, with or without
  95. # modification, are permitted provided that the following conditions
  96. # are met:
  97. # * Redistributions of source code must retain the above copyright
  98. # notice, this list of conditions and the following disclaimer.
  99. # * Redistributions in binary form must reproduce the above copyright
  100. # notice, this list of conditions and the following disclaimer in
  101. # the documentation and/or other materials provided with the
  102. # distribution.
  103. # * Neither the name of The Android Open Source Project nor the names
  104. # of its contributors may be used to endorse or promote products
  105. # derived from this software without specific prior written
  106. # permission.
  107. #
  108. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  109. # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  110. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  111. # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  112. # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  113. # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  114. # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  115. # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  116. # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  117. # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  118. # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  119. # SUCH DAMAGE.
  120. #
  121. #
  122. # Copyright (c) 2009, The Android Open Source Project.
  123. # All rights reserved.
  124. #
  125. # Redistribution and use in source and binary forms, with or without
  126. # modification, are permitted provided that the following conditions
  127. # are met:
  128. # * Redistributions of source code must retain the above copyright
  129. # notice, this list of conditions and the following disclaimer.
  130. # * Redistributions in binary form must reproduce the above copyright
  131. # notice, this list of conditions and the following disclaimer in
  132. # the documentation and/or other materials provided with the
  133. # distribution.
  134. # * Neither the name of The Android Open Source Project nor the names
  135. # of its contributors may be used to endorse or promote products
  136. # derived from this software without specific prior written
  137. # permission.
  138. #
  139. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  140. # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  141. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  142. # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  143. # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  144. # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  145. # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  146. # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  147. # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  148. # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  149. # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  150. # SUCH DAMAGE.
  151. #
  152. #
  153. # Copyright (c) 2008, The Android Open Source Project.
  154. # All rights reserved.
  155. #
  156. # Redistribution and use in source and binary forms, with or without
  157. # modification, are permitted provided that the following conditions
  158. # are met:
  159. # * Redistributions of source code must retain the above copyright
  160. # notice, this list of conditions and the following disclaimer.
  161. # * Redistributions in binary form must reproduce the above copyright
  162. # notice, this list of conditions and the following disclaimer in
  163. # the documentation and/or other materials provided with the
  164. # distribution.
  165. # * Neither the name of The Android Open Source Project nor the names
  166. # of its contributors may be used to endorse or promote products
  167. # derived from this software without specific prior written
  168. # permission.
  169. #
  170. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  171. # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  172. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  173. # FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
  174. # COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
  175. # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
  176. # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
  177. # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
  178. # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  179. # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  180. # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  181. # SUCH DAMAGE.
  182. #
  183. #
  184. # Copyright (c) 1998 Robert Nordier
  185. # Copyright (c) 1989, 1993
  186. # The Regents of the University of California. All rights reserved.
  187. #
  188. # This code is derived from software contributed to Berkeley by
  189. # Kevin Fall.
  190. # This code is derived from software contributed to Berkeley by
  191. # Keith Muller of the University of California, San Diego and Lance
  192. # Visser of Convex Computer Corporation.
  193. # This code is derived from software contributed to Berkeley by
  194. # Mike Muuss.
  195. #
  196. # Redistribution and use in source and binary forms, with or without
  197. # modification, are permitted provided that the following conditions
  198. # are met:
  199. # 1. Redistributions of source code must retain the above copyright
  200. # notice, this list of conditions and the following disclaimer.
  201. # 2. Redistributions in binary form must reproduce the above copyright
  202. # notice, this list of conditions and the following disclaimer in the
  203. # documentation and/or other materials provided with the distribution.
  204. # 3. Neither the name of the University nor the names of its contributors
  205. # may be used to endorse or promote products derived from this software
  206. # without specific prior written permission.
  207. #
  208. # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  209. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  210. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  211. # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  212. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  213. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  214. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  215. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  216. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  217. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  218. # SUCH DAMAGE.
  219. #
  220. #
  221. # Copyright (c) 1989, 1993
  222. # The Regents of the University of California. All rights reserved.
  223. #
  224. # This code is derived from software contributed to Berkeley by
  225. # Kevin Fall.
  226. #
  227. # Redistribution and use in source and binary forms, with or without
  228. # modification, are permitted provided that the following conditions
  229. # are met:
  230. # 1. Redistributions of source code must retain the above copyright
  231. # notice, this list of conditions and the following disclaimer.
  232. # 2. Redistributions in binary form must reproduce the above copyright
  233. # notice, this list of conditions and the following disclaimer in the
  234. # documentation and/or other materials provided with the distribution.
  235. # 3. Neither the name of the University nor the names of its contributors
  236. # may be used to endorse or promote products derived from this software
  237. # without specific prior written permission.
  238. #
  239. # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  240. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  241. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  242. # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  243. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  244. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  245. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  246. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  247. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  248. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  249. # SUCH DAMAGE.
  250. #
  251. #
  252. # Copyright (c) 1991, 1993, 1994
  253. # The Regents of the University of California. All rights reserved.
  254. #
  255. # This code is derived from software contributed to Berkeley by
  256. # Keith Muller of the University of California, San Diego and Lance
  257. # Visser of Convex Computer Corporation.
  258. #
  259. # Redistribution and use in source and binary forms, with or without
  260. # modification, are permitted provided that the following conditions
  261. # are met:
  262. # 1. Redistributions of source code must retain the above copyright
  263. # notice, this list of conditions and the following disclaimer.
  264. # 2. Redistributions in binary form must reproduce the above copyright
  265. # notice, this list of conditions and the following disclaimer in the
  266. # documentation and/or other materials provided with the distribution.
  267. # 3. Neither the name of the University nor the names of its contributors
  268. # may be used to endorse or promote products derived from this software
  269. # without specific prior written permission.
  270. #
  271. # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  272. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  273. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  274. # ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  275. # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  276. # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  277. # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  278. # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  279. # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  280. # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  281. # SUCH DAMAGE.
  282. #
  283. #
  284. # /*
  285. # * Copyright (c) 1985, 1987, 1988, 1993
  286. # * The Regents of the University of California. All rights reserved.
  287. # *
  288. # * Redistribution and use in source and binary forms, with or without
  289. # * modification, are permitted provided that the following conditions
  290. # * are met:
  291. # * 1. Redistributions of source code must retain the above copyright
  292. # * notice, this list of conditions and the following disclaimer.
  293. # * 2. Redistributions in binary form must reproduce the above copyright
  294. # * notice, this list of conditions and the following disclaimer in the
  295. # * documentation and/or other materials provided with the distribution.
  296. # * 3. Neither the name of the University nor the names of its contributors
  297. # * may be used to endorse or promote products derived from this software
  298. # * without specific prior written permission.
  299. # *
  300. # * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  301. # * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  302. # * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  303. # * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  304. # * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  305. # * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  306. # * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  307. # * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  308. # * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  309. # * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  310. # * SUCH DAMAGE.
  311. # */
  312. #
  313. # /*-
  314. # * Copyright (c) 2007, 2009
  315. # * Thorsten Glaser <tg@mirbsd.org>
  316. # *
  317. # * Provided that these terms and disclaimer and all copyright notices
  318. # * are retained or reproduced in an accompanying document, permission
  319. # * is granted to deal in this work without restriction, including un-
  320. # * limited rights to use, publicly perform, distribute, sell, modify,
  321. # * merge, give away, or sublicence.
  322. # *
  323. # * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
  324. # * the utmost extent permitted by applicable law, neither express nor
  325. # * implied; without malicious intent or gross negligence. In no event
  326. # * may a licensor, author or contributor be held liable for indirect,
  327. # * direct, other damage, loss, or other issues arising in any way out
  328. # * of dealing in the work, even if advised of the possibility of such
  329. # * damage or existence of a defect, except proven that it results out
  330. # * of said person's immediate fault when using the work as intended.
  331. # */
  332. #
  333. # /*
  334. # * This code implements the MD5 message-digest algorithm.
  335. # * The algorithm is due to Ron Rivest. This code was
  336. # * written by Colin Plumb in 1993, no copyright is claimed.
  337. # * This code is in the public domain; do with it what you wish.
  338. # */
  339. #
  340. # /*-
  341. # * Copyright (c) 2006, 2008, 2011
  342. # * mirabilos <m@mirbsd.org>
  343. # *
  344. # * Provided that these terms and disclaimer and all copyright notices
  345. # * are retained or reproduced in an accompanying document, permission
  346. # * is granted to deal in this work without restriction, including un-
  347. # * limited rights to use, publicly perform, distribute, sell, modify,
  348. # * merge, give away, or sublicence.
  349. # *
  350. # * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
  351. # * the utmost extent permitted by applicable law, neither express nor
  352. # * implied; without malicious intent or gross negligence. In no event
  353. # * may a licensor, author or contributor be held liable for indirect,
  354. # * direct, other damage, loss, or other issues arising in any way out
  355. # * of dealing in the work, even if advised of the possibility of such
  356. # * damage or existence of a defect, except proven that it results out
  357. # * of said person's immediate fault when using the work as intended.
  358. # */
  359. #
  360. # /*-
  361. # * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
  362. # *
  363. # * Permission to use, copy, modify, and distribute this software for any
  364. # * purpose with or without fee is hereby granted, provided that the above
  365. # * copyright notice and this permission notice appear in all copies.
  366. # *
  367. # * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  368. # * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  369. # * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  370. # * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  371. # * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  372. # * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  373. # * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  374. # */
  375. #
  376. # /*
  377. # * Copyright (c) 1989, 1990, 1993
  378. # * The Regents of the University of California. All rights reserved.
  379. # *
  380. # * This code is derived from software contributed to Berkeley by
  381. # * Kevin Fall.
  382. # *
  383. # * Redistribution and use in source and binary forms, with or without
  384. # * modification, are permitted provided that the following conditions
  385. # * are met:
  386. # * 1. Redistributions of source code must retain the above copyright
  387. # * notice, this list of conditions and the following disclaimer.
  388. # * 2. Redistributions in binary form must reproduce the above copyright
  389. # * notice, this list of conditions and the following disclaimer in the
  390. # * documentation and/or other materials provided with the distribution.
  391. # * 3. Neither the name of the University nor the names of its contributors
  392. # * may be used to endorse or promote products derived from this software
  393. # * without specific prior written permission.
  394. # *
  395. # * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  396. # * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  397. # * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  398. # * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  399. # * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  400. # * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  401. # * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  402. # * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  403. # * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  404. # * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  405. # * SUCH DAMAGE.
  406. # */
  407. #
  408. # /*
  409. # * Copyright (c) 1989, 1993, 1994
  410. # * The Regents of the University of California. All rights reserved.
  411. # *
  412. # * This code is derived from software contributed to Berkeley by
  413. # * Dave Borman at Cray Research, Inc.
  414. # *
  415. # * Redistribution and use in source and binary forms, with or without
  416. # * modification, are permitted provided that the following conditions
  417. # * are met:
  418. # * 1. Redistributions of source code must retain the above copyright
  419. # * notice, this list of conditions and the following disclaimer.
  420. # * 2. Redistributions in binary form must reproduce the above copyright
  421. # * notice, this list of conditions and the following disclaimer in the
  422. # * documentation and/or other materials provided with the distribution.
  423. # * 3. Neither the name of the University nor the names of its contributors
  424. # * may be used to endorse or promote products derived from this software
  425. # * without specific prior written permission.
  426. # *
  427. # * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  428. # * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  429. # * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  430. # * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  431. # * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  432. # * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  433. # * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  434. # * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  435. # * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  436. # * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  437. # * SUCH DAMAGE.
  438. # */
  439. #
  440. # /*-
  441. # * Copyright (c) 2015, 2016, 2017
  442. # * mirabilos <m@mirbsd.org>
  443. # * Copyright (c) 1992 Diomidis Spinellis.
  444. # * Copyright (c) 1992, 1993
  445. # * The Regents of the University of California. All rights reserved.
  446. # *
  447. # * This code is derived from software contributed to Berkeley by
  448. # * Diomidis Spinellis of Imperial College, University of London.
  449. # *
  450. # * Redistribution and use in source and binary forms, with or without
  451. # * modification, are permitted provided that the following conditions
  452. # * are met:
  453. # * 1. Redistributions of source code must retain the above copyright
  454. # * notice, this list of conditions and the following disclaimer.
  455. # * 2. Redistributions in binary form must reproduce the above copyright
  456. # * notice, this list of conditions and the following disclaimer in the
  457. # * documentation and/or other materials provided with the distribution.
  458. # * 3. Neither the name of the University nor the names of its contributors
  459. # * may be used to endorse or promote products derived from this software
  460. # * without specific prior written permission.
  461. # *
  462. # * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  463. # * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  464. # * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  465. # * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  466. # * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  467. # * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  468. # * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  469. # * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  470. # * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  471. # * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  472. # * SUCH DAMAGE.
  473. # */
  474. #
  475. # /*
  476. # * Copyright (c) 2008 Otto Moerbeek <otto@drijf.net>
  477. # *
  478. # * Permission to use, copy, modify, and distribute this software for any
  479. # * purpose with or without fee is hereby granted, provided that the above
  480. # * copyright notice and this permission notice appear in all copies.
  481. # *
  482. # * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  483. # * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  484. # * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  485. # * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  486. # * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  487. # * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  488. # * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  489. # */
  490. #
  491. # /*-
  492. # * Copyright (c) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
  493. # * 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
  494. # * mirabilos <m@mirbsd.org>
  495. # *
  496. # * Provided that these terms and disclaimer and all copyright notices
  497. # * are retained or reproduced in an accompanying document, permission
  498. # * is granted to deal in this work without restriction, including un-
  499. # * limited rights to use, publicly perform, distribute, sell, modify,
  500. # * merge, give away, or sublicence.
  501. # *
  502. # * This work is provided "AS IS" and WITHOUT WARRANTY of any kind, to
  503. # * the utmost extent permitted by applicable law, neither express nor
  504. # * implied; without malicious intent or gross negligence. In no event
  505. # * may a licensor, author or contributor be held liable for indirect,
  506. # * direct, other damage, loss, or other issues arising in any way out
  507. # * of dealing in the work, even if advised of the possibility of such
  508. # * damage or existence of a defect, except proven that it results out
  509. # * of said person's immediate fault when using the work as intended.
  510. # */