From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31322 invoked by alias); 5 Feb 2020 06:59:01 -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 31246 invoked by uid 89); 5 Feb 2020 06:59:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.0 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= 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:58:59 +0000 Received: from localhost (localhost [127.0.0.1]) by elaine.keithp.com (Postfix) with ESMTP id E1FB53F2AC13 for ; Tue, 4 Feb 2020 22:49:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=keithp.com; s=mail; t=1580885345; bh=jpHldV8wl+vmhJySu0apkzkv+F6C1hAw04OSJPomAro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZcUbypzSW36nLa/zW66PBrlOHC4Qfy4aHSw0hikJggluw1VDhZg2hDiYGnDLm+BVp RSdvj9KVLW0K43y8hJxjGH8K7K+2vp7Z5/DJqwS0grHq1kax7AucIgvHon8g296Wnv y6e3Tl8Fmlg5IOxFORuIB67cor81/TjqxHyKAiYeHa1O5Fg+7Sg8zjE4+2AsgGwT4C P95HkapxlDe9jZpELgEp7NpKNGRl8SF14KrjYM+Bj0uErF2UNJEkjRNOfo60bm2lRo NNRsMONaVuDe0mBDl8y/ZynWT6+aECprIR1/ZSIoojZveI0TmV+0AquT0tZHNRo/8y 4UJyWc8m9odIA== 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 HZ7WtWWIcwX5; Tue, 4 Feb 2020 22:49:05 -0800 (PST) Received: from keithp.com (koto.keithp.com [10.0.0.2]) by elaine.keithp.com (Postfix) with ESMTPSA id EA6B93F2AC05; 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=1580885327; bh=jpHldV8wl+vmhJySu0apkzkv+F6C1hAw04OSJPomAro=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vAHUWBpPUWLsWvqtoJPK3Qq7KFOjWTCEnd4YiPx3PK1uFQnHR4Q1ahPMiSQhV5etZ QJ2hrAUsRWORDX2nUPepAaFmTD4IApo+fB60gUKbtt7GVKWNscqkHasz5j+Ipp3DxV rv4153p/BNaTvFR3x4yVEmaMPCSPzwWAqzZnQdddNQOirJjCt9h5VrM0cgY+2CfFfb BOw+DVVgOJpEYBsIyHXvE0cIspabIOYu/S3dnAfvrvqdHsYx9QK0XzM6GUG1TRhYR0 rl8PmFG6xL4H2l8aKlIOhhCNIZjTx7WvbtGPLEMIH/mAUJ4TEqEtMM/+ttpox2NKB+ ErTqQzISug69g== Received: by keithp.com (Postfix, from userid 1000) id 8B01B15821AE; Tue, 4 Feb 2020 22:48:46 -0800 (PST) From: Keith Packard To: newlib@sourceware.org Cc: Keith Packard Subject: [PATCH 10/27] Add missing copyrights in newlib/libc/misc Date: Wed, 05 Feb 2020 06:59:00 -0000 Message-Id: <20200205064844.929131-11-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/msg00066.txt Signed-off-by: Keith Packard --- newlib/libc/misc/__dprintf.c | 28 ++++++++++++++++++++++++++++ newlib/libc/misc/ffs.c | 28 ++++++++++++++++++++++++++++ newlib/libc/misc/lock.c | 1 + newlib/libc/misc/misc.tex | 28 ++++++++++++++++++++++++++++ 4 files changed, 85 insertions(+) diff --git a/newlib/libc/misc/__dprintf.c b/newlib/libc/misc/__dprintf.c index 31454f4c2..2b5f442ea 100644 --- a/newlib/libc/misc/__dprintf.c +++ b/newlib/libc/misc/__dprintf.c @@ -1,3 +1,31 @@ +/* + * Copyright (c) 1990 The Regents of the University of California. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 4. 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. + */ /* Debugging printf, for debugging the library itself. We don't assume stdio is working. diff --git a/newlib/libc/misc/ffs.c b/newlib/libc/misc/ffs.c index 068f25481..5abe0baf5 100644 --- a/newlib/libc/misc/ffs.c +++ b/newlib/libc/misc/ffs.c @@ -1,4 +1,32 @@ /* +Copyright (c) 1981, 1993 +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 <>---find first bit set in a word diff --git a/newlib/libc/misc/lock.c b/newlib/libc/misc/lock.c index 545511e78..5ee269b16 100644 --- a/newlib/libc/misc/lock.c +++ b/newlib/libc/misc/lock.c @@ -1,3 +1,4 @@ +/* Copyright (c) 2016 Thomas Preud'homme */ /* FUNCTION <<__retarget_lock_init>>, <<__retarget_lock_init_recursive>>, <<__retarget_lock_close>>, <<__retarget_lock_close_recursive>>, <<__retarget_lock_acquire>>, <<__retarget_lock_acquire_recursive>>, <<__retarget_lock_try_acquire>>, <<__retarget_lock_try_acquire_recursive>>, <<__retarget_lock_release>>, <<__retarget_lock_release_recursive>>---locking routines diff --git a/newlib/libc/misc/misc.tex b/newlib/libc/misc/misc.tex index 248243b53..f400d3faa 100644 --- a/newlib/libc/misc/misc.tex +++ b/newlib/libc/misc/misc.tex @@ -1,3 +1,31 @@ +# +#Copyright (c) 1981, 1993 +#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 Misc @chapter Miscellaneous Macros and Functions This chapter describes miscellaneous routines not covered elsewhere. -- 2.25.0