]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
src/include: Add SPDX headers
authorStéphane Graber <stgraber@stgraber.org>
Tue, 2 Apr 2024 22:31:26 +0000 (18:31 -0400)
committerStéphane Graber <stgraber@stgraber.org>
Tue, 2 Apr 2024 22:31:26 +0000 (18:31 -0400)
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
15 files changed:
src/include/bpf.h
src/include/fexecve.c
src/include/fexecve.h
src/include/getgrgid_r.c
src/include/getgrgid_r.h
src/include/lxcmntent.c
src/include/lxcmntent.h
src/include/netns_ifaddrs.c
src/include/netns_ifaddrs.h
src/include/strchrnul.c
src/include/strchrnul.h
src/include/strlcat.c
src/include/strlcat.h
src/include/strlcpy.c
src/include/strlcpy.h

index 540192b9043143be30e49de98f547860567f9946..b7b787b4c95a4713d1ee9377bcdfd3fb9bcde1cd 100644 (file)
@@ -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__
 
index 40d2b5b46de0cc001165c7aa22ba13e57751df15..e9ecb980a60554954c91403b21171d5748c63acc 100644 (file)
@@ -1,21 +1,7 @@
 /* liblxcapi
  *
- * Copyright © 2019 Christian Brauner <christian.brauner@ubuntu.com>.
- * 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
index 4c0a8b0f5dc924e7ab30583863ebfaf8b0cb9e78..4c32c64ce545ef40f25efde1f22673c0563ddcd7 100644 (file)
@@ -1,21 +1,7 @@
 /* liblxcapi
  *
- * Copyright © 2019 Christian Brauner <christian.brauner@ubuntu.com>.
- * 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
index 378740ff3ab349a0422243adaafd5035be8426e9..38346d03b2b9ec6df6426cfc3bd784c4d9bcb9b6 100644 (file)
@@ -1,20 +1,6 @@
 /* liblxcapi
  *
- * Copyright © 2018 Christian Brauner <christian.brauner@ubuntu.com>.
- * 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.
  */
index 6a8c418c9506127278cc26691a26dcafbcc71c1a..3a821f32f750be7856df4ffff7ac7cd758cf2026 100644 (file)
@@ -1,20 +1,6 @@
 /* liblxcapi
  *
- * Copyright © 2018 Christian Brauner <christian.brauner@ubuntu.com>.
- * 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.
  */
index 9661235d468ffafd2db1724454f3f968aeb2ba6b..3547b6d5b62e0563ad876a52b6e705393eadc0a3 100644 (file)
@@ -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
index 93928dd721c1097dd89ad64b4770e94c3828a163..116f184ebd2437186459d6735eac05f348d1ef78 100644 (file)
@@ -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
index 30040b2b71ffb8e9b0c36caeb45b931c90627c09..cb7dc1448f87e75b61ebb4d9670c87f37647fa1d 100644 (file)
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
+
 #include <arpa/inet.h>
 #include <errno.h>
 #include <linux/if.h>
index 1dc3448acb5ad6a60b03177181e835319ee149ed..c75519baf41a3dff1ade2b340f9b00d6ffd2f90b 100644 (file)
@@ -1,3 +1,5 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
+
 #ifndef _LXC_NETNS_IFADDRS_H
 #define _LXC_NETNS_IFADDRS_H
 
index 7603251f093144c2ccc7672d21e2c15584f04936..c7cb7daa9177b594a8f591bf201ed62a1fc989af 100644 (file)
@@ -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
-   <https://www.gnu.org/licenses/>.  */
+/* SPDX-License-Identifier: LGPL-2.1+ */
 
 #include <string.h>
 #include <stdlib.h>
index 94e291700e392818e8ea91bdc910b9fa94da338b..5df068e23a4fb6aa2755bb815d4abbd0cd523e26 100644 (file)
@@ -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
-   <https://www.gnu.org/licenses/>.  */
+/* SPDX-License-Identifier: LGPL-2.1+ */
 
 #include "../lxc/compiler.h"
 
index 823c7494afac8532f2f8b497429b8a3bcae71020..e4a3c3b56ec792565f9d74e6aad2f84854e69219 100644 (file)
@@ -1,20 +1,6 @@
 /* liblxcapi
  *
- * Copyright © 2018 Christian Brauner <christian@brauner.io>.
- * 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.
  */
index 748c3a6c2058f00472e3dbec46fa08b562dde29a..4a81b17ca4afeff68a374788af8ce4a6c0f75298 100644 (file)
@@ -1,20 +1,6 @@
 /* liblxcapi
  *
- * Copyright © 2018 Christian Brauner <christian@brauner.io>.
- * 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.
  */
index 37782d394bc3d5f2e5203611188ac89defbaf037..69e478280162adcec44c4e5e64cdf467587bb974 100644 (file)
@@ -1,20 +1,6 @@
 /* liblxcapi
  *
- * Copyright © 2018 Christian Brauner <christian@brauner.io>.
- * 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.
  */
index 996e542cfe30a7b821a9a1171a06f8d7e78f3152..fff844485d4ba1669ce2d2a18bab76fdec414400 100644 (file)
@@ -1,20 +1,6 @@
 /* liblxcapi
  *
- * Copyright © 2018 Christian Brauner <christian@brauner.io>.
- * 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.
  */