>From fa5c2532b786e4108163fd6949e48a409eef5daa Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 4 Jun 2021 20:55:35 +0200 Subject: [PATCH 1/8] Put public domain notices in source files where appropriate. * lib/{alloca.c,atexit.c,memmove.c}: Use public domain notice. --- ChangeLog | 5 +++++ lib/alloca.c | 4 +++- lib/atexit.c | 6 ++++-- lib/dummy.c | 13 +------------ lib/memmove.c | 8 +++++--- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/ChangeLog b/ChangeLog index 96261d5b..752b748 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2021-06-04 Bruno Haible + Put public domain notices in source files where appropriate. + * lib/{alloca.c,atexit.c,memmove.c}: Use public domain notice. + +2021-06-04 Bruno Haible + Revamp check-copyright script. * check-copyright: Search only the first 50 lines of each file. Recognize 'LGPLv3+ or GPLv2+', 'unlimited', and 'public domain' license diff --git a/lib/alloca.c b/lib/alloca.c index 91b9ec3..4880283 100644 --- a/lib/alloca.c +++ b/lib/alloca.c @@ -1,5 +1,7 @@ /* alloca.c -- allocate automatically reclaimed memory - (Mostly) portable public-domain implementation -- D A Gwyn + This file is in the public domain. */ + +/* (Mostly) portable implementation -- D A Gwyn This implementation of the PWB library alloca function, which is used to allocate space off the run-time stack so diff --git a/lib/atexit.c b/lib/atexit.c index 5ef33e5..e47b9fb 100644 --- a/lib/atexit.c +++ b/lib/atexit.c @@ -1,5 +1,7 @@ -/* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */ -/* This function is in the public domain. --Mike Stump. */ +/* Wrapper to implement ANSI C's atexit using SunOS's on_exit. */ +/* This file is in the public domain. */ + +/* Written by Mike Stump. */ #include diff --git a/lib/dummy.c b/lib/dummy.c index fa899e5..49b58b1 100644 --- a/lib/dummy.c +++ b/lib/dummy.c @@ -1,18 +1,7 @@ /* A dummy file, to prevent empty libraries from breaking builds. Copyright (C) 2004, 2007, 2009-2021 Free Software Foundation, Inc. - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ + This file is in the public domain. */ /* Some systems, reportedly OpenBSD and Mac OS X, refuse to create libraries without any object files. You might get an error like: diff --git a/lib/memmove.c b/lib/memmove.c index 0f04054..0d80de6 100644 --- a/lib/memmove.c +++ b/lib/memmove.c @@ -1,12 +1,14 @@ /* memmove.c -- copy memory. - Copy LENGTH bytes from SOURCE to DEST. Does not null-terminate. - In the public domain. - By David MacKenzie . */ + This file is in the public domain. */ + +/* Written by David MacKenzie . */ #include #include +/* Copy LENGTH bytes from SOURCE to DEST. Does not null-terminate. */ + void * memmove (void *dest0, void const *source0, size_t length) { -- 2.7.4