From: Kamalesh Babulal Date: Mon, 14 Mar 2022 04:35:01 +0000 (+0530) Subject: Adopt SPDX License tag X-Git-Tag: v3.0~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bfb5500af22129ac085c2bab45e656437c18800;p=thirdparty%2Flibcgroup.git Adopt SPDX License tag Adopt SPDX license tag for all the source files, those already have LGPL 2.1 bolierplate in them. Adopting SPDX license helps the compliance tools to determine the license and also helps in reducing the repetitive license boilerplate across source files. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/configure.ac b/configure.ac index 5f4efef3..52216807 100644 --- a/configure.ac +++ b/configure.ac @@ -1,16 +1,10 @@ # -*- Autoconf -*- +# SPDX-License-Identifier: LGPL-2.1-only # Process this file with autoconf to produce a configure script. # # Copyright International Business Machines Corp. 2008 # # Authors: Balbir Singh -# This program is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License -# as published by the Free Software Foundation. -# -# This program is distributed in the hope that it would be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # AC_PREREQ([2.69]) diff --git a/include/libcgroup.h b/include/libcgroup.h index 17ab90ea..3f7c759c 100644 --- a/include/libcgroup.h +++ b/include/libcgroup.h @@ -1,16 +1,8 @@ -/* +/* SPDX-License-Identifier: LGPL-2.1-only */ +/** * Copyright IBM Corporation. 2007 * * Author: Balbir Singh - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * */ #ifndef _LIBCGROUP_H diff --git a/include/libcgroup/tools.h b/include/libcgroup/tools.h index c2dbe3e3..2381fa65 100644 --- a/include/libcgroup/tools.h +++ b/include/libcgroup/tools.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * Libcgroup tools header file * @@ -5,19 +6,6 @@ * Author: Tom Hromatka */ -/* - * This library is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License as - * published by the Free Software Foundation. - * - * 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, see . - */ #ifndef _LIBCGROUP_TOOLS_H #define _LIBCGROUP_TOOLS_H diff --git a/samples/config/cgconfig.conf b/samples/config/cgconfig.conf index de77e4b8..de29594f 100644 --- a/samples/config/cgconfig.conf +++ b/samples/config/cgconfig.conf @@ -1,14 +1,8 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Copyright IBM Corporation. 2007 # # Authors: Balbir Singh -# This program is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License -# as published by the Free Software Foundation. -# -# This program is distributed in the hope that it would be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # #group daemons/www { # perm { diff --git a/samples/config/invalid_namespace_config.conf b/samples/config/invalid_namespace_config.conf index 2113aaf8..074e1869 100644 --- a/samples/config/invalid_namespace_config.conf +++ b/samples/config/invalid_namespace_config.conf @@ -1,14 +1,8 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Copyright IBM Corporation. 2009 # # Authors: Dhaval Giani -# This program is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License -# as published by the Free Software Foundation. -# -# This program is distributed in the hope that it would be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # group www { perm { diff --git a/samples/config/namespace_config.conf b/samples/config/namespace_config.conf index fb60bc64..bdb5e7f5 100644 --- a/samples/config/namespace_config.conf +++ b/samples/config/namespace_config.conf @@ -1,14 +1,8 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Copyright IBM Corporation. 2009 # # Authors: Dhaval Giani -# This program is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License -# as published by the Free Software Foundation. -# -# This program is distributed in the hope that it would be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # group www { perm { diff --git a/scripts/init.d/cgconfig.in b/scripts/init.d/cgconfig.in index 0d7446ed..59b2ecb1 100644 --- a/scripts/init.d/cgconfig.in +++ b/scripts/init.d/cgconfig.in @@ -1,17 +1,11 @@ #!/bin/bash +# SPDX-License-Identifier: LGPL-2.1-only # # Start/Stop the workload manager # # Copyright IBM Corporation. 2008 # # Authors: Balbir Singh -# This program is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License -# as published by the Free Software Foundation. -# -# This program is distributed in the hope that it would be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # cgconfig Control Groups Configuration Startup # chkconfig: - 5 95 diff --git a/scripts/init.d/cgred.in b/scripts/init.d/cgred.in index 247ec610..2b7319da 100644 --- a/scripts/init.d/cgred.in +++ b/scripts/init.d/cgred.in @@ -1,17 +1,11 @@ #!/bin/bash +# SPDX-License-Identifier: LGPL-2.1-only # # Start/Stop the CGroups Rules Engine Daemon # # Copyright Red Hat Inc. 2008 # # Authors: Steve Olivieri -# This program is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License -# as published by the Free Software Foundation. -# -# This program is distributed in the hope that it would be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # # cgred CGroups Rules Engine Daemon # chkconfig: - 14 86 diff --git a/src/abstraction-common.c b/src/abstraction-common.c index 2cccf49e..60c4f33b 100644 --- a/src/abstraction-common.c +++ b/src/abstraction-common.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only /** * Libcgroup abstraction layer * @@ -5,20 +6,6 @@ * Author: Tom Hromatka */ -/* - * This library is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License as - * published by the Free Software Foundation. - * - * 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, see . - */ - #include "abstraction-common.h" #include "abstraction-map.h" diff --git a/src/abstraction-common.h b/src/abstraction-common.h index efe8f186..240e831f 100644 --- a/src/abstraction-common.h +++ b/src/abstraction-common.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * Libcgroup abstraction layer prototypes and structs * @@ -5,19 +6,6 @@ * Author: Tom Hromatka */ -/* - * This library is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License as - * published by the Free Software Foundation. - * - * 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, see . - */ #ifndef __ABSTRACTION_COMMON #define __ABSTRACTION_COMMON diff --git a/src/abstraction-cpu.c b/src/abstraction-cpu.c index 310efcdd..7a175ba0 100644 --- a/src/abstraction-cpu.c +++ b/src/abstraction-cpu.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only /** * Libcgroup abstraction layer for the cpu controller * @@ -5,20 +6,6 @@ * Author: Tom Hromatka */ -/* - * This library is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License as - * published by the Free Software Foundation. - * - * 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, see . - */ - #include "abstraction-common.h" #include "abstraction-map.h" diff --git a/src/abstraction-cpuset.c b/src/abstraction-cpuset.c index 891b2ee2..286aaf3c 100644 --- a/src/abstraction-cpuset.c +++ b/src/abstraction-cpuset.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only /** * Libcgroup abstraction layer for the cpuset controller * @@ -5,20 +6,6 @@ * Author: Tom Hromatka */ -/* - * This library is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License as - * published by the Free Software Foundation. - * - * 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, see . - */ - #include "abstraction-common.h" #include diff --git a/src/abstraction-map.c b/src/abstraction-map.c index def0d3b6..f74aadb2 100644 --- a/src/abstraction-map.c +++ b/src/abstraction-map.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only /** * Libcgroup abstraction layer mappings * @@ -5,20 +6,6 @@ * Author: Tom Hromatka */ -/* - * This library is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License as - * published by the Free Software Foundation. - * - * 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, see . - */ - #include "abstraction-common.h" #include "abstraction-map.h" diff --git a/src/abstraction-map.h b/src/abstraction-map.h index 38c611af..2a2ac476 100644 --- a/src/abstraction-map.h +++ b/src/abstraction-map.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: LGPL-2.1-only */ /** * Libcgroup abstraction layer mappings * @@ -5,19 +6,6 @@ * Author: Tom Hromatka */ -/* - * This library is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License as - * published by the Free Software Foundation. - * - * 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, see . - */ #ifndef __ABSTRACTION_MAP #define __ABSTRACTION_MAP diff --git a/src/api.c b/src/api.c index ade78d4a..108417cb 100644 --- a/src/api.c +++ b/src/api.c @@ -1,17 +1,10 @@ -/* +// SPDX-License-Identifier: LGPL-2.1-only +/** * Copyright IBM Corporation. 2007 * * Author: Dhaval Giani * Author: Balbir Singh * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * * TODOs: * 1. Add more APIs for the control groups. * 2. Handle the configuration related APIs. diff --git a/src/config.c b/src/config.c index ebfc7387..ae11799e 100644 --- a/src/config.c +++ b/src/config.c @@ -1,17 +1,10 @@ -/* +// SPDX-License-Identifier: LGPL-2.1-only +/** * Copyright IBM Corporation. 2007 * * Authors: Balbir Singh * Dhaval Giani * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * * TODOs: * 1. Implement our own hashing scheme * diff --git a/src/daemon/cgrulesengd.c b/src/daemon/cgrulesengd.c index 4cef53ee..29656833 100644 --- a/src/daemon/cgrulesengd.c +++ b/src/daemon/cgrulesengd.c @@ -1,4 +1,5 @@ -/* +// SPDX-License-Identifier: LGPL-2.1-only +/** * Copyright Red Hat Inc. 2008 * * Author: Steve Olivieri @@ -20,14 +21,6 @@ * Copyright (C) 2005 BULL SA. * Written by Guillaume Thouvenin bull.net> * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * * TODO Stop using netlink for communication (or at least rewrite that part). */ diff --git a/src/daemon/cgrulesengd.h b/src/daemon/cgrulesengd.h index 0b120762..dfb8aca7 100644 --- a/src/daemon/cgrulesengd.h +++ b/src/daemon/cgrulesengd.h @@ -1,15 +1,8 @@ -/* +/* SPDX-License-Identifier: LGPL-2.1-only */ +/** * Copyright Red Hat Inc. 2008 * * Author: Steve Olivieri - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ #ifndef _CGRULESENGD_H diff --git a/src/lex.l b/src/lex.l index ecd212c4..e1e8321e 100644 --- a/src/lex.l +++ b/src/lex.l @@ -1,14 +1,8 @@ -/* +/* SPDX-License-Identifier: LGPL-2.1-only */ +/** * Copyright IBM Corporation. 2007 * * Authors: Balbir Singh - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ %{ diff --git a/src/libcgroup-internal.h b/src/libcgroup-internal.h index 3c152ea9..1a542ba4 100644 --- a/src/libcgroup-internal.h +++ b/src/libcgroup-internal.h @@ -1,17 +1,10 @@ -/* +/* SPDX-License-Identifier: LGPL-2.1-only */ +/** * Copyright IBM Corporation. 2008 * * Author: Dhaval Giani - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * */ + #ifndef __LIBCG_INTERNAL #define __LIBCG_INTERNAL diff --git a/src/log.c b/src/log.c index 2d524a36..93cecd48 100644 --- a/src/log.c +++ b/src/log.c @@ -1,15 +1,8 @@ -/* +// SPDX-License-Identifier: LGPL-2.1-only +/** * Copyright Red Hat, Inc. 2012 * * Author: Jan Safranek - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ #include diff --git a/src/pam/pam_cgroup.c b/src/pam/pam_cgroup.c index 1d78b814..9be5e834 100644 --- a/src/pam/pam_cgroup.c +++ b/src/pam/pam_cgroup.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only /* * Copyright RedHat Inc. 2008 * @@ -40,14 +41,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. * * End of original copyright notice. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ #include diff --git a/src/parse.y b/src/parse.y index e2e6cb16..b51c47d3 100644 --- a/src/parse.y +++ b/src/parse.y @@ -1,18 +1,13 @@ -/* +// SPDX-License-Identifier: LGPL-2.1-only +/** * Copyright IBM Corporation. 2007 * * Authors: Balbir Singh - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * NOTE: The grammar has been modified, not to be the most efficient, but * to allow easy updation of internal data structures. */ + %{ #include #include diff --git a/src/python/Makefile.am b/src/python/Makefile.am index fbd69798..6668afe0 100644 --- a/src/python/Makefile.am +++ b/src/python/Makefile.am @@ -1,23 +1,10 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Libcgroup Python Bindings # # Copyright (c) 2021-2022 Oracle and/or its affiliates. # Author: Tom Hromatka # - -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# 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, see . -# @CODE_COVERAGE_RULES@ PY_DISTUTILS = \ diff --git a/src/python/cgroup.pxd b/src/python/cgroup.pxd index dafd2068..bbd30058 100644 --- a/src/python/cgroup.pxd +++ b/src/python/cgroup.pxd @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Libcgroup Python Bindings # @@ -5,20 +6,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# 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, see . -# - # cython: language_level = 3str cdef extern from "libcgroup.h": diff --git a/src/python/libcgroup.pyx b/src/python/libcgroup.pyx index 29ac16ba..006fbb5d 100644 --- a/src/python/libcgroup.pyx +++ b/src/python/libcgroup.pyx @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: LGPL-2.1-only # # Libcgroup Python Bindings # @@ -5,20 +6,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# 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, see . -# - # cython: language_level = 3str """ Python bindings for the libcgroup library diff --git a/src/python/setup.py b/src/python/setup.py index 935b5cd8..8bb4d6a5 100755 --- a/src/python/setup.py +++ b/src/python/setup.py @@ -1,5 +1,5 @@ #!/usr/bin/env python - +# SPDX-License-Identifier: LGPL-2.1-only # # Libcgroup Python Module Build Script # @@ -9,20 +9,6 @@ # Author: Tom Hromatka # -# -# This library is free software; you can redistribute it and/or modify it -# under the terms of version 2.1 of the GNU Lesser General Public License as -# published by the Free Software Foundation. -# -# 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, see . -# - from setuptools import Extension, setup from Cython.Build import cythonize import os diff --git a/src/tools/cgclassify.c b/src/tools/cgclassify.c index ee1b60cd..c4bea945 100644 --- a/src/tools/cgclassify.c +++ b/src/tools/cgclassify.c @@ -1,16 +1,8 @@ -/* +// SPDX-License-Identifier: LGPL-2.1-only +/** * Copyright RedHat Inc. 2008 * * Authors: Vivek Goyal - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * */ #include diff --git a/src/tools/cgconfig.c b/src/tools/cgconfig.c index b5058db4..9c419d3d 100644 --- a/src/tools/cgconfig.c +++ b/src/tools/cgconfig.c @@ -1,18 +1,10 @@ - -/* +// SPDX-License-Identifier: LGPL-2.1-only +/** * Copyright IBM Corporation. 2007 * * Authors: Dhaval Giani * Balbir Singh * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * * Code initiated and designed by Dhaval Giani. All faults are most likely * his mistake. */ diff --git a/src/tools/cgcreate.c b/src/tools/cgcreate.c index 65b188a9..fe0a9010 100644 --- a/src/tools/cgcreate.c +++ b/src/tools/cgcreate.c @@ -1,16 +1,8 @@ -/* +// SPDX-License-Identifier: LGPL-2.1-only +/** * Copyright Red Hat, Inc. 2009 * * Authors: Ivana Hutarova Varekova - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * */ #include diff --git a/src/tools/cgdelete.c b/src/tools/cgdelete.c index 43cc47c2..653f6cdb 100644 --- a/src/tools/cgdelete.c +++ b/src/tools/cgdelete.c @@ -1,16 +1,8 @@ -/* +// SPDX-License-Identifier: LGPL-2.1-only +/** * Copyright RedHat Inc. 2009 * * Authors: Jan Safranek - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * */ #include diff --git a/src/tools/cgexec.c b/src/tools/cgexec.c index d0874537..0bf92107 100644 --- a/src/tools/cgexec.c +++ b/src/tools/cgexec.c @@ -1,16 +1,8 @@ -/* +// SPDX-License-Identifier: LGPL-2.1-only +/** * Copyright RedHat Inc. 2008 * * Authors: Vivek Goyal - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * */ #ifndef _GNU_SOURCE diff --git a/src/tools/cgsnapshot.c b/src/tools/cgsnapshot.c index 9f7a64e9..173d8891 100644 --- a/src/tools/cgsnapshot.c +++ b/src/tools/cgsnapshot.c @@ -1,13 +1,7 @@ -/* " Copyright (C) 2010 Red Hat, Inc. All Rights Reserved. - * " Written by Ivana Hutarova Varekova - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +// SPDX-License-Identifier: LGPL-2.1-only +/** + * Copyright (C) 2010 Red Hat, Inc. All Rights Reserved. + * Written by Ivana Hutarova Varekova */ #include diff --git a/src/tools/cgxget.c b/src/tools/cgxget.c index 92115af4..5398d5ed 100644 --- a/src/tools/cgxget.c +++ b/src/tools/cgxget.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only /** * Libcgroup extended cgget. Works with both cgroup v1 and v2 * @@ -5,19 +6,6 @@ * Author: Tom Hromatka */ -/* - * This library is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License as - * published by the Free Software Foundation. - * - * 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, see . - */ #include #include diff --git a/src/tools/cgxset.c b/src/tools/cgxset.c index a1f606e1..47fecab8 100644 --- a/src/tools/cgxset.c +++ b/src/tools/cgxset.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: LGPL-2.1-only /** * Libcgroup extended cgset. Works with both cgroup v1 and v2 * @@ -5,19 +6,6 @@ * Author: Tom Hromatka */ -/* - * This library is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License as - * published by the Free Software Foundation. - * - * 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, see . - */ #include #include diff --git a/src/tools/lscgroup.c b/src/tools/lscgroup.c index 31d5c2e6..840fb604 100644 --- a/src/tools/lscgroup.c +++ b/src/tools/lscgroup.c @@ -1,13 +1,7 @@ -/* Copyright (C) 2009 Red Hat, Inc. All Rights Reserved. +// SPDX-License-Identifier: LGPL-2.1-only +/** + * Copyright (C) 2009 Red Hat, Inc. All Rights Reserved. * Written by Ivana Hutarova Varekova - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ #include diff --git a/src/tools/lssubsys.c b/src/tools/lssubsys.c index b86986da..2b609d73 100644 --- a/src/tools/lssubsys.c +++ b/src/tools/lssubsys.c @@ -1,13 +1,7 @@ -/* " Copyright (C) 2009 Red Hat, Inc. All Rights Reserved. - * " Written by Ivana Hutarova Varekova - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +// SPDX-License-Identifier: LGPL-2.1-only +/** + * Copyright (C) 2009 Red Hat, Inc. All Rights Reserved. + * Written by Ivana Hutarova Varekova */ #include diff --git a/src/tools/tools-common.c b/src/tools/tools-common.c index c123eda2..912c31be 100644 --- a/src/tools/tools-common.c +++ b/src/tools/tools-common.c @@ -1,17 +1,9 @@ -/* +// SPDX-License-Identifier: LGPL-2.1-only +/** * Copyright Red Hat, Inc. 2009 * * Author: Vivek Goyal * Jan Safranek - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * */ /* for asprintf */ diff --git a/src/tools/tools-common.h b/src/tools/tools-common.h index 515c4955..19171e88 100644 --- a/src/tools/tools-common.h +++ b/src/tools/tools-common.h @@ -1,17 +1,9 @@ -/* +/* SPDX-License-Identifier: LGPL-2.1-only */ +/** * Copyright Red Hat, Inc. 2009 * * Author: Vivek Goyal * Jan Safranek - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * */ #ifndef __TOOLS_COMMON diff --git a/src/wrapper.c b/src/wrapper.c index 04b26b0b..41eef292 100644 --- a/src/wrapper.c +++ b/src/wrapper.c @@ -1,16 +1,9 @@ -/* +// SPDX-License-Identifier: LGPL-2.1-only +/** * Copyright IBM Corporation. 2008 * * Author: Dhaval Giani * - * This program is free software; you can redistribute it and/or modify it - * under the terms of version 2.1 of the GNU Lesser General Public License - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it would be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * * Code initiated and designed by Dhaval Giani. All faults are most likely * his mistake. */