From: Bruno Haible Date: Wed, 7 May 2025 11:32:27 +0000 (+0200) Subject: Add/fix some license notices. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51689b1b0f5a49b9da240f5e4f5cbbfd550f8687;p=thirdparty%2Fgnulib.git Add/fix some license notices. * lib/mcel.c: Use same license notice as lib/mcel.h. * lib/same-inode.c: Use same license notice as lib/same-inode.h. * lib/str_startswith.c: Change license notice to LGPLv2+. * lib/str_endswith.c: Likewise. * lib/hash-triple.h: Change license notice to GPL. * lib/xstring-buffer.c: Likewise. * lib/xstring-buffer-printf.c: Likewise. * lib/xstring-buffer-reversed.c: Likewise. * lib/xstring-buffer-reversed-printf.c: Likewise. --- diff --git a/ChangeLog b/ChangeLog index 450aa55dba..efb647b3ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2025-05-07 Bruno Haible + + Add/fix some license notices. + * lib/mcel.c: Use same license notice as lib/mcel.h. + * lib/same-inode.c: Use same license notice as lib/same-inode.h. + * lib/str_startswith.c: Change license notice to LGPLv2+. + * lib/str_endswith.c: Likewise. + * lib/hash-triple.h: Change license notice to GPL. + * lib/xstring-buffer.c: Likewise. + * lib/xstring-buffer-printf.c: Likewise. + * lib/xstring-buffer-reversed.c: Likewise. + * lib/xstring-buffer-reversed-printf.c: Likewise. + 2025-05-07 Bruno Haible Add syntax-check rule against CPU predef misspellings. diff --git a/lib/hash-triple.h b/lib/hash-triple.h index 72f9ee6b51..8e23ca8855 100644 --- a/lib/hash-triple.h +++ b/lib/hash-triple.h @@ -2,16 +2,16 @@ Copyright (C) 2025 Free Software Foundation, Inc. This file 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. + 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 Lesser General Public License for more details. + 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 "hashcode-file.h" diff --git a/lib/mcel.c b/lib/mcel.c index 3c2ae46290..8e80b322bf 100644 --- a/lib/mcel.c +++ b/lib/mcel.c @@ -1,3 +1,19 @@ +/* Multi-byte characters, Error encodings, and Lengths (MCELs) + Copyright 2023-2025 Free Software Foundation, Inc. + + This file 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 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. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . */ + #include #define MCEL_INLINE _GL_EXTERN_INLINE #include "mcel.h" diff --git a/lib/same-inode.c b/lib/same-inode.c index 08c66a2586..49a49e08ea 100644 --- a/lib/same-inode.c +++ b/lib/same-inode.c @@ -1,3 +1,20 @@ +/* Determine whether two stat buffers are known to refer to the same file. + + Copyright (C) 2023-2025 Free Software Foundation, Inc. + + This file 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 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. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see . */ + #include #define SAME_INODE_INLINE _GL_EXTERN_INLINE #include "same-inode.h" diff --git a/lib/str_endswith.c b/lib/str_endswith.c index 87728cf62c..3d2a99c594 100644 --- a/lib/str_endswith.c +++ b/lib/str_endswith.c @@ -3,7 +3,7 @@ This file 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 + published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, diff --git a/lib/str_startswith.c b/lib/str_startswith.c index ff7ab59584..34297709bc 100644 --- a/lib/str_startswith.c +++ b/lib/str_startswith.c @@ -3,7 +3,7 @@ This file 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 + published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, diff --git a/lib/xstring-buffer-printf.c b/lib/xstring-buffer-printf.c index d5531773f7..252e318a56 100644 --- a/lib/xstring-buffer-printf.c +++ b/lib/xstring-buffer-printf.c @@ -2,16 +2,16 @@ Copyright (C) 2024-2025 Free Software Foundation, Inc. This file 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. + 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 Lesser General Public License for more details. + 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 , 2024. */ diff --git a/lib/xstring-buffer-reversed-printf.c b/lib/xstring-buffer-reversed-printf.c index 32a927ee5e..062ac929b1 100644 --- a/lib/xstring-buffer-reversed-printf.c +++ b/lib/xstring-buffer-reversed-printf.c @@ -2,16 +2,16 @@ Copyright (C) 2024-2025 Free Software Foundation, Inc. This file 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. + 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 Lesser General Public License for more details. + 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 , 2025. */ diff --git a/lib/xstring-buffer-reversed.c b/lib/xstring-buffer-reversed.c index 411f858782..333ccbd8a2 100644 --- a/lib/xstring-buffer-reversed.c +++ b/lib/xstring-buffer-reversed.c @@ -2,16 +2,16 @@ Copyright (C) 2024-2025 Free Software Foundation, Inc. This file 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. + 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 Lesser General Public License for more details. + 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 , 2025. */ diff --git a/lib/xstring-buffer.c b/lib/xstring-buffer.c index 7518f4f381..4ef1a80a80 100644 --- a/lib/xstring-buffer.c +++ b/lib/xstring-buffer.c @@ -2,16 +2,16 @@ Copyright (C) 2024-2025 Free Software Foundation, Inc. This file 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. + 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 Lesser General Public License for more details. + 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 , 2024. */