From: Stéphane Graber Date: Tue, 2 Apr 2024 22:31:26 +0000 (-0400) Subject: src/include: Add SPDX headers X-Git-Tag: v6.0.0~1^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb94edf538babeaf37665950bbd5c2e8d0ba390b;p=thirdparty%2Flxc.git src/include: Add SPDX headers Signed-off-by: Stéphane Graber --- diff --git a/src/include/bpf.h b/src/include/bpf.h index 540192b90..b7b787b4c 100644 --- a/src/include/bpf.h +++ b/src/include/bpf.h @@ -1,10 +1,4 @@ /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* Copyright (c) 2011-2014 PLUMgrid, http://plumgrid.com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2 of the GNU General Public - * License as published by the Free Software Foundation. - */ #ifndef _UAPI__LINUX_BPF_H__ #define _UAPI__LINUX_BPF_H__ diff --git a/src/include/fexecve.c b/src/include/fexecve.c index 40d2b5b46..e9ecb980a 100644 --- a/src/include/fexecve.c +++ b/src/include/fexecve.c @@ -1,21 +1,7 @@ /* liblxcapi * - * Copyright © 2019 Christian Brauner . - * Copyright © 2019 Canonical Ltd. + * SPDX-License-Identifier: LGPL-2.1+ * - * This 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 library 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 library; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef _GNU_SOURCE diff --git a/src/include/fexecve.h b/src/include/fexecve.h index 4c0a8b0f5..4c32c64ce 100644 --- a/src/include/fexecve.h +++ b/src/include/fexecve.h @@ -1,21 +1,7 @@ /* liblxcapi * - * Copyright © 2019 Christian Brauner . - * Copyright © 2019 Canonical Ltd. + * SPDX-License-Identifier: LGPL-2.1+ * - * This 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 library 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 library; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef _LXC_FEXECVE_H diff --git a/src/include/getgrgid_r.c b/src/include/getgrgid_r.c index 378740ff3..38346d03b 100644 --- a/src/include/getgrgid_r.c +++ b/src/include/getgrgid_r.c @@ -1,20 +1,6 @@ /* liblxcapi * - * Copyright © 2018 Christian Brauner . - * Copyright © 2018 Canonical Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * 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, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * SPDX-License-Identifier: LGPL-2.1+ * * This function has been copied from musl. */ diff --git a/src/include/getgrgid_r.h b/src/include/getgrgid_r.h index 6a8c418c9..3a821f32f 100644 --- a/src/include/getgrgid_r.h +++ b/src/include/getgrgid_r.h @@ -1,20 +1,6 @@ /* liblxcapi * - * Copyright © 2018 Christian Brauner . - * Copyright © 2018 Canonical Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * 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, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * SPDX-License-Identifier: LGPL-2.1+ * * This function has been copied from musl. */ diff --git a/src/include/lxcmntent.c b/src/include/lxcmntent.c index 9661235d4..3547b6d5b 100644 --- a/src/include/lxcmntent.c +++ b/src/include/lxcmntent.c @@ -1,21 +1,7 @@ /* Utilities for reading/writing fstab, mtab, etc. - * Copyright (C) 1995-2000, 2001, 2002, 2003, 2006 - * 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. + * SPDX-License-Identifier: LGPL-2.1+ * - * The GNU C Library 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 library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef _GNU_SOURCE diff --git a/src/include/lxcmntent.h b/src/include/lxcmntent.h index 93928dd72..116f184eb 100644 --- a/src/include/lxcmntent.h +++ b/src/include/lxcmntent.h @@ -1,21 +1,7 @@ /* Utilities for reading/writing fstab, mtab, etc. - Copyright (C) 1995-2000, 2001, 2002, 2003, 2006 - 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. - - The GNU C Library 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 library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * SPDX-License-Identifier: LGPL-2.1+ + * */ #ifndef _LXCMNTENT_H diff --git a/src/include/netns_ifaddrs.c b/src/include/netns_ifaddrs.c index 30040b2b7..cb7dc1448 100644 --- a/src/include/netns_ifaddrs.c +++ b/src/include/netns_ifaddrs.c @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ + #include #include #include diff --git a/src/include/netns_ifaddrs.h b/src/include/netns_ifaddrs.h index 1dc3448ac..c75519baf 100644 --- a/src/include/netns_ifaddrs.h +++ b/src/include/netns_ifaddrs.h @@ -1,3 +1,5 @@ +/* SPDX-License-Identifier: LGPL-2.1+ */ + #ifndef _LXC_NETNS_IFADDRS_H #define _LXC_NETNS_IFADDRS_H diff --git a/src/include/strchrnul.c b/src/include/strchrnul.c index 7603251f0..c7cb7daa9 100644 --- a/src/include/strchrnul.c +++ b/src/include/strchrnul.c @@ -1,24 +1,4 @@ -/* Copyright (C) 1991-2021 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Based on strlen implementation by Torbjorn Granlund (tege@sics.se), - with help from Dan Sahlin (dan@sics.se) and - bug fix and commentary by Jim Blandy (jimb@ai.mit.edu); - adaptation to strchr suggested by Dick Karpinski (dick@cca.ucsf.edu), - and implemented by Roland McGrath (roland@ai.mit.edu). - - 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. - - The GNU C Library 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 the GNU C Library; if not, see - . */ +/* SPDX-License-Identifier: LGPL-2.1+ */ #include #include diff --git a/src/include/strchrnul.h b/src/include/strchrnul.h index 94e291700..5df068e23 100644 --- a/src/include/strchrnul.h +++ b/src/include/strchrnul.h @@ -1,24 +1,4 @@ -/* Copyright (C) 1991-2021 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Based on strlen implementation by Torbjorn Granlund (tege@sics.se), - with help from Dan Sahlin (dan@sics.se) and - bug fix and commentary by Jim Blandy (jimb@ai.mit.edu); - adaptation to strchr suggested by Dick Karpinski (dick@cca.ucsf.edu), - and implemented by Roland McGrath (roland@ai.mit.edu). - - 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. - - The GNU C Library 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 the GNU C Library; if not, see - . */ +/* SPDX-License-Identifier: LGPL-2.1+ */ #include "../lxc/compiler.h" diff --git a/src/include/strlcat.c b/src/include/strlcat.c index 823c7494a..e4a3c3b56 100644 --- a/src/include/strlcat.c +++ b/src/include/strlcat.c @@ -1,20 +1,6 @@ /* liblxcapi * - * Copyright © 2018 Christian Brauner . - * Copyright © 2018 Canonical Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * 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, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * SPDX-License-Identifier: LGPL-2.1+ * * * This function has been copied from musl. */ diff --git a/src/include/strlcat.h b/src/include/strlcat.h index 748c3a6c2..4a81b17ca 100644 --- a/src/include/strlcat.h +++ b/src/include/strlcat.h @@ -1,20 +1,6 @@ /* liblxcapi * - * Copyright © 2018 Christian Brauner . - * Copyright © 2018 Canonical Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * 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, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * SPDX-License-Identifier: LGPL-2.1+ * * * This function has been copied from musl. */ diff --git a/src/include/strlcpy.c b/src/include/strlcpy.c index 37782d394..69e478280 100644 --- a/src/include/strlcpy.c +++ b/src/include/strlcpy.c @@ -1,20 +1,6 @@ /* liblxcapi * - * Copyright © 2018 Christian Brauner . - * Copyright © 2018 Canonical Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * 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, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * SPDX-License-Identifier: LGPL-2.1+ * * * This function has been copied from musl. */ diff --git a/src/include/strlcpy.h b/src/include/strlcpy.h index 996e542cf..fff844485 100644 --- a/src/include/strlcpy.h +++ b/src/include/strlcpy.h @@ -1,20 +1,6 @@ /* liblxcapi * - * Copyright © 2018 Christian Brauner . - * Copyright © 2018 Canonical Ltd. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2, as - * published by the Free Software Foundation. - * - * 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, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * SPDX-License-Identifier: LGPL-2.1+ * * * This function has been copied from musl. */