From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127625 invoked by alias); 5 Feb 2020 06:49:10 -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 127295 invoked by uid 89); 5 Feb 2020 06:49:07 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.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=procurement, goods, BUSINESS, unicode 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:48:54 +0000 Received: from localhost (localhost [127.0.0.1]) by elaine.keithp.com (Postfix) with ESMTP id CF22C3F2AC0F for ; Tue, 4 Feb 2020 22:48:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1580885332; bh=VLsHmo4kAaP94yy0YInOzVdU+Rhp41P3JB6BoafuIFA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JKOy4JOYi1KCLV8AaRyhRKyTWGe2AqDX2loYsTbprxcFdA+4PE8S4v3/0+OtUzY5x 11Xvs7KOh0n/7KkafFDXmmCwIwvBBDYU6Y2AbemD6pOPdTDyLLp5mrazkI883VWGZr Ho88TMT8/ukWiTYloc/oXfpL3zARuQ7hysKcRCKEfALp+keoHfxU60phLyaOAu16na WaAASFZ9LBda+ONlej/vTE7o3qjWqU+fiqoqvH77xgJplmFG2GxT40E4/XQHCOasRt LTddI/oiuwm6+8NUB/Hiwgt+smk2kL2Z37fXVTliqiFdjhk359LYlBbAnFQxEClXWx TREhCLnWi+rfA== 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 IGoPJIm9lr8u; Tue, 4 Feb 2020 22:48:50 -0800 (PST) Received: from keithp.com (koto.keithp.com [10.0.0.2]) by elaine.keithp.com (Postfix) with ESMTPSA id A6B4C3F2ABFE; Tue, 4 Feb 2020 22:48:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1580885326; bh=VLsHmo4kAaP94yy0YInOzVdU+Rhp41P3JB6BoafuIFA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aWUywyGlDrHvwz6rVUvjhUxa4IeagPiQx0dtb10jisYDF7r52Ts1vHyCfcDSnLg4k WCAMPM1bvZ1AWigIwSrgS3A9fWLb8oux/n5cXCkUO/DXYO6PMrMJWA6fY8WafbtEI2 QQNCWCT2GO0WXGxcxH+eJMUWo35+rmTUfFxCQYfeSqc7bgDoMW9L92Ti4q0Pf/B3i7 gcauh63ZQUr2NlltyyZ5OjL0QQyvQD6vULLsg+AtJzr0tAZv/6m8TG8yITzAPxCTsq xNrGZQ5V3tTfAJyjjaHRn3zokjZsgGgXY6DOQ4nkGVIPgXylfgmee2xoy9X4eCPmxW 15mwRTNnzGCRQ== Received: by keithp.com (Postfix, from userid 1000) id 7367715821A8; Tue, 4 Feb 2020 22:48:46 -0800 (PST) From: Keith Packard To: newlib@sourceware.org Cc: Keith Packard Subject: [PATCH 04/27] Add copyright attribution for files in newlib/libc/ctype Date: Wed, 05 Feb 2020 06:49:00 -0000 Message-Id: <20200205064844.929131-5-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/msg00046.txt These were extracted from git history, either by attributing to the commit author or by finding license information added to other new files in the same commit. No licensing was added for those files for which none could be inferred. Signed-off-by: Keith Packard --- newlib/libc/ctype/caseconv.t | 1 + newlib/libc/ctype/categories.c | 5 +++++ newlib/libc/ctype/categories.cat | 1 + newlib/libc/ctype/categories.h | 3 +++ newlib/libc/ctype/categories.t | 1 + newlib/libc/ctype/ctype.tex | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/ctype_.h | 1 + newlib/libc/ctype/ctype_cp.h | 3 +++ newlib/libc/ctype/ctype_iso.h | 3 +++ newlib/libc/ctype/isalnum.c | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/isalnum_l.c | 4 ++++ newlib/libc/ctype/isalpha.c | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/isalpha_l.c | 4 ++++ newlib/libc/ctype/isascii.c | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/isascii_l.c | 4 ++++ newlib/libc/ctype/isblank.c | 1 + newlib/libc/ctype/isblank_l.c | 4 ++++ newlib/libc/ctype/iscntrl.c | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/iscntrl_l.c | 4 ++++ newlib/libc/ctype/isdigit.c | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/isdigit_l.c | 4 ++++ newlib/libc/ctype/islower.c | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/islower_l.c | 4 ++++ newlib/libc/ctype/isprint.c | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/isprint_l.c | 4 ++++ newlib/libc/ctype/ispunct.c | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/ispunct_l.c | 4 ++++ newlib/libc/ctype/isspace.c | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/isspace_l.c | 4 ++++ newlib/libc/ctype/isupper.c | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/isupper_l.c | 4 ++++ newlib/libc/ctype/iswalnum.c | 30 ++++++++++++++++++++++++++++++ newlib/libc/ctype/iswalnum_l.c | 4 ++++ newlib/libc/ctype/iswalpha_l.c | 4 ++++ newlib/libc/ctype/iswblank_l.c | 4 ++++ newlib/libc/ctype/iswcntrl_l.c | 4 ++++ newlib/libc/ctype/iswctype.c | 30 ++++++++++++++++++++++++++++++ newlib/libc/ctype/iswctype_l.c | 1 + newlib/libc/ctype/iswdigit.c | 30 ++++++++++++++++++++++++++++++ newlib/libc/ctype/iswdigit_l.c | 4 ++++ newlib/libc/ctype/iswgraph_l.c | 4 ++++ newlib/libc/ctype/iswlower.c | 30 ++++++++++++++++++++++++++++++ newlib/libc/ctype/iswlower_l.c | 4 ++++ newlib/libc/ctype/iswprint_l.c | 4 ++++ newlib/libc/ctype/iswpunct_l.c | 4 ++++ newlib/libc/ctype/iswspace_l.c | 4 ++++ newlib/libc/ctype/iswupper.c | 30 ++++++++++++++++++++++++++++++ newlib/libc/ctype/iswupper_l.c | 4 ++++ newlib/libc/ctype/iswxdigit.c | 30 ++++++++++++++++++++++++++++++ newlib/libc/ctype/iswxdigit_l.c | 4 ++++ newlib/libc/ctype/isxdigit.c | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/isxdigit_l.c | 4 ++++ newlib/libc/ctype/jp2uc.h | 30 ++++++++++++++++++++++++++++++ newlib/libc/ctype/local.h | 30 ++++++++++++++++++++++++++++++ newlib/libc/ctype/mkcaseconv | 2 ++ newlib/libc/ctype/mkcategories | 2 ++ newlib/libc/ctype/mkunidata | 2 ++ newlib/libc/ctype/toascii.c | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/toascii_l.c | 4 ++++ newlib/libc/ctype/tolower.c | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/tolower_l.c | 4 ++++ newlib/libc/ctype/toupper.c | 28 ++++++++++++++++++++++++++++ newlib/libc/ctype/toupper_l.c | 4 ++++ newlib/libc/ctype/towctrans_l.c | 4 ++++ newlib/libc/ctype/towlower_l.c | 4 ++++ newlib/libc/ctype/towupper_l.c | 4 ++++ newlib/libc/ctype/wctrans_l.c | 4 ++++ newlib/libc/ctype/wctype_l.c | 4 ++++ 68 files changed, 814 insertions(+) diff --git a/newlib/libc/ctype/caseconv.t b/newlib/libc/ctype/caseconv.t index 31eb503fa..b9c4f0b12 100644 --- a/newlib/libc/ctype/caseconv.t +++ b/newlib/libc/ctype/caseconv.t @@ -1,3 +1,4 @@ +/* This file was generated automatically */ {0x0041, 25, TOLO, 32}, {0x0061, 25, TOUP, -32}, {0x00B5, 0, TOUP, 743}, diff --git a/newlib/libc/ctype/categories.c b/newlib/libc/ctype/categories.c index a8de1f129..5349bb5f8 100644 --- a/newlib/libc/ctype/categories.c +++ b/newlib/libc/ctype/categories.c @@ -1,3 +1,8 @@ +/* +Copyright (c) 2017 Thomas Wolff towo@towo.net + + + */ #include #include #include "categories.h" diff --git a/newlib/libc/ctype/categories.cat b/newlib/libc/ctype/categories.cat index cade60a6a..5465bed98 100644 --- a/newlib/libc/ctype/categories.cat +++ b/newlib/libc/ctype/categories.cat @@ -1,3 +1,4 @@ +/* This file was generated automatically */ CAT_Cc, CAT_Cf, CAT_Cs, diff --git a/newlib/libc/ctype/categories.h b/newlib/libc/ctype/categories.h index 271038e61..0f9951ae0 100644 --- a/newlib/libc/ctype/categories.h +++ b/newlib/libc/ctype/categories.h @@ -1,3 +1,6 @@ +/* +Copyright (c) 2017 Thomas Wolff towo@towo.net + */ /* category data */ enum category { diff --git a/newlib/libc/ctype/categories.t b/newlib/libc/ctype/categories.t index ca7671051..880cfeac5 100644 --- a/newlib/libc/ctype/categories.t +++ b/newlib/libc/ctype/categories.t @@ -1,3 +1,4 @@ +/* This file was generated automatically */ {CAT_Cc, 0x0000, 31}, {CAT_Zs, 0x0020, 0}, {CAT_Po, 0x0021, 2}, diff --git a/newlib/libc/ctype/ctype.tex b/newlib/libc/ctype/ctype.tex index 1cd223e69..075c4b859 100644 --- a/newlib/libc/ctype/ctype.tex +++ b/newlib/libc/ctype/ctype.tex @@ -1,3 +1,31 @@ +/* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ @node Ctype @chapter Character Type Macros and Functions (@file{ctype.h}) This chapter groups macros (which are also available as subroutines) diff --git a/newlib/libc/ctype/ctype_.h b/newlib/libc/ctype/ctype_.h index a73870b3e..e2a3a05a4 100644 --- a/newlib/libc/ctype/ctype_.h +++ b/newlib/libc/ctype/ctype_.h @@ -1,3 +1,4 @@ +/* Copyright (c) 2016 Corinna Vinschen */ #include #if (defined(__GNUC__) && !defined(__CHAR_UNSIGNED__) && !defined(COMPACT_CTYPE)) || defined (__CYGWIN__) diff --git a/newlib/libc/ctype/ctype_cp.h b/newlib/libc/ctype/ctype_cp.h index 9370778a2..1680decc9 100644 --- a/newlib/libc/ctype/ctype_cp.h +++ b/newlib/libc/ctype/ctype_cp.h @@ -1,3 +1,6 @@ +/* + * Copyright (c) 2009 Corinna Vinschen + */ /* ctype table definitions for Windows codepage charsets. Included by ctype_.c. */ diff --git a/newlib/libc/ctype/ctype_iso.h b/newlib/libc/ctype/ctype_iso.h index 60087dc92..fe65e1835 100644 --- a/newlib/libc/ctype/ctype_iso.h +++ b/newlib/libc/ctype/ctype_iso.h @@ -1,3 +1,6 @@ +/* + * Copyright (c) 2009 Corinna Vinschen + */ /* ctype table definitions for ISO-8859-x charsets. Included by ctype_.c. */ diff --git a/newlib/libc/ctype/isalnum.c b/newlib/libc/ctype/isalnum.c index d926f97b7..3e604ff62 100644 --- a/newlib/libc/ctype/isalnum.c +++ b/newlib/libc/ctype/isalnum.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ +/* FUNCTION <>, <>---alphanumeric character predicate diff --git a/newlib/libc/ctype/isalnum_l.c b/newlib/libc/ctype/isalnum_l.c index dcb7e3652..ac4e1461f 100644 --- a/newlib/libc/ctype/isalnum_l.c +++ b/newlib/libc/ctype/isalnum_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/isalpha.c b/newlib/libc/ctype/isalpha.c index 8b8e78a29..e12c1cc89 100644 --- a/newlib/libc/ctype/isalpha.c +++ b/newlib/libc/ctype/isalpha.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ +/* FUNCTION <>, <>---alphabetic character predicate diff --git a/newlib/libc/ctype/isalpha_l.c b/newlib/libc/ctype/isalpha_l.c index dcae3ccb4..85dcce0f8 100644 --- a/newlib/libc/ctype/isalpha_l.c +++ b/newlib/libc/ctype/isalpha_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/isascii.c b/newlib/libc/ctype/isascii.c index 5adb81222..78de84858 100644 --- a/newlib/libc/ctype/isascii.c +++ b/newlib/libc/ctype/isascii.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ +/* FUNCTION <>, <>---ASCII character predicate diff --git a/newlib/libc/ctype/isascii_l.c b/newlib/libc/ctype/isascii_l.c index 59b5f954d..f922891a4 100644 --- a/newlib/libc/ctype/isascii_l.c +++ b/newlib/libc/ctype/isascii_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/isblank.c b/newlib/libc/ctype/isblank.c index 0ebc2192c..35b0ab593 100644 --- a/newlib/libc/ctype/isblank.c +++ b/newlib/libc/ctype/isblank.c @@ -1,3 +1,4 @@ +/* Copyright (c) 2002 Thomas Fitzsimmons */ /* FUNCTION <>, <>---blank character predicate diff --git a/newlib/libc/ctype/isblank_l.c b/newlib/libc/ctype/isblank_l.c index 8bbb84e1f..2e7a1f7be 100644 --- a/newlib/libc/ctype/isblank_l.c +++ b/newlib/libc/ctype/isblank_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/iscntrl.c b/newlib/libc/ctype/iscntrl.c index ebbdd7371..f529ab44c 100644 --- a/newlib/libc/ctype/iscntrl.c +++ b/newlib/libc/ctype/iscntrl.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ +/* FUNCTION <>, <>---control character predicate diff --git a/newlib/libc/ctype/iscntrl_l.c b/newlib/libc/ctype/iscntrl_l.c index 0ae17c7f7..cce5c0bf9 100644 --- a/newlib/libc/ctype/iscntrl_l.c +++ b/newlib/libc/ctype/iscntrl_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/isdigit.c b/newlib/libc/ctype/isdigit.c index a5c511964..081216d92 100644 --- a/newlib/libc/ctype/isdigit.c +++ b/newlib/libc/ctype/isdigit.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ +/* FUNCTION <>, <>---decimal digit predicate diff --git a/newlib/libc/ctype/isdigit_l.c b/newlib/libc/ctype/isdigit_l.c index 1fb79e000..a8ce61835 100644 --- a/newlib/libc/ctype/isdigit_l.c +++ b/newlib/libc/ctype/isdigit_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/islower.c b/newlib/libc/ctype/islower.c index 2b3440489..b0ddedf74 100644 --- a/newlib/libc/ctype/islower.c +++ b/newlib/libc/ctype/islower.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ +/* FUNCTION <>, <>---lowercase character predicate diff --git a/newlib/libc/ctype/islower_l.c b/newlib/libc/ctype/islower_l.c index d1f3a82d8..87f31a29a 100644 --- a/newlib/libc/ctype/islower_l.c +++ b/newlib/libc/ctype/islower_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/isprint.c b/newlib/libc/ctype/isprint.c index e34fbe28a..9e361524c 100644 --- a/newlib/libc/ctype/isprint.c +++ b/newlib/libc/ctype/isprint.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ +/* FUNCTION <>, <>, <>, <>---printable character predicates diff --git a/newlib/libc/ctype/isprint_l.c b/newlib/libc/ctype/isprint_l.c index 535504f14..445586dac 100644 --- a/newlib/libc/ctype/isprint_l.c +++ b/newlib/libc/ctype/isprint_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/ispunct.c b/newlib/libc/ctype/ispunct.c index 9c5a3fcca..00472f5b9 100644 --- a/newlib/libc/ctype/ispunct.c +++ b/newlib/libc/ctype/ispunct.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ +/* FUNCTION <>, <>---punctuation character predicate diff --git a/newlib/libc/ctype/ispunct_l.c b/newlib/libc/ctype/ispunct_l.c index eeba1f5ae..08c9289fa 100644 --- a/newlib/libc/ctype/ispunct_l.c +++ b/newlib/libc/ctype/ispunct_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/isspace.c b/newlib/libc/ctype/isspace.c index 0def2c0ce..5f014bf57 100644 --- a/newlib/libc/ctype/isspace.c +++ b/newlib/libc/ctype/isspace.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ +/* FUNCTION <>, <>---whitespace character predicate diff --git a/newlib/libc/ctype/isspace_l.c b/newlib/libc/ctype/isspace_l.c index bf4a36c3e..69d3a9a7b 100644 --- a/newlib/libc/ctype/isspace_l.c +++ b/newlib/libc/ctype/isspace_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/isupper.c b/newlib/libc/ctype/isupper.c index aeed383ec..a064ca118 100644 --- a/newlib/libc/ctype/isupper.c +++ b/newlib/libc/ctype/isupper.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ +/* FUNCTION <>, <>---uppercase character predicate diff --git a/newlib/libc/ctype/isupper_l.c b/newlib/libc/ctype/isupper_l.c index eb473a7a1..edd40b174 100644 --- a/newlib/libc/ctype/isupper_l.c +++ b/newlib/libc/ctype/isupper_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/iswalnum.c b/newlib/libc/ctype/iswalnum.c index 7b2cac73b..fd1335f81 100644 --- a/newlib/libc/ctype/iswalnum.c +++ b/newlib/libc/ctype/iswalnum.c @@ -1,4 +1,34 @@ /* +Copyright (c) 2002 Red Hat Incorporated. +All rights reserved. +Modified (m) 2017 Thomas Wolff to refer to generated Unicode data tables. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +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. + +The name of Red Hat Incorporated may not be used to endorse +or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 RED HAT INCORPORATED 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 <>, <>---alphanumeric wide character test diff --git a/newlib/libc/ctype/iswalnum_l.c b/newlib/libc/ctype/iswalnum_l.c index 8802273ca..06023aa93 100644 --- a/newlib/libc/ctype/iswalnum_l.c +++ b/newlib/libc/ctype/iswalnum_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/iswalpha_l.c b/newlib/libc/ctype/iswalpha_l.c index 922983ed3..2c85770ef 100644 --- a/newlib/libc/ctype/iswalpha_l.c +++ b/newlib/libc/ctype/iswalpha_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/iswblank_l.c b/newlib/libc/ctype/iswblank_l.c index b27ed820a..ccd59d3dd 100644 --- a/newlib/libc/ctype/iswblank_l.c +++ b/newlib/libc/ctype/iswblank_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/iswcntrl_l.c b/newlib/libc/ctype/iswcntrl_l.c index 6a900a794..12c02abe3 100644 --- a/newlib/libc/ctype/iswcntrl_l.c +++ b/newlib/libc/ctype/iswcntrl_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/iswctype.c b/newlib/libc/ctype/iswctype.c index 027cb8ae3..344d41ea9 100644 --- a/newlib/libc/ctype/iswctype.c +++ b/newlib/libc/ctype/iswctype.c @@ -1,4 +1,34 @@ /* +Copyright (c) 2002 Red Hat Incorporated. +All rights reserved. +Modified (m) 2017 Thomas Wolff to refer to generated Unicode data tables. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +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. + +The name of Red Hat Incorporated may not be used to endorse +or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 RED HAT INCORPORATED 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 <>, <>---extensible wide-character test diff --git a/newlib/libc/ctype/iswctype_l.c b/newlib/libc/ctype/iswctype_l.c index 506972d7c..48185976d 100644 --- a/newlib/libc/ctype/iswctype_l.c +++ b/newlib/libc/ctype/iswctype_l.c @@ -1,3 +1,4 @@ +/* Copyright (c) 2016 Corinna Vinschen */ /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/iswdigit.c b/newlib/libc/ctype/iswdigit.c index d3562f883..cee5d5cf4 100644 --- a/newlib/libc/ctype/iswdigit.c +++ b/newlib/libc/ctype/iswdigit.c @@ -1,4 +1,34 @@ /* +Copyright (c) 2002 Red Hat Incorporated. +All rights reserved. +Modified (m) 2017 Thomas Wolff to refer to generated Unicode data tables. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +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. + +The name of Red Hat Incorporated may not be used to endorse +or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 RED HAT INCORPORATED 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 <>, <>---decimal digit wide character test diff --git a/newlib/libc/ctype/iswdigit_l.c b/newlib/libc/ctype/iswdigit_l.c index 29de9d381..cec1729b5 100644 --- a/newlib/libc/ctype/iswdigit_l.c +++ b/newlib/libc/ctype/iswdigit_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/iswgraph_l.c b/newlib/libc/ctype/iswgraph_l.c index b8a5866e9..15a129182 100644 --- a/newlib/libc/ctype/iswgraph_l.c +++ b/newlib/libc/ctype/iswgraph_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/iswlower.c b/newlib/libc/ctype/iswlower.c index e1d926b53..af8c6fe6b 100644 --- a/newlib/libc/ctype/iswlower.c +++ b/newlib/libc/ctype/iswlower.c @@ -1,4 +1,34 @@ /* +Copyright (c) 2002 Red Hat Incorporated. +All rights reserved. +Modified (m) 2017 Thomas Wolff to refer to generated Unicode data tables. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +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. + +The name of Red Hat Incorporated may not be used to endorse +or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 RED HAT INCORPORATED 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 <>, <>---lowercase wide character test diff --git a/newlib/libc/ctype/iswlower_l.c b/newlib/libc/ctype/iswlower_l.c index 644613325..d682c12d3 100644 --- a/newlib/libc/ctype/iswlower_l.c +++ b/newlib/libc/ctype/iswlower_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/iswprint_l.c b/newlib/libc/ctype/iswprint_l.c index cdf027bde..fd9766bae 100644 --- a/newlib/libc/ctype/iswprint_l.c +++ b/newlib/libc/ctype/iswprint_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/iswpunct_l.c b/newlib/libc/ctype/iswpunct_l.c index 4adc1ed83..02f539763 100644 --- a/newlib/libc/ctype/iswpunct_l.c +++ b/newlib/libc/ctype/iswpunct_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/iswspace_l.c b/newlib/libc/ctype/iswspace_l.c index e7f47ee31..41f58526c 100644 --- a/newlib/libc/ctype/iswspace_l.c +++ b/newlib/libc/ctype/iswspace_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/iswupper.c b/newlib/libc/ctype/iswupper.c index 96b5a0c84..f2dd206b0 100644 --- a/newlib/libc/ctype/iswupper.c +++ b/newlib/libc/ctype/iswupper.c @@ -1,4 +1,34 @@ /* +Copyright (c) 2002 Red Hat Incorporated. +All rights reserved. +Modified (m) 2017 Thomas Wolff to refer to generated Unicode data tables. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +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. + +The name of Red Hat Incorporated may not be used to endorse +or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 RED HAT INCORPORATED 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 <>, <>---uppercase wide character test diff --git a/newlib/libc/ctype/iswupper_l.c b/newlib/libc/ctype/iswupper_l.c index e772f929b..4761c062f 100644 --- a/newlib/libc/ctype/iswupper_l.c +++ b/newlib/libc/ctype/iswupper_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/iswxdigit.c b/newlib/libc/ctype/iswxdigit.c index fce2a4de4..9b1716e50 100644 --- a/newlib/libc/ctype/iswxdigit.c +++ b/newlib/libc/ctype/iswxdigit.c @@ -1,4 +1,34 @@ /* +Copyright (c) 2002 Red Hat Incorporated. +All rights reserved. +Modified (m) 2017 Thomas Wolff to refer to generated Unicode data tables. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +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. + +The name of Red Hat Incorporated may not be used to endorse +or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 RED HAT INCORPORATED 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 <>, <>---hexadecimal digit wide character test diff --git a/newlib/libc/ctype/iswxdigit_l.c b/newlib/libc/ctype/iswxdigit_l.c index 5a4c339d4..54237d43e 100644 --- a/newlib/libc/ctype/iswxdigit_l.c +++ b/newlib/libc/ctype/iswxdigit_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/isxdigit.c b/newlib/libc/ctype/isxdigit.c index 2bfe18dbf..a38ed22bd 100644 --- a/newlib/libc/ctype/isxdigit.c +++ b/newlib/libc/ctype/isxdigit.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ +/* FUNCTION <>, <>---hexadecimal digit predicate diff --git a/newlib/libc/ctype/isxdigit_l.c b/newlib/libc/ctype/isxdigit_l.c index 726db3190..64a70f60e 100644 --- a/newlib/libc/ctype/isxdigit_l.c +++ b/newlib/libc/ctype/isxdigit_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/jp2uc.h b/newlib/libc/ctype/jp2uc.h index 04eb67d29..7186d66a0 100644 --- a/newlib/libc/ctype/jp2uc.h +++ b/newlib/libc/ctype/jp2uc.h @@ -1,3 +1,33 @@ +/* +Copyright (c) 2002 Red Hat Incorporated. +All rights reserved. +Modified (m) 2017 Thomas Wolff to refer to generated Unicode data tables. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +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. + +The name of Red Hat Incorporated may not be used to endorse +or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 RED HAT INCORPORATED 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. + */ /* based on eucjp-208A.txt */ /* a1 is contiguous from a1a1 to a1fe */ diff --git a/newlib/libc/ctype/local.h b/newlib/libc/ctype/local.h index 5c293c83d..1422046fd 100644 --- a/newlib/libc/ctype/local.h +++ b/newlib/libc/ctype/local.h @@ -1,3 +1,33 @@ +/* +Copyright (c) 2002 Red Hat Incorporated. +All rights reserved. +Modified (m) 2017 Thomas Wolff to refer to generated Unicode data tables. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + +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. + +The name of Red Hat Incorporated may not be used to endorse +or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 RED HAT INCORPORATED 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. + */ /* Modified (m) 2017 Thomas Wolff: fixed locale/wchar handling */ /* wctrans constants */ diff --git a/newlib/libc/ctype/mkcaseconv b/newlib/libc/ctype/mkcaseconv index ab0571d8f..896314298 100755 --- a/newlib/libc/ctype/mkcaseconv +++ b/newlib/libc/ctype/mkcaseconv @@ -1,5 +1,7 @@ #! /bin/sh -f +# Copyright (c) 2018 Thomas Wolff + # generate a table for Unicode case conversion; entries: # struct caseconv_entry defined in towctrans_l.c diff --git a/newlib/libc/ctype/mkcategories b/newlib/libc/ctype/mkcategories index 22c7d4d5a..cb508fbe6 100755 --- a/newlib/libc/ctype/mkcategories +++ b/newlib/libc/ctype/mkcategories @@ -1,5 +1,7 @@ #! /bin/sh +# Copyright (c) 2018 Thomas Wolff + # generate table of Unicode character category ranges; # note: undefined characters between two characters of the same category # are associated to the same category, e.g. diff --git a/newlib/libc/ctype/mkunidata b/newlib/libc/ctype/mkunidata index 4bdf3bc81..cdea78d85 100755 --- a/newlib/libc/ctype/mkunidata +++ b/newlib/libc/ctype/mkunidata @@ -1,5 +1,7 @@ #! /bin/sh +# Copyright (c) 2018 Thomas Wolff + echo Generating Unicode character properties data for newlib/libc/ctype cd `dirname $0` diff --git a/newlib/libc/ctype/toascii.c b/newlib/libc/ctype/toascii.c index de5b8e1c3..e1927556c 100644 --- a/newlib/libc/ctype/toascii.c +++ b/newlib/libc/ctype/toascii.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ +/* FUNCTION <>, <>---force integers to ASCII range diff --git a/newlib/libc/ctype/toascii_l.c b/newlib/libc/ctype/toascii_l.c index 8781261fb..f49e2e699 100644 --- a/newlib/libc/ctype/toascii_l.c +++ b/newlib/libc/ctype/toascii_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/tolower.c b/newlib/libc/ctype/tolower.c index aae2ce09e..3ff06825a 100644 --- a/newlib/libc/ctype/tolower.c +++ b/newlib/libc/ctype/tolower.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ +/* FUNCTION <>, <>---translate characters to lowercase diff --git a/newlib/libc/ctype/tolower_l.c b/newlib/libc/ctype/tolower_l.c index 3b196c8d2..986fbf1f8 100644 --- a/newlib/libc/ctype/tolower_l.c +++ b/newlib/libc/ctype/tolower_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include #if defined (_MB_EXTENDED_CHARSETS_ISO) || defined (_MB_EXTENDED_CHARSETS_WINDOWS) diff --git a/newlib/libc/ctype/toupper.c b/newlib/libc/ctype/toupper.c index 61951b00b..5b4ae5bf3 100644 --- a/newlib/libc/ctype/toupper.c +++ b/newlib/libc/ctype/toupper.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1989 The Regents of the University of California. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. +3. Neither the name of the University nor the names of its contributors +may be used to endorse or promote products derived from this software +without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +SUCH DAMAGE. + */ +/* FUNCTION <>, <>---translate characters to uppercase diff --git a/newlib/libc/ctype/toupper_l.c b/newlib/libc/ctype/toupper_l.c index b126c1e28..6bba8f729 100644 --- a/newlib/libc/ctype/toupper_l.c +++ b/newlib/libc/ctype/toupper_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include #if defined (_MB_EXTENDED_CHARSETS_ISO) \ diff --git a/newlib/libc/ctype/towctrans_l.c b/newlib/libc/ctype/towctrans_l.c index b829266a4..64ee43104 100644 --- a/newlib/libc/ctype/towctrans_l.c +++ b/newlib/libc/ctype/towctrans_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/towlower_l.c b/newlib/libc/ctype/towlower_l.c index 46e024d44..ee51ef644 100644 --- a/newlib/libc/ctype/towlower_l.c +++ b/newlib/libc/ctype/towlower_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/towupper_l.c b/newlib/libc/ctype/towupper_l.c index d7c1adbc8..323332904 100644 --- a/newlib/libc/ctype/towupper_l.c +++ b/newlib/libc/ctype/towupper_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ /* Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/wctrans_l.c b/newlib/libc/ctype/wctrans_l.c index 30e61a472..dfdcaf26d 100644 --- a/newlib/libc/ctype/wctrans_l.c +++ b/newlib/libc/ctype/wctrans_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include diff --git a/newlib/libc/ctype/wctype_l.c b/newlib/libc/ctype/wctype_l.c index c2793dd57..fbe96b0b9 100644 --- a/newlib/libc/ctype/wctype_l.c +++ b/newlib/libc/ctype/wctype_l.c @@ -1,3 +1,7 @@ +/* +Copyright (c) 2016 Corinna Vinschen +Modified (m) 2017 Thomas Wolff: revise Unicode and locale/wchar handling + */ #include <_ansi.h> #include -- 2.25.0