]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Adopt SPDX License tag for files missing license information
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Mon, 14 Mar 2022 04:38:44 +0000 (10:08 +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 missing License
information.  All the files in the project fall under project license,
hence explicitly adding LGPL-2.1-only identifier to them.  The SPDX
license identifier is added for the files, reported by checkpatch.pl.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
23 files changed:
bootstrap.sh
include/libcgroup/config.h
include/libcgroup/error.h
include/libcgroup/groups.h
include/libcgroup/iterators.h
include/libcgroup/log.h
include/libcgroup/tasks.h
samples/c/get_all_controller.c
samples/c/get_controller.c
samples/c/get_mount_point.c
samples/c/get_procs.c
samples/c/get_variable_names.c
samples/c/logger.c
samples/c/proctest.c
samples/c/read_stats.c
samples/c/setuid.c
samples/c/test_functions.c
samples/c/test_named_hierarchy.c
samples/c/walk_task.c
samples/c/walk_test.c
samples/c/wrapper_test.c
src/tools/cgget.c
src/tools/cgset.c

index 1da41e2839a5fe2dec495ff89301640321e838dc..5d4086f5532e6b67dae8cd6341bdbbdc3149072e 100755 (executable)
@@ -1,4 +1,5 @@
 #!/bin/bash
+# SPDX-License-Identifier: LGPL-2.1-only
 
 set -ex
 
index f8350092dc5c31e54b5148cbbe6cf10dc4f49daa..08354d49f4cf5ab2667a345b0a403df493f16ae7 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-only */
 #ifndef _LIBCGROUP_CONFIG_H
 #define _LIBCGROUP_CONFIG_H
 
index 325136af4cf1d1598fd0b32ac05cbc10251008e2..3520a0388311e0629a73c22444125354444d8074 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-only */
 #ifndef _LIBCGROUP_ERROR_H
 #define _LIBCGROUP_ERROR_H
 
index c30cbb94031d49fa72aa9839c1c7fb336def2848..0a7fad11ae33cf2016a848304cf51f42c9a8268a 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-only */
 #ifndef _LIBCGROUP_GROUPS_H
 #define _LIBCGROUP_GROUPS_H
 
index 729fbac3a807003ea5c774329c9311fdbb048974..584b3e337344d6de400095cef372afa028ac98f6 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-only */
 #ifndef _LIBCGROUP_ITERATORS_H
 #define _LIBCGROUP_ITERATORS_H
 
index f69347378c2609c3b223a920c3e682b970f0026a..7d76c4c518dedd9ea221433971b3d542db455406 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-only */
 #ifndef _LIBCGROUP_LOG_H
 #define _LIBCGROUP_LOG_H
 
index 8553c30a5581fa0c60d12a190ea3bc07f2a1fe3a..554fe34ed504bf0c0ab55e4deb8906fce36eb837 100644 (file)
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1-only */
 #ifndef _LIBCGROUP_TASKS_H
 #define _LIBCGROUP_TASKS_H
 
index d643c9866fc4d5367bc6068a729d9e7303028382..873dfce7a4b4af4d83f971d41fb58279cfee7e30 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 #include <libcgroup.h>
 #include <stdio.h>
 #include <stdlib.h>
index 1829f5ccaaa145509fa4bd33cce49f91698a713a..3c1421b75dc4e253dbc921964d4295cf97df0fc6 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 #include <libcgroup.h>
 #include <stdio.h>
 #include <stdlib.h>
index b372092787dbbb5cd85d577f1f03502d8e3cfd12..55f2066237fd013b4cd60077925746212faf8cfc 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 #include <libcgroup.h>
 #include <stdio.h>
 #include <stdlib.h>
index caa844484af22eef03a81e1481db971e323e67b6..23a4d5849ceab0613acc993b304155130c980b4e 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 #include <stdio.h>
 #include <libcgroup.h>
 #include <stdlib.h>
index dc2ef149f33a5b4d275527b05f4d32225b0f1fba..f8a0043662362664e98903ba74c4141e056bef7d 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 #include <libcgroup.h>
 #include <stdio.h>
 #include <stdlib.h>
index b7f1b70247a5e005297514e495a05dd048e8ce9b..2946290869ae96a1b853e64d2d783b2a7be11b3b 100644 (file)
@@ -1,16 +1,9 @@
+// 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.
- *
  * Description: This file contains the test code for libcgroup logging.
  */
 
index 8e840c1e0574b6a8047f376572a69989e9aa424d..a3c2286d49bd7bfc78cbe61242a076499a7cebe2 100644 (file)
@@ -1,15 +1,8 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 /*
  * Copyright NEC Soft Ltd. 2009
  *
  * Author:     Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
- *
- * 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 0583039da95e6234c48f2ed1ee51f02bfb7d9e7f..34eef4f9d0be4204830100d447127db59e711707 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
index 7afd3c8cb976ab23c79c937d4549bea3692d925c..f7a0593758324d73ba78b34947f0d0ef317b077e 100644 (file)
@@ -1,16 +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.
- *
  */
 
 #include <stdio.h>
index f357ab2f230dfeb3dd46fa91a24fef7082bc85a3..195364675313a3cee3a8f05a8a7e5f3561cdb529 100644 (file)
@@ -1,16 +1,9 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 /*
  * Copyright IBM Corporation. 2008
  *
  * Author:     Sudhir Kumar <skumar@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.
- *
  * Description: This file contains the functions for testing libcgroup apis.
  */
 
index 934c8752a554ee4e0afc59349144fdf364c03e6e..d42cf3e56e38001fe655313db5b931add729eb4b 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
index 42ef32db21f01cd84d1f91bade4bb1404777b031..5ddc36096ded63a36d75e7a67b34c7f498cc513c 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 #include <stdio.h>
 #include <libcgroup.h>
 #include <stdlib.h>
index f3112c5fcfb5883f18cdaf50b4efc2a267da0383..5345223fcde72921ab8d7f14d7b565185543bf91 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
index 257ece335ef81179b52c3fd67a6f1b0ec6e4dfad..23dbef7fb301a641ac353fca6e4fb3587985551a 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 #include <libcgroup.h>
 #include <stdio.h>
 #include <string.h>
index 22e171118a0778ee45aa5d16e64c6fda52dd0d51..460e312b406fdeba13b6076fb940983f29a7c57a 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 #include <libcgroup.h>
 #include <libcgroup-internal.h>
 
index a59e1d3287169583bef96e1abd9e9cc558e40311..2860913ea484395b674fa817d578bff1ac6945b2 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: LGPL-2.1-only
 #include <libcgroup.h>
 #include <libcgroup-internal.h>