From: Bruno Haible Date: Fri, 4 Jun 2021 18:55:35 +0000 (+0200) Subject: Put public domain notices in source files where appropriate. X-Git-Tag: v1.0~2864 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=fa5c2532b786e4108163fd6949e48a409eef5daa;p=gnulib.git Put public domain notices in source files where appropriate. * lib/{alloca.c,atexit.c,memmove.c}: Use public domain notice. --- diff --git a/ChangeLog b/ChangeLog index 96261d5b62..752b7485a8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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. diff --git a/lib/alloca.c b/lib/alloca.c index 91b9ec3891..48802832a8 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 5ef33e57ee..e47b9fbeaf 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 fa899e515b..49b58b1a19 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 0f040540c0..0d80de69c2 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) {