]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Adopt SPDX License tag
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 14 Mar 2022 04:35:01 +0000 (10:05 +0530)
committerTom Hromatka <tom.hromatka@oracle.com>
Wed, 16 Mar 2022 14:34:45 +0000 (08:34 -0600)
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 <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
40 files changed:
configure.ac
include/libcgroup.h
include/libcgroup/tools.h
samples/config/cgconfig.conf
samples/config/invalid_namespace_config.conf
samples/config/namespace_config.conf
scripts/init.d/cgconfig.in
scripts/init.d/cgred.in
src/abstraction-common.c
src/abstraction-common.h
src/abstraction-cpu.c
src/abstraction-cpuset.c
src/abstraction-map.c
src/abstraction-map.h
src/api.c
src/config.c
src/daemon/cgrulesengd.c
src/daemon/cgrulesengd.h
src/lex.l
src/libcgroup-internal.h
src/log.c
src/pam/pam_cgroup.c
src/parse.y
src/python/Makefile.am
src/python/cgroup.pxd
src/python/libcgroup.pyx
src/python/setup.py
src/tools/cgclassify.c
src/tools/cgconfig.c
src/tools/cgcreate.c
src/tools/cgdelete.c
src/tools/cgexec.c
src/tools/cgsnapshot.c
src/tools/cgxget.c
src/tools/cgxset.c
src/tools/lscgroup.c
src/tools/lssubsys.c
src/tools/tools-common.c
src/tools/tools-common.h
src/wrapper.c

index 5f4efef3c70ec899098ed8642948af9327b46d83..522168070dc0f933218e76d8a161106f33463eb8 100644 (file)
@@ -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 <balbir@linux.vnet.ibm.com>
-#  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])
 
index 17ab90eaca5b7493e60fe209d2cb14cc8fd121f9..3f7c759c3a9b7fad48532f2e5095c07166120dcc 100644 (file)
@@ -1,16 +1,8 @@
-/*
+/* SPDX-License-Identifier: LGPL-2.1-only */
+/**
  * Copyright IBM Corporation. 2007
  *
  * Author:     Balbir Singh <balbir@linux.vnet.ibm.com>
- *
- * 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
index c2dbe3e3e7f05e331d7fa7058ffa07336b3c71ea..2381fa65ff05949f5412bb231d73a076d7e54567 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-only */
 /**
  * Libcgroup tools header file
  *
@@ -5,19 +6,6 @@
  * Author: Tom Hromatka <tom.hromatka@oracle.com>
  */
 
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
 #ifndef _LIBCGROUP_TOOLS_H
 #define _LIBCGROUP_TOOLS_H
 
index de77e4b8c4862bbe794effbf7475f8c0d213cf44..de29594fd74aefc7c601500131efae9d5e0b07fb 100644 (file)
@@ -1,14 +1,8 @@
+# SPDX-License-Identifier: LGPL-2.1-only
 #
 #  Copyright IBM Corporation. 2007
 #
 #  Authors:    Balbir Singh <balbir@linux.vnet.ibm.com>
-#  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 {
index 2113aaf86102575c921a7b162567f8bb0aaa0681..074e1869cfc544c5a5edc2a376b5d757ec71b008 100644 (file)
@@ -1,14 +1,8 @@
+# SPDX-License-Identifier: LGPL-2.1-only
 #
 #  Copyright IBM Corporation. 2009
 #
 #  Authors:    Dhaval Giani <dhaval@linux.vnet.ibm.com>
-#  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 {
index fb60bc64e22979063dc10eb0274ec3bfcdd9f9b1..bdb5e7f564267e0731c530d4db46fbb057e8184e 100644 (file)
@@ -1,14 +1,8 @@
+# SPDX-License-Identifier: LGPL-2.1-only
 #
 #  Copyright IBM Corporation. 2009
 #
 #  Authors:    Dhaval Giani <dhaval@linux.vnet.ibm.com>
-#  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 {
index 0d7446edf598421716859c9f30bfc400fa39ba37..59b2ecb1f2a31f1ef322ae9942dc87d57f469f1c 100644 (file)
@@ -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 <balbir@linux.vnet.ibm.com>
-# 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
index 247ec610c0c0e4ab1ac163be03253fcac3cb8803..2b7319dae4a847229b6e907d5755ce16687dddbc 100644 (file)
@@ -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 <sjo@redhat.com>
-# 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
index 2cccf49e909d27b53a27727c6734de38196e0c39..60c4f33b790bd33e51006fff681efd7ab883715b 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 /**
  * Libcgroup abstraction layer
  *
@@ -5,20 +6,6 @@
  * Author: Tom Hromatka <tom.hromatka@oracle.com>
  */
 
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
 #include "abstraction-common.h"
 #include "abstraction-map.h"
 
index efe8f1862f9fbc83e28955249fb4d52a60865644..240e831f77daa8eb050c06f206df840c79b70d6a 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-only */
 /**
  * Libcgroup abstraction layer prototypes and structs
  *
@@ -5,19 +6,6 @@
  * Author: Tom Hromatka <tom.hromatka@oracle.com>
  */
 
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
 #ifndef __ABSTRACTION_COMMON
 #define __ABSTRACTION_COMMON
 
index 310efcdd9dad4d5ed7c4b79f96ef2fd1194b0fa9..7a175ba013c41f156d5083efbc8c83b073060906 100644 (file)
@@ -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 <tom.hromatka@oracle.com>
  */
 
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
 #include "abstraction-common.h"
 #include "abstraction-map.h"
 
index 891b2ee2bda03acc5bd7ba1b4e36f127384b7cb6..286aaf3cb80d6c3624f3d95a26360f4fe8641801 100644 (file)
@@ -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 <tom.hromatka@oracle.com>
  */
 
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
 #include "abstraction-common.h"
 
 #include <libcgroup.h>
index def0d3b66598f64b54730580257e70bda364ef90..f74aadb242c92a23e0789ef51008a7303c2c64a7 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 /**
  * Libcgroup abstraction layer mappings
  *
@@ -5,20 +6,6 @@
  * Author: Tom Hromatka <tom.hromatka@oracle.com>
  */
 
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
-
 #include "abstraction-common.h"
 #include "abstraction-map.h"
 
index 38c611af46ef9a1dc60657a4bd5b46d3bd6d59ef..2a2ac4764d1cd1cbed92dd035f9b86c18c135da1 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-only */
 /**
  * Libcgroup abstraction layer mappings
  *
@@ -5,19 +6,6 @@
  * Author: Tom Hromatka <tom.hromatka@oracle.com>
  */
 
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
 #ifndef __ABSTRACTION_MAP
 #define __ABSTRACTION_MAP
 
index ade78d4a54979bd30fa68cc4c573481ecf8f0a9f..108417cbaf4d3f6807207c38c8197e49f9039577 100644 (file)
--- 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 <dhaval@linux.vnet.ibm.com>
  * Author:     Balbir Singh <balbir@linux.vnet.ibm.com>
  *
- * 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.
index ebfc7387ac19045e6aa332e84bcfa7dd2af2fdd8..ae11799e74fd65de0eec7885a915668785ac7b62 100644 (file)
@@ -1,17 +1,10 @@
-/*
+// SPDX-License-Identifier: LGPL-2.1-only
+/**
  * Copyright IBM Corporation. 2007
  *
  * Authors:    Balbir Singh <balbir@linux.vnet.ibm.com>
  *             Dhaval Giani <dhaval@linux.vnet.ibm.com>
  *
- * 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
  *
index 4cef53ee0e10bdd235bd3f8fcfe2b011b0e479de..29656833c730440536526063203b4b62efdb773e 100644 (file)
@@ -1,4 +1,5 @@
-/*
+// SPDX-License-Identifier: LGPL-2.1-only
+/**
  * Copyright Red Hat Inc. 2008
  *
  * Author: Steve Olivieri <sjo@redhat.com>
  * Copyright (C) 2005 BULL SA.
  * Written by Guillaume Thouvenin <guillaume.thouvenin <at> 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).
  */
 
index 0b120762ae503e3cc5d18b411092c35fc4cdb1e0..dfb8aca78e645f035a28e4db5c3d0fd963362b03 100644 (file)
@@ -1,15 +1,8 @@
-/*
+/* SPDX-License-Identifier: LGPL-2.1-only */
+/**
  * Copyright Red Hat Inc. 2008
  *
  * Author:      Steve Olivieri <sjo@redhat.com>
- *
- * 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
index ecd212c4ccd27cb91815922a80cb4736a78c58ef..e1e8321edc7a17f16ff601c5443191eda255a58c 100644 (file)
--- 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 <balbir@linux.vnet.ibm.com>
- * 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.
  */
 
 %{
index 3c152ea92b533b3ab4f78f598c64c5c82597f134..1a542ba45f369cffc28b452a7db693c25fddd7e5 100644 (file)
@@ -1,17 +1,10 @@
-/*
+/* SPDX-License-Identifier: LGPL-2.1-only */
+/**
  * Copyright IBM Corporation. 2008
  *
  * Author:     Dhaval Giani <dhaval@linux.vnet.ibm.com>
- *
- * 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
index 2d524a364444a7af790f56229f7babcb3801db4a..93cecd480bac726f4bfd0421c3518d4c02f16914 100644 (file)
--- 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 <jsafrane@redhat.com>
- *
- * 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 <libcgroup.h>
index 1d78b814e63a99969fb4fbee94413f0f6aac38c1..9be5e834364ae620a32f4229ecffbcccca9f2237 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 /*
  * Copyright RedHat Inc. 2008
  *
  * 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 <stdio.h>
index e2e6cb168648a99942b12460e218c60c71da9cd6..b51c47d30e2f607eda690b468c73de819834c316 100644 (file)
@@ -1,18 +1,13 @@
-/*
+// SPDX-License-Identifier: LGPL-2.1-only
+/**
  * Copyright IBM Corporation. 2007
  *
  * Authors:    Balbir Singh <balbir@linux.vnet.ibm.com>
- * 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 <stdlib.h>
 #include <stdio.h>
index fbd6979830d754f2c8917870cde9538a91af96f5..6668afe0996c6b8856b89230450ad899c7032a75 100644 (file)
@@ -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 <tom.hromatka@oracle.com>
 #
-
-#
-# 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 <http://www.gnu.org/licenses>.
-#
 @CODE_COVERAGE_RULES@
 
 PY_DISTUTILS = \
index dafd2068bfc3c0583e37c38eaf844838314d20f7..bbd30058ab3f518f544979bfe9c2484e5792317b 100644 (file)
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: LGPL-2.1-only
 #
 # Libcgroup Python Bindings
 #
@@ -5,20 +6,6 @@
 # Author: Tom Hromatka <tom.hromatka@oracle.com>
 #
 
-#
-# 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 <http://www.gnu.org/licenses>.
-#
-
 # cython: language_level = 3str
 
 cdef extern from "libcgroup.h":
index 29ac16baaa1433a440a4ff3acbda6e59d5005265..006fbb5d5290426ffc1f16ae79bf96b626a63d7a 100644 (file)
@@ -1,3 +1,4 @@
+# SPDX-License-Identifier: LGPL-2.1-only
 #
 # Libcgroup Python Bindings
 #
@@ -5,20 +6,6 @@
 # Author: Tom Hromatka <tom.hromatka@oracle.com>
 #
 
-#
-# 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 <http://www.gnu.org/licenses>.
-#
-
 # cython: language_level = 3str
 
 """ Python bindings for the libcgroup library
index 935b5cd821ce66d2ecfdf31b28997036949e1d10..8bb4d6a5082e09a14b735ed37093591574203f82 100755 (executable)
@@ -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 <tom.hromatka@oracle.com>
 #
 
-#
-# 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 <http://www.gnu.org/licenses>.
-#
-
 from setuptools import Extension, setup
 from Cython.Build import cythonize
 import os
index ee1b60cd88e1dc92a5516a837f14d3517b14949c..c4bea9454bd93755d2940501f9b07c8c275291ee 100644 (file)
@@ -1,16 +1,8 @@
-/*
+// SPDX-License-Identifier: LGPL-2.1-only
+/**
  * Copyright RedHat Inc. 2008
  *
  * Authors:    Vivek Goyal <vgoyal@redhat.com>
- *
- * 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 <stdio.h>
index b5058db42e26a143e4755fc0420831a6aeb8c54b..9c419d3d83f2c961c26fe987e41b61a735527ba9 100644 (file)
@@ -1,18 +1,10 @@
-
-/*
+// SPDX-License-Identifier: LGPL-2.1-only
+/**
  * Copyright IBM Corporation. 2007
  *
  * Authors:    Dhaval Giani <dhaval@linux.vnet.ibm.com>
  *             Balbir Singh <balbir@linux.vnet.ibm.com>
  *
- * 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.
  */
index 65b188a97c4417514f6f71d85ed3954f01b72b60..fe0a9010dd83f679f90ff5b8609c11cd9a7dccd9 100644 (file)
@@ -1,16 +1,8 @@
-/*
+// SPDX-License-Identifier: LGPL-2.1-only
+/**
  * Copyright Red Hat, Inc. 2009
  *
  * Authors:    Ivana Hutarova Varekova <varekova@redhat.com>
- *
- * 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 <libcgroup.h>
index 43cc47c22d22abeae6734c483187db02c43171fb..653f6cdbcc6f27e8160bbda82da31d9530f02fd5 100644 (file)
@@ -1,16 +1,8 @@
-/*
+// SPDX-License-Identifier: LGPL-2.1-only
+/**
  * Copyright RedHat Inc. 2009
  *
  * Authors:    Jan Safranek <jsafrane@redhat.com>
- *
- * 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 <libcgroup.h>
index d087453701240cd4ab1246dc098c39cf918bee4b..0bf92107772ce4264a2b922ed1e0bdd9fad1c04d 100644 (file)
@@ -1,16 +1,8 @@
-/*
+// SPDX-License-Identifier: LGPL-2.1-only
+/**
  * Copyright RedHat Inc. 2008
  *
  * Authors:    Vivek Goyal <vgoyal@redhat.com>
- *
- * 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
index 9f7a64e98d1369c3b7d84d609dae1b22322b8cad..173d889148dbd2dd962e3d083759b9eaff10e4f3 100644 (file)
@@ -1,13 +1,7 @@
-/* " Copyright (C) 2010 Red Hat, Inc. All Rights Reserved.
- * " Written by Ivana Hutarova Varekova <varekova@redhat.com>
- *
- * 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 <varekova@redhat.com>
  */
 
 #include <stdio.h>
index 92115af482b4dba92e06de20e7f0ca24bf742bee..5398d5ed5f8b221bee1273afd5c706a49d71c61f 100644 (file)
@@ -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 <tom.hromatka@oracle.com>
  */
 
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
 #include <libcgroup.h>
 #include <libcgroup-internal.h>
 
index a1f606e189bdcafa7b42e71e8167f09fbd0b6c23..47fecab8d7dec90c6cd90e9afab1b0d257bccf10 100644 (file)
@@ -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 <tom.hromatka@oracle.com>
  */
 
-/*
- * 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 <http://www.gnu.org/licenses>.
- */
 #include <libcgroup.h>
 #include <libcgroup-internal.h>
 
index 31d5c2e619577c234343456daf2a90b2d1bcc5c2..840fb604e827398d8e3a253b9827cf2987989a73 100644 (file)
@@ -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 <varekova@redhat.com>
- *
- * 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 <stdio.h>
index b86986dac93a982707cd1c7c2bd35baa94ed3061..2b609d733fd90086ade0db4060b154ccf0fff04f 100644 (file)
@@ -1,13 +1,7 @@
-/* " Copyright (C) 2009 Red Hat, Inc. All Rights Reserved.
- * " Written by Ivana Hutarova Varekova <varekova@redhat.com>
- *
- * 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 <varekova@redhat.com>
  */
 
 #include <stdio.h>
index c123eda2bda3f143de4921f35b421f3241a83d0e..912c31beca0747a7c414744f64511d602beb158b 100644 (file)
@@ -1,17 +1,9 @@
-/*
+// SPDX-License-Identifier: LGPL-2.1-only
+/**
  * Copyright Red Hat, Inc. 2009
  *
  * Author:     Vivek Goyal <vgoyal@redhat.com>
  *             Jan Safranek <jsafrane@redhat.com>
- *
- * 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 */
index 515c49557755febc53872eb258a8e6f3a728f7cf..19171e885fdbe0763e42dab2399643af188aadd6 100644 (file)
@@ -1,17 +1,9 @@
-/*
+/* SPDX-License-Identifier: LGPL-2.1-only */
+/**
  * Copyright Red Hat, Inc. 2009
  *
  * Author:     Vivek Goyal <vgoyal@redhat.com>
  *             Jan Safranek <jsafrane@redhat.com>
- *
- * 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
index 04b26b0ba688058b7f0de653c7d14b3fa966aa31..41eef292589d8866b2f829b2022650cfd2cca67b 100644 (file)
@@ -1,16 +1,9 @@
-/*
+// SPDX-License-Identifier: LGPL-2.1-only
+/**
  * Copyright IBM Corporation. 2008
  *
  * Author:     Dhaval Giani <dhaval@linux.vnet.ibm.com>
  *
- * 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.
  */