From: Bruno Haible Date: Fri, 4 Jun 2021 18:55:56 +0000 (+0200) Subject: Put GPLv3+ notices in source files where appropriate. X-Git-Tag: v1.0~2857 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1db1ae8d610aa2a11e1812aaec4ada493b4d0911;p=gnulib.git Put GPLv3+ notices in source files where appropriate. * lib/*.{h,c}: Use GPLv3+ notice whenever the module description says so. * build-aux/pmccabe.css: Likewise. --- diff --git a/ChangeLog b/ChangeLog index d68b5f574d..66a256a290 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-06-04 Bruno Haible + + Put GPLv3+ notices in source files where appropriate. + * lib/*.{h,c}: Use GPLv3+ notice whenever the module description says + so. + * build-aux/pmccabe.css: Likewise. + 2021-06-04 Bruno Haible Put LGPLv3+ notices in source files where appropriate. diff --git a/build-aux/pmccabe.css b/build-aux/pmccabe.css index a10ee35026..df651a5e21 100644 --- a/build-aux/pmccabe.css +++ b/build-aux/pmccabe.css @@ -1,3 +1,20 @@ +/* Styling for cyclomatic code complexity charts. + + Copyright (C) 2008-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + body { font-family: Helvetica, sans-serif; } diff --git a/lib/backup-internal.h b/lib/backup-internal.h index 17714b2d4a..7016182208 100644 --- a/lib/backup-internal.h +++ b/lib/backup-internal.h @@ -1,3 +1,21 @@ +/* Backup files. + + Copyright (C) 2017-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include "backupfile.h" #include + extern char *backupfile_internal (int, char const *, enum backup_type, bool); diff --git a/lib/bcopy.c b/lib/bcopy.c index c3e8caa1c8..e2f270331d 100644 --- a/lib/bcopy.c +++ b/lib/bcopy.c @@ -1,12 +1,28 @@ /* bcopy.c -- copy memory. - Copy LENGTH bytes from SOURCE to DEST. Does not null-terminate. - In the public domain. - By David MacKenzie . */ + + Copyright (C) 1992-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + +/* Written by David MacKenzie . */ #include #include +/* Copy LENGTH bytes from SOURCE to DEST. Does not null-terminate. */ + void bcopy (void const *source0, void *dest0, size_t length) { diff --git a/lib/c-asprintf.c b/lib/c-asprintf.c index bd32795e1f..e32471942b 100644 --- a/lib/c-asprintf.c +++ b/lib/c-asprintf.c @@ -2,18 +2,18 @@ Copyright (C) 1999, 2002, 2006-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 2, or (at your option) - any later version. + This file 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, + This file 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 . */ + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ #include diff --git a/lib/c-dtoastr.c b/lib/c-dtoastr.c index b57524fb14..62a25048e0 100644 --- a/lib/c-dtoastr.c +++ b/lib/c-dtoastr.c @@ -1,3 +1,20 @@ +/* Convert 'double' to accurate string in C locale. + + Copyright (C) 2020-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #define LENGTH 2 #define C_LOCALE 1 #include "ftoastr.c" diff --git a/lib/c-ldtoastr.c b/lib/c-ldtoastr.c index 5446fc3e78..20ea1224e8 100644 --- a/lib/c-ldtoastr.c +++ b/lib/c-ldtoastr.c @@ -1,3 +1,20 @@ +/* Convert 'long double' to accurate string in C locale. + + Copyright (C) 2020-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #define LENGTH 3 #define C_LOCALE 1 #include "ftoastr.c" diff --git a/lib/c-strtold.c b/lib/c-strtold.c index 5510e4a446..9544ca01ca 100644 --- a/lib/c-strtold.c +++ b/lib/c-strtold.c @@ -1,2 +1,19 @@ +/* Convert string to 'long double' in C locale. + + Copyright (C) 2004-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #define LONG 1 #include "c-strtod.c" diff --git a/lib/c-vasprintf.c b/lib/c-vasprintf.c index d6d06257dd..b17ba8046b 100644 --- a/lib/c-vasprintf.c +++ b/lib/c-vasprintf.c @@ -1,18 +1,18 @@ /* Formatted output to strings in C locale. Copyright (C) 1999, 2002, 2006-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 2, or (at your option) - any later version. + This file 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, + This file 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 . */ + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ #include diff --git a/lib/c-vsnprintf.c b/lib/c-vsnprintf.c index ec24a9b386..e3ab48a886 100644 --- a/lib/c-vsnprintf.c +++ b/lib/c-vsnprintf.c @@ -3,18 +3,18 @@ Written by Simon Josefsson and Yoann Vandoorselaere . Modified for C locale by Ben Pfaff. - 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 2, or (at your option) - any later version. + This file 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, + This file 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 . */ + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ #ifdef HAVE_CONFIG_H # include diff --git a/lib/chmodat.c b/lib/chmodat.c index b496a809e4..4327387f7e 100644 --- a/lib/chmodat.c +++ b/lib/chmodat.c @@ -1,3 +1,21 @@ +/* Change access permissions of a file at a directory. + + Copyright (C) 2012-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + #define CHMODAT_INLINE _GL_EXTERN_INLINE #include "openat.h" diff --git a/lib/chownat.c b/lib/chownat.c index 698e968025..8fe91b953a 100644 --- a/lib/chownat.c +++ b/lib/chownat.c @@ -1,3 +1,21 @@ +/* Change owner of a file at a directory. + + Copyright (C) 2012-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + #define CHOWNAT_INLINE _GL_EXTERN_INLINE #include "openat.h" diff --git a/lib/close-stream.h b/lib/close-stream.h index be3d4196b0..8a58a48e61 100644 --- a/lib/close-stream.h +++ b/lib/close-stream.h @@ -1,2 +1,20 @@ +/* Close a stream, with nicer error checking than fclose's. + + Copyright (C) 2006-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + int close_stream (FILE *stream); diff --git a/lib/dirchownmod.h b/lib/dirchownmod.h index 3f07748efd..bea7dbb6db 100644 --- a/lib/dirchownmod.h +++ b/lib/dirchownmod.h @@ -1,2 +1,20 @@ +/* Change the ownership and mode bits of a directory. + + Copyright (C) 2006-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + int dirchownmod (int, char const *, mode_t, uid_t, gid_t, mode_t, mode_t); diff --git a/lib/dtoastr.c b/lib/dtoastr.c index aed181d66b..5baba92922 100644 --- a/lib/dtoastr.c +++ b/lib/dtoastr.c @@ -1,2 +1,19 @@ +/* Convert 'double' to accurate string. + + Copyright (C) 2010-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #define LENGTH 2 #include "ftoastr.c" diff --git a/lib/eealloc.c b/lib/eealloc.c index d56637b7ea..b0db5af8d7 100644 --- a/lib/eealloc.c +++ b/lib/eealloc.c @@ -1,3 +1,21 @@ +/* Memory allocation with expensive empty allocations. + + Copyright (C) 2012-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + #define EEALLOC_INLINE _GL_EXTERN_INLINE #include "eealloc.h" diff --git a/lib/fprintftime.c b/lib/fprintftime.c index 7fd4ec2294..e295b39b05 100644 --- a/lib/fprintftime.c +++ b/lib/fprintftime.c @@ -1,2 +1,19 @@ +/* Generate time strings directly to the output. + + Copyright (C) 2005-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #define FPRINTFTIME 1 #include "nstrftime.c" diff --git a/lib/getcwd.c b/lib/getcwd.c index d83ac11454..da9fcadb40 100644 --- a/lib/getcwd.c +++ b/lib/getcwd.c @@ -1,19 +1,18 @@ /* Copyright (C) 1991-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. + This file 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. - The GNU C Library is distributed in the hope that it will be useful, + This file 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 - Lesser General Public License for more details. + 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 Lesser General Public - License along with the GNU C Library; if not, see - . */ + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ #if !_LIBC # include diff --git a/lib/gl_map.c b/lib/gl_map.c index 758a65f3da..0f480f2f5e 100644 --- a/lib/gl_map.c +++ b/lib/gl_map.c @@ -1,3 +1,21 @@ +/* Abstract map data type. + + Copyright (C) 2018-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + #define GL_MAP_INLINE _GL_EXTERN_INLINE #include "gl_map.h" diff --git a/lib/gl_set.c b/lib/gl_set.c index e00d202626..3cfaa63820 100644 --- a/lib/gl_set.c +++ b/lib/gl_set.c @@ -1,3 +1,21 @@ +/* Abstract set data type. + + Copyright (C) 2018-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + #define GL_SET_INLINE _GL_EXTERN_INLINE #include "gl_set.h" diff --git a/lib/gl_xlist.c b/lib/gl_xlist.c index fe3c893396..16ca55fafd 100644 --- a/lib/gl_xlist.c +++ b/lib/gl_xlist.c @@ -1,3 +1,21 @@ +/* Abstract sequential list data type, with out-of-memory checking. + + Copyright (C) 2009-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + #define GL_XLIST_INLINE _GL_EXTERN_INLINE #include "gl_xlist.h" diff --git a/lib/gl_xmap.c b/lib/gl_xmap.c index 3d39fdba09..866a7cbf5b 100644 --- a/lib/gl_xmap.c +++ b/lib/gl_xmap.c @@ -1,3 +1,21 @@ +/* Abstract map data type, with out-of-memory checking. + + Copyright (C) 2018-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + #define GL_XMAP_INLINE _GL_EXTERN_INLINE #include "gl_xmap.h" diff --git a/lib/gl_xomap.c b/lib/gl_xomap.c index 756123d5a6..61740914f2 100644 --- a/lib/gl_xomap.c +++ b/lib/gl_xomap.c @@ -1,3 +1,21 @@ +/* Abstract ordered map data type, with out-of-memory checking. + + Copyright (C) 2018-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + #define GL_XOMAP_INLINE _GL_EXTERN_INLINE #include "gl_xomap.h" diff --git a/lib/gl_xoset.c b/lib/gl_xoset.c index 6b05d94996..a728eca67f 100644 --- a/lib/gl_xoset.c +++ b/lib/gl_xoset.c @@ -1,3 +1,21 @@ +/* Abstract ordered set data type, with out-of-memory checking. + + Copyright (C) 2009-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + #define GL_XOSET_INLINE _GL_EXTERN_INLINE #include "gl_xoset.h" diff --git a/lib/gl_xset.c b/lib/gl_xset.c index 83557c04a9..bc9738576e 100644 --- a/lib/gl_xset.c +++ b/lib/gl_xset.c @@ -1,3 +1,21 @@ +/* Abstract set data type, with out-of-memory checking. + + Copyright (C) 2018-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + #define GL_XSET_INLINE _GL_EXTERN_INLINE #include "gl_xset.h" diff --git a/lib/gl_xsublist.c b/lib/gl_xsublist.c index f5a3eee38d..4c37c71c9b 100644 --- a/lib/gl_xsublist.c +++ b/lib/gl_xsublist.c @@ -1,3 +1,22 @@ +/* Sequential list data type backed by another list, with out-of-memory + checking. + + Copyright (C) 2009-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + #define GL_XSUBLIST_INLINE _GL_EXTERN_INLINE #include "gl_xsublist.h" diff --git a/lib/isdir.h b/lib/isdir.h index 80116bc6be..5df329baf5 100644 --- a/lib/isdir.h +++ b/lib/isdir.h @@ -1 +1,18 @@ +/* Determine whether a directory exists. + + Copyright (C) 2009-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + int isdir (const char *path); diff --git a/lib/ldtoastr.c b/lib/ldtoastr.c index bf54a3582e..801b71eba8 100644 --- a/lib/ldtoastr.c +++ b/lib/ldtoastr.c @@ -1,2 +1,19 @@ +/* Convert 'long double' to accurate string. + + Copyright (C) 2010-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #define LENGTH 3 #include "ftoastr.c" diff --git a/lib/mbmemcasecoll.c b/lib/mbmemcasecoll.c index 2962c4d0c8..de6503f0f8 100644 --- a/lib/mbmemcasecoll.c +++ b/lib/mbmemcasecoll.c @@ -2,17 +2,17 @@ Copyright (C) 2001, 2009-2021 Free Software Foundation, Inc. Written by Bruno Haible , 2001. - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. + This file 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, + This file 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 - Lesser General Public License for more details. + 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 Lesser General Public License + You should have received a copy of the GNU General Public License along with this program. If not, see . */ #include diff --git a/lib/mbmemcasecoll.h b/lib/mbmemcasecoll.h index bd89629290..31e4a8970f 100644 --- a/lib/mbmemcasecoll.h +++ b/lib/mbmemcasecoll.h @@ -1,17 +1,17 @@ /* Locale-specific case-ignoring memory comparison. Copyright (C) 2001, 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 Lesser General Public License as published - by the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. + This file 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, + This file 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 - Lesser General Public License for more details. + 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 Lesser General Public License + You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* Written by Bruno Haible , 2001. */ diff --git a/lib/mpsort.h b/lib/mpsort.h index 5e588117ed..cdd39f3478 100644 --- a/lib/mpsort.h +++ b/lib/mpsort.h @@ -1,2 +1,20 @@ +/* Sort a vector of pointers to data. + + Copyright (C) 2007-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + void mpsort (void const **, size_t, int (*) (void const *, void const *)); diff --git a/lib/obstack_printf.c b/lib/obstack_printf.c index ac4fef17a0..e540c3300a 100644 --- a/lib/obstack_printf.c +++ b/lib/obstack_printf.c @@ -1,18 +1,18 @@ /* Formatted output to obstacks. Copyright (C) 2008-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 2, or (at your option) - any later version. + This file 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, + This file 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 . */ + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ #include diff --git a/lib/opendirat.h b/lib/opendirat.h index 1edf5b57d0..845cc552f4 100644 --- a/lib/opendirat.h +++ b/lib/opendirat.h @@ -1,2 +1,20 @@ +/* Open a directory relative to another directory. + + Copyright (C) 2018-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + DIR *opendirat (int, char const *, int, int *); diff --git a/lib/posixver.h b/lib/posixver.h index b64f6a2ea1..a532ea28ec 100644 --- a/lib/posixver.h +++ b/lib/posixver.h @@ -1 +1,18 @@ +/* Which POSIX version to conform to, for utilities. + + Copyright (C) 2002-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + int posix2_version (void); diff --git a/lib/stat-macros.h b/lib/stat-macros.h index 690216c74e..8c1f414d71 100644 --- a/lib/stat-macros.h +++ b/lib/stat-macros.h @@ -1,3 +1,20 @@ +/* stat-related macros + + Copyright (C) 1993-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + /* All the mode bits that can be affected by chmod. */ #define CHMOD_MODE_BITS \ (S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO) diff --git a/lib/statat.c b/lib/statat.c index 8cdb17e4f4..9e596d2f23 100644 --- a/lib/statat.c +++ b/lib/statat.c @@ -1,3 +1,21 @@ +/* Return info about a file at a directory. + + Copyright (C) 2012-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + #define STATAT_INLINE _GL_EXTERN_INLINE #include "openat.h" diff --git a/lib/unictype/3level.h b/lib/unictype/3level.h index 6f70163b3d..e02f8e9ea1 100644 --- a/lib/unictype/3level.h +++ b/lib/unictype/3level.h @@ -6,18 +6,18 @@ NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@gnu.org. - 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 2, or (at your option) any - later version. + This file 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, + This file 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 . */ + along with this program. If not, see . */ /* Construction of sparse 3-level tables. See wchar-lookup.h or coll-lookup.h for their structure and the diff --git a/lib/unictype/3levelbit.h b/lib/unictype/3levelbit.h index e18e2e0504..3be4328479 100644 --- a/lib/unictype/3levelbit.h +++ b/lib/unictype/3levelbit.h @@ -7,18 +7,18 @@ See glibc/locale/programs/ld-ctype.c. Bugs can be reported to bug-glibc@gnu.org. - 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 2, or (at your option) any - later version. + This file 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, + This file 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 . */ + along with this program. If not, see . */ /* Construction of sparse 3-level tables. See wchar-lookup.h for their structure and the meaning of p and q. diff --git a/lib/write-any-file.h b/lib/write-any-file.h index 3930d4dccd..194f9312d3 100644 --- a/lib/write-any-file.h +++ b/lib/write-any-file.h @@ -1,2 +1,20 @@ +/* Determine whether we can write any file. + + Copyright (C) 2007-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + bool can_write_any_file (void); diff --git a/lib/xfreopen.h b/lib/xfreopen.h index 2ce49b5a4a..945b9b913f 100644 --- a/lib/xfreopen.h +++ b/lib/xfreopen.h @@ -1,2 +1,18 @@ +/* Copyright (C) 2009-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + void xfreopen (char const *filename, char const *mode, FILE *fp); diff --git a/lib/xgetdomainname.c b/lib/xgetdomainname.c index 3c0aefd1db..c854dd3840 100644 --- a/lib/xgetdomainname.c +++ b/lib/xgetdomainname.c @@ -1,5 +1,22 @@ -/* Return the NIS domain name, without size limitations. */ +/* Return the NIS domain name, without size limitations. + + Copyright (C) 1992-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include "xgetdomainname.h" + #define GETANAME getdomainname #define XGETANAME xgetdomainname #include "xgethostname.c" diff --git a/lib/xgethostname.h b/lib/xgethostname.h index 0177a4096a..f4be562682 100644 --- a/lib/xgethostname.h +++ b/lib/xgethostname.h @@ -1 +1,18 @@ +/* Return current hostname with unlimited length. + + Copyright (C) 2003-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + char *xgethostname (void); diff --git a/lib/xmemcoll.h b/lib/xmemcoll.h index 1ac23255ab..40fd1a1d83 100644 --- a/lib/xmemcoll.h +++ b/lib/xmemcoll.h @@ -1,3 +1,21 @@ +/* Locale-specific memory comparison. + + Copyright (C) 2002-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + int xmemcoll (char *restrict, size_t, char *restrict, size_t); int xmemcoll0 (char const *, size_t, char const *, size_t); diff --git a/lib/xnanosleep.h b/lib/xnanosleep.h index 56232d55b0..77b896b88d 100644 --- a/lib/xnanosleep.h +++ b/lib/xnanosleep.h @@ -1 +1,16 @@ +/* Copyright (C) 2004-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + int xnanosleep (double); diff --git a/lib/xstrtoimax.c b/lib/xstrtoimax.c index b4baf5bc60..17bd54cdf0 100644 --- a/lib/xstrtoimax.c +++ b/lib/xstrtoimax.c @@ -1,3 +1,20 @@ +/* A more useful interface to strtoimax. + + Copyright (C) 2001-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #define __strtol strtoimax #define __strtol_t intmax_t #define __xstrtol xstrtoimax diff --git a/lib/xstrtold.c b/lib/xstrtold.c index 50dc6a4008..8616c529eb 100644 --- a/lib/xstrtold.c +++ b/lib/xstrtold.c @@ -1,2 +1,19 @@ +/* Convert string to 'long double', with error checking. + + Copyright (C) 2006-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #define LONG 1 #include "xstrtod.c" diff --git a/lib/xstrtoll.c b/lib/xstrtoll.c index db26e87c53..71e11cfed5 100644 --- a/lib/xstrtoll.c +++ b/lib/xstrtoll.c @@ -1,3 +1,20 @@ +/* Convert string to 'long long', with error checking. + + Copyright (C) 2011-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #define __strtol strtoll #define __strtol_t long long int #define __xstrtol xstrtoll diff --git a/lib/xstrtoul.c b/lib/xstrtoul.c index 285f7b96f8..c705a4c74e 100644 --- a/lib/xstrtoul.c +++ b/lib/xstrtoul.c @@ -1,3 +1,20 @@ +/* Convert string to 'unsigned long', with error checking. + + Copyright (C) 1994-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #define __strtol strtoul #define __strtol_t unsigned long int #define __xstrtol xstrtoul diff --git a/lib/xstrtoull.c b/lib/xstrtoull.c index 10dda50444..122d24e243 100644 --- a/lib/xstrtoull.c +++ b/lib/xstrtoull.c @@ -1,3 +1,20 @@ +/* Convert string to 'unsigned long long', with error checking. + + Copyright (C) 2010-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #define __strtol strtoull #define __strtol_t unsigned long long int #define __xstrtol xstrtoull diff --git a/lib/xstrtoumax.c b/lib/xstrtoumax.c index 9a2349f00d..fd4d18383a 100644 --- a/lib/xstrtoumax.c +++ b/lib/xstrtoumax.c @@ -1,3 +1,20 @@ +/* A more useful interface to strtoumax. + + Copyright (C) 1999-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #define __strtol strtoumax #define __strtol_t uintmax_t #define __xstrtol xstrtoumax diff --git a/lib/xtime.c b/lib/xtime.c index e608f69fdf..1a7403eb8c 100644 --- a/lib/xtime.c +++ b/lib/xtime.c @@ -1,3 +1,21 @@ +/* xtime -- extended-resolution integer timestamps + + Copyright (C) 2012-2021 Free Software Foundation, Inc. + + This file 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 file 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 . */ + #include + #define XTIME_INLINE _GL_EXTERN_INLINE #include "xtime.h"