@@ -464,6 +464,40 @@ static void print_Win_Getopt_Licenses(void)
464
464
printf ("SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n" );
465
465
}
466
466
467
+ #if defined(__FreeBSD__ ) || defined(__DragonFly__ ) || defined(__NetBSD__ ) || defined(__OpenBSD__ )
468
+ static void print_Berkeley_License (void )
469
+ {
470
+ printf ("Berkeley Copyright to BSD source (libc, others)\n" );
471
+ printf ("Copyright (c) 1990 The Regents of the University of California.\n" );
472
+ printf ("All rights reserved.\n" );
473
+ printf ("\n" );
474
+ printf ("Redistribution and use in source and binary forms, with or without\n" );
475
+ printf ("modification, are permitted provided that the following conditions\n" );
476
+ printf ("are met:\n" );
477
+ printf ("1. Redistributions of source code must retain the above copyright\n" );
478
+ printf (" notice, this list of conditions and the following disclaimer.\n" );
479
+ printf ("2. Redistributions in binary form must reproduce the above copyright\n" );
480
+ printf (" notice, this list of conditions and the following disclaimer in the\n" );
481
+ printf (" documentation and/or other materials provided with the distribution.\n" );
482
+ printf ("3. Neither the name of the University nor the names of its contributors\n" );
483
+ printf (" may be used to endorse or promote products derived from this software\n" );
484
+ printf (" without specific prior written permission.\n" );
485
+ printf ("\n" );
486
+ printf ("THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND\n" );
487
+ printf ("ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n" );
488
+ printf ("IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n" );
489
+ printf ("ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE\n" );
490
+ printf ("FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n" );
491
+ printf ("DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n" );
492
+ printf ("OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n" );
493
+ printf ("HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n" );
494
+ printf ("LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n" );
495
+ printf ("OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n" );
496
+ printf ("SUCH DAMAGE.\n" );
497
+ printf ("\n\n" );
498
+ }
499
+ #endif // all bsds
500
+
467
501
#if defined(__FreeBSD__ )
468
502
static void print_FreeBSD_License (void )
469
503
{
@@ -493,6 +527,7 @@ static void print_FreeBSD_License(void)
493
527
printf ("the authors and should not be interpreted as representing official policies, either\n" );
494
528
printf ("expressed or implied, of the FreeBSD Project.\n" );
495
529
printf ("\n\n" );
530
+ print_Berkeley_License ();
496
531
}
497
532
#endif //__FreeBSD__
498
533
@@ -527,10 +562,68 @@ static void print_DragonFlyBSD_License(void)
527
562
printf ("OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n" );
528
563
printf ("SUCH DAMAGE.\n" );
529
564
printf ("\n\n" );
565
+ print_Berkeley_License ();
530
566
}
531
567
532
568
#endif //__DragonFly__
533
569
570
+ #if defined(__NetBSD__ )
571
+ static void print_NetBSD_License (void )
572
+ {
573
+ printf ("NetBSD (libc)\n\n" );
574
+ printf ("Copyright (c) 2008 The NetBSD Foundation, Inc.\n" );
575
+ printf ("All rights reserved.\n" );
576
+ printf ("\n" );
577
+ printf ("This code is derived from software contributed to The NetBSD Foundation\n" );
578
+ printf ("by \n" );
579
+ printf ("\n" );
580
+ printf ("Redistribution and use in source and binary forms, with or without\n" );
581
+ printf ("modification, are permitted provided that the following conditions\n" );
582
+ printf ("are met:\n" );
583
+ printf ("1. Redistributions of source code must retain the above copyright\n" );
584
+ printf (" notice, this list of conditions and the following disclaimer.\n" );
585
+ printf ("2. Redistributions in binary form must reproduce the above copyright\n" );
586
+ printf (" notice, this list of conditions and the following disclaimer in the\n" );
587
+ printf (" documentation and/or other materials provided with the distribution.\n" );
588
+ printf ("\n" );
589
+ printf ("THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\n" );
590
+ printf ("``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\n" );
591
+ printf ("TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\n" );
592
+ printf ("PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\n" );
593
+ printf ("BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n" );
594
+ printf ("CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n" );
595
+ printf ("SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n" );
596
+ printf ("INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n" );
597
+ printf ("CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n" );
598
+ printf ("ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n" );
599
+ printf ("POSSIBILITY OF SUCH DAMAGE.\n" );
600
+ printf ("\n\n" );
601
+ print_Berkeley_License ();
602
+ }
603
+ #endif //__NetBSD__
604
+
605
+ #if defined(__OpenBSD__ )
606
+ static void print_OpenBSD_License (void )
607
+ {
608
+ printf ("OpenBSD (libc)\n\n" );
609
+ printf ("Copyright (c) 2003 The OpenBSD Foundation\n" );
610
+ printf ("\n" );
611
+ printf ("Permission to use, copy, modify, and distribute this software for any\n" );
612
+ printf ("purpose with or without fee is hereby granted, provided that the above\n" );
613
+ printf ("copyright notice and this permission notice appear in all copies.\n" );
614
+ printf ("\n" );
615
+ printf ("THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n" );
616
+ printf ("WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n" );
617
+ printf ("MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n" );
618
+ printf ("ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n" );
619
+ printf ("WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n" );
620
+ printf ("ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n" );
621
+ printf ("OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n" );
622
+ printf ("\n\n" );
623
+ print_Berkeley_License ();
624
+ }
625
+ #endif //__OpenBSD__
626
+
534
627
#if defined(__sun )
535
628
# if defined(__illumos__ ) || defined(THIS_IS_ILLUMOS )
536
629
static void print_CDDL_License (void )
@@ -1169,6 +1262,10 @@ void print_Open_Source_Licenses(void)
1169
1262
print_DragonFlyBSD_License ();
1170
1263
#elif defined(__FreeBSD__ )
1171
1264
print_FreeBSD_License ();
1265
+ #elif defined(__OpenBSD__ )
1266
+ print_OpenBSD_License ();
1267
+ #elif defined(__NetBSD__ )
1268
+ print_NetBSD_License ();
1172
1269
#elif defined(__linux__ )
1173
1270
# if defined(__GLIBC__ )
1174
1271
// in other 'nix systems, we need to show this since we are using gnu libc
0 commit comments