[PATCH 17/27] Add missing copyrights in newlib/libc/stdlib

Keith Packard keithp@keithp.com
Wed Feb 5 06:59:00 GMT 2020


Signed-off-by: Keith Packard <keithp@keithp.com>
---
 newlib/libc/stdlib/_Exit.c          |  1 +
 newlib/libc/stdlib/__adjust.c       |  4 ++++
 newlib/libc/stdlib/__atexit.c       |  1 +
 newlib/libc/stdlib/__call_atexit.c  | 35 +++++++++++++++++++++++++++++
 newlib/libc/stdlib/__exp10.c        |  4 ++++
 newlib/libc/stdlib/__ten_mu.c       |  4 ++++
 newlib/libc/stdlib/a64l.c           |  1 +
 newlib/libc/stdlib/abort.c          |  4 ++++
 newlib/libc/stdlib/abs.c            |  4 ++++
 newlib/libc/stdlib/assert.c         |  4 ++++
 newlib/libc/stdlib/atexit.h         |  4 ++++
 newlib/libc/stdlib/atof.c           |  4 ++++
 newlib/libc/stdlib/atoff.c          |  4 ++++
 newlib/libc/stdlib/atoi.c           |  4 ++++
 newlib/libc/stdlib/atol.c           |  4 ++++
 newlib/libc/stdlib/btowc.c          |  1 +
 newlib/libc/stdlib/calloc.c         |  4 ++++
 newlib/libc/stdlib/chacha_private.h | 18 +++++++++++++++
 newlib/libc/stdlib/cxa_atexit.c     | 35 +++++++++++++++++++++++++++++
 newlib/libc/stdlib/cxa_finalize.c   | 35 +++++++++++++++++++++++++++++
 newlib/libc/stdlib/dtoastub.c       |  4 ++++
 newlib/libc/stdlib/ecvtbuf.c        |  4 ++++
 newlib/libc/stdlib/efgcvt.c         |  4 ++++
 newlib/libc/stdlib/envlock.c        |  4 ++++
 newlib/libc/stdlib/eprintf.c        |  4 ++++
 newlib/libc/stdlib/itoa.c           |  1 +
 newlib/libc/stdlib/l64a.c           |  1 +
 newlib/libc/stdlib/labs.c           |  4 ++++
 newlib/libc/stdlib/local.h          |  4 ++++
 newlib/libc/stdlib/malign.c         |  4 ++++
 newlib/libc/stdlib/malloc.c         |  4 ++++
 newlib/libc/stdlib/mallocr.c        |  4 ++++
 newlib/libc/stdlib/mbctype.h        |  4 ++++
 newlib/libc/stdlib/mblen.c          |  4 ++++
 newlib/libc/stdlib/mbrlen.c         |  3 +++
 newlib/libc/stdlib/mbrtowc.c        |  3 +++
 newlib/libc/stdlib/mbsinit.c        |  3 +++
 newlib/libc/stdlib/mbsnrtowcs.c     |  1 +
 newlib/libc/stdlib/mbsrtowcs.c      |  3 +++
 newlib/libc/stdlib/mbstowcs.c       |  4 ++++
 newlib/libc/stdlib/mbtowc.c         |  4 ++++
 newlib/libc/stdlib/mbtowc_r.c       |  4 ++++
 newlib/libc/stdlib/mlock.c          |  4 ++++
 newlib/libc/stdlib/msize.c          |  4 ++++
 newlib/libc/stdlib/mstats.c         |  4 ++++
 newlib/libc/stdlib/mtrim.c          |  4 ++++
 newlib/libc/stdlib/on_exit_args.c   |  1 +
 newlib/libc/stdlib/on_exit_args.h   |  1 +
 newlib/libc/stdlib/rand.c           |  4 ++++
 newlib/libc/stdlib/rand_r.c         |  4 ++++
 newlib/libc/stdlib/random.c         |  1 +
 newlib/libc/stdlib/realloc.c        |  4 ++++
 newlib/libc/stdlib/sb_charsets.c    |  1 +
 newlib/libc/stdlib/std.h            |  4 ++++
 newlib/libc/stdlib/stdlib.tex       |  4 ++++
 newlib/libc/stdlib/system.c         |  4 ++++
 newlib/libc/stdlib/utoa.c           |  1 +
 newlib/libc/stdlib/valloc.c         |  4 ++++
 newlib/libc/stdlib/wcrtomb.c        |  3 +++
 newlib/libc/stdlib/wcsnrtombs.c     |  1 +
 newlib/libc/stdlib/wcsrtombs.c      |  3 +++
 newlib/libc/stdlib/wcstoll_r.c      | 28 +++++++++++++++++++++++
 newlib/libc/stdlib/wcstombs.c       |  4 ++++
 newlib/libc/stdlib/wcstoull_r.c     | 28 +++++++++++++++++++++++
 newlib/libc/stdlib/wctob.c          |  3 +++
 newlib/libc/stdlib/wctomb.c         |  4 ++++
 newlib/libc/stdlib/wctomb_r.c       |  4 ++++
 67 files changed, 377 insertions(+)

diff --git a/newlib/libc/stdlib/_Exit.c b/newlib/libc/stdlib/_Exit.c
index 8e205a0c3..554f699b8 100644
--- a/newlib/libc/stdlib/_Exit.c
+++ b/newlib/libc/stdlib/_Exit.c
@@ -1,3 +1,4 @@
+/* Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com> */
 /*
 FUNCTION
 <<_Exit>>---end program execution with no cleanup processing
diff --git a/newlib/libc/stdlib/__adjust.c b/newlib/libc/stdlib/__adjust.c
index 4c478f30b..56c21edbe 100644
--- a/newlib/libc/stdlib/__adjust.c
+++ b/newlib/libc/stdlib/__adjust.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 /*
  * return (*acc) scaled by 10**dexp.
  */
diff --git a/newlib/libc/stdlib/__atexit.c b/newlib/libc/stdlib/__atexit.c
index 97ce053bf..400448523 100644
--- a/newlib/libc/stdlib/__atexit.c
+++ b/newlib/libc/stdlib/__atexit.c
@@ -1,3 +1,4 @@
+/* Copyright (c) 2004 Paul Brook <paul@codesourcery.com> */
 /*
  *  Common routine to implement atexit-like functionality.
  *
diff --git a/newlib/libc/stdlib/__call_atexit.c b/newlib/libc/stdlib/__call_atexit.c
index 3eec11214..d059c291d 100644
--- a/newlib/libc/stdlib/__call_atexit.c
+++ b/newlib/libc/stdlib/__call_atexit.c
@@ -1,3 +1,38 @@
+/*
+Copyright (c) 2004 Paul Brook <paul@codesourcery.com> 
+
+Common routine to implement atexit-like functionality.
+
+This is also the key function to be configured as lite exit, a size-reduced
+implementation of exit that doesn't invoke clean-up functions such as _fini
+or global destructors.
+
+Default (without lite exit) call graph is like:
+start -> atexit -> __register_exitproc
+start -> __libc_init_array -> __cxa_atexit -> __register_exitproc
+on_exit -> __register_exitproc
+start -> exit -> __call_exitprocs
+
+Here an -> means arrow tail invokes arrow head. All invocations here
+are non-weak reference in current newlib.
+
+Lite exit makes some of above calls as weak reference, so that size expansive
+functions __register_exitproc and __call_exitprocs may not be linked. These
+calls are:
+start w-> atexit
+cxa_atexit w-> __register_exitproc
+exit w-> __call_exitprocs
+
+Lite exit also makes sure that __call_exitprocs will be referenced as non-weak
+whenever __register_exitproc is referenced as non-weak.
+
+Thus with lite exit libs, a program not explicitly calling atexit or on_exit
+will escape from the burden of cleaning up code. A program with atexit or on_exit
+will work consistently to normal libs.
+
+Lite exit is enabled with --enable-lite-exit, and is controlled with macro
+LITE_EXIT.
+ */
 /*
  * COmmon routine to call call registered atexit-like routines.
  */
diff --git a/newlib/libc/stdlib/__exp10.c b/newlib/libc/stdlib/__exp10.c
index cf223742b..f95b82d40 100644
--- a/newlib/libc/stdlib/__exp10.c
+++ b/newlib/libc/stdlib/__exp10.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 /*
  * compute 10**x by successive squaring.
  */
diff --git a/newlib/libc/stdlib/__ten_mu.c b/newlib/libc/stdlib/__ten_mu.c
index 25af8d0c7..72ac33250 100644
--- a/newlib/libc/stdlib/__ten_mu.c
+++ b/newlib/libc/stdlib/__ten_mu.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 /*
  * [atw] multiply 64 bit accumulator by 10 and add digit.
  * The KA/CA way to do this should be to use
diff --git a/newlib/libc/stdlib/a64l.c b/newlib/libc/stdlib/a64l.c
index dcac2e050..c8abb3a9c 100644
--- a/newlib/libc/stdlib/a64l.c
+++ b/newlib/libc/stdlib/a64l.c
@@ -1,3 +1,4 @@
+/* Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com> */
 /*
 FUNCTION
 <<a64l>>, <<l64a>>---convert between radix-64 ASCII string and long
diff --git a/newlib/libc/stdlib/abort.c b/newlib/libc/stdlib/abort.c
index 065dee5b6..3b49cc565 100644
--- a/newlib/libc/stdlib/abort.c
+++ b/newlib/libc/stdlib/abort.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 /* NetWare can not use this implementation of abort.  It provides its
    own version of abort in clib.nlm.  If we can not use clib.nlm, then
    we must write abort in sys/netware.  */
diff --git a/newlib/libc/stdlib/abs.c b/newlib/libc/stdlib/abs.c
index 85a3fecd8..c6bb56f74 100644
--- a/newlib/libc/stdlib/abs.c
+++ b/newlib/libc/stdlib/abs.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
 <<abs>>---integer absolute value (magnitude)
 
diff --git a/newlib/libc/stdlib/assert.c b/newlib/libc/stdlib/assert.c
index 46ac92b8c..7eb557eb1 100644
--- a/newlib/libc/stdlib/assert.c
+++ b/newlib/libc/stdlib/assert.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
 <<assert>>---macro for debugging diagnostics
 
diff --git a/newlib/libc/stdlib/atexit.h b/newlib/libc/stdlib/atexit.h
index df99963d5..8a8641f74 100644
--- a/newlib/libc/stdlib/atexit.h
+++ b/newlib/libc/stdlib/atexit.h
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 /*
  *	Common definitions for atexit-like routines
  */
diff --git a/newlib/libc/stdlib/atof.c b/newlib/libc/stdlib/atof.c
index 17ba0fa52..0fbc581c6 100644
--- a/newlib/libc/stdlib/atof.c
+++ b/newlib/libc/stdlib/atof.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
    <<atof>>, <<atoff>>---string to double or float
 
diff --git a/newlib/libc/stdlib/atoff.c b/newlib/libc/stdlib/atoff.c
index e25ff2917..5dcf99ea5 100644
--- a/newlib/libc/stdlib/atoff.c
+++ b/newlib/libc/stdlib/atoff.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #include <stdlib.h>
 #include <_ansi.h>
 
diff --git a/newlib/libc/stdlib/atoi.c b/newlib/libc/stdlib/atoi.c
index 4da53e80a..409d60f65 100644
--- a/newlib/libc/stdlib/atoi.c
+++ b/newlib/libc/stdlib/atoi.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
    <<atoi>>, <<atol>>---string to integer
 
diff --git a/newlib/libc/stdlib/atol.c b/newlib/libc/stdlib/atol.c
index a5c8ee9f4..743117582 100644
--- a/newlib/libc/stdlib/atol.c
+++ b/newlib/libc/stdlib/atol.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 /*
  * Andy Wilson, 2-Oct-89.
  */
diff --git a/newlib/libc/stdlib/btowc.c b/newlib/libc/stdlib/btowc.c
index 7605ce6b6..524d2d804 100644
--- a/newlib/libc/stdlib/btowc.c
+++ b/newlib/libc/stdlib/btowc.c
@@ -1,3 +1,4 @@
+/* Copyright (c) 2002 Thomas Fitzsimmons <fitzsim@redhat.com> */
 #include <wchar.h>
 #include <stdlib.h>
 #include <stdio.h>
diff --git a/newlib/libc/stdlib/calloc.c b/newlib/libc/stdlib/calloc.c
index 208e27eb1..e027bab6c 100644
--- a/newlib/libc/stdlib/calloc.c
+++ b/newlib/libc/stdlib/calloc.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #ifdef MALLOC_PROVIDED
 int _dummy_calloc = 1;
 #else
diff --git a/newlib/libc/stdlib/chacha_private.h b/newlib/libc/stdlib/chacha_private.h
index 0a3e38c10..2df187b0a 100644
--- a/newlib/libc/stdlib/chacha_private.h
+++ b/newlib/libc/stdlib/chacha_private.h
@@ -1,4 +1,22 @@
 /*
+Copyright (c) 1996, David Mazieres <dm@uun.org>
+Copyright (c) 2008, Damien Miller <djm@openbsd.org>
+Copyright (c) 2013, Markus Friedl <markus@openbsd.org>
+Copyright (c) 2014, Theo de Raadt <deraadt@openbsd.org>
+
+Permission to use, copy, modify, and distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+/*
 chacha-merged.c version 20080118
 D. J. Bernstein
 Public domain.
diff --git a/newlib/libc/stdlib/cxa_atexit.c b/newlib/libc/stdlib/cxa_atexit.c
index ae2d21a60..71e73d536 100644
--- a/newlib/libc/stdlib/cxa_atexit.c
+++ b/newlib/libc/stdlib/cxa_atexit.c
@@ -1,3 +1,38 @@
+/*
+Copyright (c) 2004 Paul Brook <paul@codesourcery.com> 
+
+Common routine to implement atexit-like functionality.
+
+This is also the key function to be configured as lite exit, a size-reduced
+implementation of exit that doesn't invoke clean-up functions such as _fini
+or global destructors.
+
+Default (without lite exit) call graph is like:
+start -> atexit -> __register_exitproc
+start -> __libc_init_array -> __cxa_atexit -> __register_exitproc
+on_exit -> __register_exitproc
+start -> exit -> __call_exitprocs
+
+Here an -> means arrow tail invokes arrow head. All invocations here
+are non-weak reference in current newlib.
+
+Lite exit makes some of above calls as weak reference, so that size expansive
+functions __register_exitproc and __call_exitprocs may not be linked. These
+calls are:
+start w-> atexit
+cxa_atexit w-> __register_exitproc
+exit w-> __call_exitprocs
+
+Lite exit also makes sure that __call_exitprocs will be referenced as non-weak
+whenever __register_exitproc is referenced as non-weak.
+
+Thus with lite exit libs, a program not explicitly calling atexit or on_exit
+will escape from the burden of cleaning up code. A program with atexit or on_exit
+will work consistently to normal libs.
+
+Lite exit is enabled with --enable-lite-exit, and is controlled with macro
+LITE_EXIT.
+ */
 /*
  * Implementation of __cxa_atexit.
  */
diff --git a/newlib/libc/stdlib/cxa_finalize.c b/newlib/libc/stdlib/cxa_finalize.c
index 467532881..9bf346f25 100644
--- a/newlib/libc/stdlib/cxa_finalize.c
+++ b/newlib/libc/stdlib/cxa_finalize.c
@@ -1,3 +1,38 @@
+/*
+Copyright (c) 2004 Paul Brook <paul@codesourcery.com> 
+
+Common routine to implement atexit-like functionality.
+
+This is also the key function to be configured as lite exit, a size-reduced
+implementation of exit that doesn't invoke clean-up functions such as _fini
+or global destructors.
+
+Default (without lite exit) call graph is like:
+start -> atexit -> __register_exitproc
+start -> __libc_init_array -> __cxa_atexit -> __register_exitproc
+on_exit -> __register_exitproc
+start -> exit -> __call_exitprocs
+
+Here an -> means arrow tail invokes arrow head. All invocations here
+are non-weak reference in current newlib.
+
+Lite exit makes some of above calls as weak reference, so that size expansive
+functions __register_exitproc and __call_exitprocs may not be linked. These
+calls are:
+start w-> atexit
+cxa_atexit w-> __register_exitproc
+exit w-> __call_exitprocs
+
+Lite exit also makes sure that __call_exitprocs will be referenced as non-weak
+whenever __register_exitproc is referenced as non-weak.
+
+Thus with lite exit libs, a program not explicitly calling atexit or on_exit
+will escape from the burden of cleaning up code. A program with atexit or on_exit
+will work consistently to normal libs.
+
+Lite exit is enabled with --enable-lite-exit, and is controlled with macro
+LITE_EXIT.
+ */
 /*
  * Implementation if __cxa_finalize.
  */
diff --git a/newlib/libc/stdlib/dtoastub.c b/newlib/libc/stdlib/dtoastub.c
index d1c8a6756..3eb23b873 100644
--- a/newlib/libc/stdlib/dtoastub.c
+++ b/newlib/libc/stdlib/dtoastub.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #include <_ansi.h>
 #include <stdlib.h>
 #include <reent.h>
diff --git a/newlib/libc/stdlib/ecvtbuf.c b/newlib/libc/stdlib/ecvtbuf.c
index 0cb11f889..7347b9746 100644
--- a/newlib/libc/stdlib/ecvtbuf.c
+++ b/newlib/libc/stdlib/ecvtbuf.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
 <<ecvtbuf>>, <<fcvtbuf>>---double or float to string
 
diff --git a/newlib/libc/stdlib/efgcvt.c b/newlib/libc/stdlib/efgcvt.c
index 3cdb9c420..a351fb39c 100644
--- a/newlib/libc/stdlib/efgcvt.c
+++ b/newlib/libc/stdlib/efgcvt.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
 <<ecvt>>, <<ecvtf>>, <<fcvt>>, <<fcvtf>>---double or float to string
 
diff --git a/newlib/libc/stdlib/envlock.c b/newlib/libc/stdlib/envlock.c
index 3afe30ee9..d0dbf5c27 100644
--- a/newlib/libc/stdlib/envlock.c
+++ b/newlib/libc/stdlib/envlock.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
 <<__env_lock>>, <<__env_unlock>>---lock environ variable
 
diff --git a/newlib/libc/stdlib/eprintf.c b/newlib/libc/stdlib/eprintf.c
index 46cf8104b..14d5abd54 100644
--- a/newlib/libc/stdlib/eprintf.c
+++ b/newlib/libc/stdlib/eprintf.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 /* This is an implementation of the __eprintf function which is
    compatible with the assert.h which is distributed with gcc.
 
diff --git a/newlib/libc/stdlib/itoa.c b/newlib/libc/stdlib/itoa.c
index 7a7daf0ce..14400eb8b 100644
--- a/newlib/libc/stdlib/itoa.c
+++ b/newlib/libc/stdlib/itoa.c
@@ -1,3 +1,4 @@
+/* Copyright (c) 2014 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 <<itoa>>---integer to string
diff --git a/newlib/libc/stdlib/l64a.c b/newlib/libc/stdlib/l64a.c
index 45282e32d..2ef2bde0c 100644
--- a/newlib/libc/stdlib/l64a.c
+++ b/newlib/libc/stdlib/l64a.c
@@ -1,3 +1,4 @@
+/* Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com> */
 /* l64a - convert long to radix-64 ascii string
  *          
  * Conversion is performed on at most 32-bits of input value starting 
diff --git a/newlib/libc/stdlib/labs.c b/newlib/libc/stdlib/labs.c
index f6761d0cc..9ef265fba 100644
--- a/newlib/libc/stdlib/labs.c
+++ b/newlib/libc/stdlib/labs.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
 <<labs>>---long integer absolute value
 
diff --git a/newlib/libc/stdlib/local.h b/newlib/libc/stdlib/local.h
index a96ed2cc4..e81b33e72 100644
--- a/newlib/libc/stdlib/local.h
+++ b/newlib/libc/stdlib/local.h
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 /* Misc. local definitions for libc/stdlib */
 
 #ifndef _LOCAL_H_
diff --git a/newlib/libc/stdlib/malign.c b/newlib/libc/stdlib/malign.c
index 480060c43..3dc854f4b 100644
--- a/newlib/libc/stdlib/malign.c
+++ b/newlib/libc/stdlib/malign.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #ifndef MALLOC_PROVIDED
 /* malign.c -- a wrapper for memalign_r.  */
 
diff --git a/newlib/libc/stdlib/malloc.c b/newlib/libc/stdlib/malloc.c
index f5ac29208..33a04a81a 100644
--- a/newlib/libc/stdlib/malloc.c
+++ b/newlib/libc/stdlib/malloc.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 /* VxWorks provides its own version of malloc, and we can't use this
    one because VxWorks does not provide sbrk.  So we have a hook to
    not compile this code.  */
diff --git a/newlib/libc/stdlib/mallocr.c b/newlib/libc/stdlib/mallocr.c
index 26d1c89cc..a6788e619 100644
--- a/newlib/libc/stdlib/mallocr.c
+++ b/newlib/libc/stdlib/mallocr.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #ifdef MALLOC_PROVIDED
 int _dummy_mallocr = 1;
 #else
diff --git a/newlib/libc/stdlib/mbctype.h b/newlib/libc/stdlib/mbctype.h
index 359c83c77..b0890b3da 100644
--- a/newlib/libc/stdlib/mbctype.h
+++ b/newlib/libc/stdlib/mbctype.h
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #ifndef _MBCTYPE_H_
 
 #define _MBCTYPE_H_
diff --git a/newlib/libc/stdlib/mblen.c b/newlib/libc/stdlib/mblen.c
index 3753d3673..f8d1ae70d 100644
--- a/newlib/libc/stdlib/mblen.c
+++ b/newlib/libc/stdlib/mblen.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
 <<mblen>>---minimal multibyte length function
 
diff --git a/newlib/libc/stdlib/mbrlen.c b/newlib/libc/stdlib/mbrlen.c
index 57a733fed..bc8065ade 100644
--- a/newlib/libc/stdlib/mbrlen.c
+++ b/newlib/libc/stdlib/mbrlen.c
@@ -1,3 +1,6 @@
+/*
+Copyright (c) 2002 Thomas Fitzsimmons <fitzsim@redhat.com>
+ */
 #include <reent.h>
 #include <newlib.h>
 #include <wchar.h>
diff --git a/newlib/libc/stdlib/mbrtowc.c b/newlib/libc/stdlib/mbrtowc.c
index 65284a0eb..12f3bd060 100644
--- a/newlib/libc/stdlib/mbrtowc.c
+++ b/newlib/libc/stdlib/mbrtowc.c
@@ -1,3 +1,6 @@
+/*
+Copyright (c) 2002 Thomas Fitzsimmons <fitzsim@redhat.com>
+ */
 #include <reent.h>
 #include <newlib.h>
 #include <wchar.h>
diff --git a/newlib/libc/stdlib/mbsinit.c b/newlib/libc/stdlib/mbsinit.c
index e32369ae1..4966b7e23 100644
--- a/newlib/libc/stdlib/mbsinit.c
+++ b/newlib/libc/stdlib/mbsinit.c
@@ -1,3 +1,6 @@
+/*
+Copyright (c) 2002 Thomas Fitzsimmons <fitzsim@redhat.com>
+ */
 #include <reent.h>
 #include <wchar.h>
 #include <stdlib.h>
diff --git a/newlib/libc/stdlib/mbsnrtowcs.c b/newlib/libc/stdlib/mbsnrtowcs.c
index d3ce25084..194c48d9f 100644
--- a/newlib/libc/stdlib/mbsnrtowcs.c
+++ b/newlib/libc/stdlib/mbsnrtowcs.c
@@ -1,3 +1,4 @@
+/* Copyright (c) 2009 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 <<mbsrtowcs>>, <<mbsnrtowcs>>---convert a character string to a wide-character string
diff --git a/newlib/libc/stdlib/mbsrtowcs.c b/newlib/libc/stdlib/mbsrtowcs.c
index 82589c606..346daa393 100644
--- a/newlib/libc/stdlib/mbsrtowcs.c
+++ b/newlib/libc/stdlib/mbsrtowcs.c
@@ -1,3 +1,6 @@
+/*
+Copyright (c) 2002 Thomas Fitzsimmons <fitzsim@redhat.com>
+ */
 /* doc in mbsnrtowcs.c */
 
 #include <reent.h>
diff --git a/newlib/libc/stdlib/mbstowcs.c b/newlib/libc/stdlib/mbstowcs.c
index 253059cf8..f54be8ff9 100644
--- a/newlib/libc/stdlib/mbstowcs.c
+++ b/newlib/libc/stdlib/mbstowcs.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
 <<mbstowcs>>---minimal multibyte string to wide char converter
 
diff --git a/newlib/libc/stdlib/mbtowc.c b/newlib/libc/stdlib/mbtowc.c
index 2dc413f2d..930eba97f 100644
--- a/newlib/libc/stdlib/mbtowc.c
+++ b/newlib/libc/stdlib/mbtowc.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
 <<mbtowc>>---minimal multibyte to wide char converter
 
diff --git a/newlib/libc/stdlib/mbtowc_r.c b/newlib/libc/stdlib/mbtowc_r.c
index 920a7ea3c..8c2f2c35d 100644
--- a/newlib/libc/stdlib/mbtowc_r.c
+++ b/newlib/libc/stdlib/mbtowc_r.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #include <newlib.h>
 #include <stdlib.h>
 #include <locale.h>
diff --git a/newlib/libc/stdlib/mlock.c b/newlib/libc/stdlib/mlock.c
index 23aa10173..56ee2cc00 100644
--- a/newlib/libc/stdlib/mlock.c
+++ b/newlib/libc/stdlib/mlock.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #ifndef MALLOC_PROVIDED
 /*
 FUNCTION
diff --git a/newlib/libc/stdlib/msize.c b/newlib/libc/stdlib/msize.c
index 108550dcd..231872ac6 100644
--- a/newlib/libc/stdlib/msize.c
+++ b/newlib/libc/stdlib/msize.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #ifndef MALLOC_PROVIDED
 /* msize.c -- a wrapper for malloc_usable_size.  */
 
diff --git a/newlib/libc/stdlib/mstats.c b/newlib/libc/stdlib/mstats.c
index 85c20f1bc..3a2e65dd1 100644
--- a/newlib/libc/stdlib/mstats.c
+++ b/newlib/libc/stdlib/mstats.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 /* VxWorks provides its own version of malloc, and we can't use this
    one because VxWorks does not provide sbrk.  So we have a hook to
    not compile this code.  */
diff --git a/newlib/libc/stdlib/mtrim.c b/newlib/libc/stdlib/mtrim.c
index bf927fa84..0f6772bf1 100644
--- a/newlib/libc/stdlib/mtrim.c
+++ b/newlib/libc/stdlib/mtrim.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #ifndef MALLOC_PROVIDED
 /* mtrim.c -- a wrapper for malloc_trim.  */
 
diff --git a/newlib/libc/stdlib/on_exit_args.c b/newlib/libc/stdlib/on_exit_args.c
index 88f9ffdbd..809aaa426 100644
--- a/newlib/libc/stdlib/on_exit_args.c
+++ b/newlib/libc/stdlib/on_exit_args.c
@@ -1,3 +1,4 @@
+/* Copyright (c) 2015 Freddie Chopin <freddie.chopin@gmail.com> */
 /*
  * Static instance of _on_exit_args struct.
  *
diff --git a/newlib/libc/stdlib/on_exit_args.h b/newlib/libc/stdlib/on_exit_args.h
index c54ad1ef2..21d05d8ce 100644
--- a/newlib/libc/stdlib/on_exit_args.h
+++ b/newlib/libc/stdlib/on_exit_args.h
@@ -1,3 +1,4 @@
+/* Copyright (c) 2015 Freddie Chopin <freddie.chopin@gmail.com> */
 #ifndef NEWLIB_CYGWIN_NEWLIB_LIBC_STDLIB_ON_EXIT_ARGS_H_
 #define NEWLIB_CYGWIN_NEWLIB_LIBC_STDLIB_ON_EXIT_ARGS_H_
 
diff --git a/newlib/libc/stdlib/rand.c b/newlib/libc/stdlib/rand.c
index 209cb32ff..27654303a 100644
--- a/newlib/libc/stdlib/rand.c
+++ b/newlib/libc/stdlib/rand.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
 <<rand>>, <<srand>>---pseudo-random numbers
 
diff --git a/newlib/libc/stdlib/rand_r.c b/newlib/libc/stdlib/rand_r.c
index 0670285a0..4127c1b2f 100644
--- a/newlib/libc/stdlib/rand_r.c
+++ b/newlib/libc/stdlib/rand_r.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #include <stdlib.h>
 
 /* Pseudo-random generator based on Minimal Standard by
diff --git a/newlib/libc/stdlib/random.c b/newlib/libc/stdlib/random.c
index 131dc056c..ae443b2ea 100644
--- a/newlib/libc/stdlib/random.c
+++ b/newlib/libc/stdlib/random.c
@@ -1,3 +1,4 @@
+/* Copyright (c) 2016 Joel Sherrill <joel@rtems.org> */
 /*
 FUNCTION
 <<random>>, <<srandom>>---pseudo-random numbers
diff --git a/newlib/libc/stdlib/realloc.c b/newlib/libc/stdlib/realloc.c
index 999e8e00b..3fc8687ea 100644
--- a/newlib/libc/stdlib/realloc.c
+++ b/newlib/libc/stdlib/realloc.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #ifdef MALLOC_PROVIDED
 int _dummy_realloc = 1;
 #else
diff --git a/newlib/libc/stdlib/sb_charsets.c b/newlib/libc/stdlib/sb_charsets.c
index 961eb1573..26f06c8be 100644
--- a/newlib/libc/stdlib/sb_charsets.c
+++ b/newlib/libc/stdlib/sb_charsets.c
@@ -1,3 +1,4 @@
+/* Copyright (c) 2009 Corinna Vinschen <corinna@vinschen.de> */
 #include <newlib.h>
 #include <wchar.h>
 
diff --git a/newlib/libc/stdlib/std.h b/newlib/libc/stdlib/std.h
index c000a67c6..7cf569e45 100644
--- a/newlib/libc/stdlib/std.h
+++ b/newlib/libc/stdlib/std.h
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #include <stdlib.h>
 #include <stdio.h>
 #include <errno.h>
diff --git a/newlib/libc/stdlib/stdlib.tex b/newlib/libc/stdlib/stdlib.tex
index 75d80f4d6..e05b6e75c 100644
--- a/newlib/libc/stdlib/stdlib.tex
+++ b/newlib/libc/stdlib/stdlib.tex
@@ -1,3 +1,7 @@
+#
+#Copyright (c) 1990 Regents of the University of California.
+#All rights reserved.
+#
 @node Stdlib
 @chapter Standard Utility Functions (@file{stdlib.h})
 
diff --git a/newlib/libc/stdlib/system.c b/newlib/libc/stdlib/system.c
index f30b7df80..73b8cf697 100644
--- a/newlib/libc/stdlib/system.c
+++ b/newlib/libc/stdlib/system.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
 <<system>>---execute command string
 
diff --git a/newlib/libc/stdlib/utoa.c b/newlib/libc/stdlib/utoa.c
index 5ef304ce4..45c385adc 100644
--- a/newlib/libc/stdlib/utoa.c
+++ b/newlib/libc/stdlib/utoa.c
@@ -1,3 +1,4 @@
+/* Copyright (c) 2014 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 <<utoa>>---unsigned integer to string
diff --git a/newlib/libc/stdlib/valloc.c b/newlib/libc/stdlib/valloc.c
index 025386663..98b34d905 100644
--- a/newlib/libc/stdlib/valloc.c
+++ b/newlib/libc/stdlib/valloc.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #ifndef MALLOC_PROVIDED
 /* valloc.c -- a wrapper for valloc_r and pvalloc_r.  */
 
diff --git a/newlib/libc/stdlib/wcrtomb.c b/newlib/libc/stdlib/wcrtomb.c
index 97436cb74..2a672bbf2 100644
--- a/newlib/libc/stdlib/wcrtomb.c
+++ b/newlib/libc/stdlib/wcrtomb.c
@@ -1,3 +1,6 @@
+/*
+Copyright (c) 2002 Thomas Fitzsimmons <fitzsim@redhat.com>
+ */
 #include <reent.h>
 #include <newlib.h>
 #include <wchar.h>
diff --git a/newlib/libc/stdlib/wcsnrtombs.c b/newlib/libc/stdlib/wcsnrtombs.c
index 43dd2f3e6..21229575b 100644
--- a/newlib/libc/stdlib/wcsnrtombs.c
+++ b/newlib/libc/stdlib/wcsnrtombs.c
@@ -1,3 +1,4 @@
+/* Copyright (c) 2009 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 <<wcsrtombs>>, <<wcsnrtombs>>---convert a wide-character string to a character string
diff --git a/newlib/libc/stdlib/wcsrtombs.c b/newlib/libc/stdlib/wcsrtombs.c
index dc4807d2a..1cd94454f 100644
--- a/newlib/libc/stdlib/wcsrtombs.c
+++ b/newlib/libc/stdlib/wcsrtombs.c
@@ -1,3 +1,6 @@
+/*
+Copyright (c) 2002 Thomas Fitzsimmons <fitzsim@redhat.com>
+ */
 /* Doc in wcsnrtombs.c */
 
 #include <reent.h>
diff --git a/newlib/libc/stdlib/wcstoll_r.c b/newlib/libc/stdlib/wcstoll_r.c
index 2997587d8..d5f70a931 100644
--- a/newlib/libc/stdlib/wcstoll_r.c
+++ b/newlib/libc/stdlib/wcstoll_r.c
@@ -1 +1,29 @@
+/*
+Copyright (c) 1990 The Regents of the University of California.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+3. Neither the name of the University nor the names of its contributors
+may be used to endorse or promote products derived from this software
+without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
+ */
 /* dummy */
diff --git a/newlib/libc/stdlib/wcstombs.c b/newlib/libc/stdlib/wcstombs.c
index 42be54055..180eabb40 100644
--- a/newlib/libc/stdlib/wcstombs.c
+++ b/newlib/libc/stdlib/wcstombs.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
 <<wcstombs>>---minimal wide char string to multibyte string converter
 
diff --git a/newlib/libc/stdlib/wcstoull_r.c b/newlib/libc/stdlib/wcstoull_r.c
index 2997587d8..d5f70a931 100644
--- a/newlib/libc/stdlib/wcstoull_r.c
+++ b/newlib/libc/stdlib/wcstoull_r.c
@@ -1 +1,29 @@
+/*
+Copyright (c) 1990 The Regents of the University of California.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+3. Neither the name of the University nor the names of its contributors
+may be used to endorse or promote products derived from this software
+without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
+ */
 /* dummy */
diff --git a/newlib/libc/stdlib/wctob.c b/newlib/libc/stdlib/wctob.c
index 61365a178..7cdfe47aa 100644
--- a/newlib/libc/stdlib/wctob.c
+++ b/newlib/libc/stdlib/wctob.c
@@ -1,3 +1,6 @@
+/*
+Copyright (c) 2002 Thomas Fitzsimmons <fitzsim@redhat.com>
+ */
 #include <reent.h>
 #include <wchar.h>
 #include <stdio.h>
diff --git a/newlib/libc/stdlib/wctomb.c b/newlib/libc/stdlib/wctomb.c
index e908d22c2..b0e74eb7d 100644
--- a/newlib/libc/stdlib/wctomb.c
+++ b/newlib/libc/stdlib/wctomb.c
@@ -1,4 +1,8 @@
 /*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
+/*
 FUNCTION
 <<wctomb>>---minimal wide char to multibyte converter
 
diff --git a/newlib/libc/stdlib/wctomb_r.c b/newlib/libc/stdlib/wctomb_r.c
index b4799341e..1fdca1b44 100644
--- a/newlib/libc/stdlib/wctomb_r.c
+++ b/newlib/libc/stdlib/wctomb_r.c
@@ -1,3 +1,7 @@
+/*
+Copyright (c) 1990 Regents of the University of California.
+All rights reserved.
+ */
 #include <errno.h>
 #include <stdlib.h>
 #include <string.h>
-- 
2.25.0



More information about the Newlib mailing list