[18/27] Add missing copyrights in newlib/libc/string

Message ID 20200205064844.929131-19-keithp@keithp.com
State New
Headers show
Series
  • Add missing copyright information to many files
Related show

Commit Message

Keith Packard Feb. 5, 2020, 6:48 a.m.
Signed-off-by: Keith Packard <keithp@keithp.com>

---
 newlib/libc/string/WIDTH-A          |  1 +
 newlib/libc/string/ambiguous.t      |  1 +
 newlib/libc/string/bcmp.c           | 16 ++++++++++++++++
 newlib/libc/string/bcopy.c          | 16 ++++++++++++++++
 newlib/libc/string/bzero.c          | 16 ++++++++++++++++
 newlib/libc/string/combining.t      |  1 +
 newlib/libc/string/explicit_bzero.c |  2 +-
 newlib/libc/string/index.c          | 16 ++++++++++++++++
 newlib/libc/string/local.h          |  1 +
 newlib/libc/string/memccpy.c        |  1 +
 newlib/libc/string/memchr.c         | 16 ++++++++++++++++
 newlib/libc/string/memcmp.c         | 16 ++++++++++++++++
 newlib/libc/string/memcpy.c         | 16 ++++++++++++++++
 newlib/libc/string/memmove.c        | 16 ++++++++++++++++
 newlib/libc/string/mempcpy.c        |  3 +++
 newlib/libc/string/memrchr.c        |  1 +
 newlib/libc/string/memset.c         | 16 ++++++++++++++++
 newlib/libc/string/mkunidata        |  1 +
 newlib/libc/string/mkwide           |  1 +
 newlib/libc/string/mkwidthA         |  1 +
 newlib/libc/string/rawmemchr.c      |  1 +
 newlib/libc/string/rindex.c         | 16 ++++++++++++++++
 newlib/libc/string/stpcpy.c         |  1 +
 newlib/libc/string/stpncpy.c        |  3 +++
 newlib/libc/string/strcasecmp.c     | 16 ++++++++++++++++
 newlib/libc/string/strcasecmp_l.c   |  1 +
 newlib/libc/string/strcat.c         | 16 ++++++++++++++++
 newlib/libc/string/strchr.c         | 16 ++++++++++++++++
 newlib/libc/string/strchrnul.c      |  1 +
 newlib/libc/string/strcmp.c         | 16 ++++++++++++++++
 newlib/libc/string/strcoll.c        | 16 ++++++++++++++++
 newlib/libc/string/strcoll_l.c      |  3 +++
 newlib/libc/string/strcpy.c         | 16 ++++++++++++++++
 newlib/libc/string/strcspn.c        | 16 ++++++++++++++++
 newlib/libc/string/strdup.c         |  3 +++
 newlib/libc/string/strdup_r.c       |  3 +++
 newlib/libc/string/strerror.c       | 16 ++++++++++++++++
 newlib/libc/string/strerror_r.c     |  1 +
 newlib/libc/string/strings.tex      | 16 ++++++++++++++++
 newlib/libc/string/strlen.c         | 16 ++++++++++++++++
 newlib/libc/string/strlwr.c         | 16 ++++++++++++++++
 newlib/libc/string/strncasecmp.c    | 16 ++++++++++++++++
 newlib/libc/string/strncasecmp_l.c  |  3 +++
 newlib/libc/string/strncat.c        | 16 ++++++++++++++++
 newlib/libc/string/strncmp.c        | 16 ++++++++++++++++
 newlib/libc/string/strncpy.c        | 16 ++++++++++++++++
 newlib/libc/string/strndup.c        |  3 +++
 newlib/libc/string/strndup_r.c      |  3 +++
 newlib/libc/string/strnlen.c        |  1 +
 newlib/libc/string/strnstr.c        |  1 +
 newlib/libc/string/strpbrk.c        | 16 ++++++++++++++++
 newlib/libc/string/strrchr.c        | 16 ++++++++++++++++
 newlib/libc/string/strspn.c         | 16 ++++++++++++++++
 newlib/libc/string/strstr.c         | 16 ++++++++++++++++
 newlib/libc/string/strtok.c         | 16 ++++++++++++++++
 newlib/libc/string/strupr.c         | 16 ++++++++++++++++
 newlib/libc/string/strxfrm.c        | 16 ++++++++++++++++
 newlib/libc/string/strxfrm_l.c      |  3 +++
 newlib/libc/string/swab.c           |  1 +
 newlib/libc/string/u_strerr.c       | 16 ++++++++++++++++
 newlib/libc/string/uniset           |  1 +
 newlib/libc/string/wcpcpy.c         |  1 +
 newlib/libc/string/wcpncpy.c        |  1 +
 newlib/libc/string/wcscasecmp.c     |  1 +
 newlib/libc/string/wcscasecmp_l.c   |  3 +++
 newlib/libc/string/wcscoll.c        |  1 +
 newlib/libc/string/wcscoll_l.c      |  3 +++
 newlib/libc/string/wcsdup.c         |  1 +
 newlib/libc/string/wcsncasecmp.c    |  1 +
 newlib/libc/string/wcsncasecmp_l.c  |  3 +++
 newlib/libc/string/wcsncpy.c        | 25 +++++++++++++++++++++++++
 newlib/libc/string/wcswidth.c       |  3 +++
 newlib/libc/string/wcsxfrm.c        |  1 +
 newlib/libc/string/wcsxfrm_l.c      |  3 +++
 newlib/libc/string/wcwidth.c        |  1 +
 newlib/libc/string/wide.t           |  1 +
 newlib/libc/string/wmempcpy.c       |  1 +
 newlib/libc/string/xpg_strerror_r.c |  1 +
 78 files changed, 625 insertions(+), 1 deletion(-)

-- 
2.25.0

Patch

diff --git a/newlib/libc/string/WIDTH-A b/newlib/libc/string/WIDTH-A
index 51e8f2339..593b2b262 100644
--- a/newlib/libc/string/WIDTH-A
+++ b/newlib/libc/string/WIDTH-A
@@ -1,3 +1,4 @@ 
+# This file is automatically generated
 # UAX #11: East Asian Ambiguous
 
 # Plane 00
diff --git a/newlib/libc/string/ambiguous.t b/newlib/libc/string/ambiguous.t
index f8b78428e..52d1a406b 100644
--- a/newlib/libc/string/ambiguous.t
+++ b/newlib/libc/string/ambiguous.t
@@ -1,3 +1,4 @@ 
+/* This file is automatically generated */
 {
   { 0x00A1, 0x00A1 }, { 0x00A4, 0x00A4 }, { 0x00A7, 0x00A8 },
   { 0x00AA, 0x00AA }, { 0x00AE, 0x00AE }, { 0x00B0, 0x00B4 },
diff --git a/newlib/libc/string/bcmp.c b/newlib/libc/string/bcmp.c
index 747f8af51..44e5fc47b 100644
--- a/newlib/libc/string/bcmp.c
+++ b/newlib/libc/string/bcmp.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<bcmp>>---compare two memory areas
 
diff --git a/newlib/libc/string/bcopy.c b/newlib/libc/string/bcopy.c
index d8bdeb57f..412faef43 100644
--- a/newlib/libc/string/bcopy.c
+++ b/newlib/libc/string/bcopy.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+*/
+/*
 FUNCTION
 	<<bcopy>>---copy memory regions
 
diff --git a/newlib/libc/string/bzero.c b/newlib/libc/string/bzero.c
index dc52170c5..fba7ea0a7 100644
--- a/newlib/libc/string/bzero.c
+++ b/newlib/libc/string/bzero.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 <<bzero>>---initialize memory to zero
 
diff --git a/newlib/libc/string/combining.t b/newlib/libc/string/combining.t
index 105cacbdf..f473d0142 100644
--- a/newlib/libc/string/combining.t
+++ b/newlib/libc/string/combining.t
@@ -1,3 +1,4 @@ 
+/* This file is automatically generated */
 {
   { 0x0300, 0x036F }, { 0x0483, 0x0489 }, { 0x0591, 0x05BD },
   { 0x05BF, 0x05BF }, { 0x05C1, 0x05C2 }, { 0x05C4, 0x05C5 },
diff --git a/newlib/libc/string/explicit_bzero.c b/newlib/libc/string/explicit_bzero.c
index 5124df23c..b3fa78ae8 100644
--- a/newlib/libc/string/explicit_bzero.c
+++ b/newlib/libc/string/explicit_bzero.c
@@ -1,7 +1,7 @@ 
 /*	$OpenBSD: explicit_bzero.c,v 1.2 2014/06/10 04:17:37 deraadt Exp $ */
 /*
+ * Copyright (c) 2014 Ted Unangst
  * Public domain.
- * Written by Ted Unangst
  */
 
 #include <string.h>
diff --git a/newlib/libc/string/index.c b/newlib/libc/string/index.c
index 4a6788512..8c34158d6 100644
--- a/newlib/libc/string/index.c
+++ b/newlib/libc/string/index.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<index>>---search for character in string
 
diff --git a/newlib/libc/string/local.h b/newlib/libc/string/local.h
index 8d364fdaa..1073c9e19 100644
--- a/newlib/libc/string/local.h
+++ b/newlib/libc/string/local.h
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2009 Corinna Vinschen <corinna@vinschen.de> */
 #include <_ansi.h>
 #include <../ctype/local.h>
 
diff --git a/newlib/libc/string/memccpy.c b/newlib/libc/string/memccpy.c
index 1f5f55c50..75e15ed28 100644
--- a/newlib/libc/string/memccpy.c
+++ b/newlib/libc/string/memccpy.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com> */
 /*
 FUNCTION
         <<memccpy>>---copy memory regions with end-token check
diff --git a/newlib/libc/string/memchr.c b/newlib/libc/string/memchr.c
index 21bc4d879..b17ef4b70 100644
--- a/newlib/libc/string/memchr.c
+++ b/newlib/libc/string/memchr.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<memchr>>---find character in memory
 
diff --git a/newlib/libc/string/memcmp.c b/newlib/libc/string/memcmp.c
index 342fb9fbc..a61646d32 100644
--- a/newlib/libc/string/memcmp.c
+++ b/newlib/libc/string/memcmp.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<memcmp>>---compare two memory areas
 
diff --git a/newlib/libc/string/memcpy.c b/newlib/libc/string/memcpy.c
index 52f716b92..be71e7e75 100644
--- a/newlib/libc/string/memcpy.c
+++ b/newlib/libc/string/memcpy.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
         <<memcpy>>---copy memory regions
 
diff --git a/newlib/libc/string/memmove.c b/newlib/libc/string/memmove.c
index da5dfdbdd..87d26034a 100644
--- a/newlib/libc/string/memmove.c
+++ b/newlib/libc/string/memmove.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<memmove>>---move possibly overlapping memory
 
diff --git a/newlib/libc/string/mempcpy.c b/newlib/libc/string/mempcpy.c
index 129165603..96e7173eb 100644
--- a/newlib/libc/string/mempcpy.c
+++ b/newlib/libc/string/mempcpy.c
@@ -1,4 +1,7 @@ 
 /*
+Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com>
+ */
+/*
 FUNCTION
         <<mempcpy>>---copy memory regions and return end pointer
 
diff --git a/newlib/libc/string/memrchr.c b/newlib/libc/string/memrchr.c
index 652efb359..05f686455 100644
--- a/newlib/libc/string/memrchr.c
+++ b/newlib/libc/string/memrchr.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2012 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 	<<memrchr>>---reverse search for character in memory
diff --git a/newlib/libc/string/memset.c b/newlib/libc/string/memset.c
index e8e667a24..8c95d40bc 100644
--- a/newlib/libc/string/memset.c
+++ b/newlib/libc/string/memset.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<memset>>---set an area of memory
 
diff --git a/newlib/libc/string/mkunidata b/newlib/libc/string/mkunidata
index 7ebebeb07..745f01e6d 100755
--- a/newlib/libc/string/mkunidata
+++ b/newlib/libc/string/mkunidata
@@ -1,4 +1,5 @@ 
 #! /bin/sh
+# Copyright(c) 2018 Thomas Wolff <towo@towo.net>
 
 echo Generating Unicode width data for newlib/libc/string/wcwidth.c
 
diff --git a/newlib/libc/string/mkwide b/newlib/libc/string/mkwide
index 55a0bab43..1a285f34f 100755
--- a/newlib/libc/string/mkwide
+++ b/newlib/libc/string/mkwide
@@ -1,4 +1,5 @@ 
 #! /bin/sh
+# Copyright(c) 2018 Thomas Wolff <towo@towo.net>
 
 # generate list of wide characters, with convex closure
 
diff --git a/newlib/libc/string/mkwidthA b/newlib/libc/string/mkwidthA
index 343ab4016..9caa0ab10 100755
--- a/newlib/libc/string/mkwidthA
+++ b/newlib/libc/string/mkwidthA
@@ -1,4 +1,5 @@ 
 #! /bin/sh
+# Copyright(c) 2018 Thomas Wolff <towo@towo.net>
 
 # generate WIDTH-A file, listing Unicode characters with width property
 # Ambiguous, from EastAsianWidth.txt
diff --git a/newlib/libc/string/rawmemchr.c b/newlib/libc/string/rawmemchr.c
index 56e2b5e2d..2546d219f 100644
--- a/newlib/libc/string/rawmemchr.c
+++ b/newlib/libc/string/rawmemchr.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2013 Yaakov Selkowitz <yselkowi@redhat.com> */
 /*
 FUNCTION
 	<<rawmemchr>>---find character in memory
diff --git a/newlib/libc/string/rindex.c b/newlib/libc/string/rindex.c
index 39e5aa2da..c44e67e49 100644
--- a/newlib/libc/string/rindex.c
+++ b/newlib/libc/string/rindex.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<rindex>>---reverse search for character in string
 
diff --git a/newlib/libc/string/stpcpy.c b/newlib/libc/string/stpcpy.c
index 4e2ae9fe0..f4ef5cda3 100644
--- a/newlib/libc/string/stpcpy.c
+++ b/newlib/libc/string/stpcpy.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2007 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 	<<stpcpy>>---copy string returning a pointer to its end
diff --git a/newlib/libc/string/stpncpy.c b/newlib/libc/string/stpncpy.c
index 87fe268cf..ec5ff74df 100644
--- a/newlib/libc/string/stpncpy.c
+++ b/newlib/libc/string/stpncpy.c
@@ -1,4 +1,7 @@ 
 /*
+Copyright (c) 2007 Corinna Vinschen <corinna@vinschen.de>
+ */
+/*
 FUNCTION
 	<<stpncpy>>---counted copy string returning a pointer to its end
 
diff --git a/newlib/libc/string/strcasecmp.c b/newlib/libc/string/strcasecmp.c
index c75a3e20d..f6b1281a4 100644
--- a/newlib/libc/string/strcasecmp.c
+++ b/newlib/libc/string/strcasecmp.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strcasecmp>>---case-insensitive character string compare
 	
diff --git a/newlib/libc/string/strcasecmp_l.c b/newlib/libc/string/strcasecmp_l.c
index 587f56ee1..85504c8f8 100644
--- a/newlib/libc/string/strcasecmp_l.c
+++ b/newlib/libc/string/strcasecmp_l.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 	<<strcasecmp_l>>---case-insensitive character string compare
diff --git a/newlib/libc/string/strcat.c b/newlib/libc/string/strcat.c
index 92313c492..cecb05622 100644
--- a/newlib/libc/string/strcat.c
+++ b/newlib/libc/string/strcat.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strcat>>---concatenate strings
 
diff --git a/newlib/libc/string/strchr.c b/newlib/libc/string/strchr.c
index 96f30be04..b88eb8fc4 100644
--- a/newlib/libc/string/strchr.c
+++ b/newlib/libc/string/strchr.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strchr>>---search for character in string
 
diff --git a/newlib/libc/string/strchrnul.c b/newlib/libc/string/strchrnul.c
index f5c3eb25d..51555acb6 100644
--- a/newlib/libc/string/strchrnul.c
+++ b/newlib/libc/string/strchrnul.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2011 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 	<<strchrnul>>---search for character in string
diff --git a/newlib/libc/string/strcmp.c b/newlib/libc/string/strcmp.c
index 894424a69..bd9321518 100644
--- a/newlib/libc/string/strcmp.c
+++ b/newlib/libc/string/strcmp.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strcmp>>---character string compare
 	
diff --git a/newlib/libc/string/strcoll.c b/newlib/libc/string/strcoll.c
index 7fa8d1373..4f39df823 100644
--- a/newlib/libc/string/strcoll.c
+++ b/newlib/libc/string/strcoll.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strcoll>>---locale-specific character string compare
 	
diff --git a/newlib/libc/string/strcoll_l.c b/newlib/libc/string/strcoll_l.c
index 89a7d0535..20939fe4b 100644
--- a/newlib/libc/string/strcoll_l.c
+++ b/newlib/libc/string/strcoll_l.c
@@ -1,4 +1,7 @@ 
 /*
+Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
+ */
+/*
 FUNCTION
 	<<strcoll_l>>---locale-specific character string compare
 	
diff --git a/newlib/libc/string/strcpy.c b/newlib/libc/string/strcpy.c
index 94e16b512..d466c0cf7 100644
--- a/newlib/libc/string/strcpy.c
+++ b/newlib/libc/string/strcpy.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strcpy>>---copy string
 
diff --git a/newlib/libc/string/strcspn.c b/newlib/libc/string/strcspn.c
index abaa93ad6..4056bf7b8 100644
--- a/newlib/libc/string/strcspn.c
+++ b/newlib/libc/string/strcspn.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strcspn>>---count characters not in string
 
diff --git a/newlib/libc/string/strdup.c b/newlib/libc/string/strdup.c
index 3f2a0264c..2746fdbb0 100644
--- a/newlib/libc/string/strdup.c
+++ b/newlib/libc/string/strdup.c
@@ -1,3 +1,6 @@ 
+/*
+Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com>
+ */
 #ifndef _REENT_ONLY
 
 #include <reent.h>
diff --git a/newlib/libc/string/strdup_r.c b/newlib/libc/string/strdup_r.c
index 14c80f73f..dd40bd34f 100644
--- a/newlib/libc/string/strdup_r.c
+++ b/newlib/libc/string/strdup_r.c
@@ -1,3 +1,6 @@ 
+/*
+Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com>
+ */
 #include <reent.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/newlib/libc/string/strerror.c b/newlib/libc/string/strerror.c
index c1b934696..9b1e1daae 100644
--- a/newlib/libc/string/strerror.c
+++ b/newlib/libc/string/strerror.c
@@ -1,3 +1,19 @@ 
+/*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
 /***
 **** CAUTION!!! KEEP DOC CONSISTENT---if you change text of a message
 ****            here, change two places:
diff --git a/newlib/libc/string/strerror_r.c b/newlib/libc/string/strerror_r.c
index 660fee869..96d90d25b 100644
--- a/newlib/libc/string/strerror_r.c
+++ b/newlib/libc/string/strerror_r.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com> */
 /* GNU variant of strerror_r. */
 /*
 FUNCTION
diff --git a/newlib/libc/string/strings.tex b/newlib/libc/string/strings.tex
index 6aec5fe0e..7d297fbea 100644
--- a/newlib/libc/string/strings.tex
+++ b/newlib/libc/string/strings.tex
@@ -1,3 +1,19 @@ 
+#
+#Copyright (c) 1994 Cygnus Support.
+#All rights reserved.
+#
+#Redistribution and use in source and binary forms are permitted
+#provided that the above copyright notice and this paragraph are
+#duplicated in all such forms and that any documentation,
+#and/or other materials related to such
+#distribution and use acknowledge that the software was developed
+#at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+#endorse or promote products derived from this software without
+#specific prior written permission.
+#THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+#IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+#WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+#
 @node Strings
 @chapter Strings and Memory (@file{string.h})
 
diff --git a/newlib/libc/string/strlen.c b/newlib/libc/string/strlen.c
index acffa49e1..31bf20922 100644
--- a/newlib/libc/string/strlen.c
+++ b/newlib/libc/string/strlen.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/* 
 FUNCTION
 	<<strlen>>---character string length
 
diff --git a/newlib/libc/string/strlwr.c b/newlib/libc/string/strlwr.c
index 7211c5917..507b80c25 100644
--- a/newlib/libc/string/strlwr.c
+++ b/newlib/libc/string/strlwr.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strlwr>>---force string to lowercase
 	
diff --git a/newlib/libc/string/strncasecmp.c b/newlib/libc/string/strncasecmp.c
index 09dd98bf5..b0f4c534c 100644
--- a/newlib/libc/string/strncasecmp.c
+++ b/newlib/libc/string/strncasecmp.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strncasecmp>>---case-insensitive character string compare
 	
diff --git a/newlib/libc/string/strncasecmp_l.c b/newlib/libc/string/strncasecmp_l.c
index b15c6c545..38f594c8e 100644
--- a/newlib/libc/string/strncasecmp_l.c
+++ b/newlib/libc/string/strncasecmp_l.c
@@ -1,4 +1,7 @@ 
 /*
+Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
+ */
+/*
 FUNCTION
 	<<strncasecmp_l>>---case-insensitive character string compare
 	
diff --git a/newlib/libc/string/strncat.c b/newlib/libc/string/strncat.c
index 7351913f9..dd5ffda80 100644
--- a/newlib/libc/string/strncat.c
+++ b/newlib/libc/string/strncat.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strncat>>---concatenate strings
 
diff --git a/newlib/libc/string/strncmp.c b/newlib/libc/string/strncmp.c
index 16f8a7729..fb3bd177f 100644
--- a/newlib/libc/string/strncmp.c
+++ b/newlib/libc/string/strncmp.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strncmp>>---character string compare
 	
diff --git a/newlib/libc/string/strncpy.c b/newlib/libc/string/strncpy.c
index e7eb34d72..1745c5220 100644
--- a/newlib/libc/string/strncpy.c
+++ b/newlib/libc/string/strncpy.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strncpy>>---counted copy string
 
diff --git a/newlib/libc/string/strndup.c b/newlib/libc/string/strndup.c
index 3ac890a8c..28671a58c 100644
--- a/newlib/libc/string/strndup.c
+++ b/newlib/libc/string/strndup.c
@@ -1,3 +1,6 @@ 
+/*
+Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com>
+ */
 #ifndef _REENT_ONLY
 
 #include <_ansi.h>
diff --git a/newlib/libc/string/strndup_r.c b/newlib/libc/string/strndup_r.c
index 1b6cf84e5..96faa296f 100644
--- a/newlib/libc/string/strndup_r.c
+++ b/newlib/libc/string/strndup_r.c
@@ -1,3 +1,6 @@ 
+/*
+Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com>
+ */
 #include <reent.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/newlib/libc/string/strnlen.c b/newlib/libc/string/strnlen.c
index 3ee18d1c0..aa294c4cf 100644
--- a/newlib/libc/string/strnlen.c
+++ b/newlib/libc/string/strnlen.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com> */
 /* 
 FUNCTION
 	<<strnlen>>---character string length
diff --git a/newlib/libc/string/strnstr.c b/newlib/libc/string/strnstr.c
index cb5f71914..629cb2106 100644
--- a/newlib/libc/string/strnstr.c
+++ b/newlib/libc/string/strnstr.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2017 Sichen Zhao <1473996754@qq.com> */
 /*
 FUNCTION
 	<<strnstr>>---find string segment
diff --git a/newlib/libc/string/strpbrk.c b/newlib/libc/string/strpbrk.c
index 774db1e6d..e04bea81f 100644
--- a/newlib/libc/string/strpbrk.c
+++ b/newlib/libc/string/strpbrk.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strpbrk>>---find characters in string
 
diff --git a/newlib/libc/string/strrchr.c b/newlib/libc/string/strrchr.c
index 04897e162..95662e35e 100644
--- a/newlib/libc/string/strrchr.c
+++ b/newlib/libc/string/strrchr.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strrchr>>---reverse search for character in string
 
diff --git a/newlib/libc/string/strspn.c b/newlib/libc/string/strspn.c
index baf239947..5446838e4 100644
--- a/newlib/libc/string/strspn.c
+++ b/newlib/libc/string/strspn.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strspn>>---find initial match
 
diff --git a/newlib/libc/string/strstr.c b/newlib/libc/string/strstr.c
index 00fe060e9..3ce792892 100644
--- a/newlib/libc/string/strstr.c
+++ b/newlib/libc/string/strstr.c
@@ -27,6 +27,22 @@ 
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strstr>>---find string segment
 
diff --git a/newlib/libc/string/strtok.c b/newlib/libc/string/strtok.c
index 801f51aca..7f12678dc 100644
--- a/newlib/libc/string/strtok.c
+++ b/newlib/libc/string/strtok.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strtok>>, <<strtok_r>>, <<strsep>>---get next token from a string
 
diff --git a/newlib/libc/string/strupr.c b/newlib/libc/string/strupr.c
index a175d5c57..f324cd82a 100644
--- a/newlib/libc/string/strupr.c
+++ b/newlib/libc/string/strupr.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strupr>>---force string to uppercase
 	
diff --git a/newlib/libc/string/strxfrm.c b/newlib/libc/string/strxfrm.c
index c5df0bcd5..7af4b8bde 100644
--- a/newlib/libc/string/strxfrm.c
+++ b/newlib/libc/string/strxfrm.c
@@ -1,4 +1,20 @@ 
 /*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
+/*
 FUNCTION
 	<<strxfrm>>---transform string
 
diff --git a/newlib/libc/string/strxfrm_l.c b/newlib/libc/string/strxfrm_l.c
index 0ac52432c..08229e78b 100644
--- a/newlib/libc/string/strxfrm_l.c
+++ b/newlib/libc/string/strxfrm_l.c
@@ -1,4 +1,7 @@ 
 /*
+Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
+ */
+/*
 FUNCTION
 	<<strxfrm_l>>---transform string
 
diff --git a/newlib/libc/string/swab.c b/newlib/libc/string/swab.c
index 28ab978bd..c9f9b2e4e 100644
--- a/newlib/libc/string/swab.c
+++ b/newlib/libc/string/swab.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2000 Alexandre Oliva <aoliva@redhat.com> */
 /*
 FUNCTION
 	<<swab>>---swap adjacent bytes
diff --git a/newlib/libc/string/u_strerr.c b/newlib/libc/string/u_strerr.c
index cde05adb2..e7e832ce5 100644
--- a/newlib/libc/string/u_strerr.c
+++ b/newlib/libc/string/u_strerr.c
@@ -1,3 +1,19 @@ 
+/*
+Copyright (c) 1994 Cygnus Support.
+All rights reserved.
+
+Redistribution and use in source and binary forms are permitted
+provided that the above copyright notice and this paragraph are
+duplicated in all such forms and that any documentation,
+and/or other materials related to such
+distribution and use acknowledge that the software was developed
+at Cygnus Support, Inc.  Cygnus Support, Inc. may not be used to
+endorse or promote products derived from this software without
+specific prior written permission.
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ */
 #include <_ansi.h>
 
 char *
diff --git a/newlib/libc/string/uniset b/newlib/libc/string/uniset
index 85d3b2a6f..d6660a46f 100755
--- a/newlib/libc/string/uniset
+++ b/newlib/libc/string/uniset
@@ -1,4 +1,5 @@ 
 #!/usr/bin/perl
+# Copyright (c) 2018 Markus Kuhn
 # Uniset -- Unicode subset manager -- Markus Kuhn
 # http://www.cl.cam.ac.uk/~mgk25/download/uniset.tar.gz
 
diff --git a/newlib/libc/string/wcpcpy.c b/newlib/libc/string/wcpcpy.c
index 76c5311f1..bd05751d9 100644
--- a/newlib/libc/string/wcpcpy.c
+++ b/newlib/libc/string/wcpcpy.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2007 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 	<<wcpcpy>>---copy a wide-character string returning a pointer to its end
diff --git a/newlib/libc/string/wcpncpy.c b/newlib/libc/string/wcpncpy.c
index d4e8bcfcd..59fc9c1d5 100644
--- a/newlib/libc/string/wcpncpy.c
+++ b/newlib/libc/string/wcpncpy.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2007 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 	<<wcpncpy>>---copy part of a wide-character string returning a pointer to its end
diff --git a/newlib/libc/string/wcscasecmp.c b/newlib/libc/string/wcscasecmp.c
index b8623ba06..2c80e304c 100644
--- a/newlib/libc/string/wcscasecmp.c
+++ b/newlib/libc/string/wcscasecmp.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2009 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 	<<wcscasecmp>>---case-insensitive wide character string compare
diff --git a/newlib/libc/string/wcscasecmp_l.c b/newlib/libc/string/wcscasecmp_l.c
index 3c58d8f50..6e3c0b2ff 100644
--- a/newlib/libc/string/wcscasecmp_l.c
+++ b/newlib/libc/string/wcscasecmp_l.c
@@ -1,4 +1,7 @@ 
 /*
+Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
+ */
+/*
 FUNCTION
 	<<wcscasecmp_l>>---case-insensitive wide character string compare
 	
diff --git a/newlib/libc/string/wcscoll.c b/newlib/libc/string/wcscoll.c
index 4bbf39c9a..6fce232f8 100644
--- a/newlib/libc/string/wcscoll.c
+++ b/newlib/libc/string/wcscoll.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2003 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 	<<wcscoll>>---locale-specific wide-character string compare
diff --git a/newlib/libc/string/wcscoll_l.c b/newlib/libc/string/wcscoll_l.c
index 2c9df5244..3db07b5a5 100644
--- a/newlib/libc/string/wcscoll_l.c
+++ b/newlib/libc/string/wcscoll_l.c
@@ -1,4 +1,7 @@ 
 /*
+Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
+ */
+/*
 FUNCTION
 	<<wcscoll_l>>---locale-specific wide-character string compare
 	
diff --git a/newlib/libc/string/wcsdup.c b/newlib/libc/string/wcsdup.c
index e0e97c0bd..40659333c 100644
--- a/newlib/libc/string/wcsdup.c
+++ b/newlib/libc/string/wcsdup.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2009 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 	<<wcsdup>>---wide character string duplicate
diff --git a/newlib/libc/string/wcsncasecmp.c b/newlib/libc/string/wcsncasecmp.c
index b77952ac3..5cd32a707 100644
--- a/newlib/libc/string/wcsncasecmp.c
+++ b/newlib/libc/string/wcsncasecmp.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2009 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 	<<wcsncasecmp>>---case-insensitive wide character string compare
diff --git a/newlib/libc/string/wcsncasecmp_l.c b/newlib/libc/string/wcsncasecmp_l.c
index f276635d7..fe27551b0 100644
--- a/newlib/libc/string/wcsncasecmp_l.c
+++ b/newlib/libc/string/wcsncasecmp_l.c
@@ -1,4 +1,7 @@ 
 /*
+Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
+ */
+/*
 FUNCTION
 	<<wcsncasecmp_l>>---case-insensitive wide character string compare
 	
diff --git a/newlib/libc/string/wcsncpy.c b/newlib/libc/string/wcsncpy.c
index 9b103b1bd..20f4321b5 100644
--- a/newlib/libc/string/wcsncpy.c
+++ b/newlib/libc/string/wcsncpy.c
@@ -1,4 +1,29 @@ 
 /*
+Copyright (c)1999 Citrus Project,
+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.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
+ */
+/*
 FUNCTION
 	<<wcsncpy>>---copy part of a wide-character string 
 
diff --git a/newlib/libc/string/wcswidth.c b/newlib/libc/string/wcswidth.c
index 4be7b8ae8..f4dc9e29d 100644
--- a/newlib/libc/string/wcswidth.c
+++ b/newlib/libc/string/wcswidth.c
@@ -1,4 +1,7 @@ 
 /*
+Copyright (c) 2003 Corinna Vinschen <corinna@vinschen.de>
+ */
+/*
 FUNCTION
 	<<wcswidth>>---number of column positions of a wide-character string
 	
diff --git a/newlib/libc/string/wcsxfrm.c b/newlib/libc/string/wcsxfrm.c
index 72b3c5bd0..837f921ce 100644
--- a/newlib/libc/string/wcsxfrm.c
+++ b/newlib/libc/string/wcsxfrm.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2007 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 	<<wcsxfrm>>---locale-specific wide-character string transformation
diff --git a/newlib/libc/string/wcsxfrm_l.c b/newlib/libc/string/wcsxfrm_l.c
index bfc4ae56b..d09a9ab43 100644
--- a/newlib/libc/string/wcsxfrm_l.c
+++ b/newlib/libc/string/wcsxfrm_l.c
@@ -1,4 +1,7 @@ 
 /*
+Copyright (c) 2016 Corinna Vinschen <corinna@vinschen.de>
+ */
+/*
 FUNCTION
 	<<wcsxfrm_l>>---locale-specific wide-character string transformation
 	
diff --git a/newlib/libc/string/wcwidth.c b/newlib/libc/string/wcwidth.c
index 62e76edc3..40c014344 100644
--- a/newlib/libc/string/wcwidth.c
+++ b/newlib/libc/string/wcwidth.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2003 Corinna Vinschen <corinna@vinschen.de> */
 /*
 FUNCTION
 	<<wcwidth>>---number of column positions of a wide-character code
diff --git a/newlib/libc/string/wide.t b/newlib/libc/string/wide.t
index d33a5954e..1e6d85696 100644
--- a/newlib/libc/string/wide.t
+++ b/newlib/libc/string/wide.t
@@ -1,3 +1,4 @@ 
+/* This file is automatically generated */
 //# EastAsianWidth-11.0.0.txt
 //# Blocks-11.0.0.txt
 {
diff --git a/newlib/libc/string/wmempcpy.c b/newlib/libc/string/wmempcpy.c
index 98983f968..9f3e01e0c 100644
--- a/newlib/libc/string/wmempcpy.c
+++ b/newlib/libc/string/wmempcpy.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2017 Yaakov Selkowitz <yselkowi@redhat.com> */
 /*
 FUNCTION
 	<<wmempcpy>>---copy wide characters in memory and return end pointer
diff --git a/newlib/libc/string/xpg_strerror_r.c b/newlib/libc/string/xpg_strerror_r.c
index 66e693611..f678dc34d 100644
--- a/newlib/libc/string/xpg_strerror_r.c
+++ b/newlib/libc/string/xpg_strerror_r.c
@@ -1,3 +1,4 @@ 
+/* Copyright (c) 2011 Eric Blake <eblake@redhat.com> */
 /* POSIX variant of strerror_r. */
 #undef __STRICT_ANSI__
 #include <errno.h>