From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130352 invoked by alias); 5 Feb 2020 06:49:38 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 130269 invoked by uid 89); 5 Feb 2020 06:49:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-23.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=East, swab, ****, plane X-HELO: elaine.keithp.com Received: from home.keithp.com (HELO elaine.keithp.com) (63.227.221.253) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Feb 2020 06:49:29 +0000 Received: from localhost (localhost [127.0.0.1]) by elaine.keithp.com (Postfix) with ESMTP id 1FC293F2AC0E for ; Tue, 4 Feb 2020 22:49:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1580885343; bh=F7S43pGfsEahHQi4H0WrKg+InibotYp9GWB8FJoZ3Aw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XKzmyawhmbU5KVEvG5AqYP+60E9//etjvxgPaBHz/KAAr9GAzAoyH/U+VGnW2dq2r yhaNkDifvccIAUomAMAFZ+MS+7ocsIWdhO8hrvfpK8jnKD5KOz7pGJ9icoTabP3p9f 0Qlfk3wpEVB5Rl8eHUTXgQCeoCVeam6GQyX9qAS3VdUJY5AhLiTYribYaAI4zy+c1/ PLQisPIDQU3BGIUEmdB8XF5dwzHfvwwWjetrV+sA3poxSup6OTe9DtnRZMypv/fyka xhBYuZLh6DIUSUyG6UOIaFyAfQqGufWpvnOvtN9LQTvtMdPJyRaCQPnPDn9+ad3Tp6 6YgGum/qNvUhw== Received: from elaine.keithp.com ([127.0.0.1]) by localhost (elaine.keithp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eL-QuUSyc14Y; Tue, 4 Feb 2020 22:48:59 -0800 (PST) Received: from keithp.com (koto.keithp.com [10.0.0.2]) by elaine.keithp.com (Postfix) with ESMTPSA id 26ED63F2AC0D; Tue, 4 Feb 2020 22:48:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1580885327; bh=F7S43pGfsEahHQi4H0WrKg+InibotYp9GWB8FJoZ3Aw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h9E106aPlmc27ZNO2iW1GbcH+almeoT4pqq1r1ldqDQqzKyp3HFFfGzt3RER4fnTN QtbadUlgrmD70dA78hQkjY71HuK5SvpLoxtBmvgyWUM9LMQ3/cMZYaOBuJS/Q5WeVg stPlYvDd7P7jsuVpJ3Y8pG40HSBNYMLXlEg5cVmLURvJ1I5bO/bRAEHsJpxAVF7VQZ /y/yos3bB5rHq2iUxjEG/mXI1HGJ7zMPvauZ6oNM/0vx0r1Ro6dIxqroEIPl7eVveW kaIf1Gw0SNyoAeZaEQpV2PaXmeNYYMVmyyqBu+q49a+GsnumaYj3ij3a2bzg+b/zx6 eL26RT8BeXY/Q== Received: by keithp.com (Postfix, from userid 1000) id B249315821C5; Tue, 4 Feb 2020 22:48:46 -0800 (PST) From: Keith Packard To: newlib@sourceware.org Cc: Keith Packard Subject: [PATCH 18/27] Add missing copyrights in newlib/libc/string Date: Wed, 05 Feb 2020 06:49:00 -0000 Message-Id: <20200205064844.929131-19-keithp@keithp.com> In-Reply-To: <20200205064844.929131-1-keithp@keithp.com> References: <20200205064844.929131-1-keithp@keithp.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2020/txt/msg00056.txt Signed-off-by: Keith Packard --- 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(-) 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 <>---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 <>---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 <>---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 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 <>---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 */ #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 */ /* FUNCTION <>---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 <>---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 <>---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 <>---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 <>---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 + */ +/* FUNCTION <>---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 */ /* FUNCTION <>---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 <>---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 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 # 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 # 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 */ /* FUNCTION <>---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 <>---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 */ /* FUNCTION <>---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 + */ +/* FUNCTION <>---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 <>---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 */ /* FUNCTION <>---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 <>---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 <>---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 */ /* FUNCTION <>---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 <>---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 <>---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 + */ +/* FUNCTION <>---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 <>---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 <>---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 + */ #ifndef _REENT_ONLY #include 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 + */ #include #include #include 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 */ /* 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 <>---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 <>---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 <>---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 + */ +/* FUNCTION <>---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 <>---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 <>---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 <>---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 + */ #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 + */ #include #include #include 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 */ /* FUNCTION <>---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 <>---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 <>---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 <>---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 <>---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 <>---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 <>, <>, <>---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 <>---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 <>---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 + */ +/* FUNCTION <>---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 */ /* FUNCTION <>---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 */ /* FUNCTION <>---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 */ /* FUNCTION <>---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 */ /* FUNCTION <>---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 + */ +/* FUNCTION <>---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 */ /* FUNCTION <>---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 + */ +/* FUNCTION <>---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 */ /* FUNCTION <>---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 */ /* FUNCTION <>---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 + */ +/* FUNCTION <>---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 <>---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 + */ +/* FUNCTION <>---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 */ /* FUNCTION <>---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 + */ +/* FUNCTION <>---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 */ /* FUNCTION <>---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 */ /* FUNCTION <>---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 */ /* POSIX variant of strerror_r. */ #undef __STRICT_ANSI__ #include -- 2.25.0