libs/libc: migrate to SPDX identifier
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
diff --git a/libs/libc/CMakeLists.txt b/libs/libc/CMakeLists.txt
index a1e7de6..55971ac 100644
--- a/libs/libc/CMakeLists.txt
+++ b/libs/libc/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/Makefile b/libs/libc/Makefile
index 747962c..e07442c 100644
--- a/libs/libc/Makefile
+++ b/libs/libc/Makefile
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/Makefile
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/aio/CMakeLists.txt b/libs/libc/aio/CMakeLists.txt
index dca2b3c..dd1ce6f 100644
--- a/libs/libc/aio/CMakeLists.txt
+++ b/libs/libc/aio/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/aio/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/aio/Make.defs b/libs/libc/aio/Make.defs
index 17e725f..de770cf 100644
--- a/libs/libc/aio/Make.defs
+++ b/libs/libc/aio/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/aio/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/aio/aio.h b/libs/libc/aio/aio.h
index e29d3c5..9d8250d 100644
--- a/libs/libc/aio/aio.h
+++ b/libs/libc/aio/aio.h
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/aio/aio.h
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/aio/aio_error.c b/libs/libc/aio/aio_error.c
index f0d3268..067bdb7 100644
--- a/libs/libc/aio/aio_error.c
+++ b/libs/libc/aio/aio_error.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/aio/aio_error.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/aio/aio_return.c b/libs/libc/aio/aio_return.c
index ec1dd81..f3a8f51 100644
--- a/libs/libc/aio/aio_return.c
+++ b/libs/libc/aio/aio_return.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/aio/aio_return.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/aio/aio_suspend.c b/libs/libc/aio/aio_suspend.c
index 295600d..cc40c87 100644
--- a/libs/libc/aio/aio_suspend.c
+++ b/libs/libc/aio/aio_suspend.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/aio/aio_suspend.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/aio/lio_listio.c b/libs/libc/aio/lio_listio.c
index d54e5e2..06cb72e 100644
--- a/libs/libc/aio/lio_listio.c
+++ b/libs/libc/aio/lio_listio.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/aio/lio_listio.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/assert/CMakeLists.txt b/libs/libc/assert/CMakeLists.txt
index 3c5978f..e633f74 100644
--- a/libs/libc/assert/CMakeLists.txt
+++ b/libs/libc/assert/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/assert/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/assert/Make.defs b/libs/libc/assert/Make.defs
index 843b379..c55c2ea 100644
--- a/libs/libc/assert/Make.defs
+++ b/libs/libc/assert/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/assert/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/assert/lib_assert.c b/libs/libc/assert/lib_assert.c
index 557a933..4a71163 100644
--- a/libs/libc/assert/lib_assert.c
+++ b/libs/libc/assert/lib_assert.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/assert/lib_assert.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/assert/lib_stackchk.c b/libs/libc/assert/lib_stackchk.c
index 0e2a151..e9e5ebe 100644
--- a/libs/libc/assert/lib_stackchk.c
+++ b/libs/libc/assert/lib_stackchk.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/assert/lib_stackchk.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/audio/CMakeLists.txt b/libs/libc/audio/CMakeLists.txt
index 8fad703..48a63a4 100644
--- a/libs/libc/audio/CMakeLists.txt
+++ b/libs/libc/audio/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/audio/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/audio/Make.defs b/libs/libc/audio/Make.defs
index 2c55d72..b2c1798 100644
--- a/libs/libc/audio/Make.defs
+++ b/libs/libc/audio/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/audio/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/audio/lib_buffer.c b/libs/libc/audio/lib_buffer.c
index ef248df..b1b2cab 100644
--- a/libs/libc/audio/lib_buffer.c
+++ b/libs/libc/audio/lib_buffer.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/audio/lib_buffer.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/audio/libsrc/CMakeLists.txt b/libs/libc/audio/libsrc/CMakeLists.txt
index a22ecc0..3872a0a 100644
--- a/libs/libc/audio/libsrc/CMakeLists.txt
+++ b/libs/libc/audio/libsrc/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/audio/libsrc/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/audio/libsrc/Make.defs b/libs/libc/audio/libsrc/Make.defs
index aed6918..ec0de2c 100644
--- a/libs/libc/audio/libsrc/Make.defs
+++ b/libs/libc/audio/libsrc/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/audio/libsrc/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/bin/CMakeLists.txt b/libs/libc/bin/CMakeLists.txt
index 8b13789..fea4d0a 100644
--- a/libs/libc/bin/CMakeLists.txt
+++ b/libs/libc/bin/CMakeLists.txt
@@ -1 +1,21 @@
-
+# ##############################################################################
+# libs/libc/bin/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership. The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# ##############################################################################
diff --git a/libs/libc/bin/Makefile b/libs/libc/bin/Makefile
index 53b8d74..735ba91 100644
--- a/libs/libc/bin/Makefile
+++ b/libs/libc/bin/Makefile
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/bin/Makefile
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/builtin/CMakeLists.txt b/libs/libc/builtin/CMakeLists.txt
index acb822b..1be9f03 100644
--- a/libs/libc/builtin/CMakeLists.txt
+++ b/libs/libc/builtin/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/builtin/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/builtin/Make.defs b/libs/libc/builtin/Make.defs
index b9c864e..afb284e 100644
--- a/libs/libc/builtin/Make.defs
+++ b/libs/libc/builtin/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/builtin/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/builtin/lib_builtin_forindex.c b/libs/libc/builtin/lib_builtin_forindex.c
index eaa7bd2..9fc1345 100644
--- a/libs/libc/builtin/lib_builtin_forindex.c
+++ b/libs/libc/builtin/lib_builtin_forindex.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/builtin/lib_builtin_forindex.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/builtin/lib_builtin_getgid.c b/libs/libc/builtin/lib_builtin_getgid.c
index 1c7dddb..e845798 100644
--- a/libs/libc/builtin/lib_builtin_getgid.c
+++ b/libs/libc/builtin/lib_builtin_getgid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/builtin/lib_builtin_getgid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/builtin/lib_builtin_getmode.c b/libs/libc/builtin/lib_builtin_getmode.c
index 3ea5fe7..c3a7e13 100644
--- a/libs/libc/builtin/lib_builtin_getmode.c
+++ b/libs/libc/builtin/lib_builtin_getmode.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/builtin/lib_builtin_getmode.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/builtin/lib_builtin_getname.c b/libs/libc/builtin/lib_builtin_getname.c
index 612cc9e..75693a9 100644
--- a/libs/libc/builtin/lib_builtin_getname.c
+++ b/libs/libc/builtin/lib_builtin_getname.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/builtin/lib_builtin_getname.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/builtin/lib_builtin_getuid.c b/libs/libc/builtin/lib_builtin_getuid.c
index a88fd6d..a4fd549 100644
--- a/libs/libc/builtin/lib_builtin_getuid.c
+++ b/libs/libc/builtin/lib_builtin_getuid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/builtin/lib_builtin_getuid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/builtin/lib_builtin_isavail.c b/libs/libc/builtin/lib_builtin_isavail.c
index 113618b..2b354d7 100644
--- a/libs/libc/builtin/lib_builtin_isavail.c
+++ b/libs/libc/builtin/lib_builtin_isavail.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/builtin/lib_builtin_isavail.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/builtin/lib_builtin_setlist.c b/libs/libc/builtin/lib_builtin_setlist.c
index 5aa9af6..0fd352e 100644
--- a/libs/libc/builtin/lib_builtin_setlist.c
+++ b/libs/libc/builtin/lib_builtin_setlist.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/builtin/lib_builtin_setlist.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/CMakeLists.txt b/libs/libc/ctype/CMakeLists.txt
index c77b2b4..ffa4a9d 100644
--- a/libs/libc/ctype/CMakeLists.txt
+++ b/libs/libc/ctype/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/ctype/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/ctype/Make.defs b/libs/libc/ctype/Make.defs
index 86c4272..c189c4f 100644
--- a/libs/libc/ctype/Make.defs
+++ b/libs/libc/ctype/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/ctype/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_ctype.c b/libs/libc/ctype/lib_ctype.c
index b11e069..7263869 100644
--- a/libs/libc/ctype/lib_ctype.c
+++ b/libs/libc/ctype/lib_ctype.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_ctype.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_isalnum.c b/libs/libc/ctype/lib_isalnum.c
index 64eaa83..581ccab 100644
--- a/libs/libc/ctype/lib_isalnum.c
+++ b/libs/libc/ctype/lib_isalnum.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_isalnum.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_isalpha.c b/libs/libc/ctype/lib_isalpha.c
index d106564..a1d1b1a 100644
--- a/libs/libc/ctype/lib_isalpha.c
+++ b/libs/libc/ctype/lib_isalpha.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_isalpha.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_isascii.c b/libs/libc/ctype/lib_isascii.c
index c1db283..52f86e1 100644
--- a/libs/libc/ctype/lib_isascii.c
+++ b/libs/libc/ctype/lib_isascii.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_isascii.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_isblank.c b/libs/libc/ctype/lib_isblank.c
index b1e206d..59506f8 100644
--- a/libs/libc/ctype/lib_isblank.c
+++ b/libs/libc/ctype/lib_isblank.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_isblank.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_iscntrl.c b/libs/libc/ctype/lib_iscntrl.c
index 5800c51..2194c11 100644
--- a/libs/libc/ctype/lib_iscntrl.c
+++ b/libs/libc/ctype/lib_iscntrl.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_iscntrl.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_isdigit.c b/libs/libc/ctype/lib_isdigit.c
index 69926f6..6350b36 100644
--- a/libs/libc/ctype/lib_isdigit.c
+++ b/libs/libc/ctype/lib_isdigit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_isdigit.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_isgraph.c b/libs/libc/ctype/lib_isgraph.c
index b6825a8..2f27642 100644
--- a/libs/libc/ctype/lib_isgraph.c
+++ b/libs/libc/ctype/lib_isgraph.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_isgraph.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_islower.c b/libs/libc/ctype/lib_islower.c
index 9fcec04..ddbdffe 100644
--- a/libs/libc/ctype/lib_islower.c
+++ b/libs/libc/ctype/lib_islower.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_islower.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_isprint.c b/libs/libc/ctype/lib_isprint.c
index 0c7c2af..a48f863 100644
--- a/libs/libc/ctype/lib_isprint.c
+++ b/libs/libc/ctype/lib_isprint.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_isprint.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_ispunct.c b/libs/libc/ctype/lib_ispunct.c
index 5139b08..a9df000 100644
--- a/libs/libc/ctype/lib_ispunct.c
+++ b/libs/libc/ctype/lib_ispunct.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_ispunct.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_isspace.c b/libs/libc/ctype/lib_isspace.c
index 699c493..0a971f9 100644
--- a/libs/libc/ctype/lib_isspace.c
+++ b/libs/libc/ctype/lib_isspace.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_isspace.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_isupper.c b/libs/libc/ctype/lib_isupper.c
index 56796c3..f430f7b 100644
--- a/libs/libc/ctype/lib_isupper.c
+++ b/libs/libc/ctype/lib_isupper.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_isupper.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_isxdigit.c b/libs/libc/ctype/lib_isxdigit.c
index 6187358..da999f6 100644
--- a/libs/libc/ctype/lib_isxdigit.c
+++ b/libs/libc/ctype/lib_isxdigit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_isxdigit.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_tolower.c b/libs/libc/ctype/lib_tolower.c
index d65ac4e..621c5a7 100644
--- a/libs/libc/ctype/lib_tolower.c
+++ b/libs/libc/ctype/lib_tolower.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_tolower.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/ctype/lib_toupper.c b/libs/libc/ctype/lib_toupper.c
index 7cd5ba0..d220462 100644
--- a/libs/libc/ctype/lib_toupper.c
+++ b/libs/libc/ctype/lib_toupper.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/ctype/lib_toupper.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/CMakeLists.txt b/libs/libc/dirent/CMakeLists.txt
index d50f7cc..f9834a5 100644
--- a/libs/libc/dirent/CMakeLists.txt
+++ b/libs/libc/dirent/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/dirent/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/dirent/Make.defs b/libs/libc/dirent/Make.defs
index 2ef7192..4725711 100644
--- a/libs/libc/dirent/Make.defs
+++ b/libs/libc/dirent/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/dirent/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/lib_alphasort.c b/libs/libc/dirent/lib_alphasort.c
index 5fe02ec..83a4187 100644
--- a/libs/libc/dirent/lib_alphasort.c
+++ b/libs/libc/dirent/lib_alphasort.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dirent/lib_alphasort.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/lib_closedir.c b/libs/libc/dirent/lib_closedir.c
index 05c4435..c4c04cb 100644
--- a/libs/libc/dirent/lib_closedir.c
+++ b/libs/libc/dirent/lib_closedir.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dirent/lib_closedir.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/lib_dirfd.c b/libs/libc/dirent/lib_dirfd.c
index f98d9ce..717cebe 100644
--- a/libs/libc/dirent/lib_dirfd.c
+++ b/libs/libc/dirent/lib_dirfd.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dirent/lib_dirfd.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/lib_fdopendir.c b/libs/libc/dirent/lib_fdopendir.c
index be0f213..6176e13 100644
--- a/libs/libc/dirent/lib_fdopendir.c
+++ b/libs/libc/dirent/lib_fdopendir.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dirent/lib_fdopendir.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/lib_ftw.c b/libs/libc/dirent/lib_ftw.c
index 1d5284f..420124d 100644
--- a/libs/libc/dirent/lib_ftw.c
+++ b/libs/libc/dirent/lib_ftw.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dirent/lib_ftw.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/lib_nftw.c b/libs/libc/dirent/lib_nftw.c
index 4f73742..0a70f70 100644
--- a/libs/libc/dirent/lib_nftw.c
+++ b/libs/libc/dirent/lib_nftw.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dirent/lib_nftw.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/lib_opendir.c b/libs/libc/dirent/lib_opendir.c
index 3212ff4..dad8372 100644
--- a/libs/libc/dirent/lib_opendir.c
+++ b/libs/libc/dirent/lib_opendir.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dirent/lib_opendir.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/lib_readdir.c b/libs/libc/dirent/lib_readdir.c
index 5438463..80c587ea 100644
--- a/libs/libc/dirent/lib_readdir.c
+++ b/libs/libc/dirent/lib_readdir.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dirent/lib_readdir.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/lib_readdirr.c b/libs/libc/dirent/lib_readdirr.c
index 1df0926..e7cbf47 100644
--- a/libs/libc/dirent/lib_readdirr.c
+++ b/libs/libc/dirent/lib_readdirr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dirent/lib_readdirr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/lib_rewinddir.c b/libs/libc/dirent/lib_rewinddir.c
index b181c98..fdea97b 100644
--- a/libs/libc/dirent/lib_rewinddir.c
+++ b/libs/libc/dirent/lib_rewinddir.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dirent/lib_rewinddir.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/lib_scandir.c b/libs/libc/dirent/lib_scandir.c
index 380517c..c734ff1 100644
--- a/libs/libc/dirent/lib_scandir.c
+++ b/libs/libc/dirent/lib_scandir.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dirent/lib_scandir.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/lib_seekdir.c b/libs/libc/dirent/lib_seekdir.c
index 28b7ac2..fd54749 100644
--- a/libs/libc/dirent/lib_seekdir.c
+++ b/libs/libc/dirent/lib_seekdir.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dirent/lib_seekdir.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/lib_telldir.c b/libs/libc/dirent/lib_telldir.c
index e3739ee..5eb840b 100644
--- a/libs/libc/dirent/lib_telldir.c
+++ b/libs/libc/dirent/lib_telldir.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dirent/lib_telldir.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dirent/lib_versionsort.c b/libs/libc/dirent/lib_versionsort.c
index bd80526..b2e880d 100644
--- a/libs/libc/dirent/lib_versionsort.c
+++ b/libs/libc/dirent/lib_versionsort.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dirent/lib_versionsort.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dlfcn/CMakeLists.txt b/libs/libc/dlfcn/CMakeLists.txt
index 76d4a50..6d2efb2 100644
--- a/libs/libc/dlfcn/CMakeLists.txt
+++ b/libs/libc/dlfcn/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/dlfcn/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/dlfcn/Make.defs b/libs/libc/dlfcn/Make.defs
index 731b1c2..9e6b128 100644
--- a/libs/libc/dlfcn/Make.defs
+++ b/libs/libc/dlfcn/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/dlfcn/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dlfcn/lib_dladdr.c b/libs/libc/dlfcn/lib_dladdr.c
index d505ef2..b0ba15d 100644
--- a/libs/libc/dlfcn/lib_dladdr.c
+++ b/libs/libc/dlfcn/lib_dladdr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dlfcn/lib_dladdr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dlfcn/lib_dlclose.c b/libs/libc/dlfcn/lib_dlclose.c
index aff1a7b..766ee73 100644
--- a/libs/libc/dlfcn/lib_dlclose.c
+++ b/libs/libc/dlfcn/lib_dlclose.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dlfcn/lib_dlclose.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dlfcn/lib_dlerror.c b/libs/libc/dlfcn/lib_dlerror.c
index 342d18f..81d7a73 100644
--- a/libs/libc/dlfcn/lib_dlerror.c
+++ b/libs/libc/dlfcn/lib_dlerror.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dlfcn/lib_dlerror.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dlfcn/lib_dlopen.c b/libs/libc/dlfcn/lib_dlopen.c
index b0fbc3d..0a4ed4a 100644
--- a/libs/libc/dlfcn/lib_dlopen.c
+++ b/libs/libc/dlfcn/lib_dlopen.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dlfcn/lib_dlopen.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dlfcn/lib_dlsym.c b/libs/libc/dlfcn/lib_dlsym.c
index 5308e6c..ef9d467 100644
--- a/libs/libc/dlfcn/lib_dlsym.c
+++ b/libs/libc/dlfcn/lib_dlsym.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dlfcn/lib_dlsym.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/dlfcn/lib_dlsymtab.c b/libs/libc/dlfcn/lib_dlsymtab.c
index 9b1a2df..3a2a7ba 100644
--- a/libs/libc/dlfcn/lib_dlsymtab.c
+++ b/libs/libc/dlfcn/lib_dlsymtab.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/dlfcn/lib_dlsymtab.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/errno/CMakeLists.txt b/libs/libc/errno/CMakeLists.txt
index 3e108eb..125d860 100644
--- a/libs/libc/errno/CMakeLists.txt
+++ b/libs/libc/errno/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/errno/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/errno/Make.defs b/libs/libc/errno/Make.defs
index 405fe2c..1ef7aa1 100644
--- a/libs/libc/errno/Make.defs
+++ b/libs/libc/errno/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/errno/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/errno/lib_errno.c b/libs/libc/errno/lib_errno.c
index 30144fc..299ef29 100644
--- a/libs/libc/errno/lib_errno.c
+++ b/libs/libc/errno/lib_errno.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/errno/lib_errno.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/eventfd/CMakeLists.txt b/libs/libc/eventfd/CMakeLists.txt
index 99230fb..37dbf01 100644
--- a/libs/libc/eventfd/CMakeLists.txt
+++ b/libs/libc/eventfd/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/eventfd/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/eventfd/Make.defs b/libs/libc/eventfd/Make.defs
index d16c868..b6dcf9d 100644
--- a/libs/libc/eventfd/Make.defs
+++ b/libs/libc/eventfd/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/eventfd/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/eventfd/lib_eventfd.c b/libs/libc/eventfd/lib_eventfd.c
index 08ad68d..30a8625 100644
--- a/libs/libc/eventfd/lib_eventfd.c
+++ b/libs/libc/eventfd/lib_eventfd.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/eventfd/lib_eventfd.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/fdt/CMakeLists.txt b/libs/libc/fdt/CMakeLists.txt
index a1167cc..1aeb614 100644
--- a/libs/libc/fdt/CMakeLists.txt
+++ b/libs/libc/fdt/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/fdt/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/fdt/Make.defs b/libs/libc/fdt/Make.defs
index d84801c..6264c0a 100644
--- a/libs/libc/fdt/Make.defs
+++ b/libs/libc/fdt/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/fdt/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/fdt/version_gen.h b/libs/libc/fdt/version_gen.h
index 116b025..edbf9a8 100644
--- a/libs/libc/fdt/version_gen.h
+++ b/libs/libc/fdt/version_gen.h
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/fdt/version_gen.h
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/fixedmath/CMakeLists.txt b/libs/libc/fixedmath/CMakeLists.txt
index 81e0e07..ecf173e 100644
--- a/libs/libc/fixedmath/CMakeLists.txt
+++ b/libs/libc/fixedmath/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/fixedmath/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/fixedmath/Make.defs b/libs/libc/fixedmath/Make.defs
index 1e99195..8906cd0 100644
--- a/libs/libc/fixedmath/Make.defs
+++ b/libs/libc/fixedmath/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/fixedmath/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/fixedmath/lib_b16atan2.c b/libs/libc/fixedmath/lib_b16atan2.c
index f25f9b2..77bf730 100644
--- a/libs/libc/fixedmath/lib_b16atan2.c
+++ b/libs/libc/fixedmath/lib_b16atan2.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/fixedmath/lib_b16atan2.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/fixedmath/lib_b16cos.c b/libs/libc/fixedmath/lib_b16cos.c
index 9d9f030..9b8cd82 100644
--- a/libs/libc/fixedmath/lib_b16cos.c
+++ b/libs/libc/fixedmath/lib_b16cos.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/fixedmath/lib_b16cos.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/fixedmath/lib_b16sin.c b/libs/libc/fixedmath/lib_b16sin.c
index 7cc20ed..1f4061e 100644
--- a/libs/libc/fixedmath/lib_b16sin.c
+++ b/libs/libc/fixedmath/lib_b16sin.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/fixedmath/lib_b16sin.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/fixedmath/lib_fixedmath.c b/libs/libc/fixedmath/lib_fixedmath.c
index b99e8b3..65916c4 100644
--- a/libs/libc/fixedmath/lib_fixedmath.c
+++ b/libs/libc/fixedmath/lib_fixedmath.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/fixedmath/lib_fixedmath.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/fixedmath/lib_ubsqrt.c b/libs/libc/fixedmath/lib_ubsqrt.c
index 342da15..94e4d21 100644
--- a/libs/libc/fixedmath/lib_ubsqrt.c
+++ b/libs/libc/fixedmath/lib_ubsqrt.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/fixedmath/lib_ubsqrt.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/gdbstub/CMakeLists.txt b/libs/libc/gdbstub/CMakeLists.txt
new file mode 100644
index 0000000..707acb7
--- /dev/null
+++ b/libs/libc/gdbstub/CMakeLists.txt
@@ -0,0 +1,21 @@
+# ##############################################################################
+# libs/libc/gdbstub/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership. The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# ##############################################################################
diff --git a/libs/libc/gdbstub/Make.defs b/libs/libc/gdbstub/Make.defs
index 77c2180..9226017 100644
--- a/libs/libc/gdbstub/Make.defs
+++ b/libs/libc/gdbstub/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/gdbstub/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/gdbstub/lib_gdbstub.c b/libs/libc/gdbstub/lib_gdbstub.c
index 1cdde7a..b97d648 100644
--- a/libs/libc/gdbstub/lib_gdbstub.c
+++ b/libs/libc/gdbstub/lib_gdbstub.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/gdbstub/lib_gdbstub.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/gnssutils/CMakeLists.txt b/libs/libc/gnssutils/CMakeLists.txt
index ba07a77..36fd985 100644
--- a/libs/libc/gnssutils/CMakeLists.txt
+++ b/libs/libc/gnssutils/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/gnssutils/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/gnssutils/Make.defs b/libs/libc/gnssutils/Make.defs
index 608ac77..2b90285 100644
--- a/libs/libc/gnssutils/Make.defs
+++ b/libs/libc/gnssutils/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/gnssutils/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/grp/CMakeLists.txt b/libs/libc/grp/CMakeLists.txt
index 13e1074..83312f9 100644
--- a/libs/libc/grp/CMakeLists.txt
+++ b/libs/libc/grp/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/grp/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/grp/Make.defs b/libs/libc/grp/Make.defs
index 45b6027..7680a6f 100644
--- a/libs/libc/grp/Make.defs
+++ b/libs/libc/grp/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/grp/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/grp/lib_find_grpfile.c b/libs/libc/grp/lib_find_grpfile.c
index 69a177b..d0b90ca 100644
--- a/libs/libc/grp/lib_find_grpfile.c
+++ b/libs/libc/grp/lib_find_grpfile.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/grp/lib_find_grpfile.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/grp/lib_getgrbuf.c b/libs/libc/grp/lib_getgrbuf.c
index 15e10a8..6f99916 100644
--- a/libs/libc/grp/lib_getgrbuf.c
+++ b/libs/libc/grp/lib_getgrbuf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/grp/lib_getgrbuf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/grp/lib_getgrbufr.c b/libs/libc/grp/lib_getgrbufr.c
index b586d57..80bbd3b 100644
--- a/libs/libc/grp/lib_getgrbufr.c
+++ b/libs/libc/grp/lib_getgrbufr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/grp/lib_getgrbufr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/grp/lib_getgrgid.c b/libs/libc/grp/lib_getgrgid.c
index 403b6d2..f6348dd 100644
--- a/libs/libc/grp/lib_getgrgid.c
+++ b/libs/libc/grp/lib_getgrgid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/grp/lib_getgrgid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/grp/lib_getgrgidr.c b/libs/libc/grp/lib_getgrgidr.c
index cd2327f..be36ced 100644
--- a/libs/libc/grp/lib_getgrgidr.c
+++ b/libs/libc/grp/lib_getgrgidr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/grp/lib_getgrgidr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/grp/lib_getgrnam.c b/libs/libc/grp/lib_getgrnam.c
index 5ec225b..9762297 100644
--- a/libs/libc/grp/lib_getgrnam.c
+++ b/libs/libc/grp/lib_getgrnam.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/grp/lib_getgrnam.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/grp/lib_getgrnamr.c b/libs/libc/grp/lib_getgrnamr.c
index fdb891a..867cd3f 100644
--- a/libs/libc/grp/lib_getgrnamr.c
+++ b/libs/libc/grp/lib_getgrnamr.c
@@ -1,6 +1,7 @@
/****************************************************************************
* libs/libc/grp/lib_getgrnamr.c
*
+ * SPDX-License-Identifier: Apache-2.0
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
diff --git a/libs/libc/grp/lib_grp.h b/libs/libc/grp/lib_grp.h
index d03fc5e..a7dbf0e 100644
--- a/libs/libc/grp/lib_grp.h
+++ b/libs/libc/grp/lib_grp.h
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/grp/lib_grp.h
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/grp/lib_grp_globals.c b/libs/libc/grp/lib_grp_globals.c
index 3f6829e..124c0b3 100644
--- a/libs/libc/grp/lib_grp_globals.c
+++ b/libs/libc/grp/lib_grp_globals.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/grp/lib_grp_globals.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/grp/lib_initgroups.c b/libs/libc/grp/lib_initgroups.c
index 0ef1f0b..5329ba9 100644
--- a/libs/libc/grp/lib_initgroups.c
+++ b/libs/libc/grp/lib_initgroups.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/grp/lib_initgroups.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/hex2bin/CMakeLists.txt b/libs/libc/hex2bin/CMakeLists.txt
index 34ee54a..28e1082 100644
--- a/libs/libc/hex2bin/CMakeLists.txt
+++ b/libs/libc/hex2bin/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/hex2bin/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/hex2bin/Make.defs b/libs/libc/hex2bin/Make.defs
index 2303199..9d4d477 100644
--- a/libs/libc/hex2bin/Make.defs
+++ b/libs/libc/hex2bin/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/hex2bin/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/hex2bin/lib_fhex2mem.c b/libs/libc/hex2bin/lib_fhex2mem.c
index 1a37a31..085825c 100644
--- a/libs/libc/hex2bin/lib_fhex2mem.c
+++ b/libs/libc/hex2bin/lib_fhex2mem.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/hex2bin/lib_fhex2mem.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/hex2bin/lib_hex2bin.c b/libs/libc/hex2bin/lib_hex2bin.c
index f9bd6bd..1494d18 100644
--- a/libs/libc/hex2bin/lib_hex2bin.c
+++ b/libs/libc/hex2bin/lib_hex2bin.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/hex2bin/lib_hex2bin.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/hex2bin/lib_hex2mem.c b/libs/libc/hex2bin/lib_hex2mem.c
index 365b9c2..7a4a53c 100644
--- a/libs/libc/hex2bin/lib_hex2mem.c
+++ b/libs/libc/hex2bin/lib_hex2mem.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/hex2bin/lib_hex2mem.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/inttypes/CMakeLists.txt b/libs/libc/inttypes/CMakeLists.txt
index aaf5f6d..1865e3a 100644
--- a/libs/libc/inttypes/CMakeLists.txt
+++ b/libs/libc/inttypes/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/inttypes/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/inttypes/Make.defs b/libs/libc/inttypes/Make.defs
index 48c7e76..a853996 100644
--- a/libs/libc/inttypes/Make.defs
+++ b/libs/libc/inttypes/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/inttypes/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/inttypes/lib_imaxabs.c b/libs/libc/inttypes/lib_imaxabs.c
index b248bd7..f6cb8a2 100644
--- a/libs/libc/inttypes/lib_imaxabs.c
+++ b/libs/libc/inttypes/lib_imaxabs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/inttypes/lib_imaxabs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/inttypes/lib_imaxdiv.c b/libs/libc/inttypes/lib_imaxdiv.c
index 86055bd..77ae3ca 100644
--- a/libs/libc/inttypes/lib_imaxdiv.c
+++ b/libs/libc/inttypes/lib_imaxdiv.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/inttypes/lib_imaxdiv.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/inttypes/lib_strtoimax.c b/libs/libc/inttypes/lib_strtoimax.c
index b3c58e1..ea4d15c 100644
--- a/libs/libc/inttypes/lib_strtoimax.c
+++ b/libs/libc/inttypes/lib_strtoimax.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/inttypes/lib_strtoimax.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/inttypes/lib_strtoumax.c b/libs/libc/inttypes/lib_strtoumax.c
index c81586e..d6e2240 100644
--- a/libs/libc/inttypes/lib_strtoumax.c
+++ b/libs/libc/inttypes/lib_strtoumax.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/inttypes/lib_strtoumax.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/kbin/CMakeLists.txt b/libs/libc/kbin/CMakeLists.txt
index 8b13789..50be8cb 100644
--- a/libs/libc/kbin/CMakeLists.txt
+++ b/libs/libc/kbin/CMakeLists.txt
@@ -1 +1,22 @@
+# ##############################################################################
+# libs/libc/kbin/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership. The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# ##############################################################################
diff --git a/libs/libc/kbin/Makefile b/libs/libc/kbin/Makefile
index 5933968..90cb189 100644
--- a/libs/libc/kbin/Makefile
+++ b/libs/libc/kbin/Makefile
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/kbin/Makefile
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/libc.h b/libs/libc/libc.h
index b531fa8..a6a6cca 100644
--- a/libs/libc/libc.h
+++ b/libs/libc/libc.h
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/libc.h
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/libgen/Make.defs b/libs/libc/libgen/Make.defs
index 738bb2a..575320b 100644
--- a/libs/libc/libgen/Make.defs
+++ b/libs/libc/libgen/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/libgen/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/libgen/lib_basename.c b/libs/libc/libgen/lib_basename.c
index 9984c23..8300dbc 100644
--- a/libs/libc/libgen/lib_basename.c
+++ b/libs/libc/libgen/lib_basename.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/libgen/lib_basename.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/libgen/lib_dirname.c b/libs/libc/libgen/lib_dirname.c
index 2ea7496..a31d188 100644
--- a/libs/libc/libgen/lib_dirname.c
+++ b/libs/libc/libgen/lib_dirname.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/libgen/lib_dirname.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/locale/CMakeLists.txt b/libs/libc/locale/CMakeLists.txt
index 71346f3..7b80bd6 100644
--- a/libs/libc/locale/CMakeLists.txt
+++ b/libs/libc/locale/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/locale/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/locale/Make.defs b/libs/libc/locale/Make.defs
index 4612ab5..ddd27c9 100644
--- a/libs/libc/locale/Make.defs
+++ b/libs/libc/locale/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/locale/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/locale/lib_catalog.c b/libs/libc/locale/lib_catalog.c
index 0dbb1a0..06944e9 100644
--- a/libs/libc/locale/lib_catalog.c
+++ b/libs/libc/locale/lib_catalog.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/locale/lib_catalog.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/locale/lib_duplocale.c b/libs/libc/locale/lib_duplocale.c
index 038499c..fd10f24 100644
--- a/libs/libc/locale/lib_duplocale.c
+++ b/libs/libc/locale/lib_duplocale.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/locale/lib_duplocale.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/locale/lib_freelocale.c b/libs/libc/locale/lib_freelocale.c
index 9c0bd39..ebc55fa 100644
--- a/libs/libc/locale/lib_freelocale.c
+++ b/libs/libc/locale/lib_freelocale.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/locale/lib_freelocale.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/locale/lib_gettext.c b/libs/libc/locale/lib_gettext.c
index cbeeba0..5a86302 100644
--- a/libs/libc/locale/lib_gettext.c
+++ b/libs/libc/locale/lib_gettext.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/locale/lib_gettext.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/locale/lib_iconv.c b/libs/libc/locale/lib_iconv.c
index 4239915..9ba81c8 100644
--- a/libs/libc/locale/lib_iconv.c
+++ b/libs/libc/locale/lib_iconv.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/locale/lib_iconv.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/locale/lib_langinfo.c b/libs/libc/locale/lib_langinfo.c
index ff98991..e385bae 100644
--- a/libs/libc/locale/lib_langinfo.c
+++ b/libs/libc/locale/lib_langinfo.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/locale/lib_langinfo.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/locale/lib_localeconv.c b/libs/libc/locale/lib_localeconv.c
index 3561f49..8061299 100644
--- a/libs/libc/locale/lib_localeconv.c
+++ b/libs/libc/locale/lib_localeconv.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/locale/lib_localeconv.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/locale/lib_maxlocale.c b/libs/libc/locale/lib_maxlocale.c
index 1e00753..e19d315 100644
--- a/libs/libc/locale/lib_maxlocale.c
+++ b/libs/libc/locale/lib_maxlocale.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/locale/lib_maxlocale.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/locale/lib_newlocale.c b/libs/libc/locale/lib_newlocale.c
index 0407bfa..659104e 100644
--- a/libs/libc/locale/lib_newlocale.c
+++ b/libs/libc/locale/lib_newlocale.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/locale/lib_newlocale.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/locale/lib_setlocale.c b/libs/libc/locale/lib_setlocale.c
index ee2b5c4..c131482 100644
--- a/libs/libc/locale/lib_setlocale.c
+++ b/libs/libc/locale/lib_setlocale.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/locale/lib_setlocale.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/locale/lib_uselocale.c b/libs/libc/locale/lib_uselocale.c
index 28c6a57..bd49a42 100644
--- a/libs/libc/locale/lib_uselocale.c
+++ b/libs/libc/locale/lib_uselocale.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/locale/lib_uselocale.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/lzf/Make.defs b/libs/libc/lzf/Make.defs
index b14dbac..f34a305 100644
--- a/libs/libc/lzf/Make.defs
+++ b/libs/libc/lzf/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/lzf/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/lzf/lzf.h b/libs/libc/lzf/lzf.h
index 8dcc4c6..fa911df 100644
--- a/libs/libc/lzf/lzf.h
+++ b/libs/libc/lzf/lzf.h
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/lzf/lzf.h
*
- * Copyright (c) 2000-2007
- * Author: Marc Alexander Lehmann <schmorp@schmorp.de>
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2000-2007 Marc Alexander Lehmann <schmorp@schmorp.de>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
diff --git a/libs/libc/lzf/lzf_c.c b/libs/libc/lzf/lzf_c.c
index 216dc68..a6c9112 100644
--- a/libs/libc/lzf/lzf_c.c
+++ b/libs/libc/lzf/lzf_c.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/lzf/lzf_c.c
*
- * Copyright (c) 2000-2010 Marc Alexander Lehmann <schmorp@schmorp.de>
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2000-2010 Marc Alexander Lehmann <schmorp@schmorp.de>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/lzf/lzf_d.c b/libs/libc/lzf/lzf_d.c
index 97c985d..5bd3481 100644
--- a/libs/libc/lzf/lzf_d.c
+++ b/libs/libc/lzf/lzf_d.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/lzf/lzf_d.c
*
- * Copyright (c) 2000-2010
- * Author: Marc Alexander Lehmann <schmorp@schmorp.de>
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2000-2010 Marc Alexander Lehmann <schmorp@schmorp.de>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
diff --git a/libs/libc/machine/CMakeLists.txt b/libs/libc/machine/CMakeLists.txt
index bb003e3..89abb89 100644
--- a/libs/libc/machine/CMakeLists.txt
+++ b/libs/libc/machine/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/Make.defs b/libs/libc/machine/Make.defs
index 8c82ae7..e2453d9 100644
--- a/libs/libc/machine/Make.defs
+++ b/libs/libc/machine/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arch_atomic.c b/libs/libc/machine/arch_atomic.c
index fef258e..5da80f4 100644
--- a/libs/libc/machine/arch_atomic.c
+++ b/libs/libc/machine/arch_atomic.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/arch_atomic.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/CMakeLists.txt b/libs/libc/machine/arm/CMakeLists.txt
index 03a5a9d..8b16ef6 100644
--- a/libs/libc/machine/arm/CMakeLists.txt
+++ b/libs/libc/machine/arm/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/arm/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/arm/Make.defs b/libs/libc/machine/arm/Make.defs
index 5b5a8fc..f8268d0 100644
--- a/libs/libc/machine/arm/Make.defs
+++ b/libs/libc/machine/arm/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/arm/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/aeabi_atexit.c b/libs/libc/machine/arm/aeabi_atexit.c
index 8f0dac5..d79eb59 100644
--- a/libs/libc/machine/arm/aeabi_atexit.c
+++ b/libs/libc/machine/arm/aeabi_atexit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/aeabi_atexit.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/arm/CMakeLists.txt b/libs/libc/machine/arm/arm/CMakeLists.txt
index 3152f6f..a115694 100644
--- a/libs/libc/machine/arm/arm/CMakeLists.txt
+++ b/libs/libc/machine/arm/arm/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/arm/arm/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/arm/arm/Make.defs b/libs/libc/machine/arm/arm/Make.defs
index 15df784..4082148 100644
--- a/libs/libc/machine/arm/arm/Make.defs
+++ b/libs/libc/machine/arm/arm/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/arm/arm/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/arm/arch_elf.c b/libs/libc/machine/arm/arm/arch_elf.c
index 60cdd38..9d102e7 100644
--- a/libs/libc/machine/arm/arm/arch_elf.c
+++ b/libs/libc/machine/arm/arm/arch_elf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/arm/arch_elf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/armv6-m/CMakeLists.txt b/libs/libc/machine/arm/armv6-m/CMakeLists.txt
index 853c53f..cea3993 100644
--- a/libs/libc/machine/arm/armv6-m/CMakeLists.txt
+++ b/libs/libc/machine/arm/armv6-m/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/arm/armv6-m/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/arm/armv6-m/Make.defs b/libs/libc/machine/arm/armv6-m/Make.defs
index 4c4fefc..63b2ce8 100644
--- a/libs/libc/machine/arm/armv6-m/Make.defs
+++ b/libs/libc/machine/arm/armv6-m/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/arm/armv6-m/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/armv6-m/arch_elf.c b/libs/libc/machine/arm/armv6-m/arch_elf.c
index e35a78a..38543b0 100644
--- a/libs/libc/machine/arm/armv6-m/arch_elf.c
+++ b/libs/libc/machine/arm/armv6-m/arch_elf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv6-m/arch_elf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/armv7-a/CMakeLists.txt b/libs/libc/machine/arm/armv7-a/CMakeLists.txt
index 7744719..6b7aa39 100644
--- a/libs/libc/machine/arm/armv7-a/CMakeLists.txt
+++ b/libs/libc/machine/arm/armv7-a/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/arm/armv7-a/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/arm/armv7-a/Make.defs b/libs/libc/machine/arm/armv7-a/Make.defs
index b0ccaef..fa7d0d0 100644
--- a/libs/libc/machine/arm/armv7-a/Make.defs
+++ b/libs/libc/machine/arm/armv7-a/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/arm/armv7-a/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/armv7-a/arch_elf.c b/libs/libc/machine/arm/armv7-a/arch_elf.c
index 35eac2a..562a343 100644
--- a/libs/libc/machine/arm/armv7-a/arch_elf.c
+++ b/libs/libc/machine/arm/armv7-a/arch_elf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-a/arch_elf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/armv7-a/gnu/acle-compat.h b/libs/libc/machine/arm/armv7-a/gnu/acle-compat.h
index 04e43cf..72f76e3 100644
--- a/libs/libc/machine/arm/armv7-a/gnu/acle-compat.h
+++ b/libs/libc/machine/arm/armv7-a/gnu/acle-compat.h
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-a/gnu/acle-compat.h
*
- * Copyright (c) 2014 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-a/gnu/arch_memchr.S b/libs/libc/machine/arm/armv7-a/gnu/arch_memchr.S
index c98e483..eb3facd 100644
--- a/libs/libc/machine/arm/armv7-a/gnu/arch_memchr.S
+++ b/libs/libc/machine/arm/armv7-a/gnu/arch_memchr.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-a/gnu/arch_memchr.S
*
- * Copyright (c) 2010-2011, Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2010-2011, Linaro Limited, 2015 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-a/gnu/arch_memcpy.S b/libs/libc/machine/arm/armv7-a/gnu/arch_memcpy.S
index 2bd3934..21fe55e 100644
--- a/libs/libc/machine/arm/armv7-a/gnu/arch_memcpy.S
+++ b/libs/libc/machine/arm/armv7-a/gnu/arch_memcpy.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-a/gnu/arch_memcpy.S
*
- * Copyright (c) 2013, Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2013, Linaro Limited
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-a/gnu/arch_memmove.S b/libs/libc/machine/arm/armv7-a/gnu/arch_memmove.S
index 7d9cf89..877910f 100644
--- a/libs/libc/machine/arm/armv7-a/gnu/arch_memmove.S
+++ b/libs/libc/machine/arm/armv7-a/gnu/arch_memmove.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-a/gnu/arch_memmove.S
*
- * Copyright (c) 2015 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2015 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-a/gnu/arch_memset.S b/libs/libc/machine/arm/armv7-a/gnu/arch_memset.S
index d09d459..375e459 100644
--- a/libs/libc/machine/arm/armv7-a/gnu/arch_memset.S
+++ b/libs/libc/machine/arm/armv7-a/gnu/arch_memset.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-a/gnu/arch_memset.S
*
- * Copyright (C) 2013 The Android Open Source Project
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2013 The Android Open Source Project
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-a/gnu/arch_strcmp.S b/libs/libc/machine/arm/armv7-a/gnu/arch_strcmp.S
index 1d8839d..f0ab5b9 100644
--- a/libs/libc/machine/arm/armv7-a/gnu/arch_strcmp.S
+++ b/libs/libc/machine/arm/armv7-a/gnu/arch_strcmp.S
@@ -1,9 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-a/gnu/arch_strcmp.S
*
- * Copyright (c) 2011 The Android Open Source Project
- * Copyright (c) 2008 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2011 The Android Open Source Project,2008 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-a/gnu/arch_strlen.S b/libs/libc/machine/arm/armv7-a/gnu/arch_strlen.S
index 022ce9e..d62c444 100644
--- a/libs/libc/machine/arm/armv7-a/gnu/arch_strlen.S
+++ b/libs/libc/machine/arm/armv7-a/gnu/arch_strlen.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-a/gnu/arch_strlen.S
*
- * Copyright (c) 2010-2011,2013 Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2010-2011,2013 Linaro Limited,215 ARM Ltd.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-m/CMakeLists.txt b/libs/libc/machine/arm/armv7-m/CMakeLists.txt
index 10f7b2b..48fc8d8 100644
--- a/libs/libc/machine/arm/armv7-m/CMakeLists.txt
+++ b/libs/libc/machine/arm/armv7-m/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/arm/armv7-m/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/arm/armv7-m/Make.defs b/libs/libc/machine/arm/armv7-m/Make.defs
index e86b896..dd1301f 100644
--- a/libs/libc/machine/arm/armv7-m/Make.defs
+++ b/libs/libc/machine/arm/armv7-m/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/arm/armv7-m/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/armv7-m/arch_elf.c b/libs/libc/machine/arm/armv7-m/arch_elf.c
index 6c074ee..70ce38b 100644
--- a/libs/libc/machine/arm/armv7-m/arch_elf.c
+++ b/libs/libc/machine/arm/armv7-m/arch_elf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-m/arch_elf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/armv7-m/gnu/acle-compat.h b/libs/libc/machine/arm/armv7-m/gnu/acle-compat.h
index b035c9c..27c23d7 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/acle-compat.h
+++ b/libs/libc/machine/arm/armv7-m/gnu/acle-compat.h
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-m/gnu/acle-compat.h
*
- * Copyright (c) 2014 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-m/gnu/arch_memchr.S b/libs/libc/machine/arm/armv7-m/gnu/arch_memchr.S
index c90bd0b..ff3e65c 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/arch_memchr.S
+++ b/libs/libc/machine/arm/armv7-m/gnu/arch_memchr.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-m/gnu/arch_memchr.S
*
- * Copyright (c) 2010-2011, Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2010-2011, Linaro Limited, 2015 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-m/gnu/arch_memcpy.S b/libs/libc/machine/arm/armv7-m/gnu/arch_memcpy.S
index e949ec4..45c799f 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/arch_memcpy.S
+++ b/libs/libc/machine/arm/armv7-m/gnu/arch_memcpy.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-m/gnu/arch_memcpy.S
*
- * Copyright (c) 2013 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2013 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-m/gnu/arch_memmove.S b/libs/libc/machine/arm/armv7-m/gnu/arch_memmove.S
index 46705f5..8da4d54 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/arch_memmove.S
+++ b/libs/libc/machine/arm/armv7-m/gnu/arch_memmove.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-m/gnu/arch_memmove.S
*
- * Copyright (c) 2015 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2015 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-m/gnu/arch_memset.S b/libs/libc/machine/arm/armv7-m/gnu/arch_memset.S
index f3c2548..85b4c65 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/arch_memset.S
+++ b/libs/libc/machine/arm/armv7-m/gnu/arch_memset.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-m/gnu/arch_memset.S
*
- * Copyright (C) 2008 The Android Open Source Project
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2008 The Android Open Source Project
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-m/gnu/arch_strcmp.S b/libs/libc/machine/arm/armv7-m/gnu/arch_strcmp.S
index 40d5431..6666e12 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/arch_strcmp.S
+++ b/libs/libc/machine/arm/armv7-m/gnu/arch_strcmp.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-m/gnu/arch_strcmp.S
*
- * Copyright (c) 2012-2014 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2012-2014 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-m/gnu/arch_strcpy.S b/libs/libc/machine/arm/armv7-m/gnu/arch_strcpy.S
index 30de5bd..d864628 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/arch_strcpy.S
+++ b/libs/libc/machine/arm/armv7-m/gnu/arch_strcpy.S
@@ -1,314 +1,316 @@
-/***************************************************************************
- * libs/libc/machine/arm/armv7-m/gnu/arch_strcpy.S
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership. The
- * ASF licenses this file to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance with the
- * License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- *
- ***************************************************************************/
-
-#include "libc.h"
-
-#ifdef LIBC_BUILD_STRCPY
-
-/* This strcpy borrowed some ideas from arch_strcmp.S(). */
-
-/* Parameters and result. */
-#define dst r0
-#define src r1
-#define result r0
-
-/* Internal variables, or callee saved registers */
-#define tmp1 r4
-#define tmp2 r5
-#define tmp3 r6
-#define src_offset r7
-
-#ifdef __ARM_BIG_ENDIAN
-# define MASK_0 0xff000000
-# define MASK_1 0xff0000
-# define MASK_2 0xff00
-# define MASK_3 0xff
-# define BYTE_0_SHIFT 24
-# define BYTE_1_SHIFT 16
-# define BYTE_2_SHIFT 8
-# define BYTE_3_SHIFT 0
-#else
-# define MASK_0 0xff
-# define MASK_1 0xff00
-# define MASK_2 0xff0000
-# define MASK_3 0xff000000
-# define BYTE_0_SHIFT 0
-# define BYTE_1_SHIFT 8
-# define BYTE_2_SHIFT 16
-# define BYTE_3_SHIFT 24
-#endif
-
-
- .syntax unified
- .text
- .section .text.strcpy
- .align 2
- .global strcpy
- .thumb
- .type strcpy, %function
-
-strcpy:
- push {result, tmp1, tmp2, tmp3, src_offset}
- eor tmp1, dst, src
- tst tmp1, #3
- /* If dst and src not at same byte offset from a word boundary */
- bne .Lstrs_diff_offset
- /* Process same byte offset then, get the offset */
- ands tmp1, src, #3
- beq .Ldst_src_aligned
- /* get number of bytes unaligned */
- rsb tmp1, #4
-
-.Lbyte_copy_until_dsr_src_aligned:
- ldrb tmp2, [src], #1
- cmp tmp2, #0
- beq .Lcopy_done
- strb tmp2, [dst], #1
- subs tmp1, #1
- bne .Lbyte_copy_until_dsr_src_aligned
-
-.Ldst_src_aligned:
- /* Now dst and src are aligned */
- ldr tmp1, [src], #4
- sub tmp2, tmp1, #0x01010101
- bic tmp2, tmp1
- tst tmp2, #0x80808080
- /* All zero means no zero byte is detected */
- it eq
- streq tmp1, [dst], #4
- beq .Ldst_src_aligned
-
- /* There is a zero in the word, copy until zero */
- sub src, #4
-.Lbyte_copy_until_zero:
- ldrb tmp2, [src], #1
- cmp tmp2, #0
- beq .Lcopy_done
- strb tmp2, [dst], #1
- b .Lbyte_copy_until_zero
-
-/* Make dst aligned, so we won't write anything before dst.
- * If we attempt to write before dst, atomic read-write must
- * be ensured. Atomic operation complicates things.
- * So the solution here is byte by byte copy until dst aligned.
- */
-.Lstrs_diff_offset:
- ands tmp1, dst, #3
- beq .Ldiff_offset_loop_begin
- /* get number of dst bytes unaligned */
- rsb tmp1, #4
-
-.Lbyte_copy_until_dst_aligned:
- ldrb tmp2, [src], #1
- cmp tmp2, #0
- beq .Lcopy_done
- strb tmp2, [dst], #1
- subs tmp1, #1
- bne .Lbyte_copy_until_dst_aligned
-
-.Ldiff_offset_loop_begin:
- /* src_offset mustn't be 0 here */
- and src_offset, src, 3
- lsls src_offset, #3
- bic src, #3
-/* first word logic
- * prepend 0xff to make the algorithm simpler
- * only the first word needs to be prepended
- */
- ldr tmp1, [src], #4
- mov tmp2, #0xffffffff
- rsb tmp3, src_offset, #32
-
-#ifdef __ARM_BIG_ENDIAN
- lsls tmp2, tmp3
-#else
- lsrs tmp2, tmp3
-#endif
- orr tmp1, tmp1, tmp2
- /* Test if the first word contains zero */
- sub tmp3, tmp1, #0x01010101
- bic tmp3, tmp1
- tst tmp3, #0x80808080
- /* non-zero means zero byte is detected */
- bne .Ltail_copy
-
- /* before loop, set tmp2=tmp1 to simplify the logic in the loop */
- mov tmp2, tmp1
-.Ldiff_offset_loop:
- mov tmp1, tmp2
- ldr tmp2, [src], #4
- /* Test if contains zero */
- sub tmp3, tmp2, #0x01010101
- bic tmp3, tmp2
- tst tmp3, #0x80808080
- /* non-zero means zero byte is detected */
- bne .Ltail_copy
- /* Now let's fill dst */
-#ifdef __ARM_BIG_ENDIAN
- lsls tmp1, src_offset
- rsb tmp3, src_offset, #32
- lsrs tmp3, tmp2, tmp3
- orr tmp1, tmp1, tmp3
-#else
- lsrs tmp1, src_offset
- rsb tmp3, src_offset, #32
- lsls tmp3, tmp2, tmp3
- orr tmp1, tmp1, tmp3
-#endif
- str tmp1, [dst], #4
- b .Ldiff_offset_loop
-
-.Ltail_copy:
- cmp src_offset, #24
- beq .Loffset_3
- cmp src_offset, #16
- beq .Loffset_2
- /* src_offset == 8 here */
- ands tmp3, tmp1, MASK_1
- beq .Lcopy_done
- lsrs tmp3, BYTE_1_SHIFT
- strb tmp3, [dst], #1
-.Loffset_2:
- ands tmp3, tmp1, MASK_2
- beq .Lcopy_done
- lsrs tmp3, BYTE_2_SHIFT
- strb tmp3, [dst], #1
-.Loffset_3:
- ands tmp3, tmp1, MASK_3
- beq .Lcopy_done
- lsrs tmp3, BYTE_3_SHIFT
- strb tmp3, [dst], #1
- ands tmp3, tmp2, MASK_0
- beq .Lcopy_done
- lsrs tmp3, BYTE_0_SHIFT
- strb tmp3, [dst], #1
- ands tmp3, tmp2, MASK_1
- beq .Lcopy_done
- lsrs tmp3, BYTE_1_SHIFT
- strb tmp3, [dst], #1
- ands tmp3, tmp2, MASK_2
- beq .Lcopy_done
- lsrs tmp3, BYTE_2_SHIFT
- strb tmp3, [dst], #1
-.Lcopy_done:
- mov tmp3, #0
- strb tmp3, [dst]
- pop {result, tmp1, tmp2, tmp3, src_offset}
- bx lr
-
-#if 0
-/* Pseudo Code of strcpy when dst/src not at same byte offset */
-
-/* Make dst aligned, so we won't write anything before dst.
- * If we attempt to write before dst, atomic read-write must
- * be ensured. Atomic operation complicates things.
- * So the solution here is byte by byte copy until dst aligned.
- */
- if (dst & 3 == 0)
- goto diff_offset_loop_begin;
- ByteCopyUntilDstAligned();
-
-.diff_offset_loop_begin:
-/* src_offset mustn't be 0 here */
- src_offset = src & 3;
- src_offset = src_offset * 8;
- src = src & 0xfffffffc;
- tmp1 = *src;
- src +=4;
-/* first word logic
- * prepend 0xff to make the algorithm simpler
- * only the first word needs to be prepended
- */
- if (src_offset != 0)
- {
- tmp2 = 0xffffffff
-#if big endian
- tmp2 = tmp2 << (32 - src_offset)
-#else
- tmp2 = tmp2 >> (32 - src_offset)
-#endif
- tmp1 |= tmp2
- }
- if (HasZeroByte(tmp1))
- {
- goto .tail_copy;
- }
-
-/* before loop, set tmp2=tmp1 to simplify the logic in the loop */
- tmp2 = tmp1
-.diff_offset_loop:
- tmp1 = tmp2;
- tmp2 = *src;
- src += 4;
-
- /* double word tail means we have to copy from tmp1 and tmp2 to dst */
- if (HasZeroByte(tmp2))
- {
- goto .tail_copy;
- }
-/* Now let's fill dst */
-#if big endian
- tmp1 = tmp1 << (src_offset);
- tmp1 |= tmp2 >> (32 - src_offset);
- *dst = tmp1;
-#else
- tmp1 = tmp1 >> (src_offset);
- tmp1 |= tmp2 << (32 - src_offset);
- *dst = tmp1;
-#endif
- dst +=4;
- goto .diff_offset_loop;
-
-/* byte by byte copy at the tail */
-.tail_copy:
- if (src_offset == 3)
- goto offset_3;
- if (src_offset == 2)
- goto offset_2;
-
-/* src_offset mustn't be 0 here */
-/* default src_offset == 1 */
- if (tmp1 & MASK_1 == 0)
- goto cpy_done;
- *dst++ = tmp1 & MASK_1;
-offset_2:
- if (tmp1 & MASK_2 == 0)
- goto cpy_done;
- *dst++ = tmp1 & MASK_2;
-offset_3:
- if (tmp1 & MASK_3 == 0)
- goto cpy_done;
- *dst++ = tmp1 & MASK_3;
- if (tmp2 & MASK_0 == 0)
- goto cpy_done;
- *dst++ = tmp2 & MASK_0;
- if (tmp2 & MASK_1 == 0)
- goto cpy_done;
- *dst++ = tmp2 & MASK_1;
- if (tmp2 & MASK_2 == 0)
- goto cpy_done;
- *dst++ = tmp2 & MASK_2;
-/* tmp2 BYTE3 must be zero here */
-
-.cpy_done:
- *dst++ = 0;
-#endif /* Pseudo code end */
-
-#endif
+/***************************************************************************
+ * libs/libc/machine/arm/armv7-m/gnu/arch_strcpy.S
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership. The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ ***************************************************************************/
+
+#include "libc.h"
+
+#ifdef LIBC_BUILD_STRCPY
+
+/* This strcpy borrowed some ideas from arch_strcmp.S(). */
+
+/* Parameters and result. */
+#define dst r0
+#define src r1
+#define result r0
+
+/* Internal variables, or callee saved registers */
+#define tmp1 r4
+#define tmp2 r5
+#define tmp3 r6
+#define src_offset r7
+
+#ifdef __ARM_BIG_ENDIAN
+# define MASK_0 0xff000000
+# define MASK_1 0xff0000
+# define MASK_2 0xff00
+# define MASK_3 0xff
+# define BYTE_0_SHIFT 24
+# define BYTE_1_SHIFT 16
+# define BYTE_2_SHIFT 8
+# define BYTE_3_SHIFT 0
+#else
+# define MASK_0 0xff
+# define MASK_1 0xff00
+# define MASK_2 0xff0000
+# define MASK_3 0xff000000
+# define BYTE_0_SHIFT 0
+# define BYTE_1_SHIFT 8
+# define BYTE_2_SHIFT 16
+# define BYTE_3_SHIFT 24
+#endif
+
+
+ .syntax unified
+ .text
+ .section .text.strcpy
+ .align 2
+ .global strcpy
+ .thumb
+ .type strcpy, %function
+
+strcpy:
+ push {result, tmp1, tmp2, tmp3, src_offset}
+ eor tmp1, dst, src
+ tst tmp1, #3
+ /* If dst and src not at same byte offset from a word boundary */
+ bne .Lstrs_diff_offset
+ /* Process same byte offset then, get the offset */
+ ands tmp1, src, #3
+ beq .Ldst_src_aligned
+ /* get number of bytes unaligned */
+ rsb tmp1, #4
+
+.Lbyte_copy_until_dsr_src_aligned:
+ ldrb tmp2, [src], #1
+ cmp tmp2, #0
+ beq .Lcopy_done
+ strb tmp2, [dst], #1
+ subs tmp1, #1
+ bne .Lbyte_copy_until_dsr_src_aligned
+
+.Ldst_src_aligned:
+ /* Now dst and src are aligned */
+ ldr tmp1, [src], #4
+ sub tmp2, tmp1, #0x01010101
+ bic tmp2, tmp1
+ tst tmp2, #0x80808080
+ /* All zero means no zero byte is detected */
+ it eq
+ streq tmp1, [dst], #4
+ beq .Ldst_src_aligned
+
+ /* There is a zero in the word, copy until zero */
+ sub src, #4
+.Lbyte_copy_until_zero:
+ ldrb tmp2, [src], #1
+ cmp tmp2, #0
+ beq .Lcopy_done
+ strb tmp2, [dst], #1
+ b .Lbyte_copy_until_zero
+
+/* Make dst aligned, so we won't write anything before dst.
+ * If we attempt to write before dst, atomic read-write must
+ * be ensured. Atomic operation complicates things.
+ * So the solution here is byte by byte copy until dst aligned.
+ */
+.Lstrs_diff_offset:
+ ands tmp1, dst, #3
+ beq .Ldiff_offset_loop_begin
+ /* get number of dst bytes unaligned */
+ rsb tmp1, #4
+
+.Lbyte_copy_until_dst_aligned:
+ ldrb tmp2, [src], #1
+ cmp tmp2, #0
+ beq .Lcopy_done
+ strb tmp2, [dst], #1
+ subs tmp1, #1
+ bne .Lbyte_copy_until_dst_aligned
+
+.Ldiff_offset_loop_begin:
+ /* src_offset mustn't be 0 here */
+ and src_offset, src, 3
+ lsls src_offset, #3
+ bic src, #3
+/* first word logic
+ * prepend 0xff to make the algorithm simpler
+ * only the first word needs to be prepended
+ */
+ ldr tmp1, [src], #4
+ mov tmp2, #0xffffffff
+ rsb tmp3, src_offset, #32
+
+#ifdef __ARM_BIG_ENDIAN
+ lsls tmp2, tmp3
+#else
+ lsrs tmp2, tmp3
+#endif
+ orr tmp1, tmp1, tmp2
+ /* Test if the first word contains zero */
+ sub tmp3, tmp1, #0x01010101
+ bic tmp3, tmp1
+ tst tmp3, #0x80808080
+ /* non-zero means zero byte is detected */
+ bne .Ltail_copy
+
+ /* before loop, set tmp2=tmp1 to simplify the logic in the loop */
+ mov tmp2, tmp1
+.Ldiff_offset_loop:
+ mov tmp1, tmp2
+ ldr tmp2, [src], #4
+ /* Test if contains zero */
+ sub tmp3, tmp2, #0x01010101
+ bic tmp3, tmp2
+ tst tmp3, #0x80808080
+ /* non-zero means zero byte is detected */
+ bne .Ltail_copy
+ /* Now let's fill dst */
+#ifdef __ARM_BIG_ENDIAN
+ lsls tmp1, src_offset
+ rsb tmp3, src_offset, #32
+ lsrs tmp3, tmp2, tmp3
+ orr tmp1, tmp1, tmp3
+#else
+ lsrs tmp1, src_offset
+ rsb tmp3, src_offset, #32
+ lsls tmp3, tmp2, tmp3
+ orr tmp1, tmp1, tmp3
+#endif
+ str tmp1, [dst], #4
+ b .Ldiff_offset_loop
+
+.Ltail_copy:
+ cmp src_offset, #24
+ beq .Loffset_3
+ cmp src_offset, #16
+ beq .Loffset_2
+ /* src_offset == 8 here */
+ ands tmp3, tmp1, MASK_1
+ beq .Lcopy_done
+ lsrs tmp3, BYTE_1_SHIFT
+ strb tmp3, [dst], #1
+.Loffset_2:
+ ands tmp3, tmp1, MASK_2
+ beq .Lcopy_done
+ lsrs tmp3, BYTE_2_SHIFT
+ strb tmp3, [dst], #1
+.Loffset_3:
+ ands tmp3, tmp1, MASK_3
+ beq .Lcopy_done
+ lsrs tmp3, BYTE_3_SHIFT
+ strb tmp3, [dst], #1
+ ands tmp3, tmp2, MASK_0
+ beq .Lcopy_done
+ lsrs tmp3, BYTE_0_SHIFT
+ strb tmp3, [dst], #1
+ ands tmp3, tmp2, MASK_1
+ beq .Lcopy_done
+ lsrs tmp3, BYTE_1_SHIFT
+ strb tmp3, [dst], #1
+ ands tmp3, tmp2, MASK_2
+ beq .Lcopy_done
+ lsrs tmp3, BYTE_2_SHIFT
+ strb tmp3, [dst], #1
+.Lcopy_done:
+ mov tmp3, #0
+ strb tmp3, [dst]
+ pop {result, tmp1, tmp2, tmp3, src_offset}
+ bx lr
+
+#if 0
+/* Pseudo Code of strcpy when dst/src not at same byte offset */
+
+/* Make dst aligned, so we won't write anything before dst.
+ * If we attempt to write before dst, atomic read-write must
+ * be ensured. Atomic operation complicates things.
+ * So the solution here is byte by byte copy until dst aligned.
+ */
+ if (dst & 3 == 0)
+ goto diff_offset_loop_begin;
+ ByteCopyUntilDstAligned();
+
+.diff_offset_loop_begin:
+/* src_offset mustn't be 0 here */
+ src_offset = src & 3;
+ src_offset = src_offset * 8;
+ src = src & 0xfffffffc;
+ tmp1 = *src;
+ src +=4;
+/* first word logic
+ * prepend 0xff to make the algorithm simpler
+ * only the first word needs to be prepended
+ */
+ if (src_offset != 0)
+ {
+ tmp2 = 0xffffffff
+#if big endian
+ tmp2 = tmp2 << (32 - src_offset)
+#else
+ tmp2 = tmp2 >> (32 - src_offset)
+#endif
+ tmp1 |= tmp2
+ }
+ if (HasZeroByte(tmp1))
+ {
+ goto .tail_copy;
+ }
+
+/* before loop, set tmp2=tmp1 to simplify the logic in the loop */
+ tmp2 = tmp1
+.diff_offset_loop:
+ tmp1 = tmp2;
+ tmp2 = *src;
+ src += 4;
+
+ /* double word tail means we have to copy from tmp1 and tmp2 to dst */
+ if (HasZeroByte(tmp2))
+ {
+ goto .tail_copy;
+ }
+/* Now let's fill dst */
+#if big endian
+ tmp1 = tmp1 << (src_offset);
+ tmp1 |= tmp2 >> (32 - src_offset);
+ *dst = tmp1;
+#else
+ tmp1 = tmp1 >> (src_offset);
+ tmp1 |= tmp2 << (32 - src_offset);
+ *dst = tmp1;
+#endif
+ dst +=4;
+ goto .diff_offset_loop;
+
+/* byte by byte copy at the tail */
+.tail_copy:
+ if (src_offset == 3)
+ goto offset_3;
+ if (src_offset == 2)
+ goto offset_2;
+
+/* src_offset mustn't be 0 here */
+/* default src_offset == 1 */
+ if (tmp1 & MASK_1 == 0)
+ goto cpy_done;
+ *dst++ = tmp1 & MASK_1;
+offset_2:
+ if (tmp1 & MASK_2 == 0)
+ goto cpy_done;
+ *dst++ = tmp1 & MASK_2;
+offset_3:
+ if (tmp1 & MASK_3 == 0)
+ goto cpy_done;
+ *dst++ = tmp1 & MASK_3;
+ if (tmp2 & MASK_0 == 0)
+ goto cpy_done;
+ *dst++ = tmp2 & MASK_0;
+ if (tmp2 & MASK_1 == 0)
+ goto cpy_done;
+ *dst++ = tmp2 & MASK_1;
+ if (tmp2 & MASK_2 == 0)
+ goto cpy_done;
+ *dst++ = tmp2 & MASK_2;
+/* tmp2 BYTE3 must be zero here */
+
+.cpy_done:
+ *dst++ = 0;
+#endif /* Pseudo code end */
+
+#endif
diff --git a/libs/libc/machine/arm/armv7-m/gnu/arch_strlen.S b/libs/libc/machine/arm/armv7-m/gnu/arch_strlen.S
index 5371db2..162f023 100644
--- a/libs/libc/machine/arm/armv7-m/gnu/arch_strlen.S
+++ b/libs/libc/machine/arm/armv7-m/gnu/arch_strlen.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-m/gnu/arch_strlen.S
*
- * Copyright (c) 2010-2011,2013 Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2010-2011,2013 Linaro Limited, 2015 ARM Ltd.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-r/CMakeLists.txt b/libs/libc/machine/arm/armv7-r/CMakeLists.txt
index dbbedfb..0492afc 100644
--- a/libs/libc/machine/arm/armv7-r/CMakeLists.txt
+++ b/libs/libc/machine/arm/armv7-r/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/arm/armv7-r/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/arm/armv7-r/Make.defs b/libs/libc/machine/arm/armv7-r/Make.defs
index 1814051..2e5e509 100644
--- a/libs/libc/machine/arm/armv7-r/Make.defs
+++ b/libs/libc/machine/arm/armv7-r/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/arm/armv7-r/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/armv7-r/arch_elf.c b/libs/libc/machine/arm/armv7-r/arch_elf.c
index 8ddfda1..1937762 100644
--- a/libs/libc/machine/arm/armv7-r/arch_elf.c
+++ b/libs/libc/machine/arm/armv7-r/arch_elf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-r/arch_elf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/armv7-r/gnu/acle-compat.h b/libs/libc/machine/arm/armv7-r/gnu/acle-compat.h
index f37c67f..b946406 100644
--- a/libs/libc/machine/arm/armv7-r/gnu/acle-compat.h
+++ b/libs/libc/machine/arm/armv7-r/gnu/acle-compat.h
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-r/gnu/acle-compat.h
*
- * Copyright (c) 2014 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-r/gnu/arch_memchr.S b/libs/libc/machine/arm/armv7-r/gnu/arch_memchr.S
index 5c6f334..51c5c59 100644
--- a/libs/libc/machine/arm/armv7-r/gnu/arch_memchr.S
+++ b/libs/libc/machine/arm/armv7-r/gnu/arch_memchr.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-r/gnu/arch_memchr.S
*
- * Copyright (c) 2010-2011, Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2010-2011, Linaro Limited, 2015 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-r/gnu/arch_memcpy.S b/libs/libc/machine/arm/armv7-r/gnu/arch_memcpy.S
index f05e58d..07a5804 100644
--- a/libs/libc/machine/arm/armv7-r/gnu/arch_memcpy.S
+++ b/libs/libc/machine/arm/armv7-r/gnu/arch_memcpy.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-r/gnu/arch_memchr.S
*
- * Copyright (c) 2013, Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2013, Linaro Limited
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-r/gnu/arch_memmove.S b/libs/libc/machine/arm/armv7-r/gnu/arch_memmove.S
index b0a5da5..097766f 100644
--- a/libs/libc/machine/arm/armv7-r/gnu/arch_memmove.S
+++ b/libs/libc/machine/arm/armv7-r/gnu/arch_memmove.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-r/gnu/arch_memmove.S
*
- * Copyright (c) 2015 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2015 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-r/gnu/arch_memset.S b/libs/libc/machine/arm/armv7-r/gnu/arch_memset.S
index f37d922..47fe626 100644
--- a/libs/libc/machine/arm/armv7-r/gnu/arch_memset.S
+++ b/libs/libc/machine/arm/armv7-r/gnu/arch_memset.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-r/gnu/arch_memset.S
*
- * Copyright (C) 2013 The Android Open Source Project
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2013 The Android Open Source Project
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv7-r/gnu/arch_strcmp.S b/libs/libc/machine/arm/armv7-r/gnu/arch_strcmp.S
index 5a67b9e..21e73a2 100644
--- a/libs/libc/machine/arm/armv7-r/gnu/arch_strcmp.S
+++ b/libs/libc/machine/arm/armv7-r/gnu/arch_strcmp.S
@@ -1,8 +1,9 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-r/gnu/arch_strcmp.S
*
- * Copyright (c) 2011 The Android Open Source Project
- * Copyright (c) 2008 ARM Ltd
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2011 The Android Open Source Project,2008 ARM Ltd
+ *
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/libs/libc/machine/arm/armv7-r/gnu/arch_strlen.S b/libs/libc/machine/arm/armv7-r/gnu/arch_strlen.S
index 75deb3a..419e556 100644
--- a/libs/libc/machine/arm/armv7-r/gnu/arch_strlen.S
+++ b/libs/libc/machine/arm/armv7-r/gnu/arch_strlen.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv7-r/gnu/arch_strlen.S
*
- * Copyright (c) 2010-2011,2013 Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2010-2011,2013 Linaro Limited, 2015 ARM Ltd.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv8-m/CMakeLists.txt b/libs/libc/machine/arm/armv8-m/CMakeLists.txt
index 809f82f..3962607 100644
--- a/libs/libc/machine/arm/armv8-m/CMakeLists.txt
+++ b/libs/libc/machine/arm/armv8-m/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/arm/armv8-m/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/arm/armv8-m/Make.defs b/libs/libc/machine/arm/armv8-m/Make.defs
index 744df7e..bb38110 100644
--- a/libs/libc/machine/arm/armv8-m/Make.defs
+++ b/libs/libc/machine/arm/armv8-m/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/arm/armv8-m/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/armv8-m/arch_elf.c b/libs/libc/machine/arm/armv8-m/arch_elf.c
index 772a454..1f10f8f 100644
--- a/libs/libc/machine/arm/armv8-m/arch_elf.c
+++ b/libs/libc/machine/arm/armv8-m/arch_elf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv8-m/arch_elf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/armv8-m/gnu/acle-compat.h b/libs/libc/machine/arm/armv8-m/gnu/acle-compat.h
index 23338bb..ca469f1 100644
--- a/libs/libc/machine/arm/armv8-m/gnu/acle-compat.h
+++ b/libs/libc/machine/arm/armv8-m/gnu/acle-compat.h
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv8-m/gnu/acle-compat.h
*
- * Copyright (c) 2014 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv8-m/gnu/arch_memchr.S b/libs/libc/machine/arm/armv8-m/gnu/arch_memchr.S
index 3975ef2..c6eba59 100644
--- a/libs/libc/machine/arm/armv8-m/gnu/arch_memchr.S
+++ b/libs/libc/machine/arm/armv8-m/gnu/arch_memchr.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv8-m/gnu/arch_memchr.S
*
- * Copyright (c) 2010-2011, Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2010-2011, Linaro Limited, 2015 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv8-m/gnu/arch_memcpy.S b/libs/libc/machine/arm/armv8-m/gnu/arch_memcpy.S
index 58f4607..0fc4f93 100644
--- a/libs/libc/machine/arm/armv8-m/gnu/arch_memcpy.S
+++ b/libs/libc/machine/arm/armv8-m/gnu/arch_memcpy.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv8-m/gnu/arch_memcpy.S
*
- * Copyright (c) 2013 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2013 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv8-m/gnu/arch_memmove.S b/libs/libc/machine/arm/armv8-m/gnu/arch_memmove.S
index e4b0535..3b45156 100644
--- a/libs/libc/machine/arm/armv8-m/gnu/arch_memmove.S
+++ b/libs/libc/machine/arm/armv8-m/gnu/arch_memmove.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv8-m/gnu/arch_memmove.S
*
- * Copyright (c) 2015 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2015 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv8-m/gnu/arch_memset.S b/libs/libc/machine/arm/armv8-m/gnu/arch_memset.S
index 61195fc..59b31d2 100644
--- a/libs/libc/machine/arm/armv8-m/gnu/arch_memset.S
+++ b/libs/libc/machine/arm/armv8-m/gnu/arch_memset.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv8-m/gnu/arch_memset.S
*
- * Copyright (c) 2015 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2015 ARM Ltd,2008 The Android Open Source Project
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv8-m/gnu/arch_strcmp.S b/libs/libc/machine/arm/armv8-m/gnu/arch_strcmp.S
index 6eab622..1ed1b48 100644
--- a/libs/libc/machine/arm/armv8-m/gnu/arch_strcmp.S
+++ b/libs/libc/machine/arm/armv8-m/gnu/arch_strcmp.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv8-m/gnu/arch_strcmp.S
*
- * Copyright (c) 2012-2014 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2012-2014 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/armv8-m/gnu/arch_strcpy.S b/libs/libc/machine/arm/armv8-m/gnu/arch_strcpy.S
index 59f2a76..448236c 100644
--- a/libs/libc/machine/arm/armv8-m/gnu/arch_strcpy.S
+++ b/libs/libc/machine/arm/armv8-m/gnu/arch_strcpy.S
@@ -1,6 +1,8 @@
/***************************************************************************
* libs/libc/machine/arm/armv8-m/gnu/arch_strcpy.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/armv8-m/gnu/arch_strlen.S b/libs/libc/machine/arm/armv8-m/gnu/arch_strlen.S
index d197f8c..7d2505c 100644
--- a/libs/libc/machine/arm/armv8-m/gnu/arch_strlen.S
+++ b/libs/libc/machine/arm/armv8-m/gnu/arch_strlen.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/armv8-m/gnu/arch_strlen.S
*
- * Copyright (c) 2010-2011,2013 Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2010-2011,2013 Linaro Limited, 2015 ARM Ltd.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm/gnu/arch_setjmp.S b/libs/libc/machine/arm/gnu/arch_setjmp.S
index 77a26ad..63284d8 100644
--- a/libs/libc/machine/arm/gnu/arch_setjmp.S
+++ b/libs/libc/machine/arm/gnu/arch_setjmp.S
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/gnu/arm_setjmp.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/gnu/tc32_setjmp.S b/libs/libc/machine/arm/gnu/tc32_setjmp.S
index e36d5ab..1a00ba5 100644
--- a/libs/libc/machine/arm/gnu/tc32_setjmp.S
+++ b/libs/libc/machine/arm/gnu/tc32_setjmp.S
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/gnu/tc32_setjmp.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm/gnu_unwind_find_exidx.c b/libs/libc/machine/arm/gnu_unwind_find_exidx.c
index 4ab3b07..5ff5a52 100644
--- a/libs/libc/machine/arm/gnu_unwind_find_exidx.c
+++ b/libs/libc/machine/arm/gnu_unwind_find_exidx.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm/gnu_unwind_find_exidx.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm64/CMakeLists.txt b/libs/libc/machine/arm64/CMakeLists.txt
index 08cabb0..aea54d15 100644
--- a/libs/libc/machine/arm64/CMakeLists.txt
+++ b/libs/libc/machine/arm64/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/arm64/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/arm64/Make.defs b/libs/libc/machine/arm64/Make.defs
index c9c085d..785f58f 100644
--- a/libs/libc/machine/arm64/Make.defs
+++ b/libs/libc/machine/arm64/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/arm64/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm64/arch_elf.c b/libs/libc/machine/arm64/arch_elf.c
index 41d8032..b321157 100644
--- a/libs/libc/machine/arm64/arch_elf.c
+++ b/libs/libc/machine/arm64/arch_elf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/arch_elf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/arm64/gnu/CMakeLists.txt b/libs/libc/machine/arm64/gnu/CMakeLists.txt
index 2d556c2..706109b 100644
--- a/libs/libc/machine/arm64/gnu/CMakeLists.txt
+++ b/libs/libc/machine/arm64/gnu/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/arm64/gnu/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/arm64/gnu/arch_memchr.S b/libs/libc/machine/arm64/gnu/arch_memchr.S
index c764133..f323ba3 100644
--- a/libs/libc/machine/arm64/gnu/arch_memchr.S
+++ b/libs/libc/machine/arm64/gnu/arch_memchr.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/gnu/arch_memchr.S
*
- * Copyright (c) 2014, ARM Limited
- * All rights Reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, ARM Limited, All rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/arm64/gnu/arch_memcmp.S b/libs/libc/machine/arm64/gnu/arch_memcmp.S
index e8413de..7c526e5 100644
--- a/libs/libc/machine/arm64/gnu/arch_memcmp.S
+++ b/libs/libc/machine/arm64/gnu/arch_memcmp.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/gnu/arch_memcmp.S
*
- * Copyright (c) 2018 Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2018 Linaro Limited, 2017 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm64/gnu/arch_memcpy.S b/libs/libc/machine/arm64/gnu/arch_memcpy.S
index 14da753..4785537 100644
--- a/libs/libc/machine/arm64/gnu/arch_memcpy.S
+++ b/libs/libc/machine/arm64/gnu/arch_memcpy.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/gnu/arch_memcpy.S
*
- * Copyright (c) 2012-2013, Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2012-2013, Linaro Limited, 2015 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm64/gnu/arch_memmove.S b/libs/libc/machine/arm64/gnu/arch_memmove.S
index ce9dc50..d58e401 100644
--- a/libs/libc/machine/arm64/gnu/arch_memmove.S
+++ b/libs/libc/machine/arm64/gnu/arch_memmove.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/gnu/arch_memmove.S
*
- * Copyright (c) 2013, Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2013, Linaro Limited, 2015 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm64/gnu/arch_memset.S b/libs/libc/machine/arm64/gnu/arch_memset.S
index b43e353..fc7d4e9 100644
--- a/libs/libc/machine/arm64/gnu/arch_memset.S
+++ b/libs/libc/machine/arm64/gnu/arch_memset.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/gnu/arch_memset.S
*
- * Copyright (c) 2012-2013, Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2012-2013, Linaro Limited, 2015 ARM Ltd
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm64/gnu/arch_setjmp.S b/libs/libc/machine/arm64/gnu/arch_setjmp.S
index 90ae531..c6a1c02 100644
--- a/libs/libc/machine/arm64/gnu/arch_setjmp.S
+++ b/libs/libc/machine/arm64/gnu/arch_setjmp.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/gnu/arch_setjmp.S
*
- * Copyright (c) 2011, 2012 ARM Ltd
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2011, 2012 ARM Ltd, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm64/gnu/arch_strchr.S b/libs/libc/machine/arm64/gnu/arch_strchr.S
index 6973691..eb84222 100644
--- a/libs/libc/machine/arm64/gnu/arch_strchr.S
+++ b/libs/libc/machine/arm64/gnu/arch_strchr.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/gnu/arch_strchr.S
*
- * Copyright (c) 2014, ARM Limited
- * All rights Reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, ARM Limited, All rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/arm64/gnu/arch_strchrnul.S b/libs/libc/machine/arm64/gnu/arch_strchrnul.S
index 41698d9..9fb8299 100644
--- a/libs/libc/machine/arm64/gnu/arch_strchrnul.S
+++ b/libs/libc/machine/arm64/gnu/arch_strchrnul.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/gnu/arch_strchrnul.S
*
- * Copyright (c) 2014, ARM Limited
- * All rights Reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, ARM Limited, All rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/arm64/gnu/arch_strcmp.S b/libs/libc/machine/arm64/gnu/arch_strcmp.S
index feceb21..c20d265 100644
--- a/libs/libc/machine/arm64/gnu/arch_strcmp.S
+++ b/libs/libc/machine/arm64/gnu/arch_strcmp.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/gnu/arch_strcmp.S
*
- * Copyright (c) 2012-2018, Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2012-2018, Linaro Limited, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm64/gnu/arch_strcpy.S b/libs/libc/machine/arm64/gnu/arch_strcpy.S
index 3bb27ff..02febd1 100644
--- a/libs/libc/machine/arm64/gnu/arch_strcpy.S
+++ b/libs/libc/machine/arm64/gnu/arch_strcpy.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/gnu/arch_strcpy.S
*
- * Copyright (c) 2013, 2014, 2015 ARM Ltd.
- * All rights Reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2013, 2014, 2015 ARM Ltd., All rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/arm64/gnu/arch_strlen.S b/libs/libc/machine/arm64/gnu/arch_strlen.S
index d527360..bf1c817 100644
--- a/libs/libc/machine/arm64/gnu/arch_strlen.S
+++ b/libs/libc/machine/arm64/gnu/arch_strlen.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/gnu/arch_strlen.S
*
- * Copyright (c) 2013-2015, Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2013-2015, Linaro Limited, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm64/gnu/arch_strncmp.S b/libs/libc/machine/arm64/gnu/arch_strncmp.S
index bcf8a7d..e045cf7 100644
--- a/libs/libc/machine/arm64/gnu/arch_strncmp.S
+++ b/libs/libc/machine/arm64/gnu/arch_strncmp.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/gnu/arch_strncmp.S
*
- * Copyright (c) 2013, 2018, Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2013, 2018, Linaro Limited, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm64/gnu/arch_strnlen.S b/libs/libc/machine/arm64/gnu/arch_strnlen.S
index f6013e6..cf05778 100644
--- a/libs/libc/machine/arm64/gnu/arch_strnlen.S
+++ b/libs/libc/machine/arm64/gnu/arch_strnlen.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/gnu/arch_strnlen.S
*
- * Copyright (c) 2013, Linaro Limited
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2013, Linaro Limited, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/machine/arm64/gnu/arch_strrchr.S b/libs/libc/machine/arm64/gnu/arch_strrchr.S
index 473447c..c35dd56 100644
--- a/libs/libc/machine/arm64/gnu/arch_strrchr.S
+++ b/libs/libc/machine/arm64/gnu/arch_strrchr.S
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/machine/arm64/gnu/arch_strrchr.S
*
- * Copyright (c) 2014, ARM Limited
- * All rights Reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, ARM Limited, All rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/renesas/CMakeLists.txt b/libs/libc/machine/renesas/CMakeLists.txt
new file mode 100644
index 0000000..866fe62
--- /dev/null
+++ b/libs/libc/machine/renesas/CMakeLists.txt
@@ -0,0 +1,21 @@
+# ##############################################################################
+# libs/libc/machine/renesas/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership. The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# ##############################################################################
diff --git a/libs/libc/machine/renesas/Make.defs b/libs/libc/machine/renesas/Make.defs
index a99c83e..0f7f906 100644
--- a/libs/libc/machine/renesas/Make.defs
+++ b/libs/libc/machine/renesas/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/renesas/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/renesas/rx/CMakeLists.txt b/libs/libc/machine/renesas/rx/CMakeLists.txt
new file mode 100644
index 0000000..5f88d2d
--- /dev/null
+++ b/libs/libc/machine/renesas/rx/CMakeLists.txt
@@ -0,0 +1,21 @@
+# ##############################################################################
+# libs/libc/machine/renesas/rx/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership. The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# ##############################################################################
diff --git a/libs/libc/machine/renesas/rx/Make.defs b/libs/libc/machine/renesas/rx/Make.defs
index 4e8aa5a..7418bad 100644
--- a/libs/libc/machine/renesas/rx/Make.defs
+++ b/libs/libc/machine/renesas/rx/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/renesas/rx/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/renesas/rx/gnu/arch_setjmp.S b/libs/libc/machine/renesas/rx/gnu/arch_setjmp.S
index 2a6aae9..f50719c 100644
--- a/libs/libc/machine/renesas/rx/gnu/arch_setjmp.S
+++ b/libs/libc/machine/renesas/rx/gnu/arch_setjmp.S
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/renesas/rx/gnu/arm_setjmp.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/risc-v/Make.defs b/libs/libc/machine/risc-v/Make.defs
index e51d810..f4d9d17 100644
--- a/libs/libc/machine/risc-v/Make.defs
+++ b/libs/libc/machine/risc-v/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/risc-v/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/risc-v/arch_elf.c b/libs/libc/machine/risc-v/arch_elf.c
index 8e826bd..98d99a4 100644
--- a/libs/libc/machine/risc-v/arch_elf.c
+++ b/libs/libc/machine/risc-v/arch_elf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/risc-v/arch_elf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/risc-v/common/CMakeLists.txt b/libs/libc/machine/risc-v/common/CMakeLists.txt
index 8cbcd06..f4e18e4 100644
--- a/libs/libc/machine/risc-v/common/CMakeLists.txt
+++ b/libs/libc/machine/risc-v/common/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/risc-v/common/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/risc-v/gnu/CMakeLists.txt b/libs/libc/machine/risc-v/gnu/CMakeLists.txt
index 66fc5ee..188ffac 100644
--- a/libs/libc/machine/risc-v/gnu/CMakeLists.txt
+++ b/libs/libc/machine/risc-v/gnu/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/risc-v/gnu/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/risc-v/gnu/arch_memcpy.S b/libs/libc/machine/risc-v/gnu/arch_memcpy.S
index 0a9a4fd..af531aa 100644
--- a/libs/libc/machine/risc-v/gnu/arch_memcpy.S
+++ b/libs/libc/machine/risc-v/gnu/arch_memcpy.S
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/risc-v/gnu/arch_memcpy.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/risc-v/gnu/arch_memset.S b/libs/libc/machine/risc-v/gnu/arch_memset.S
index a52ebf5..5a10423 100644
--- a/libs/libc/machine/risc-v/gnu/arch_memset.S
+++ b/libs/libc/machine/risc-v/gnu/arch_memset.S
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/machine/risc-v/gnu/arch_memset.S
*
- * Copyright (c) 2017 SiFive Inc. All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ * SPDX-FileCopyrightText: 2017 SiFive Inc. All rights reserved.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
diff --git a/libs/libc/machine/risc-v/gnu/arch_setjmp.S b/libs/libc/machine/risc-v/gnu/arch_setjmp.S
index b98a9d2..b5c534f 100644
--- a/libs/libc/machine/risc-v/gnu/arch_setjmp.S
+++ b/libs/libc/machine/risc-v/gnu/arch_setjmp.S
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/risc-v/gnu/arch_setjmp.S
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/risc-v/gnu/arch_strcmp.S b/libs/libc/machine/risc-v/gnu/arch_strcmp.S
index afc140a..c4159a6 100644
--- a/libs/libc/machine/risc-v/gnu/arch_strcmp.S
+++ b/libs/libc/machine/risc-v/gnu/arch_strcmp.S
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/machine/risc-v/gnu/arch_strcmp.S
*
- * Copyright (c) 2017 SiFive Inc. All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ * SPDX-FileCopyrightText: 2017 SiFive Inc. All rights reserved.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
diff --git a/libs/libc/machine/risc-v/gnu/asm.h b/libs/libc/machine/risc-v/gnu/asm.h
index 2b4aaba..673cb9c 100644
--- a/libs/libc/machine/risc-v/gnu/asm.h
+++ b/libs/libc/machine/risc-v/gnu/asm.h
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/machine/risc-v/gnu/asm.h
*
- * Copyright (c) 2017 SiFive Inc. All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ * SPDX-FileCopyrightText: 2017 SiFive Inc. All rights reserved.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
diff --git a/libs/libc/machine/risc-v/rv32/CMakeLists.txt b/libs/libc/machine/risc-v/rv32/CMakeLists.txt
index 9b33b6c..9d0a85b 100644
--- a/libs/libc/machine/risc-v/rv32/CMakeLists.txt
+++ b/libs/libc/machine/risc-v/rv32/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/risc-v/rv32/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/risc-v/rv64/CMakeLists.txt b/libs/libc/machine/risc-v/rv64/CMakeLists.txt
index 8b13789..345f73f 100644
--- a/libs/libc/machine/risc-v/rv64/CMakeLists.txt
+++ b/libs/libc/machine/risc-v/rv64/CMakeLists.txt
@@ -1 +1,22 @@
+# ##############################################################################
+# libs/libc/machine/risc-v/rv64/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership. The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# ##############################################################################
diff --git a/libs/libc/machine/sim/CMakeLists.txt b/libs/libc/machine/sim/CMakeLists.txt
index 22ccff0..f221e53 100644
--- a/libs/libc/machine/sim/CMakeLists.txt
+++ b/libs/libc/machine/sim/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/sim/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/sim/Make.defs b/libs/libc/machine/sim/Make.defs
index 867d951..86a2ea4 100644
--- a/libs/libc/machine/sim/Make.defs
+++ b/libs/libc/machine/sim/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/sim/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/sim/arch_elf.c b/libs/libc/machine/sim/arch_elf.c
index bba6f23..752b96b 100644
--- a/libs/libc/machine/sim/arch_elf.c
+++ b/libs/libc/machine/sim/arch_elf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/sim/arch_elf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/sim/arch_elf64.c b/libs/libc/machine/sim/arch_elf64.c
index 31e0e83..6159be9 100644
--- a/libs/libc/machine/sim/arch_elf64.c
+++ b/libs/libc/machine/sim/arch_elf64.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/sim/arch_elf64.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/sim/arch_setjmp_arm.S b/libs/libc/machine/sim/arch_setjmp_arm.S
index 8279776..538a71b 100644
--- a/libs/libc/machine/sim/arch_setjmp_arm.S
+++ b/libs/libc/machine/sim/arch_setjmp_arm.S
@@ -1,8 +1,9 @@
/****************************************************************************
* libs/libc/machine/sim/arch_setjmp_arm.S
*
- * Copyright (C) 2017 Gregory Nutt. All rights reserved.
- * Author: Nickolay Semyonov (RPI) <snob@wolpike.com>
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2017 Gregory Nutt. All rights reserved.
+ * SPDX-FileContributor: Nickolay Semyonov (RPI) <snob@wolpike.com>
*
* Extracted from the MUSL C-library. The MUSL C library has a compatible
* MIT license and is released here under the NuttX 3-clause BSD license:
diff --git a/libs/libc/machine/sim/arch_setjmp_arm64.S b/libs/libc/machine/sim/arch_setjmp_arm64.S
index fea6140..15f0b55 100644
--- a/libs/libc/machine/sim/arch_setjmp_arm64.S
+++ b/libs/libc/machine/sim/arch_setjmp_arm64.S
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/sim/arch_setjmp_arm64.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/sim/arch_setjmp_x86.S b/libs/libc/machine/sim/arch_setjmp_x86.S
index e9bdef6..439e213 100644
--- a/libs/libc/machine/sim/arch_setjmp_x86.S
+++ b/libs/libc/machine/sim/arch_setjmp_x86.S
@@ -1,6 +1,8 @@
/**************************************************************************
* libs/libc/machine/sim/arch_setjmp_x86.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/sim/arch_setjmp_x86.asm b/libs/libc/machine/sim/arch_setjmp_x86.asm
index b8758c6..70c2730 100644
--- a/libs/libc/machine/sim/arch_setjmp_x86.asm
+++ b/libs/libc/machine/sim/arch_setjmp_x86.asm
@@ -1,6 +1,8 @@
;***************************************************************************
; libs/libc/machine/sim/arch_setjmp_x86.asm
;
+; SPDX-License-Identifier: Apache-2.0
+;
; Licensed to the Apache Software Foundation (ASF) under one or more
; contributor license agreements. See the NOTICE file distributed with
; this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/sim/arch_setjmp_x86_64.S b/libs/libc/machine/sim/arch_setjmp_x86_64.S
index cc747f8..62c15ff 100644
--- a/libs/libc/machine/sim/arch_setjmp_x86_64.S
+++ b/libs/libc/machine/sim/arch_setjmp_x86_64.S
@@ -1,6 +1,8 @@
/**************************************************************************
* libs/libc/machine/sim/arch_setjmp_x86_64.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/sparc/CMakeLists.txt b/libs/libc/machine/sparc/CMakeLists.txt
new file mode 100644
index 0000000..9f837b6
--- /dev/null
+++ b/libs/libc/machine/sparc/CMakeLists.txt
@@ -0,0 +1,21 @@
+# ##############################################################################
+# libs/libc/machine/sparc/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership. The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# ##############################################################################
diff --git a/libs/libc/machine/sparc/Make.defs b/libs/libc/machine/sparc/Make.defs
index 183c2dc..8746571 100644
--- a/libs/libc/machine/sparc/Make.defs
+++ b/libs/libc/machine/sparc/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/sparc/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/sparc/arch_elf.c b/libs/libc/machine/sparc/arch_elf.c
index 49f6fff..3044a75 100644
--- a/libs/libc/machine/sparc/arch_elf.c
+++ b/libs/libc/machine/sparc/arch_elf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/sparc/arch_elf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/tricore/CMakeLists.txt b/libs/libc/machine/tricore/CMakeLists.txt
index d863e3d..dc98b2b 100644
--- a/libs/libc/machine/tricore/CMakeLists.txt
+++ b/libs/libc/machine/tricore/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/tricore/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/x86/CMakeLists.txt b/libs/libc/machine/x86/CMakeLists.txt
index 1aa14b6..130386b 100644
--- a/libs/libc/machine/x86/CMakeLists.txt
+++ b/libs/libc/machine/x86/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/x86/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/x86/Make.defs b/libs/libc/machine/x86/Make.defs
index 35e5857..7a397eb 100644
--- a/libs/libc/machine/x86/Make.defs
+++ b/libs/libc/machine/x86/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/x86/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/x86/arch_elf.c b/libs/libc/machine/x86/arch_elf.c
index 947b9b1..8511218 100644
--- a/libs/libc/machine/x86/arch_elf.c
+++ b/libs/libc/machine/x86/arch_elf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/x86/arch_elf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/x86_64/CMakeLists.txt b/libs/libc/machine/x86_64/CMakeLists.txt
index 3c9e94c..67807c3 100644
--- a/libs/libc/machine/x86_64/CMakeLists.txt
+++ b/libs/libc/machine/x86_64/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/x86_64/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/x86_64/Make.defs b/libs/libc/machine/x86_64/Make.defs
index e304954..120b9ca 100644
--- a/libs/libc/machine/x86_64/Make.defs
+++ b/libs/libc/machine/x86_64/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/x86_64/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/x86_64/arch_elf64.c b/libs/libc/machine/x86_64/arch_elf64.c
index 7da06ed..41eebe2 100644
--- a/libs/libc/machine/x86_64/arch_elf64.c
+++ b/libs/libc/machine/x86_64/arch_elf64.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/x86_64/arch_elf64.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/x86_64/gnu/CMakeLists.txt b/libs/libc/machine/x86_64/gnu/CMakeLists.txt
index c2d4ed8..9c4ab04 100644
--- a/libs/libc/machine/x86_64/gnu/CMakeLists.txt
+++ b/libs/libc/machine/x86_64/gnu/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/X86_64/gnu/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/x86_64/gnu/arch_memcmp.S b/libs/libc/machine/x86_64/gnu/arch_memcmp.S
index e4b8a72..23027ce 100644
--- a/libs/libc/machine/x86_64/gnu/arch_memcmp.S
+++ b/libs/libc/machine/x86_64/gnu/arch_memcmp.S
@@ -1,8 +1,8 @@
/*********************************************************************************
* libs/libc/machine/x86_64/gnu/arch_memcmp.S
*
- * Copyright (c) 2014, Intel Corporation
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/x86_64/gnu/arch_memmove.S b/libs/libc/machine/x86_64/gnu/arch_memmove.S
index 16abf91..93c368e 100644
--- a/libs/libc/machine/x86_64/gnu/arch_memmove.S
+++ b/libs/libc/machine/x86_64/gnu/arch_memmove.S
@@ -1,8 +1,8 @@
/*********************************************************************************
* libs/libc/machine/x86_64/gnu/arch_memmove.S
*
- * Copyright (c) 2014, Intel Corporation
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/x86_64/gnu/arch_memset_avx2.S b/libs/libc/machine/x86_64/gnu/arch_memset_avx2.S
index 3b39b0c..c293b15 100644
--- a/libs/libc/machine/x86_64/gnu/arch_memset_avx2.S
+++ b/libs/libc/machine/x86_64/gnu/arch_memset_avx2.S
@@ -1,8 +1,8 @@
/*********************************************************************************
* libs/libc/machine/x86_64/gnu/arch_memset_avx2.S
*
- * Copyright (c) 2014, Intel Corporation
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/x86_64/gnu/arch_memset_sse2.S b/libs/libc/machine/x86_64/gnu/arch_memset_sse2.S
index 1b6961c..3341aed 100644
--- a/libs/libc/machine/x86_64/gnu/arch_memset_sse2.S
+++ b/libs/libc/machine/x86_64/gnu/arch_memset_sse2.S
@@ -1,8 +1,8 @@
/*********************************************************************************
* libs/libc/machine/x86_64/gnu/arch_memset_sse2.S
*
- * Copyright (c) 2014, Intel Corporation
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/x86_64/gnu/arch_stpcpy.S b/libs/libc/machine/x86_64/gnu/arch_stpcpy.S
index d9a2bd8..2d31898 100644
--- a/libs/libc/machine/x86_64/gnu/arch_stpcpy.S
+++ b/libs/libc/machine/x86_64/gnu/arch_stpcpy.S
@@ -1,8 +1,8 @@
/*********************************************************************************
* libs/libc/machine/x86_64/gnu/arch_stpcpy.S
*
- * Copyright (c) 2014, Intel Corporation
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/x86_64/gnu/arch_stpncpy.S b/libs/libc/machine/x86_64/gnu/arch_stpncpy.S
index cff948d..f478623 100644
--- a/libs/libc/machine/x86_64/gnu/arch_stpncpy.S
+++ b/libs/libc/machine/x86_64/gnu/arch_stpncpy.S
@@ -1,8 +1,8 @@
/*********************************************************************************
* libs/libc/machine/x86_64/gnu/arch_strpcpy.S
*
- * Copyright (c) 2014, Intel Corporation
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/x86_64/gnu/arch_strcat.S b/libs/libc/machine/x86_64/gnu/arch_strcat.S
index f760315..6ca704b 100644
--- a/libs/libc/machine/x86_64/gnu/arch_strcat.S
+++ b/libs/libc/machine/x86_64/gnu/arch_strcat.S
@@ -1,8 +1,8 @@
/*********************************************************************************
* libs/libc/machine/x86_64/gnu/arch_strcat.S
*
- * Copyright (c) 2014, Intel Corporation
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/x86_64/gnu/arch_strcmp.S b/libs/libc/machine/x86_64/gnu/arch_strcmp.S
index 4b75831..b112a64 100644
--- a/libs/libc/machine/x86_64/gnu/arch_strcmp.S
+++ b/libs/libc/machine/x86_64/gnu/arch_strcmp.S
@@ -1,8 +1,8 @@
/*********************************************************************************
* libs/libc/machine/x86_64/gnu/arch_strcmp.S
*
- * Copyright (c) 2014, Intel Corporation
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/x86_64/gnu/arch_strcpy.S b/libs/libc/machine/x86_64/gnu/arch_strcpy.S
index 7164518..380fb1b 100644
--- a/libs/libc/machine/x86_64/gnu/arch_strcpy.S
+++ b/libs/libc/machine/x86_64/gnu/arch_strcpy.S
@@ -1,8 +1,8 @@
/*********************************************************************************
* libs/libc/machine/x86_64/gnu/arch_strcpy.S
*
- * Copyright (c) 2014, Intel Corporation
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/x86_64/gnu/arch_strlen.S b/libs/libc/machine/x86_64/gnu/arch_strlen.S
index b0128a7..157e977 100644
--- a/libs/libc/machine/x86_64/gnu/arch_strlen.S
+++ b/libs/libc/machine/x86_64/gnu/arch_strlen.S
@@ -1,8 +1,8 @@
/*********************************************************************************
* libs/libc/machine/x86_64/gnu/arch_strlen.S
*
- * Copyright (c) 2014, Intel Corporation
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/x86_64/gnu/arch_strncmp.S b/libs/libc/machine/x86_64/gnu/arch_strncmp.S
index d13d9d3..b17877c 100644
--- a/libs/libc/machine/x86_64/gnu/arch_strncmp.S
+++ b/libs/libc/machine/x86_64/gnu/arch_strncmp.S
@@ -1,8 +1,8 @@
/*********************************************************************************
* libs/libc/machine/x86_64/gnu/arch_strncmp.S
*
- * Copyright (c) 2014, Intel Corporation
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/x86_64/gnu/arch_strncpy.S b/libs/libc/machine/x86_64/gnu/arch_strncpy.S
index 42ad3c0..e87851a 100644
--- a/libs/libc/machine/x86_64/gnu/arch_strncpy.S
+++ b/libs/libc/machine/x86_64/gnu/arch_strncpy.S
@@ -1,8 +1,8 @@
/*********************************************************************************
* libs/libc/machine/x86_64/gnu/arch_strncpy.S
*
- * Copyright (c) 2014, Intel Corporation
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/x86_64/gnu/cache.h b/libs/libc/machine/x86_64/gnu/cache.h
index 444e36f..3ff2433 100644
--- a/libs/libc/machine/x86_64/gnu/cache.h
+++ b/libs/libc/machine/x86_64/gnu/cache.h
@@ -1,8 +1,8 @@
/*********************************************************************************
* libs/libc/machine/x86_64/gnu/cache.h
*
- * Copyright (c) 2014, Intel Corporation
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
diff --git a/libs/libc/machine/xtensa/CMakeLists.txt b/libs/libc/machine/xtensa/CMakeLists.txt
index 25fbb02..0f46f6c 100644
--- a/libs/libc/machine/xtensa/CMakeLists.txt
+++ b/libs/libc/machine/xtensa/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/machine/xtensa/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/machine/xtensa/Make.defs b/libs/libc/machine/xtensa/Make.defs
index 78fb412..3f38e09 100644
--- a/libs/libc/machine/xtensa/Make.defs
+++ b/libs/libc/machine/xtensa/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/machine/xtensa/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/xtensa/arch_elf.c b/libs/libc/machine/xtensa/arch_elf.c
index 3e7558b..c9911dc 100644
--- a/libs/libc/machine/xtensa/arch_elf.c
+++ b/libs/libc/machine/xtensa/arch_elf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/xtensa/arch_elf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/xtensa/arch_memcpy.S b/libs/libc/machine/xtensa/arch_memcpy.S
index a92e33d..a75898a 100644
--- a/libs/libc/machine/xtensa/arch_memcpy.S
+++ b/libs/libc/machine/xtensa/arch_memcpy.S
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/xtensa/arch_memcpy.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/xtensa/arch_memmove.S b/libs/libc/machine/xtensa/arch_memmove.S
index 658635f..f9e15d9 100644
--- a/libs/libc/machine/xtensa/arch_memmove.S
+++ b/libs/libc/machine/xtensa/arch_memmove.S
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/xtensa/arch_memset.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/xtensa/arch_memset.S b/libs/libc/machine/xtensa/arch_memset.S
index 896766e..7ef503f 100644
--- a/libs/libc/machine/xtensa/arch_memset.S
+++ b/libs/libc/machine/xtensa/arch_memset.S
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/xtensa/arch_memset.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/xtensa/arch_setjmp.S b/libs/libc/machine/xtensa/arch_setjmp.S
index b60add3..8f085fc 100644
--- a/libs/libc/machine/xtensa/arch_setjmp.S
+++ b/libs/libc/machine/xtensa/arch_setjmp.S
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/xtensa/arch_setjmp.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/xtensa/arch_strcmp.S b/libs/libc/machine/xtensa/arch_strcmp.S
index a3fabd8..7bc6782 100644
--- a/libs/libc/machine/xtensa/arch_strcmp.S
+++ b/libs/libc/machine/xtensa/arch_strcmp.S
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/xtensa/arch_strcmp.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/xtensa/arch_strcpy.S b/libs/libc/machine/xtensa/arch_strcpy.S
index 24efd7b..a2e53b9 100644
--- a/libs/libc/machine/xtensa/arch_strcpy.S
+++ b/libs/libc/machine/xtensa/arch_strcpy.S
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/xtensa/arch_strcpy.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/xtensa/arch_strlen.S b/libs/libc/machine/xtensa/arch_strlen.S
index 27c9eb4..429ef7b 100644
--- a/libs/libc/machine/xtensa/arch_strlen.S
+++ b/libs/libc/machine/xtensa/arch_strlen.S
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/xtensa/arch_strlen.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/xtensa/arch_strncpy.S b/libs/libc/machine/xtensa/arch_strncpy.S
index 17625dc..5073f2b 100644
--- a/libs/libc/machine/xtensa/arch_strncpy.S
+++ b/libs/libc/machine/xtensa/arch_strncpy.S
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/xtensa/arch_strncpy.S
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/machine/xtensa/xtensa_asm.h b/libs/libc/machine/xtensa/xtensa_asm.h
index 9913763..9c7def8 100644
--- a/libs/libc/machine/xtensa/xtensa_asm.h
+++ b/libs/libc/machine/xtensa/xtensa_asm.h
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/machine/xtensa/xtensa_asm.h
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/CMakeLists.txt b/libs/libc/misc/CMakeLists.txt
index 00fb681..8dc028c 100644
--- a/libs/libc/misc/CMakeLists.txt
+++ b/libs/libc/misc/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/misc/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/misc/Make.defs b/libs/libc/misc/Make.defs
index 9089921..2369fec 100644
--- a/libs/libc/misc/Make.defs
+++ b/libs/libc/misc/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/misc/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_bitmap.c b/libs/libc/misc/lib_bitmap.c
index c0f0d6a..bb919a4 100644
--- a/libs/libc/misc/lib_bitmap.c
+++ b/libs/libc/misc/lib_bitmap.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_bitmap.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_crc16.c b/libs/libc/misc/lib_crc16.c
index a35ff44..171b9a1 100644
--- a/libs/libc/misc/lib_crc16.c
+++ b/libs/libc/misc/lib_crc16.c
@@ -1,6 +1,8 @@
/************************************************************************************************
* libs/libc/misc/lib_crc16.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_crc16ccitt.c b/libs/libc/misc/lib_crc16ccitt.c
index 9612823..e041d9c 100644
--- a/libs/libc/misc/lib_crc16ccitt.c
+++ b/libs/libc/misc/lib_crc16ccitt.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_crc16ccitt.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_crc32.c b/libs/libc/misc/lib_crc32.c
index e464157..e5e817d 100644
--- a/libs/libc/misc/lib_crc32.c
+++ b/libs/libc/misc/lib_crc32.c
@@ -1,11 +1,26 @@
/************************************************************************************************
* libs/libc/misc/lib_crc32.c
*
- * This file is a part of NuttX:
+ * SPDX-License-Identifier: Apache-2.0
*
- * Copyright (C) 2010-2011 Gregory Nutt. All rights reserved.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership. The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at
*
- * The logic in this file was developed by Gary S. Brown:
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ ***********************************************************************************************/
+
+/* The logic in this file was developed by Gary S. Brown:
*
* COPYRIGHT (C) 1986 Gary S. Brown. You may use this program, or code or tables
* extracted from it, as desired without restriction.
diff --git a/libs/libc/misc/lib_crc64.c b/libs/libc/misc/lib_crc64.c
index 6ad3989..8c4296d 100644
--- a/libs/libc/misc/lib_crc64.c
+++ b/libs/libc/misc/lib_crc64.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_crc64.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_crc8.c b/libs/libc/misc/lib_crc8.c
index c23e687..320eabc 100644
--- a/libs/libc/misc/lib_crc8.c
+++ b/libs/libc/misc/lib_crc8.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_crc8.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_crc8ccitt.c b/libs/libc/misc/lib_crc8ccitt.c
index 8ad84a5..e508148 100644
--- a/libs/libc/misc/lib_crc8ccitt.c
+++ b/libs/libc/misc/lib_crc8ccitt.c
@@ -1,6 +1,8 @@
/***************************************************************************
* libs/libc/misc/lib_crc8ccitt.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_crc8table.c b/libs/libc/misc/lib_crc8table.c
index b5d998a..d71542a 100644
--- a/libs/libc/misc/lib_crc8table.c
+++ b/libs/libc/misc/lib_crc8table.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_crc8table.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_cxx_initialize.c b/libs/libc/misc/lib_cxx_initialize.c
index ffdbb97..0d7aaaa 100644
--- a/libs/libc/misc/lib_cxx_initialize.c
+++ b/libs/libc/misc/lib_cxx_initialize.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_cxx_initialize.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_debug.c b/libs/libc/misc/lib_debug.c
index 0693e28..75ae82f 100644
--- a/libs/libc/misc/lib_debug.c
+++ b/libs/libc/misc/lib_debug.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_debug.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_dumpbuffer.c b/libs/libc/misc/lib_dumpbuffer.c
index 6c38377..00bb820 100644
--- a/libs/libc/misc/lib_dumpbuffer.c
+++ b/libs/libc/misc/lib_dumpbuffer.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_dumpbuffer.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_dumpvbuffer.c b/libs/libc/misc/lib_dumpvbuffer.c
index 7d08687..286a787 100644
--- a/libs/libc/misc/lib_dumpvbuffer.c
+++ b/libs/libc/misc/lib_dumpvbuffer.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_dumpvbuffer.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_envpath.c b/libs/libc/misc/lib_envpath.c
index 73a4ed1..70d551a 100644
--- a/libs/libc/misc/lib_envpath.c
+++ b/libs/libc/misc/lib_envpath.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_envpath.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_err.c b/libs/libc/misc/lib_err.c
index ff0c835..a8a27c5 100644
--- a/libs/libc/misc/lib_err.c
+++ b/libs/libc/misc/lib_err.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_err.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_execinfo.c b/libs/libc/misc/lib_execinfo.c
index 90fb396..55c9755 100644
--- a/libs/libc/misc/lib_execinfo.c
+++ b/libs/libc/misc/lib_execinfo.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_execinfo.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_fchmodat.c b/libs/libc/misc/lib_fchmodat.c
index c2a9681..65186a3 100644
--- a/libs/libc/misc/lib_fchmodat.c
+++ b/libs/libc/misc/lib_fchmodat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_fchmodat.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_fdcheck.c b/libs/libc/misc/lib_fdcheck.c
index 504e98d..f14d3b7 100644
--- a/libs/libc/misc/lib_fdcheck.c
+++ b/libs/libc/misc/lib_fdcheck.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_fdcheck.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_fdsan.c b/libs/libc/misc/lib_fdsan.c
index 628aa65..f85dd59 100644
--- a/libs/libc/misc/lib_fdsan.c
+++ b/libs/libc/misc/lib_fdsan.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_fdsan.c
- * Copyright (C) 2018 The Android Open Source Project
- * All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2018 The Android Open Source Project
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/misc/lib_fnmatch.c b/libs/libc/misc/lib_fnmatch.c
index 7e2e894..e736ee7 100644
--- a/libs/libc/misc/lib_fnmatch.c
+++ b/libs/libc/misc/lib_fnmatch.c
@@ -1,14 +1,11 @@
/****************************************************************************
* libs/libc/misc/lib_fnmatch.c
*
- * Simple shell-style filename pattern matcher written by Jef Poskanzer
- * This pattern matcher only handles '?', '*' and '**', and multiple
- * patterns separated by '|'.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1995, 2000 by Jef Poskanzer <jef@mail.acme.com>.
+ * SPDX-FileContributor: with extensions by Ken Pettit
*
- * Copyright 1995, 2000 by Jef Poskanzer <jef@mail.acme.com>.
- * All rights reserved.
- *
- * With extensions by Ken Pettit.
+ * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/misc/lib_fstatat.c b/libs/libc/misc/lib_fstatat.c
index 99003aa..f966071 100644
--- a/libs/libc/misc/lib_fstatat.c
+++ b/libs/libc/misc/lib_fstatat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_fstatat.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_ftok.c b/libs/libc/misc/lib_ftok.c
index a5c7041..20022ea 100644
--- a/libs/libc/misc/lib_ftok.c
+++ b/libs/libc/misc/lib_ftok.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_ftok.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_getfullpath.c b/libs/libc/misc/lib_getfullpath.c
index 7e457c7..b7f9303 100644
--- a/libs/libc/misc/lib_getfullpath.c
+++ b/libs/libc/misc/lib_getfullpath.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_getfullpath.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_getnprocs.c b/libs/libc/misc/lib_getnprocs.c
index 80cc96a..565c541 100644
--- a/libs/libc/misc/lib_getnprocs.c
+++ b/libs/libc/misc/lib_getnprocs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_getnprocs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_getrandom.c b/libs/libc/misc/lib_getrandom.c
index f6eebe5..eb79960 100644
--- a/libs/libc/misc/lib_getrandom.c
+++ b/libs/libc/misc/lib_getrandom.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_getrandom.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_glob.c b/libs/libc/misc/lib_glob.c
index 9e25938..e86811b 100644
--- a/libs/libc/misc/lib_glob.c
+++ b/libs/libc/misc/lib_glob.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_glob.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_idr.c b/libs/libc/misc/lib_idr.c
index 1c98bf1..a7c95e2 100644
--- a/libs/libc/misc/lib_idr.c
+++ b/libs/libc/misc/lib_idr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_idr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_impure.c b/libs/libc/misc/lib_impure.c
index a6e12ce..dc34005 100644
--- a/libs/libc/misc/lib_impure.c
+++ b/libs/libc/misc/lib_impure.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_impure.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_instrument.c b/libs/libc/misc/lib_instrument.c
index e16af3b..767acb0 100644
--- a/libs/libc/misc/lib_instrument.c
+++ b/libs/libc/misc/lib_instrument.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_instrument.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_kbddecode.c b/libs/libc/misc/lib_kbddecode.c
index dac910a..b743a55 100644
--- a/libs/libc/misc/lib_kbddecode.c
+++ b/libs/libc/misc/lib_kbddecode.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_kbddecode.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_kbdencode.c b/libs/libc/misc/lib_kbdencode.c
index d64bc8b..d4e3817 100644
--- a/libs/libc/misc/lib_kbdencode.c
+++ b/libs/libc/misc/lib_kbdencode.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_kbdencode.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_mallopt.c b/libs/libc/misc/lib_mallopt.c
index 31234e9..6b57455 100644
--- a/libs/libc/misc/lib_mallopt.c
+++ b/libs/libc/misc/lib_mallopt.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_mallopt.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_memfd.c b/libs/libc/misc/lib_memfd.c
index d53ed4f..58d1dac 100644
--- a/libs/libc/misc/lib_memfd.c
+++ b/libs/libc/misc/lib_memfd.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_memfd.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
@@ -74,4 +76,4 @@
return ret;
#endif
}
-#endif
\ No newline at end of file
+#endif
diff --git a/libs/libc/misc/lib_memoryregion.c b/libs/libc/misc/lib_memoryregion.c
index b94a5f8..4fe18b2 100644
--- a/libs/libc/misc/lib_memoryregion.c
+++ b/libs/libc/misc/lib_memoryregion.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_memoryregion.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_mkdirat.c b/libs/libc/misc/lib_mkdirat.c
index db99dbd..df30609 100644
--- a/libs/libc/misc/lib_mkdirat.c
+++ b/libs/libc/misc/lib_mkdirat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_mkdirat.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_mkfifo.c b/libs/libc/misc/lib_mkfifo.c
index bbe3551..407f08a 100644
--- a/libs/libc/misc/lib_mkfifo.c
+++ b/libs/libc/misc/lib_mkfifo.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_mkfifo.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_mknod.c b/libs/libc/misc/lib_mknod.c
index c4a3bb8..afb70a6 100644
--- a/libs/libc/misc/lib_mknod.c
+++ b/libs/libc/misc/lib_mknod.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_mknod.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_mutex.c b/libs/libc/misc/lib_mutex.c
index bbf960d..6e0acc9 100644
--- a/libs/libc/misc/lib_mutex.c
+++ b/libs/libc/misc/lib_mutex.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_mutex.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_ncompress.c b/libs/libc/misc/lib_ncompress.c
index a1c5fc8..683e3d3 100644
--- a/libs/libc/misc/lib_ncompress.c
+++ b/libs/libc/misc/lib_ncompress.c
@@ -1,14 +1,28 @@
/****************************************************************************
* libs/libc/misc/lib_ncompress.c
- * File compression ala IEEE Computer, Mar 1992.
*
- * Copyright (C) 2008 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <gnutt@nuttx.org>
+ * SPDX-License-Identifier: Apache-2.0
*
- * This is the file compress24.c extracted from the ncompress-4.2.4 release
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership. The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ ****************************************************************************/
+
+/* This is the file compress24.c extracted from the ncompress-4.2.4 release
* and adapted for NuttX. The original code was released into the public
- * domain. This NuttX version is re-released under the standard NuttX
- * BSD 3-clause license. The original authors are listed below:
+ * domain. The original authors are listed below:
*
* Spencer W. Thomas (decvax!harpo!utah-cs!utah-gr!thomas)
* Jim McKie (decvax!mcvax!jim)
@@ -19,34 +33,6 @@
* Dave Mack (csu@alembic.acs.com)
* Peter Jannesen, Network Communication Systems
* (peter@ncs.nl)
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in
- * the documentation and/or other materials provided with the
- * distribution.
- * 3. Neither the name NuttX nor the names of its contributors may be
- * used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
- * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
- * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
- * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
- * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- *
****************************************************************************/
/****************************************************************************
diff --git a/libs/libc/misc/lib_openat.c b/libs/libc/misc/lib_openat.c
index 9ce18d7..9c35df7 100644
--- a/libs/libc/misc/lib_openat.c
+++ b/libs/libc/misc/lib_openat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_openat.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_pathbuffer.c b/libs/libc/misc/lib_pathbuffer.c
index 3bc299b..834b489 100644
--- a/libs/libc/misc/lib_pathbuffer.c
+++ b/libs/libc/misc/lib_pathbuffer.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_pathbuffer.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_slcddecode.c b/libs/libc/misc/lib_slcddecode.c
index df3f522..9d29ee4 100644
--- a/libs/libc/misc/lib_slcddecode.c
+++ b/libs/libc/misc/lib_slcddecode.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_slcddecode.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_slcdencode.c b/libs/libc/misc/lib_slcdencode.c
index f47b03f..4cee9b5 100644
--- a/libs/libc/misc/lib_slcdencode.c
+++ b/libs/libc/misc/lib_slcdencode.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_slcdencode.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_tea_decrypt.c b/libs/libc/misc/lib_tea_decrypt.c
index 57de189..4be2278 100644
--- a/libs/libc/misc/lib_tea_decrypt.c
+++ b/libs/libc/misc/lib_tea_decrypt.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_tea_decrypt.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_tea_encrypt.c b/libs/libc/misc/lib_tea_encrypt.c
index 216418d..9a306a0 100644
--- a/libs/libc/misc/lib_tea_encrypt.c
+++ b/libs/libc/misc/lib_tea_encrypt.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_tea_encrypt.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_uadd32x64.c b/libs/libc/misc/lib_uadd32x64.c
index 77446ba..5bb8a26 100644
--- a/libs/libc/misc/lib_uadd32x64.c
+++ b/libs/libc/misc/lib_uadd32x64.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_uadd32x64.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_uadd64.c b/libs/libc/misc/lib_uadd64.c
index 70991bb..c59ed5a 100644
--- a/libs/libc/misc/lib_uadd64.c
+++ b/libs/libc/misc/lib_uadd64.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_uadd64.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_umask.c b/libs/libc/misc/lib_umask.c
index aa8cb03..d1e340b 100644
--- a/libs/libc/misc/lib_umask.c
+++ b/libs/libc/misc/lib_umask.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_umask.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_umul32.c b/libs/libc/misc/lib_umul32.c
index 693d925..ca8ab61 100644
--- a/libs/libc/misc/lib_umul32.c
+++ b/libs/libc/misc/lib_umul32.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_umul32.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_umul32x64.c b/libs/libc/misc/lib_umul32x64.c
index 09f7b9f..ffc7524 100644
--- a/libs/libc/misc/lib_umul32x64.c
+++ b/libs/libc/misc/lib_umul32x64.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_umul32x64.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_umul64.c b/libs/libc/misc/lib_umul64.c
index 415afa2..a1453f1 100644
--- a/libs/libc/misc/lib_umul64.c
+++ b/libs/libc/misc/lib_umul64.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_umul64.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_usub64.c b/libs/libc/misc/lib_usub64.c
index dac0d8b..5a6d8f7 100644
--- a/libs/libc/misc/lib_usub64.c
+++ b/libs/libc/misc/lib_usub64.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_usub64.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_usub64x32.c b/libs/libc/misc/lib_usub64x32.c
index df8e226..65503ae 100644
--- a/libs/libc/misc/lib_usub64x32.c
+++ b/libs/libc/misc/lib_usub64x32.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_usub64x32.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_utimensat.c b/libs/libc/misc/lib_utimensat.c
index 989bd8e..4c16ace 100644
--- a/libs/libc/misc/lib_utimensat.c
+++ b/libs/libc/misc/lib_utimensat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_utimensat.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/misc/lib_utsname.c b/libs/libc/misc/lib_utsname.c
index 2ae7064..77fc671 100644
--- a/libs/libc/misc/lib_utsname.c
+++ b/libs/libc/misc/lib_utsname.c
@@ -1,8 +1,9 @@
/****************************************************************************
* libs/libc/misc/lib_utsname.c
*
- * Copyright (C) 2015 Stavros Polymenis. All rights reserved.
- * Author: Stavros Polymenis <sp@orbitalfox.com>
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2015 Stavros Polymenis. All rights reserved.
+ * SPDX-FileContributor: Stavros Polymenis <sp@orbitalfox.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/misc/lib_xorshift128.c b/libs/libc/misc/lib_xorshift128.c
index 3bda6f7..8d557bb 100644
--- a/libs/libc/misc/lib_xorshift128.c
+++ b/libs/libc/misc/lib_xorshift128.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/misc/lib_xorshift128.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/CMakeLists.txt b/libs/libc/modlib/CMakeLists.txt
index e1606b6..7372cad 100644
--- a/libs/libc/modlib/CMakeLists.txt
+++ b/libs/libc/modlib/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/modlib/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/modlib/Make.defs b/libs/libc/modlib/Make.defs
index 8b6f1d0..c9f5c22 100644
--- a/libs/libc/modlib/Make.defs
+++ b/libs/libc/modlib/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/modlib/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib.h b/libs/libc/modlib/modlib.h
index 9b43674..74043cc 100644
--- a/libs/libc/modlib/modlib.h
+++ b/libs/libc/modlib/modlib.h
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib.h
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib_bind.c b/libs/libc/modlib/modlib_bind.c
index 8944325..51703c6 100644
--- a/libs/libc/modlib/modlib_bind.c
+++ b/libs/libc/modlib/modlib_bind.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib_bind.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib_depend.c b/libs/libc/modlib/modlib_depend.c
index 0f7eaf4..258597a 100644
--- a/libs/libc/modlib/modlib_depend.c
+++ b/libs/libc/modlib/modlib_depend.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib_depend.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib_globals.S b/libs/libc/modlib/modlib_globals.S
index 4319ae0..a458fda 100644
--- a/libs/libc/modlib/modlib_globals.S
+++ b/libs/libc/modlib/modlib_globals.S
@@ -1,3 +1,25 @@
+/****************************************************************************
+ * libs/libc/modlib/modlib_globals.S
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership. The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
+ *
+ ****************************************************************************/
+
#ifdef __CYGWIN__
# define SYMBOL(s) _##s
# define GLOBAL .global
diff --git a/libs/libc/modlib/modlib_init.c b/libs/libc/modlib/modlib_init.c
index 6b269c9..6f1c709 100644
--- a/libs/libc/modlib/modlib_init.c
+++ b/libs/libc/modlib/modlib_init.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib_init.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib_iobuffer.c b/libs/libc/modlib/modlib_iobuffer.c
index 1c99e9c..f9b75f7 100644
--- a/libs/libc/modlib/modlib_iobuffer.c
+++ b/libs/libc/modlib/modlib_iobuffer.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib_iobuffer.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib_load.c b/libs/libc/modlib/modlib_load.c
index 4aaae3a..0d36f97 100644
--- a/libs/libc/modlib/modlib_load.c
+++ b/libs/libc/modlib/modlib_load.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib_load.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib_loadhdrs.c b/libs/libc/modlib/modlib_loadhdrs.c
index 498b505..5f8a65e 100644
--- a/libs/libc/modlib/modlib_loadhdrs.c
+++ b/libs/libc/modlib/modlib_loadhdrs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib_loadhdrs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib_read.c b/libs/libc/modlib/modlib_read.c
index beef1ee..8f0fb09 100644
--- a/libs/libc/modlib/modlib_read.c
+++ b/libs/libc/modlib/modlib_read.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib_read.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib_registry.c b/libs/libc/modlib/modlib_registry.c
index 1453ec9..3e8dacd 100644
--- a/libs/libc/modlib/modlib_registry.c
+++ b/libs/libc/modlib/modlib_registry.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib_registry.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib_sections.c b/libs/libc/modlib/modlib_sections.c
index 917f6b4..25f9973 100644
--- a/libs/libc/modlib/modlib_sections.c
+++ b/libs/libc/modlib/modlib_sections.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib_sections.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib_symbols.c b/libs/libc/modlib/modlib_symbols.c
index 247d5cf..7cf0b4f 100644
--- a/libs/libc/modlib/modlib_symbols.c
+++ b/libs/libc/modlib/modlib_symbols.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib_symbols.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib_symtab.c b/libs/libc/modlib/modlib_symtab.c
index 03e27e0..e7b34c6 100644
--- a/libs/libc/modlib/modlib_symtab.c
+++ b/libs/libc/modlib/modlib_symtab.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib_symtab.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib_uninit.c b/libs/libc/modlib/modlib_uninit.c
index 7cd9de6..e6c22ed 100644
--- a/libs/libc/modlib/modlib_uninit.c
+++ b/libs/libc/modlib/modlib_uninit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib_uninit.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib_unload.c b/libs/libc/modlib/modlib_unload.c
index 981e2a8..9d36cc7 100644
--- a/libs/libc/modlib/modlib_unload.c
+++ b/libs/libc/modlib/modlib_unload.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib_unload.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/modlib/modlib_verify.c b/libs/libc/modlib/modlib_verify.c
index d1aea6b..4f59c43 100644
--- a/libs/libc/modlib/modlib_verify.c
+++ b/libs/libc/modlib/modlib_verify.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/modlib/modlib_verify.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/CMakeLists.txt b/libs/libc/net/CMakeLists.txt
index f14620c..0c46520 100644
--- a/libs/libc/net/CMakeLists.txt
+++ b/libs/libc/net/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/net/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/net/Make.defs b/libs/libc/net/Make.defs
index 3cee434..8b7e17f 100644
--- a/libs/libc/net/Make.defs
+++ b/libs/libc/net/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/net/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_accept.c b/libs/libc/net/lib_accept.c
index fa7c8ee..c0b4eb8 100644
--- a/libs/libc/net/lib_accept.c
+++ b/libs/libc/net/lib_accept.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_accept.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_addrconfig.c b/libs/libc/net/lib_addrconfig.c
index c6f5832..8fb7392 100644
--- a/libs/libc/net/lib_addrconfig.c
+++ b/libs/libc/net/lib_addrconfig.c
@@ -1,8 +1,9 @@
/****************************************************************************
* libs/libc/net/lib_addrconfig.c
*
- * Author: Max Nekludov <macscomp@gmail.com>
- * Copyright (c) 2015, Max Nekludov. All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2015, Max Nekludov. All rights reserved.
+ * SPDX-FileContributor: Author: Max Nekludov <macscomp@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/net/lib_addroute.c b/libs/libc/net/lib_addroute.c
index 7f6bac6..198f061 100644
--- a/libs/libc/net/lib_addroute.c
+++ b/libs/libc/net/lib_addroute.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_addroute.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_base64.c b/libs/libc/net/lib_base64.c
index 28a158d..039ffbd 100644
--- a/libs/libc/net/lib_base64.c
+++ b/libs/libc/net/lib_base64.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_base64.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_delroute.c b/libs/libc/net/lib_delroute.c
index f4c3681..27bc2e1 100644
--- a/libs/libc/net/lib_delroute.c
+++ b/libs/libc/net/lib_delroute.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_delroute.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_etheraton.c b/libs/libc/net/lib_etheraton.c
index aab68f4..b1dd24f 100644
--- a/libs/libc/net/lib_etheraton.c
+++ b/libs/libc/net/lib_etheraton.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_etheraton.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_etherntoa.c b/libs/libc/net/lib_etherntoa.c
index 48f4c96..6901b0a9 100644
--- a/libs/libc/net/lib_etherntoa.c
+++ b/libs/libc/net/lib_etherntoa.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_etherntoa.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_freeifaddrs.c b/libs/libc/net/lib_freeifaddrs.c
index 2e68969..36d1693 100644
--- a/libs/libc/net/lib_freeifaddrs.c
+++ b/libs/libc/net/lib_freeifaddrs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_freeifaddrs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_freenameindex.c b/libs/libc/net/lib_freenameindex.c
index d88c1f3..27e3f86 100644
--- a/libs/libc/net/lib_freenameindex.c
+++ b/libs/libc/net/lib_freenameindex.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_freenameindex.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_getifaddrs.c b/libs/libc/net/lib_getifaddrs.c
index 49f6f2e..7a722e9 100644
--- a/libs/libc/net/lib_getifaddrs.c
+++ b/libs/libc/net/lib_getifaddrs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_getifaddrs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_htonl.c b/libs/libc/net/lib_htonl.c
index 8f1a00b..92c6e16 100644
--- a/libs/libc/net/lib_htonl.c
+++ b/libs/libc/net/lib_htonl.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_htonl.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_htonq.c b/libs/libc/net/lib_htonq.c
index 7366140..1c8c971 100644
--- a/libs/libc/net/lib_htonq.c
+++ b/libs/libc/net/lib_htonq.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_htonq.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_htons.c b/libs/libc/net/lib_htons.c
index ebef3c6..f3bfda3 100644
--- a/libs/libc/net/lib_htons.c
+++ b/libs/libc/net/lib_htons.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_htons.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_indextoname.c b/libs/libc/net/lib_indextoname.c
index acd547f..bc6adcd 100644
--- a/libs/libc/net/lib_indextoname.c
+++ b/libs/libc/net/lib_indextoname.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_indextoname.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_inetaddr.c b/libs/libc/net/lib_inetaddr.c
index 13f8b78..3bbb288 100644
--- a/libs/libc/net/lib_inetaddr.c
+++ b/libs/libc/net/lib_inetaddr.c
@@ -1,12 +1,10 @@
/****************************************************************************
* libs/libc/net/lib_inetaddr.c
*
- * Copyright (C) 2011 Yu Qiang. All rights reserved.
- * Author: Yu Qiang <yuq825@gmail.com>
- *
- * This file is a part of NuttX:
- *
- * Copyright (C) 2011 Gregory Nutt. All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2011 Yu Qiang. All rights reserved.
+ * SPDX-FileCopyrightText: 2012 Gregory Nutt. All rights reserved.
+ * SPDX-FileContributor: Yu Qiang <yuq825@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/net/lib_inetaton.c b/libs/libc/net/lib_inetaton.c
index 4778918..03dbe89 100644
--- a/libs/libc/net/lib_inetaton.c
+++ b/libs/libc/net/lib_inetaton.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_inetaton.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_inetnetwork.c b/libs/libc/net/lib_inetnetwork.c
index 15afc6a..5d5cba7 100644
--- a/libs/libc/net/lib_inetnetwork.c
+++ b/libs/libc/net/lib_inetnetwork.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_inetnetwork.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_inetntoa.c b/libs/libc/net/lib_inetntoa.c
index dc672ca..64343da 100644
--- a/libs/libc/net/lib_inetntoa.c
+++ b/libs/libc/net/lib_inetntoa.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_inetntoa.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_inetntop.c b/libs/libc/net/lib_inetntop.c
index 0fb0acd..dbaf10e 100644
--- a/libs/libc/net/lib_inetntop.c
+++ b/libs/libc/net/lib_inetntop.c
@@ -1,14 +1,11 @@
/****************************************************************************
* libs/libc/net/lib_inetntop.c
*
- * Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <gnutt@nuttx.org>
- *
- * Includes some logic extracted from hwport_ftpd, written by Jaehyuk Cho
- * <minzkn@minzkn.com> which was released under the BSD license.
- *
- * Copyright (C) HWPORT.COM. All rights reserved.
- * Author: JAEHYUK CHO <mailto:minzkn@minzkn.com>
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2012, 2015 Gregory Nutt. All rights reserved.
+ * SPDX-FileCopyrightText: HWPORT.COM. All rights reserved.
+ * SPDX-FileContributor: Gregory Nutt <gnutt@nuttx.org>
+ * SPDX-FileContributor: JAEHYUK CHO <mailto:minzkn@minzkn.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/net/lib_inetpton.c b/libs/libc/net/lib_inetpton.c
index 724759d..e2ef394 100644
--- a/libs/libc/net/lib_inetpton.c
+++ b/libs/libc/net/lib_inetpton.c
@@ -1,14 +1,11 @@
/****************************************************************************
* libs/libc/net/lib_inetpton.c
*
- * Copyright (C) 2012 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <gnutt@nuttx.org>
- *
- * Includes some logic extracted from hwport_ftpd, written by Jaehyuk Cho
- * <minzkn@minzkn.com> which was released under the BSD license.
- *
- * Copyright (C) HWPORT.COM. All rights reserved.
- * Author: JAEHYUK CHO <mailto:minzkn@minzkn.com>
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2012 Gregory Nutt. All rights reserved.
+ * SPDX-FileCopyrightText: HWPORT.COM. All rights reserved.
+ * SPDX-FileContributor: Gregory Nutt <gnutt@nuttx.org>
+ * SPDX-FileContributor: JAEHYUK CHO <mailto:minzkn@minzkn.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/net/lib_loopback.c b/libs/libc/net/lib_loopback.c
index a85d08a..344dcb6 100644
--- a/libs/libc/net/lib_loopback.c
+++ b/libs/libc/net/lib_loopback.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_loopback.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_nameindex.c b/libs/libc/net/lib_nameindex.c
index 42a91c2..fa22eba 100644
--- a/libs/libc/net/lib_nameindex.c
+++ b/libs/libc/net/lib_nameindex.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_nameindex.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/net/lib_nametoindex.c b/libs/libc/net/lib_nametoindex.c
index 8adc638..c8962a0 100644
--- a/libs/libc/net/lib_nametoindex.c
+++ b/libs/libc/net/lib_nametoindex.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/net/lib_nametoindex.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/CMakeLists.txt b/libs/libc/netdb/CMakeLists.txt
index c4b7d75..3bca87c 100644
--- a/libs/libc/netdb/CMakeLists.txt
+++ b/libs/libc/netdb/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/netdb/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/netdb/Make.defs b/libs/libc/netdb/Make.defs
index 41f7b28..39f7bee 100644
--- a/libs/libc/netdb/Make.defs
+++ b/libs/libc/netdb/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/netdb/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_dn.c b/libs/libc/netdb/lib_dn.c
index 5f1d0b5..6003c27 100644
--- a/libs/libc/netdb/lib_dn.c
+++ b/libs/libc/netdb/lib_dn.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_dn.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_dns.h b/libs/libc/netdb/lib_dns.h
index 40f40c8..8385ca5 100644
--- a/libs/libc/netdb/lib_dns.h
+++ b/libs/libc/netdb/lib_dns.h
@@ -1,39 +1,22 @@
/****************************************************************************
* libs/libc/netdb/lib_dns.h
- * DNS resolver code header file.
*
- * Copyright (C) 2007-2009, 2011-2012, 2014 Gregory Nutt.
- * All rights reserved.
- * Author: Gregory Nutt <gnutt@nuttx.org>
+ * SPDX-License-Identifier: Apache-2.0
*
- * Inspired by/based on uIP logic by Adam Dunkels:
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership. The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at
*
- * Copyright (c) 2002-2003, Adam Dunkels. All rights reserved.
- * Author Adam Dunkels <adam@dunkels.com>
+ * http://www.apache.org/licenses/LICENSE-2.0
*
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. The name of the author may not be used to endorse or promote
- * products derived from this software without specific prior
- * written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
- * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
- * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*
****************************************************************************/
diff --git a/libs/libc/netdb/lib_dnsaddserver.c b/libs/libc/netdb/lib_dnsaddserver.c
index 50c71a7..b32d17a 100644
--- a/libs/libc/netdb/lib_dnsaddserver.c
+++ b/libs/libc/netdb/lib_dnsaddserver.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_dnsaddserver.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_dnsbind.c b/libs/libc/netdb/lib_dnsbind.c
index 23b3e91..a61893e 100644
--- a/libs/libc/netdb/lib_dnsbind.c
+++ b/libs/libc/netdb/lib_dnsbind.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_dnsbind.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_dnscache.c b/libs/libc/netdb/lib_dnscache.c
index 1260185..6f6d989 100644
--- a/libs/libc/netdb/lib_dnscache.c
+++ b/libs/libc/netdb/lib_dnscache.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_dnscache.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_dnsdefaultserver.c b/libs/libc/netdb/lib_dnsdefaultserver.c
index e29dcca..8107401 100644
--- a/libs/libc/netdb/lib_dnsdefaultserver.c
+++ b/libs/libc/netdb/lib_dnsdefaultserver.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_dnsdefaultserver.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_dnsforeach.c b/libs/libc/netdb/lib_dnsforeach.c
index fb7e40b..ec39eea 100644
--- a/libs/libc/netdb/lib_dnsforeach.c
+++ b/libs/libc/netdb/lib_dnsforeach.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_dnsforeach.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_dnsinit.c b/libs/libc/netdb/lib_dnsinit.c
index 4ce1dc7..2c312da 100644
--- a/libs/libc/netdb/lib_dnsinit.c
+++ b/libs/libc/netdb/lib_dnsinit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_dnsinit.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_dnsnotify.c b/libs/libc/netdb/lib_dnsnotify.c
index 98a6948..07daeff 100644
--- a/libs/libc/netdb/lib_dnsnotify.c
+++ b/libs/libc/netdb/lib_dnsnotify.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_dnsnotify.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_dnsquery.c b/libs/libc/netdb/lib_dnsquery.c
index a01e79d..0564278 100644
--- a/libs/libc/netdb/lib_dnsquery.c
+++ b/libs/libc/netdb/lib_dnsquery.c
@@ -1,19 +1,11 @@
/****************************************************************************
* libs/libc/netdb/lib_dnsquery.c
- * DNS host name to IP address resolver.
*
- * The DNS resolver functions are used to lookup a hostname and map it to a
- * numerical IP address.
- *
- * Copyright (C) 2007, 2009, 2012, 2014-2018 Gregory Nutt. All rights
- * reserved.
- * Author: Gregory Nutt <gnutt@nuttx.org>
- *
- * Based heavily on portions of uIP:
- *
- * Author: Adam Dunkels <adam@dunkels.com>
- * Copyright (c) 2002-2003, Adam Dunkels.
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-License-Identifier: 2007, 2009, 2012, 2014-2018 Gregory Nutt.
+ * SPDX-License-Identifier: 2002-2003, Adam Dunkels. All rights reserved.
+ * SPDX-FileContributor: Gregory Nutt <gnutt@nuttx.org>
+ * SPDX-FileContributor: Adam Dunkels <adam@dunkels.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/netdb/lib_dnsqueryfamily.c b/libs/libc/netdb/lib_dnsqueryfamily.c
index cfb39aa..34c948c 100644
--- a/libs/libc/netdb/lib_dnsqueryfamily.c
+++ b/libs/libc/netdb/lib_dnsqueryfamily.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_dnsqueryfamily.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_freeaddrinfo.c b/libs/libc/netdb/lib_freeaddrinfo.c
index 93b982d..cb5ddba 100644
--- a/libs/libc/netdb/lib_freeaddrinfo.c
+++ b/libs/libc/netdb/lib_freeaddrinfo.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_freeaddrinfo.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_gaistrerror.c b/libs/libc/netdb/lib_gaistrerror.c
index 56b147b..7bdea95 100644
--- a/libs/libc/netdb/lib_gaistrerror.c
+++ b/libs/libc/netdb/lib_gaistrerror.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_gaistrerror.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_getaddrinfo.c b/libs/libc/netdb/lib_getaddrinfo.c
index 0e2e69f..380cf70 100644
--- a/libs/libc/netdb/lib_getaddrinfo.c
+++ b/libs/libc/netdb/lib_getaddrinfo.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_getaddrinfo.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_gethostbyaddr.c b/libs/libc/netdb/lib_gethostbyaddr.c
index 8afa5a2..8049bd5 100644
--- a/libs/libc/netdb/lib_gethostbyaddr.c
+++ b/libs/libc/netdb/lib_gethostbyaddr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_gethostbyaddr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_gethostbyaddrr.c b/libs/libc/netdb/lib_gethostbyaddrr.c
index 2abb332..ad46bfc 100644
--- a/libs/libc/netdb/lib_gethostbyaddrr.c
+++ b/libs/libc/netdb/lib_gethostbyaddrr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_gethostbyaddrr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_gethostbyname.c b/libs/libc/netdb/lib_gethostbyname.c
index 5a65034..e201461 100644
--- a/libs/libc/netdb/lib_gethostbyname.c
+++ b/libs/libc/netdb/lib_gethostbyname.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_gethostbyname.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_gethostbyname2.c b/libs/libc/netdb/lib_gethostbyname2.c
index d1e486d..1e82b4d 100644
--- a/libs/libc/netdb/lib_gethostbyname2.c
+++ b/libs/libc/netdb/lib_gethostbyname2.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_gethostbyname2.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_gethostbyname2r.c b/libs/libc/netdb/lib_gethostbyname2r.c
index 36884da..4a879b1 100644
--- a/libs/libc/netdb/lib_gethostbyname2r.c
+++ b/libs/libc/netdb/lib_gethostbyname2r.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_gethostbyname2r.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_gethostbynamer.c b/libs/libc/netdb/lib_gethostbynamer.c
index 6a03821..4218e7c 100644
--- a/libs/libc/netdb/lib_gethostbynamer.c
+++ b/libs/libc/netdb/lib_gethostbynamer.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_gethostbynamer.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_gethostentbynamer.c b/libs/libc/netdb/lib_gethostentbynamer.c
index 191143e..45e8512 100644
--- a/libs/libc/netdb/lib_gethostentbynamer.c
+++ b/libs/libc/netdb/lib_gethostentbynamer.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_gethostentbynamer.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_getnameinfo.c b/libs/libc/netdb/lib_getnameinfo.c
index cac204b..3c60c43 100644
--- a/libs/libc/netdb/lib_getnameinfo.c
+++ b/libs/libc/netdb/lib_getnameinfo.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_getnameinfo.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_getservbyname.c b/libs/libc/netdb/lib_getservbyname.c
index a727272..327285e 100644
--- a/libs/libc/netdb/lib_getservbyname.c
+++ b/libs/libc/netdb/lib_getservbyname.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_getservbyname.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_getservbynamer.c b/libs/libc/netdb/lib_getservbynamer.c
index a616d40..a1fe9fe 100644
--- a/libs/libc/netdb/lib_getservbynamer.c
+++ b/libs/libc/netdb/lib_getservbynamer.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_getservbynamer.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_getservbyport.c b/libs/libc/netdb/lib_getservbyport.c
index 41184ed..862202f 100644
--- a/libs/libc/netdb/lib_getservbyport.c
+++ b/libs/libc/netdb/lib_getservbyport.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_getservbyport.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_getservbyportr.c b/libs/libc/netdb/lib_getservbyportr.c
index 25e78d5..59cd305c 100644
--- a/libs/libc/netdb/lib_getservbyportr.c
+++ b/libs/libc/netdb/lib_getservbyportr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_getservbyportr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_netdb.c b/libs/libc/netdb/lib_netdb.c
index a44dae6..544828c 100644
--- a/libs/libc/netdb/lib_netdb.c
+++ b/libs/libc/netdb/lib_netdb.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_netdb.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_netdb.h b/libs/libc/netdb/lib_netdb.h
index b4d4a0a..03bb762 100644
--- a/libs/libc/netdb/lib_netdb.h
+++ b/libs/libc/netdb/lib_netdb.h
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_netdb.h
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_parsehostfile.c b/libs/libc/netdb/lib_parsehostfile.c
index 494df98..4881c2c 100644
--- a/libs/libc/netdb/lib_parsehostfile.c
+++ b/libs/libc/netdb/lib_parsehostfile.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_parsehostfile.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_proto.c b/libs/libc/netdb/lib_proto.c
index 43acdb0..3e71eb5 100644
--- a/libs/libc/netdb/lib_proto.c
+++ b/libs/libc/netdb/lib_proto.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_proto.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/netdb/lib_protor.c b/libs/libc/netdb/lib_protor.c
index 8692a27..21a6414 100644
--- a/libs/libc/netdb/lib_protor.c
+++ b/libs/libc/netdb/lib_protor.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_protor.c
*
- * Copyright © 2005-2020 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2020 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/netdb/lib_rexec.c b/libs/libc/netdb/lib_rexec.c
index e6aa9a7..2d23d0d 100644
--- a/libs/libc/netdb/lib_rexec.c
+++ b/libs/libc/netdb/lib_rexec.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/netdb/lib_rexec.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/CMakeLists.txt b/libs/libc/obstack/CMakeLists.txt
new file mode 100644
index 0000000..c8b3a04
--- /dev/null
+++ b/libs/libc/obstack/CMakeLists.txt
@@ -0,0 +1,21 @@
+# ##############################################################################
+# libs/libc/obstack/CMakeLists.txt
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more contributor
+# license agreements. See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership. The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+#
+# ##############################################################################
diff --git a/libs/libc/obstack/Make.defs b/libs/libc/obstack/Make.defs
index c163af8..da434ff 100644
--- a/libs/libc/obstack/Make.defs
+++ b/libs/libc/obstack/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/obstack/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/lib_obstack_alloc.c b/libs/libc/obstack/lib_obstack_alloc.c
index 928526f..02b4bcf 100644
--- a/libs/libc/obstack/lib_obstack_alloc.c
+++ b/libs/libc/obstack/lib_obstack_alloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/obstack/lib_obstack_alloc.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/lib_obstack_blank.c b/libs/libc/obstack/lib_obstack_blank.c
index 407b388..84e1dd5 100644
--- a/libs/libc/obstack/lib_obstack_blank.c
+++ b/libs/libc/obstack/lib_obstack_blank.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/obstack/lib_obstack_blank.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/lib_obstack_copy.c b/libs/libc/obstack/lib_obstack_copy.c
index 18f7254..0f3207b 100644
--- a/libs/libc/obstack/lib_obstack_copy.c
+++ b/libs/libc/obstack/lib_obstack_copy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/obstack/lib_obstack_copy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/lib_obstack_finish.c b/libs/libc/obstack/lib_obstack_finish.c
index 5cf1595..7480f48 100644
--- a/libs/libc/obstack/lib_obstack_finish.c
+++ b/libs/libc/obstack/lib_obstack_finish.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/obstack/lib_obstack_finish.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/lib_obstack_free.c b/libs/libc/obstack/lib_obstack_free.c
index 6d5437d..751d471 100644
--- a/libs/libc/obstack/lib_obstack_free.c
+++ b/libs/libc/obstack/lib_obstack_free.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/obstack/lib_obstack_free.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/lib_obstack_grow.c b/libs/libc/obstack/lib_obstack_grow.c
index e0ac2cb..3f40f84 100644
--- a/libs/libc/obstack/lib_obstack_grow.c
+++ b/libs/libc/obstack/lib_obstack_grow.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/obstack/lib_obstack_grow.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/lib_obstack_init.c b/libs/libc/obstack/lib_obstack_init.c
index 369fe47..498983e 100644
--- a/libs/libc/obstack/lib_obstack_init.c
+++ b/libs/libc/obstack/lib_obstack_init.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/obstack/lib_obstack_init.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/lib_obstack_make_room.c b/libs/libc/obstack/lib_obstack_make_room.c
index 673fc22..c06d831 100644
--- a/libs/libc/obstack/lib_obstack_make_room.c
+++ b/libs/libc/obstack/lib_obstack_make_room.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/obstack/lib_obstack_make_room.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/lib_obstack_malloc.c b/libs/libc/obstack/lib_obstack_malloc.c
index 8382ad5..06bed9c 100644
--- a/libs/libc/obstack/lib_obstack_malloc.c
+++ b/libs/libc/obstack/lib_obstack_malloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/obstack/lib_obstack_malloc.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/lib_obstack_malloc.h b/libs/libc/obstack/lib_obstack_malloc.h
index 1906856..fa6665a 100644
--- a/libs/libc/obstack/lib_obstack_malloc.h
+++ b/libs/libc/obstack/lib_obstack_malloc.h
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/obstack/lib_obstack_malloc.h
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/lib_obstack_object_size.c b/libs/libc/obstack/lib_obstack_object_size.c
index c8bf13a..4bb2350 100644
--- a/libs/libc/obstack/lib_obstack_object_size.c
+++ b/libs/libc/obstack/lib_obstack_object_size.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/obstack/lib_obstack_object_size.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/lib_obstack_printf.c b/libs/libc/obstack/lib_obstack_printf.c
index 74cfcc8..8fde948 100644
--- a/libs/libc/obstack/lib_obstack_printf.c
+++ b/libs/libc/obstack/lib_obstack_printf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/obstack/lib_obstack_printf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/lib_obstack_room.c b/libs/libc/obstack/lib_obstack_room.c
index 1afc308..c0c93e5 100644
--- a/libs/libc/obstack/lib_obstack_room.c
+++ b/libs/libc/obstack/lib_obstack_room.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/obstack/lib_obstack_room.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/obstack/lib_obstack_vprintf.c b/libs/libc/obstack/lib_obstack_vprintf.c
index 2e35623..bedc305 100644
--- a/libs/libc/obstack/lib_obstack_vprintf.c
+++ b/libs/libc/obstack/lib_obstack_vprintf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/obstack/lib_obstack_vprintf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/CMakeLists.txt b/libs/libc/pthread/CMakeLists.txt
index 167bc00..2f39a9b 100644
--- a/libs/libc/pthread/CMakeLists.txt
+++ b/libs/libc/pthread/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/pthread/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/pthread/Make.defs b/libs/libc/pthread/Make.defs
index d0b5e7a..fa69fd3 100644
--- a/libs/libc/pthread/Make.defs
+++ b/libs/libc/pthread/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/pthread/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_atfork.c b/libs/libc/pthread/pthread_atfork.c
index 5a1ab52..9cc1082 100644
--- a/libs/libc/pthread/pthread_atfork.c
+++ b/libs/libc/pthread/pthread_atfork.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_atfork.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_destroy.c b/libs/libc/pthread/pthread_attr_destroy.c
index 8dae7f02..1b21835 100644
--- a/libs/libc/pthread/pthread_attr_destroy.c
+++ b/libs/libc/pthread/pthread_attr_destroy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_destroy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_getaffinity.c b/libs/libc/pthread/pthread_attr_getaffinity.c
index dc4e327..e26291d 100644
--- a/libs/libc/pthread/pthread_attr_getaffinity.c
+++ b/libs/libc/pthread/pthread_attr_getaffinity.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_getaffinity.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_getdetachstate.c b/libs/libc/pthread/pthread_attr_getdetachstate.c
index d27d55d..6e9b146 100644
--- a/libs/libc/pthread/pthread_attr_getdetachstate.c
+++ b/libs/libc/pthread/pthread_attr_getdetachstate.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_getdetachstate.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_getinheritsched.c b/libs/libc/pthread/pthread_attr_getinheritsched.c
index 40a5cf3..74ce4a0 100644
--- a/libs/libc/pthread/pthread_attr_getinheritsched.c
+++ b/libs/libc/pthread/pthread_attr_getinheritsched.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_getinheritsched.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_getschedparam.c b/libs/libc/pthread/pthread_attr_getschedparam.c
index 382c333..22997a8 100644
--- a/libs/libc/pthread/pthread_attr_getschedparam.c
+++ b/libs/libc/pthread/pthread_attr_getschedparam.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_getschedparam.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_getschedpolicy.c b/libs/libc/pthread/pthread_attr_getschedpolicy.c
index dfb0c49..6d73578 100644
--- a/libs/libc/pthread/pthread_attr_getschedpolicy.c
+++ b/libs/libc/pthread/pthread_attr_getschedpolicy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_getschedpolicy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_getscope.c b/libs/libc/pthread/pthread_attr_getscope.c
index a54a214..7628b2b 100644
--- a/libs/libc/pthread/pthread_attr_getscope.c
+++ b/libs/libc/pthread/pthread_attr_getscope.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_getscope.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_getstack.c b/libs/libc/pthread/pthread_attr_getstack.c
index 4a35a9f..38d5059 100644
--- a/libs/libc/pthread/pthread_attr_getstack.c
+++ b/libs/libc/pthread/pthread_attr_getstack.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_getstack.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_getstackaddr.c b/libs/libc/pthread/pthread_attr_getstackaddr.c
index 0b0ba13..edcb452 100644
--- a/libs/libc/pthread/pthread_attr_getstackaddr.c
+++ b/libs/libc/pthread/pthread_attr_getstackaddr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_getstackaddr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_getstacksize.c b/libs/libc/pthread/pthread_attr_getstacksize.c
index 56b3dc2..97dcf3d 100644
--- a/libs/libc/pthread/pthread_attr_getstacksize.c
+++ b/libs/libc/pthread/pthread_attr_getstacksize.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_getstacksize.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_init.c b/libs/libc/pthread/pthread_attr_init.c
index 7831d5f..283453c 100644
--- a/libs/libc/pthread/pthread_attr_init.c
+++ b/libs/libc/pthread/pthread_attr_init.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_init.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_setaffinity.c b/libs/libc/pthread/pthread_attr_setaffinity.c
index a35021a..cdc7cdf 100644
--- a/libs/libc/pthread/pthread_attr_setaffinity.c
+++ b/libs/libc/pthread/pthread_attr_setaffinity.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_setaffinity.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_setdetachstate.c b/libs/libc/pthread/pthread_attr_setdetachstate.c
index 1669fcc..605da54 100644
--- a/libs/libc/pthread/pthread_attr_setdetachstate.c
+++ b/libs/libc/pthread/pthread_attr_setdetachstate.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_setdetachstate.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_setinheritsched.c b/libs/libc/pthread/pthread_attr_setinheritsched.c
index 02ef764..ef7c841 100644
--- a/libs/libc/pthread/pthread_attr_setinheritsched.c
+++ b/libs/libc/pthread/pthread_attr_setinheritsched.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_setinheritsched.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_setschedparam.c b/libs/libc/pthread/pthread_attr_setschedparam.c
index c4a338a..1655dac 100644
--- a/libs/libc/pthread/pthread_attr_setschedparam.c
+++ b/libs/libc/pthread/pthread_attr_setschedparam.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_setschedparam.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_setschedpolicy.c b/libs/libc/pthread/pthread_attr_setschedpolicy.c
index 3e164d4..0af7dc2 100644
--- a/libs/libc/pthread/pthread_attr_setschedpolicy.c
+++ b/libs/libc/pthread/pthread_attr_setschedpolicy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_setschedpolicy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_setscope.c b/libs/libc/pthread/pthread_attr_setscope.c
index 225a891..614a54b 100644
--- a/libs/libc/pthread/pthread_attr_setscope.c
+++ b/libs/libc/pthread/pthread_attr_setscope.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_setscope.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_setstack.c b/libs/libc/pthread/pthread_attr_setstack.c
index 9c68a36..dff7269 100644
--- a/libs/libc/pthread/pthread_attr_setstack.c
+++ b/libs/libc/pthread/pthread_attr_setstack.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_setstack.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_setstackaddr.c b/libs/libc/pthread/pthread_attr_setstackaddr.c
index d2cfd5d..0b90293 100644
--- a/libs/libc/pthread/pthread_attr_setstackaddr.c
+++ b/libs/libc/pthread/pthread_attr_setstackaddr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_setstackaddr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_attr_setstacksize.c b/libs/libc/pthread/pthread_attr_setstacksize.c
index f3de28d..689ee7a 100644
--- a/libs/libc/pthread/pthread_attr_setstacksize.c
+++ b/libs/libc/pthread/pthread_attr_setstacksize.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_attr_setstacksize.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_barrierattr_destroy.c b/libs/libc/pthread/pthread_barrierattr_destroy.c
index ccfaaf8..35e82ee 100644
--- a/libs/libc/pthread/pthread_barrierattr_destroy.c
+++ b/libs/libc/pthread/pthread_barrierattr_destroy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_barrierattr_destroy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_barrierattr_getpshared.c b/libs/libc/pthread/pthread_barrierattr_getpshared.c
index 22c7bea..8fef4fb 100644
--- a/libs/libc/pthread/pthread_barrierattr_getpshared.c
+++ b/libs/libc/pthread/pthread_barrierattr_getpshared.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_barrierattr_getpshared.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_barrierattr_init.c b/libs/libc/pthread/pthread_barrierattr_init.c
index e632bab..e5fa1a6 100644
--- a/libs/libc/pthread/pthread_barrierattr_init.c
+++ b/libs/libc/pthread/pthread_barrierattr_init.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_barrierattr_init.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_barrierattr_setpshared.c b/libs/libc/pthread/pthread_barrierattr_setpshared.c
index 9b8d3cb..73ef470 100644
--- a/libs/libc/pthread/pthread_barrierattr_setpshared.c
+++ b/libs/libc/pthread/pthread_barrierattr_setpshared.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_barrierattr_setpshared.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_barrierdestroy.c b/libs/libc/pthread/pthread_barrierdestroy.c
index 11625f5..b390ff0 100644
--- a/libs/libc/pthread/pthread_barrierdestroy.c
+++ b/libs/libc/pthread/pthread_barrierdestroy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_barrierdestroy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_barrierinit.c b/libs/libc/pthread/pthread_barrierinit.c
index 8625344..5ff90ed 100644
--- a/libs/libc/pthread/pthread_barrierinit.c
+++ b/libs/libc/pthread/pthread_barrierinit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_barrierinit.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_cleanup.c b/libs/libc/pthread/pthread_cleanup.c
index 2687c75..835d7d7 100644
--- a/libs/libc/pthread/pthread_cleanup.c
+++ b/libs/libc/pthread/pthread_cleanup.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_cleanup.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_condattr_destroy.c b/libs/libc/pthread/pthread_condattr_destroy.c
index 827996b..86d7ad1 100644
--- a/libs/libc/pthread/pthread_condattr_destroy.c
+++ b/libs/libc/pthread/pthread_condattr_destroy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_condattr_destroy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_condattr_getclock.c b/libs/libc/pthread/pthread_condattr_getclock.c
index e8d37ed..a73a17e 100644
--- a/libs/libc/pthread/pthread_condattr_getclock.c
+++ b/libs/libc/pthread/pthread_condattr_getclock.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_condattr_getclock.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_condattr_getpshared.c b/libs/libc/pthread/pthread_condattr_getpshared.c
index 4f85ff0..3e5b50f 100644
--- a/libs/libc/pthread/pthread_condattr_getpshared.c
+++ b/libs/libc/pthread/pthread_condattr_getpshared.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_condattr_getpshared.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_condattr_init.c b/libs/libc/pthread/pthread_condattr_init.c
index d420374..5249034 100644
--- a/libs/libc/pthread/pthread_condattr_init.c
+++ b/libs/libc/pthread/pthread_condattr_init.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_condattr_init.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_condattr_setclock.c b/libs/libc/pthread/pthread_condattr_setclock.c
index 0697d2d..1380bd60 100644
--- a/libs/libc/pthread/pthread_condattr_setclock.c
+++ b/libs/libc/pthread/pthread_condattr_setclock.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_condattr_setclock.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_condattr_setpshared.c b/libs/libc/pthread/pthread_condattr_setpshared.c
index 2e589a7..321fef9 100644
--- a/libs/libc/pthread/pthread_condattr_setpshared.c
+++ b/libs/libc/pthread/pthread_condattr_setpshared.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_condattr_setpshared.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_conddestroy.c b/libs/libc/pthread/pthread_conddestroy.c
index 806a8bc..c27c63b 100644
--- a/libs/libc/pthread/pthread_conddestroy.c
+++ b/libs/libc/pthread/pthread_conddestroy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_conddestroy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_condinit.c b/libs/libc/pthread/pthread_condinit.c
index 9a218d1..d4f133b 100644
--- a/libs/libc/pthread/pthread_condinit.c
+++ b/libs/libc/pthread/pthread_condinit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_condinit.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_condtimedwait.c b/libs/libc/pthread/pthread_condtimedwait.c
index 1f7437c..4252247 100644
--- a/libs/libc/pthread/pthread_condtimedwait.c
+++ b/libs/libc/pthread/pthread_condtimedwait.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_condtimedwait.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_create.c b/libs/libc/pthread/pthread_create.c
index b9e8d69..6c87140 100644
--- a/libs/libc/pthread/pthread_create.c
+++ b/libs/libc/pthread/pthread_create.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_create.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_exit.c b/libs/libc/pthread/pthread_exit.c
index 25b4306..412ddf8 100644
--- a/libs/libc/pthread/pthread_exit.c
+++ b/libs/libc/pthread/pthread_exit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_exit.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_get_stackaddr_np.c b/libs/libc/pthread/pthread_get_stackaddr_np.c
index a8a570b..5e5d083 100644
--- a/libs/libc/pthread/pthread_get_stackaddr_np.c
+++ b/libs/libc/pthread/pthread_get_stackaddr_np.c
@@ -1,8 +1,9 @@
/****************************************************************************
* libs/libc/pthread/pthread_get_stackaddr_np.c
*
- * Copyright (C) 2018 Geoff Norton. All rights reserved.
- * Author: Geoff Norton <grompf@gmail.com>
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2018 Geoff Norton. All rights reserved.
+ * SPDX-FileContributor: Geoff Norton <grompf@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/pthread/pthread_get_stacksize_np.c b/libs/libc/pthread/pthread_get_stacksize_np.c
index 248f337..7349851 100644
--- a/libs/libc/pthread/pthread_get_stacksize_np.c
+++ b/libs/libc/pthread/pthread_get_stacksize_np.c
@@ -1,8 +1,9 @@
/****************************************************************************
* libs/libc/pthread/pthread_get_stacksize_np.c
*
- * Copyright (C) 2018 Geoff Norton. All rights reserved.
- * Author: Geoff Norton <grompf@gmail.com>
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2018 Geoff Norton. All rights reserved.
+ * SPDX-FileContributor: Geoff Norton <grompf@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/pthread/pthread_getcpuclockid.c b/libs/libc/pthread/pthread_getcpuclockid.c
index a3fa78a..0297394 100644
--- a/libs/libc/pthread/pthread_getcpuclockid.c
+++ b/libs/libc/pthread/pthread_getcpuclockid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_getcpuclockid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_getname_np.c b/libs/libc/pthread/pthread_getname_np.c
index ab29c6d..6867692 100644
--- a/libs/libc/pthread/pthread_getname_np.c
+++ b/libs/libc/pthread/pthread_getname_np.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_getname_np.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_getspecific.c b/libs/libc/pthread/pthread_getspecific.c
index b1a2e62..20cc56b 100644
--- a/libs/libc/pthread/pthread_getspecific.c
+++ b/libs/libc/pthread/pthread_getspecific.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_getspecific.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_gettid_np.c b/libs/libc/pthread/pthread_gettid_np.c
index 7199f51..81e16ec 100644
--- a/libs/libc/pthread/pthread_gettid_np.c
+++ b/libs/libc/pthread/pthread_gettid_np.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_gettid_np.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_keycreate.c b/libs/libc/pthread/pthread_keycreate.c
index f82aec6..f819dd9 100644
--- a/libs/libc/pthread/pthread_keycreate.c
+++ b/libs/libc/pthread/pthread_keycreate.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_keycreate.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_keydelete.c b/libs/libc/pthread/pthread_keydelete.c
index 6cf16bc..594f5e7 100644
--- a/libs/libc/pthread/pthread_keydelete.c
+++ b/libs/libc/pthread/pthread_keydelete.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_keydelete.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_kill.c b/libs/libc/pthread/pthread_kill.c
index 67683c6..bcd509a 100644
--- a/libs/libc/pthread/pthread_kill.c
+++ b/libs/libc/pthread/pthread_kill.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_kill.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutex_getprioceiling.c b/libs/libc/pthread/pthread_mutex_getprioceiling.c
index e621227..27f3d52 100644
--- a/libs/libc/pthread/pthread_mutex_getprioceiling.c
+++ b/libs/libc/pthread/pthread_mutex_getprioceiling.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutex_getprioceiling.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutex_lock.c b/libs/libc/pthread/pthread_mutex_lock.c
index 88afc34..fb2484f 100644
--- a/libs/libc/pthread/pthread_mutex_lock.c
+++ b/libs/libc/pthread/pthread_mutex_lock.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutex_lock.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutex_setprioceiling.c b/libs/libc/pthread/pthread_mutex_setprioceiling.c
index 0475188..f98af46 100644
--- a/libs/libc/pthread/pthread_mutex_setprioceiling.c
+++ b/libs/libc/pthread/pthread_mutex_setprioceiling.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutex_setprioceiling.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutexattr_destroy.c b/libs/libc/pthread/pthread_mutexattr_destroy.c
index 01cefa6..824995d 100644
--- a/libs/libc/pthread/pthread_mutexattr_destroy.c
+++ b/libs/libc/pthread/pthread_mutexattr_destroy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutexattr_destroy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutexattr_getprioceiling.c b/libs/libc/pthread/pthread_mutexattr_getprioceiling.c
index 7c518a5..a413a78 100644
--- a/libs/libc/pthread/pthread_mutexattr_getprioceiling.c
+++ b/libs/libc/pthread/pthread_mutexattr_getprioceiling.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutexattr_getprioceiling.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutexattr_getprotocol.c b/libs/libc/pthread/pthread_mutexattr_getprotocol.c
index c883d6b..65e0009 100644
--- a/libs/libc/pthread/pthread_mutexattr_getprotocol.c
+++ b/libs/libc/pthread/pthread_mutexattr_getprotocol.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutexattr_getprotocol.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutexattr_getpshared.c b/libs/libc/pthread/pthread_mutexattr_getpshared.c
index 2d42135..cccb7bd 100644
--- a/libs/libc/pthread/pthread_mutexattr_getpshared.c
+++ b/libs/libc/pthread/pthread_mutexattr_getpshared.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutexattr_getpshared.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutexattr_getrobust.c b/libs/libc/pthread/pthread_mutexattr_getrobust.c
index 89efc64..22be04959 100644
--- a/libs/libc/pthread/pthread_mutexattr_getrobust.c
+++ b/libs/libc/pthread/pthread_mutexattr_getrobust.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutexattr_getrobust.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutexattr_gettype.c b/libs/libc/pthread/pthread_mutexattr_gettype.c
index 5fd58e9..469eb96 100644
--- a/libs/libc/pthread/pthread_mutexattr_gettype.c
+++ b/libs/libc/pthread/pthread_mutexattr_gettype.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutexattr_gettype.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutexattr_init.c b/libs/libc/pthread/pthread_mutexattr_init.c
index 66c9a9f..b03172b 100644
--- a/libs/libc/pthread/pthread_mutexattr_init.c
+++ b/libs/libc/pthread/pthread_mutexattr_init.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutexattr_init.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutexattr_setprioceiling.c b/libs/libc/pthread/pthread_mutexattr_setprioceiling.c
index dd011eb..96c9ee3 100644
--- a/libs/libc/pthread/pthread_mutexattr_setprioceiling.c
+++ b/libs/libc/pthread/pthread_mutexattr_setprioceiling.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutexattr_setprioceiling.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutexattr_setprotocol.c b/libs/libc/pthread/pthread_mutexattr_setprotocol.c
index 9233891..a057894 100644
--- a/libs/libc/pthread/pthread_mutexattr_setprotocol.c
+++ b/libs/libc/pthread/pthread_mutexattr_setprotocol.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutexattr_setprotocol.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutexattr_setpshared.c b/libs/libc/pthread/pthread_mutexattr_setpshared.c
index ab80197..e9f58cd 100644
--- a/libs/libc/pthread/pthread_mutexattr_setpshared.c
+++ b/libs/libc/pthread/pthread_mutexattr_setpshared.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutexattr_setpshared.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutexattr_setrobust.c b/libs/libc/pthread/pthread_mutexattr_setrobust.c
index 86dd722..7a77499 100644
--- a/libs/libc/pthread/pthread_mutexattr_setrobust.c
+++ b/libs/libc/pthread/pthread_mutexattr_setrobust.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutexattr_setrobust.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_mutexattr_settype.c b/libs/libc/pthread/pthread_mutexattr_settype.c
index 189748b..14cef9f 100644
--- a/libs/libc/pthread/pthread_mutexattr_settype.c
+++ b/libs/libc/pthread/pthread_mutexattr_settype.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_mutexattr_settype.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_once.c b/libs/libc/pthread/pthread_once.c
index 8d3a38f..0f7292e 100644
--- a/libs/libc/pthread/pthread_once.c
+++ b/libs/libc/pthread/pthread_once.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_once.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_rwlock.c b/libs/libc/pthread/pthread_rwlock.c
index 73c3f9e..9f173fe 100644
--- a/libs/libc/pthread/pthread_rwlock.c
+++ b/libs/libc/pthread/pthread_rwlock.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_rwlock.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_rwlock_rdlock.c b/libs/libc/pthread/pthread_rwlock_rdlock.c
index 46e7b85..ca00026 100644
--- a/libs/libc/pthread/pthread_rwlock_rdlock.c
+++ b/libs/libc/pthread/pthread_rwlock_rdlock.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_rwlock_rdlock.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_rwlock_wrlock.c b/libs/libc/pthread/pthread_rwlock_wrlock.c
index 6260a5f..057d180 100644
--- a/libs/libc/pthread/pthread_rwlock_wrlock.c
+++ b/libs/libc/pthread/pthread_rwlock_wrlock.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_rwlock_wrlock.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_rwlockattr_destroy.c b/libs/libc/pthread/pthread_rwlockattr_destroy.c
index ecf4e36..cb9d3d0 100644
--- a/libs/libc/pthread/pthread_rwlockattr_destroy.c
+++ b/libs/libc/pthread/pthread_rwlockattr_destroy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_rwlockattr_destroy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_rwlockattr_getpshared.c b/libs/libc/pthread/pthread_rwlockattr_getpshared.c
index 3bec7ca..5f0162c 100644
--- a/libs/libc/pthread/pthread_rwlockattr_getpshared.c
+++ b/libs/libc/pthread/pthread_rwlockattr_getpshared.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_rwlockattr_getpshared.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_rwlockattr_init.c b/libs/libc/pthread/pthread_rwlockattr_init.c
index 2005d23..b83b317 100644
--- a/libs/libc/pthread/pthread_rwlockattr_init.c
+++ b/libs/libc/pthread/pthread_rwlockattr_init.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_rwlockattr_init.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_rwlockattr_setpshared.c b/libs/libc/pthread/pthread_rwlockattr_setpshared.c
index 634c5c2..e87310c 100644
--- a/libs/libc/pthread/pthread_rwlockattr_setpshared.c
+++ b/libs/libc/pthread/pthread_rwlockattr_setpshared.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_rwlockattr_setpshared.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_self.c b/libs/libc/pthread/pthread_self.c
index 3b7c102..4c58668 100644
--- a/libs/libc/pthread/pthread_self.c
+++ b/libs/libc/pthread/pthread_self.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_self.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_setcancelstate.c b/libs/libc/pthread/pthread_setcancelstate.c
index adea78c..fbc9328 100644
--- a/libs/libc/pthread/pthread_setcancelstate.c
+++ b/libs/libc/pthread/pthread_setcancelstate.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_setcancelstate.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_setcanceltype.c b/libs/libc/pthread/pthread_setcanceltype.c
index 68dcd9b..3d4066d 100644
--- a/libs/libc/pthread/pthread_setcanceltype.c
+++ b/libs/libc/pthread/pthread_setcanceltype.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_setcanceltype.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_setname_np.c b/libs/libc/pthread/pthread_setname_np.c
index 7e24ab8..0728f77 100644
--- a/libs/libc/pthread/pthread_setname_np.c
+++ b/libs/libc/pthread/pthread_setname_np.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_setname_np.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_setspecific.c b/libs/libc/pthread/pthread_setspecific.c
index 226610b..3b4939e 100644
--- a/libs/libc/pthread/pthread_setspecific.c
+++ b/libs/libc/pthread/pthread_setspecific.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_setspecific.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_spinlock.c b/libs/libc/pthread/pthread_spinlock.c
index 9b0f422..4bd9847 100644
--- a/libs/libc/pthread/pthread_spinlock.c
+++ b/libs/libc/pthread/pthread_spinlock.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_spinlock.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_testcancel.c b/libs/libc/pthread/pthread_testcancel.c
index 6af9074..a2a7234 100644
--- a/libs/libc/pthread/pthread_testcancel.c
+++ b/libs/libc/pthread/pthread_testcancel.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_testcancel.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pthread/pthread_yield.c b/libs/libc/pthread/pthread_yield.c
index 8eb480b..65b18e3 100644
--- a/libs/libc/pthread/pthread_yield.c
+++ b/libs/libc/pthread/pthread_yield.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pthread/pthread_yield.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pwd/CMakeLists.txt b/libs/libc/pwd/CMakeLists.txt
index e163968..cae7ddc 100644
--- a/libs/libc/pwd/CMakeLists.txt
+++ b/libs/libc/pwd/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/pwd/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/pwd/Make.defs b/libs/libc/pwd/Make.defs
index 6d6333e..f763baa 100644
--- a/libs/libc/pwd/Make.defs
+++ b/libs/libc/pwd/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/pwd/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pwd/lib_find_pwdfile.c b/libs/libc/pwd/lib_find_pwdfile.c
index 5cfa14d..8368eed 100644
--- a/libs/libc/pwd/lib_find_pwdfile.c
+++ b/libs/libc/pwd/lib_find_pwdfile.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pwd/lib_find_pwdfile.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pwd/lib_getpwbuf.c b/libs/libc/pwd/lib_getpwbuf.c
index 7d85f91..91e2597 100644
--- a/libs/libc/pwd/lib_getpwbuf.c
+++ b/libs/libc/pwd/lib_getpwbuf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pwd/lib_getpwbuf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pwd/lib_getpwbufr.c b/libs/libc/pwd/lib_getpwbufr.c
index 26486b0..1139210 100644
--- a/libs/libc/pwd/lib_getpwbufr.c
+++ b/libs/libc/pwd/lib_getpwbufr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pwd/lib_getpwbufr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pwd/lib_getpwent.c b/libs/libc/pwd/lib_getpwent.c
index d1bf0d6..b91e2a3 100644
--- a/libs/libc/pwd/lib_getpwent.c
+++ b/libs/libc/pwd/lib_getpwent.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pwd/lib_getpwent.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pwd/lib_getpwnam.c b/libs/libc/pwd/lib_getpwnam.c
index 8cda336..d5c21aa 100644
--- a/libs/libc/pwd/lib_getpwnam.c
+++ b/libs/libc/pwd/lib_getpwnam.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pwd/lib_getpwnam.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pwd/lib_getpwnamr.c b/libs/libc/pwd/lib_getpwnamr.c
index eba4798..bb32683 100644
--- a/libs/libc/pwd/lib_getpwnamr.c
+++ b/libs/libc/pwd/lib_getpwnamr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pwd/lib_getpwnamr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pwd/lib_getpwuid.c b/libs/libc/pwd/lib_getpwuid.c
index 5826729..049666c 100644
--- a/libs/libc/pwd/lib_getpwuid.c
+++ b/libs/libc/pwd/lib_getpwuid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pwd/lib_getpwuid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pwd/lib_getpwuidr.c b/libs/libc/pwd/lib_getpwuidr.c
index 7b477cd..ce34954 100644
--- a/libs/libc/pwd/lib_getpwuidr.c
+++ b/libs/libc/pwd/lib_getpwuidr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pwd/lib_getpwuidr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pwd/lib_pwd.h b/libs/libc/pwd/lib_pwd.h
index 08dde30..f9f80d8 100644
--- a/libs/libc/pwd/lib_pwd.h
+++ b/libs/libc/pwd/lib_pwd.h
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pwd/lib_pwd.h
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/pwd/lib_pwd_globals.c b/libs/libc/pwd/lib_pwd_globals.c
index f6488d6..38ef84a 100644
--- a/libs/libc/pwd/lib_pwd_globals.c
+++ b/libs/libc/pwd/lib_pwd_globals.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/pwd/lib_pwd_globals.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/queue/CMakeLists.txt b/libs/libc/queue/CMakeLists.txt
index 0f55f65..4b2c3b5 100644
--- a/libs/libc/queue/CMakeLists.txt
+++ b/libs/libc/queue/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/queue/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/queue/Make.defs b/libs/libc/queue/Make.defs
index a3a6ade..cb050c5 100644
--- a/libs/libc/queue/Make.defs
+++ b/libs/libc/queue/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/queue/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/queue/queue.c b/libs/libc/queue/queue.c
index e08bd76..0b70b7c 100644
--- a/libs/libc/queue/queue.c
+++ b/libs/libc/queue/queue.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/queue/queue.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/regex/CMakeLists.txt b/libs/libc/regex/CMakeLists.txt
index e023c90..a15566e 100644
--- a/libs/libc/regex/CMakeLists.txt
+++ b/libs/libc/regex/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/regex/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/regex/Make.defs b/libs/libc/regex/Make.defs
index 4f329cb..15fc2a4 100644
--- a/libs/libc/regex/Make.defs
+++ b/libs/libc/regex/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/regex/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/regex/regcomp.c b/libs/libc/regex/regcomp.c
index 600b3c3..ef96542 100644
--- a/libs/libc/regex/regcomp.c
+++ b/libs/libc/regex/regcomp.c
@@ -1,10 +1,8 @@
/****************************************************************************
* libs/libc/regex/regcomp.c
*
- * regcomp.c - TRE POSIX compatible regex compilation functions.
- *
- * Copyright (c) 2001-2009 Ville Laurikari <vl@iki.fi>
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2001-2009 Ville Laurikari <vl@iki.fi>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/regex/regerror.c b/libs/libc/regex/regerror.c
index 721cb2b..9a30e1f 100644
--- a/libs/libc/regex/regerror.c
+++ b/libs/libc/regex/regerror.c
@@ -1,10 +1,8 @@
/****************************************************************************
* libs/libc/regex/regerror.c
*
- * regerror.c - TRE POSIX compatible matching functions (and more).
- *
- * Copyright (c) 2001-2009 Ville Laurikari <vl@iki.fi>
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2001-2009 Ville Laurikari <vl@iki.fi>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/regex/regexec.c b/libs/libc/regex/regexec.c
index 0a9dfb8..060f82c 100644
--- a/libs/libc/regex/regexec.c
+++ b/libs/libc/regex/regexec.c
@@ -1,10 +1,8 @@
/****************************************************************************
* libs/libc/regex/regexec.c
*
- * regexec.c - TRE POSIX compatible matching functions (and more).
- *
- * Copyright (c) 2001-2009 Ville Laurikari <vl@iki.fi>
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2001-2009 Ville Laurikari <vl@iki.fi>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/regex/tre-mem.c b/libs/libc/regex/tre-mem.c
index 88908c1..78f663f 100644
--- a/libs/libc/regex/tre-mem.c
+++ b/libs/libc/regex/tre-mem.c
@@ -1,10 +1,8 @@
/****************************************************************************
* libs/libc/regex/tre-mem.c
*
- * tre-mem.c - TRE memory allocator
- *
- * Copyright (c) 2001-2009 Ville Laurikari <vl@iki.fi>
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2001-2009 Ville Laurikari <vl@iki.fi>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/regex/tre.h b/libs/libc/regex/tre.h
index 9ac9b62..afa1601 100644
--- a/libs/libc/regex/tre.h
+++ b/libs/libc/regex/tre.h
@@ -1,10 +1,8 @@
/****************************************************************************
* libs/libc/regex/tre.h
*
- * tre-internal.h - TRE internal definitions
- *
- * Copyright (c) 2001-2009 Ville Laurikari <vl@iki.fi>
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2001-2009 Ville Laurikari <vl@iki.fi>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -285,4 +283,4 @@
#define xfree free
#define xrealloc realloc
-#endif /* _REGEX_TRE_H */
\ No newline at end of file
+#endif /* _REGEX_TRE_H */
diff --git a/libs/libc/sched/CMakeLists.txt b/libs/libc/sched/CMakeLists.txt
index a32a324..6f1fa76 100644
--- a/libs/libc/sched/CMakeLists.txt
+++ b/libs/libc/sched/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/sched/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/sched/Make.defs b/libs/libc/sched/Make.defs
index 83816fd..da8588d 100644
--- a/libs/libc/sched/Make.defs
+++ b/libs/libc/sched/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/sched/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/sched/clock_getcpuclockid.c b/libs/libc/sched/clock_getcpuclockid.c
index fe73f29..d40caf0 100644
--- a/libs/libc/sched/clock_getcpuclockid.c
+++ b/libs/libc/sched/clock_getcpuclockid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/sched/clock_getcpuclockid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/sched/clock_getres.c b/libs/libc/sched/clock_getres.c
index 3da1f34..6d37317 100644
--- a/libs/libc/sched/clock_getres.c
+++ b/libs/libc/sched/clock_getres.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/sched/clock_getres.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/sched/sched_backtrace.c b/libs/libc/sched/sched_backtrace.c
index ab0fb86..ad7f6cb 100644
--- a/libs/libc/sched/sched_backtrace.c
+++ b/libs/libc/sched/sched_backtrace.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/sched/sched_backtrace.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/sched/sched_cpucount.c b/libs/libc/sched/sched_cpucount.c
index d832d70..35f02c5 100644
--- a/libs/libc/sched/sched_cpucount.c
+++ b/libs/libc/sched/sched_cpucount.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/sched/sched_cpucount.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/sched/sched_dumpstack.c b/libs/libc/sched/sched_dumpstack.c
index fec6a72..3045e41 100644
--- a/libs/libc/sched/sched_dumpstack.c
+++ b/libs/libc/sched/sched_dumpstack.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/sched/sched_dumpstack.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/sched/sched_getprioritymax.c b/libs/libc/sched/sched_getprioritymax.c
index e5fd5d1..c8db432 100644
--- a/libs/libc/sched/sched_getprioritymax.c
+++ b/libs/libc/sched/sched_getprioritymax.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/sched/sched_getprioritymax.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/sched/sched_getprioritymin.c b/libs/libc/sched/sched_getprioritymin.c
index 8f2d362..e1c3fb5 100644
--- a/libs/libc/sched/sched_getprioritymin.c
+++ b/libs/libc/sched/sched_getprioritymin.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/sched/sched_getprioritymin.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/sched/task_cancelpt.c b/libs/libc/sched/task_cancelpt.c
index b15cd80..e29f95e 100644
--- a/libs/libc/sched/task_cancelpt.c
+++ b/libs/libc/sched/task_cancelpt.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/sched/task_cancelpt.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/sched/task_setcancelstate.c b/libs/libc/sched/task_setcancelstate.c
index e329dc6..ad5cc23 100644
--- a/libs/libc/sched/task_setcancelstate.c
+++ b/libs/libc/sched/task_setcancelstate.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/sched/task_setcancelstate.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/sched/task_setcanceltype.c b/libs/libc/sched/task_setcanceltype.c
index dcad4e4..f151d20 100644
--- a/libs/libc/sched/task_setcanceltype.c
+++ b/libs/libc/sched/task_setcanceltype.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/sched/task_setcanceltype.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/sched/task_startup.c b/libs/libc/sched/task_startup.c
index a723be0..f35d2d3 100644
--- a/libs/libc/sched/task_startup.c
+++ b/libs/libc/sched/task_startup.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/sched/task_startup.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/sched/task_testcancel.c b/libs/libc/sched/task_testcancel.c
index 6173cbc..0514428 100644
--- a/libs/libc/sched/task_testcancel.c
+++ b/libs/libc/sched/task_testcancel.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/sched/task_testcancel.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/search/CMakeLists.txt b/libs/libc/search/CMakeLists.txt
index 3c32686..a1a3090 100644
--- a/libs/libc/search/CMakeLists.txt
+++ b/libs/libc/search/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/search/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/search/Make.defs b/libs/libc/search/Make.defs
index a22ea40..38f7031 100644
--- a/libs/libc/search/Make.defs
+++ b/libs/libc/search/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/search/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/search/hash_func.c b/libs/libc/search/hash_func.c
index c237121..ed4df89 100644
--- a/libs/libc/search/hash_func.c
+++ b/libs/libc/search/hash_func.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/search/hash_func.c
*
- * Copyright (c) 1990, 1993
- * The Regents of the University of California. All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause-UC
+ * SPDX-FileCopyrightText: 1990, 1993 The Regents of the University of California.
*
* This code is derived from software contributed to Berkeley by
* Margo Seltzer.
diff --git a/libs/libc/search/hcreate.c b/libs/libc/search/hcreate.c
index f3ea5c3..c746c3a 100644
--- a/libs/libc/search/hcreate.c
+++ b/libs/libc/search/hcreate.c
@@ -1,10 +1,8 @@
/****************************************************************************
* libs/libc/search/hcreate.c
*
- * $NetBSD: hcreate.c,v 1.2 2001/02/19 21:26:04 ross Exp $
- *
- * Copyright (c) 2001 Christopher G. Demetriou
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2001 Christopher G. Demetriou.All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -28,9 +26,6 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * <<Id: LICENSE_GC,v 1.1 2001/10/01 23:24:05 cgd Exp>>
- *
- *
* hcreate() / hsearch() / hdestroy()
*
* SysV/XPG4 hash table functions.
diff --git a/libs/libc/search/hcreate_r.c b/libs/libc/search/hcreate_r.c
index 13f835f..f64a06e 100644
--- a/libs/libc/search/hcreate_r.c
+++ b/libs/libc/search/hcreate_r.c
@@ -1,10 +1,8 @@
/****************************************************************************
* libs/libc/search/hcreate_r.c
*
- * $NetBSD: hcreate.c,v 1.2 2001/02/19 21:26:04 ross Exp $
- *
- * Copyright (c) 2001 Christopher G. Demetriou
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2001 Christopher G. Demetriou,All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -28,8 +26,6 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * <<Id: LICENSE_GC,v 1.1 2001/10/01 23:24:05 cgd Exp>>
- *
* hcreate() / hsearch() / hdestroy()
*
* SysV/XPG4 hash table functions.
diff --git a/libs/libc/semaphore/CMakeLists.txt b/libs/libc/semaphore/CMakeLists.txt
index 687c924..970eac7 100644
--- a/libs/libc/semaphore/CMakeLists.txt
+++ b/libs/libc/semaphore/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/semaphore/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/semaphore/Make.defs b/libs/libc/semaphore/Make.defs
index afb7492..b967da8 100644
--- a/libs/libc/semaphore/Make.defs
+++ b/libs/libc/semaphore/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/semaphore/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_clockwait.c b/libs/libc/semaphore/sem_clockwait.c
index 4658dcc..7d6eb73 100644
--- a/libs/libc/semaphore/sem_clockwait.c
+++ b/libs/libc/semaphore/sem_clockwait.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_clockwait.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_close.c b/libs/libc/semaphore/sem_close.c
index ecd2888..9ea59c9 100644
--- a/libs/libc/semaphore/sem_close.c
+++ b/libs/libc/semaphore/sem_close.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_close.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_destroy.c b/libs/libc/semaphore/sem_destroy.c
index 2e43317..a55c1c6 100644
--- a/libs/libc/semaphore/sem_destroy.c
+++ b/libs/libc/semaphore/sem_destroy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_destroy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_getprioceiling.c b/libs/libc/semaphore/sem_getprioceiling.c
index 6480061..9fac69a 100644
--- a/libs/libc/semaphore/sem_getprioceiling.c
+++ b/libs/libc/semaphore/sem_getprioceiling.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_getprioceiling.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_getprotocol.c b/libs/libc/semaphore/sem_getprotocol.c
index 38dbd17..6c466c3 100644
--- a/libs/libc/semaphore/sem_getprotocol.c
+++ b/libs/libc/semaphore/sem_getprotocol.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_getprotocol.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_getvalue.c b/libs/libc/semaphore/sem_getvalue.c
index b5b7588..194f5fa 100644
--- a/libs/libc/semaphore/sem_getvalue.c
+++ b/libs/libc/semaphore/sem_getvalue.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_getvalue.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_init.c b/libs/libc/semaphore/sem_init.c
index e74c92b..37facb0 100644
--- a/libs/libc/semaphore/sem_init.c
+++ b/libs/libc/semaphore/sem_init.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_init.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_open.c b/libs/libc/semaphore/sem_open.c
index a0daa11..3c51a38 100644
--- a/libs/libc/semaphore/sem_open.c
+++ b/libs/libc/semaphore/sem_open.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_open.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_post.c b/libs/libc/semaphore/sem_post.c
index 093360e..31a896d 100644
--- a/libs/libc/semaphore/sem_post.c
+++ b/libs/libc/semaphore/sem_post.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_post.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_setprioceiling.c b/libs/libc/semaphore/sem_setprioceiling.c
index ed3ebdc..bbbdaea 100644
--- a/libs/libc/semaphore/sem_setprioceiling.c
+++ b/libs/libc/semaphore/sem_setprioceiling.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_setprioceiling.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_setprotocol.c b/libs/libc/semaphore/sem_setprotocol.c
index 1b48d69..775bf28 100644
--- a/libs/libc/semaphore/sem_setprotocol.c
+++ b/libs/libc/semaphore/sem_setprotocol.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_setprotocol.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_timedwait.c b/libs/libc/semaphore/sem_timedwait.c
index 55e5df3..7eba496 100644
--- a/libs/libc/semaphore/sem_timedwait.c
+++ b/libs/libc/semaphore/sem_timedwait.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_timedwait.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_trywait.c b/libs/libc/semaphore/sem_trywait.c
index 1e3c1dc..98603e2 100644
--- a/libs/libc/semaphore/sem_trywait.c
+++ b/libs/libc/semaphore/sem_trywait.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_trywait.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_unlink.c b/libs/libc/semaphore/sem_unlink.c
index 77f2f85..f78c14d 100644
--- a/libs/libc/semaphore/sem_unlink.c
+++ b/libs/libc/semaphore/sem_unlink.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_unlink.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/semaphore/sem_wait.c b/libs/libc/semaphore/sem_wait.c
index 21d2a5a..0e13741 100644
--- a/libs/libc/semaphore/sem_wait.c
+++ b/libs/libc/semaphore/sem_wait.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/semaphore/sem_wait.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/CMakeLists.txt b/libs/libc/signal/CMakeLists.txt
index 8edadd4..70a21aa 100644
--- a/libs/libc/signal/CMakeLists.txt
+++ b/libs/libc/signal/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/signal/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/signal/Make.defs b/libs/libc/signal/Make.defs
index 3b3b229..7d42a23 100644
--- a/libs/libc/signal/Make.defs
+++ b/libs/libc/signal/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/signal/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_addset.c b/libs/libc/signal/sig_addset.c
index b2bcc2c..57d00c7 100644
--- a/libs/libc/signal/sig_addset.c
+++ b/libs/libc/signal/sig_addset.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_addset.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_altstack.c b/libs/libc/signal/sig_altstack.c
index e9c8e5f..4f4c18f 100644
--- a/libs/libc/signal/sig_altstack.c
+++ b/libs/libc/signal/sig_altstack.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_altstack.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_andset.c b/libs/libc/signal/sig_andset.c
index 57474df..018592b 100644
--- a/libs/libc/signal/sig_andset.c
+++ b/libs/libc/signal/sig_andset.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_andset.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_delset.c b/libs/libc/signal/sig_delset.c
index aa0d541..29d6a96 100644
--- a/libs/libc/signal/sig_delset.c
+++ b/libs/libc/signal/sig_delset.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_delset.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_emptyset.c b/libs/libc/signal/sig_emptyset.c
index dd5ddec..98be75e 100644
--- a/libs/libc/signal/sig_emptyset.c
+++ b/libs/libc/signal/sig_emptyset.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_emptyset.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_fillset.c b/libs/libc/signal/sig_fillset.c
index 9f88bee..8f08ddf 100644
--- a/libs/libc/signal/sig_fillset.c
+++ b/libs/libc/signal/sig_fillset.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_fillset.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_hold.c b/libs/libc/signal/sig_hold.c
index ed990b7..2d4c5b7 100644
--- a/libs/libc/signal/sig_hold.c
+++ b/libs/libc/signal/sig_hold.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_hold.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_ignore.c b/libs/libc/signal/sig_ignore.c
index ad97ac9..23b8563 100644
--- a/libs/libc/signal/sig_ignore.c
+++ b/libs/libc/signal/sig_ignore.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_ignore.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_interrupt.c b/libs/libc/signal/sig_interrupt.c
index cc3e0d4..676b95c 100644
--- a/libs/libc/signal/sig_interrupt.c
+++ b/libs/libc/signal/sig_interrupt.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_interrupt.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_isemptyset.c b/libs/libc/signal/sig_isemptyset.c
index 874a160..b98ff27 100644
--- a/libs/libc/signal/sig_isemptyset.c
+++ b/libs/libc/signal/sig_isemptyset.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_isemptyset.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_ismember.c b/libs/libc/signal/sig_ismember.c
index d605a92..0b760c7 100644
--- a/libs/libc/signal/sig_ismember.c
+++ b/libs/libc/signal/sig_ismember.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_ismember.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_killpg.c b/libs/libc/signal/sig_killpg.c
index e1869f6..f0c2d50 100644
--- a/libs/libc/signal/sig_killpg.c
+++ b/libs/libc/signal/sig_killpg.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_killpg.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_nandset.c b/libs/libc/signal/sig_nandset.c
index b5b8d9a..78ae718 100644
--- a/libs/libc/signal/sig_nandset.c
+++ b/libs/libc/signal/sig_nandset.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_nandset.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_orset.c b/libs/libc/signal/sig_orset.c
index d253cb4..ffef2bb 100644
--- a/libs/libc/signal/sig_orset.c
+++ b/libs/libc/signal/sig_orset.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_orset.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_pause.c b/libs/libc/signal/sig_pause.c
index edb8b14..63b0cab 100644
--- a/libs/libc/signal/sig_pause.c
+++ b/libs/libc/signal/sig_pause.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_pause.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_psignal.c b/libs/libc/signal/sig_psignal.c
index 6bada1a..4402f80 100644
--- a/libs/libc/signal/sig_psignal.c
+++ b/libs/libc/signal/sig_psignal.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_psignal.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_raise.c b/libs/libc/signal/sig_raise.c
index 17bbbcc..f5a847a 100644
--- a/libs/libc/signal/sig_raise.c
+++ b/libs/libc/signal/sig_raise.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_raise.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_relse.c b/libs/libc/signal/sig_relse.c
index cf283d7..42502aa 100644
--- a/libs/libc/signal/sig_relse.c
+++ b/libs/libc/signal/sig_relse.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_relse.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_set.c b/libs/libc/signal/sig_set.c
index 3b78f6b..ae2f23c 100644
--- a/libs/libc/signal/sig_set.c
+++ b/libs/libc/signal/sig_set.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_set.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_signal.c b/libs/libc/signal/sig_signal.c
index d161910..8ed40cf 100644
--- a/libs/libc/signal/sig_signal.c
+++ b/libs/libc/signal/sig_signal.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_signal.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_wait.c b/libs/libc/signal/sig_wait.c
index ede4744..b4df7f5 100644
--- a/libs/libc/signal/sig_wait.c
+++ b/libs/libc/signal/sig_wait.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_wait.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/signal/sig_xorset.c b/libs/libc/signal/sig_xorset.c
index cec9d21..55ad9bf 100644
--- a/libs/libc/signal/sig_xorset.c
+++ b/libs/libc/signal/sig_xorset.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/signal/sig_xorset.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/CMakeLists.txt b/libs/libc/spawn/CMakeLists.txt
index b91fc38..10579ef 100644
--- a/libs/libc/spawn/CMakeLists.txt
+++ b/libs/libc/spawn/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/spawn/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/spawn/Make.defs b/libs/libc/spawn/Make.defs
index 783c371..4d72a30 100644
--- a/libs/libc/spawn/Make.defs
+++ b/libs/libc/spawn/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/spawn/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_destroy.c b/libs/libc/spawn/lib_psa_destroy.c
index d6bb22e..c56375d 100644
--- a/libs/libc/spawn/lib_psa_destroy.c
+++ b/libs/libc/spawn/lib_psa_destroy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_destroy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_dump.c b/libs/libc/spawn/lib_psa_dump.c
index d45efe8..5823a56 100644
--- a/libs/libc/spawn/lib_psa_dump.c
+++ b/libs/libc/spawn/lib_psa_dump.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_dump.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_getflags.c b/libs/libc/spawn/lib_psa_getflags.c
index e7c8733..779705a 100644
--- a/libs/libc/spawn/lib_psa_getflags.c
+++ b/libs/libc/spawn/lib_psa_getflags.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_getflags.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_getschedparam.c b/libs/libc/spawn/lib_psa_getschedparam.c
index 00d62ad..ea7b66f 100644
--- a/libs/libc/spawn/lib_psa_getschedparam.c
+++ b/libs/libc/spawn/lib_psa_getschedparam.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_getschedparam.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_getschedpolicy.c b/libs/libc/spawn/lib_psa_getschedpolicy.c
index a31dea9..81fbb6b 100644
--- a/libs/libc/spawn/lib_psa_getschedpolicy.c
+++ b/libs/libc/spawn/lib_psa_getschedpolicy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_getschedpolicy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_getsigmask.c b/libs/libc/spawn/lib_psa_getsigmask.c
index 70e558c..d993e2c 100644
--- a/libs/libc/spawn/lib_psa_getsigmask.c
+++ b/libs/libc/spawn/lib_psa_getsigmask.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_getsigmask.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_getstackaddr.c b/libs/libc/spawn/lib_psa_getstackaddr.c
index 36798c8..20b2909 100644
--- a/libs/libc/spawn/lib_psa_getstackaddr.c
+++ b/libs/libc/spawn/lib_psa_getstackaddr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_getstackaddr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_getstacksize.c b/libs/libc/spawn/lib_psa_getstacksize.c
index fbbb98d..6118c37 100644
--- a/libs/libc/spawn/lib_psa_getstacksize.c
+++ b/libs/libc/spawn/lib_psa_getstacksize.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_getstacksize.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_init.c b/libs/libc/spawn/lib_psa_init.c
index cb1261e..306e68d 100644
--- a/libs/libc/spawn/lib_psa_init.c
+++ b/libs/libc/spawn/lib_psa_init.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_init.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_setflags.c b/libs/libc/spawn/lib_psa_setflags.c
index c417dab..9997f75 100644
--- a/libs/libc/spawn/lib_psa_setflags.c
+++ b/libs/libc/spawn/lib_psa_setflags.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_setflags.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_setschedparam.c b/libs/libc/spawn/lib_psa_setschedparam.c
index a02aebf..a347a99 100644
--- a/libs/libc/spawn/lib_psa_setschedparam.c
+++ b/libs/libc/spawn/lib_psa_setschedparam.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_setschedparam.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_setschedpolicy.c b/libs/libc/spawn/lib_psa_setschedpolicy.c
index c0f5c39..7278fc0 100644
--- a/libs/libc/spawn/lib_psa_setschedpolicy.c
+++ b/libs/libc/spawn/lib_psa_setschedpolicy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_setschedpolicy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_setsigmask.c b/libs/libc/spawn/lib_psa_setsigmask.c
index e176f59..be085ce 100644
--- a/libs/libc/spawn/lib_psa_setsigmask.c
+++ b/libs/libc/spawn/lib_psa_setsigmask.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_setsigmask.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_setstackaddr.c b/libs/libc/spawn/lib_psa_setstackaddr.c
index 058c8b8..537f8f5 100644
--- a/libs/libc/spawn/lib_psa_setstackaddr.c
+++ b/libs/libc/spawn/lib_psa_setstackaddr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_setstackaddr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psa_setstacksize.c b/libs/libc/spawn/lib_psa_setstacksize.c
index 0aa2dc8..042b53a 100644
--- a/libs/libc/spawn/lib_psa_setstacksize.c
+++ b/libs/libc/spawn/lib_psa_setstacksize.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psa_setstacksize.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psfa_addaction.c b/libs/libc/spawn/lib_psfa_addaction.c
index deeb7f0..15cb2d7 100644
--- a/libs/libc/spawn/lib_psfa_addaction.c
+++ b/libs/libc/spawn/lib_psfa_addaction.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psfa_addaction.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psfa_addclose.c b/libs/libc/spawn/lib_psfa_addclose.c
index 9a86436..b940ba0 100644
--- a/libs/libc/spawn/lib_psfa_addclose.c
+++ b/libs/libc/spawn/lib_psfa_addclose.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psfa_addclose.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psfa_adddup2.c b/libs/libc/spawn/lib_psfa_adddup2.c
index 58697a6..bf88260 100644
--- a/libs/libc/spawn/lib_psfa_adddup2.c
+++ b/libs/libc/spawn/lib_psfa_adddup2.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psfa_adddup2.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psfa_addopen.c b/libs/libc/spawn/lib_psfa_addopen.c
index 6a3aeec..66bbd8b 100644
--- a/libs/libc/spawn/lib_psfa_addopen.c
+++ b/libs/libc/spawn/lib_psfa_addopen.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psfa_addopen.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psfa_destroy.c b/libs/libc/spawn/lib_psfa_destroy.c
index b3aea25..ea98f98 100644
--- a/libs/libc/spawn/lib_psfa_destroy.c
+++ b/libs/libc/spawn/lib_psfa_destroy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psfa_destroy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psfa_dump.c b/libs/libc/spawn/lib_psfa_dump.c
index 9701051..8d0b598 100644
--- a/libs/libc/spawn/lib_psfa_dump.c
+++ b/libs/libc/spawn/lib_psfa_dump.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psfa_dump.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/spawn/lib_psfa_init.c b/libs/libc/spawn/lib_psfa_init.c
index 247d27b..dc7d981 100644
--- a/libs/libc/spawn/lib_psfa_init.c
+++ b/libs/libc/spawn/lib_psfa_init.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/spawn/lib_psfa_init.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/CMakeLists.txt b/libs/libc/stdio/CMakeLists.txt
index 8f89bae..a62fd9d 100644
--- a/libs/libc/stdio/CMakeLists.txt
+++ b/libs/libc/stdio/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/stdio/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/stdio/Make.defs b/libs/libc/stdio/Make.defs
index c385947..5f61a8f 100644
--- a/libs/libc/stdio/Make.defs
+++ b/libs/libc/stdio/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/stdio/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_asprintf.c b/libs/libc/stdio/lib_asprintf.c
index ce062d6..72b6563 100644
--- a/libs/libc/stdio/lib_asprintf.c
+++ b/libs/libc/stdio/lib_asprintf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_asprintf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_clearerr.c b/libs/libc/stdio/lib_clearerr.c
index faee4a9..43f2adb 100644
--- a/libs/libc/stdio/lib_clearerr.c
+++ b/libs/libc/stdio/lib_clearerr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_clearerr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_dprintf.c b/libs/libc/stdio/lib_dprintf.c
index 9d617d4..ba46015 100644
--- a/libs/libc/stdio/lib_dprintf.c
+++ b/libs/libc/stdio/lib_dprintf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_dprintf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_dtoa_data.c b/libs/libc/stdio/lib_dtoa_data.c
index 47bd578..4ae66ff 100644
--- a/libs/libc/stdio/lib_dtoa_data.c
+++ b/libs/libc/stdio/lib_dtoa_data.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_dtoa_data.c
*
- * Copyright © 2018, Keith Packard
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2018, Keith Packard. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/stdio/lib_dtoa_engine.c b/libs/libc/stdio/lib_dtoa_engine.c
index 76ccb7d..63ec9b1 100644
--- a/libs/libc/stdio/lib_dtoa_engine.c
+++ b/libs/libc/stdio/lib_dtoa_engine.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_dtoa_engine.c
*
- * Copyright © 2018, Keith Packard
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2018, Keith Packard. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/stdio/lib_dtoa_engine.h b/libs/libc/stdio/lib_dtoa_engine.h
index d09e1df..ab6e2ce 100644
--- a/libs/libc/stdio/lib_dtoa_engine.h
+++ b/libs/libc/stdio/lib_dtoa_engine.h
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_dtoa_engine.h
*
- * Copyright © 2018, Keith Packard
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2018, Keith Packard. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/stdio/lib_fclose.c b/libs/libc/stdio/lib_fclose.c
index 98b28ed..cee301e 100644
--- a/libs/libc/stdio/lib_fclose.c
+++ b/libs/libc/stdio/lib_fclose.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fclose.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_feof.c b/libs/libc/stdio/lib_feof.c
index b87015f..dcbde85 100644
--- a/libs/libc/stdio/lib_feof.c
+++ b/libs/libc/stdio/lib_feof.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_feof.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_ferror.c b/libs/libc/stdio/lib_ferror.c
index 32ecf8c..9352258 100644
--- a/libs/libc/stdio/lib_ferror.c
+++ b/libs/libc/stdio/lib_ferror.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_ferror.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fflush.c b/libs/libc/stdio/lib_fflush.c
index 5c461f4..2a7358c 100644
--- a/libs/libc/stdio/lib_fflush.c
+++ b/libs/libc/stdio/lib_fflush.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fflush.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fgetc.c b/libs/libc/stdio/lib_fgetc.c
index 2a4f19c..88ad21b 100644
--- a/libs/libc/stdio/lib_fgetc.c
+++ b/libs/libc/stdio/lib_fgetc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fgetc.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fgetpos.c b/libs/libc/stdio/lib_fgetpos.c
index 6a77e77..f2eecfd 100644
--- a/libs/libc/stdio/lib_fgetpos.c
+++ b/libs/libc/stdio/lib_fgetpos.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fgetpos.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fgets.c b/libs/libc/stdio/lib_fgets.c
index e39ca95..2f81d78 100644
--- a/libs/libc/stdio/lib_fgets.c
+++ b/libs/libc/stdio/lib_fgets.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fgets.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fgetwc.c b/libs/libc/stdio/lib_fgetwc.c
index 463669f..5215abf 100644
--- a/libs/libc/stdio/lib_fgetwc.c
+++ b/libs/libc/stdio/lib_fgetwc.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fgetwc.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/stdio/lib_fileno.c b/libs/libc/stdio/lib_fileno.c
index c90d6bd..a32e57f 100644
--- a/libs/libc/stdio/lib_fileno.c
+++ b/libs/libc/stdio/lib_fileno.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fileno.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fmemopen.c b/libs/libc/stdio/lib_fmemopen.c
index 9524899..846c50f 100644
--- a/libs/libc/stdio/lib_fmemopen.c
+++ b/libs/libc/stdio/lib_fmemopen.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fmemopen.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fopen.c b/libs/libc/stdio/lib_fopen.c
index 1576ee4..0881222 100644
--- a/libs/libc/stdio/lib_fopen.c
+++ b/libs/libc/stdio/lib_fopen.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fopen.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fopencookie.c b/libs/libc/stdio/lib_fopencookie.c
index ce96e46..7efdad0 100644
--- a/libs/libc/stdio/lib_fopencookie.c
+++ b/libs/libc/stdio/lib_fopencookie.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fopencookie.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fprintf.c b/libs/libc/stdio/lib_fprintf.c
index 8d75858..b243e94 100644
--- a/libs/libc/stdio/lib_fprintf.c
+++ b/libs/libc/stdio/lib_fprintf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fprintf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fputc.c b/libs/libc/stdio/lib_fputc.c
index ac7c06f..4a971bb 100644
--- a/libs/libc/stdio/lib_fputc.c
+++ b/libs/libc/stdio/lib_fputc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fputc.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fputs.c b/libs/libc/stdio/lib_fputs.c
index 4ae8b50..4bb300b 100644
--- a/libs/libc/stdio/lib_fputs.c
+++ b/libs/libc/stdio/lib_fputs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fputs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fputwc.c b/libs/libc/stdio/lib_fputwc.c
index c3e3fa5..c114c19 100644
--- a/libs/libc/stdio/lib_fputwc.c
+++ b/libs/libc/stdio/lib_fputwc.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fputwc.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/stdio/lib_fputws.c b/libs/libc/stdio/lib_fputws.c
index 71d4f3f..304426c 100644
--- a/libs/libc/stdio/lib_fputws.c
+++ b/libs/libc/stdio/lib_fputws.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fputws.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/stdio/lib_fread.c b/libs/libc/stdio/lib_fread.c
index 9b94a64..51ed2d6 100644
--- a/libs/libc/stdio/lib_fread.c
+++ b/libs/libc/stdio/lib_fread.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fread.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_freopen.c b/libs/libc/stdio/lib_freopen.c
index b9b52db..cefb566 100644
--- a/libs/libc/stdio/lib_freopen.c
+++ b/libs/libc/stdio/lib_freopen.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_freopen.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fscanf.c b/libs/libc/stdio/lib_fscanf.c
index 3e511ea..bae36fe 100644
--- a/libs/libc/stdio/lib_fscanf.c
+++ b/libs/libc/stdio/lib_fscanf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fscanf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fseek.c b/libs/libc/stdio/lib_fseek.c
index 9dd5dcf..8f48b59 100644
--- a/libs/libc/stdio/lib_fseek.c
+++ b/libs/libc/stdio/lib_fseek.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fseek.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fseeko.c b/libs/libc/stdio/lib_fseeko.c
index cf80628..72002ff 100644
--- a/libs/libc/stdio/lib_fseeko.c
+++ b/libs/libc/stdio/lib_fseeko.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fseeko.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fsetpos.c b/libs/libc/stdio/lib_fsetpos.c
index 6e6a063..a0ac40f 100644
--- a/libs/libc/stdio/lib_fsetpos.c
+++ b/libs/libc/stdio/lib_fsetpos.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fsetpos.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_ftell.c b/libs/libc/stdio/lib_ftell.c
index dc40fb5..668ad12 100644
--- a/libs/libc/stdio/lib_ftell.c
+++ b/libs/libc/stdio/lib_ftell.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_ftell.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_ftello.c b/libs/libc/stdio/lib_ftello.c
index 7353021..0d4c934 100644
--- a/libs/libc/stdio/lib_ftello.c
+++ b/libs/libc/stdio/lib_ftello.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_ftello.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_fwrite.c b/libs/libc/stdio/lib_fwrite.c
index 0856ccf..7f09d0a 100644
--- a/libs/libc/stdio/lib_fwrite.c
+++ b/libs/libc/stdio/lib_fwrite.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_fwrite.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_getc.c b/libs/libc/stdio/lib_getc.c
index 693f43e..b322412 100644
--- a/libs/libc/stdio/lib_getc.c
+++ b/libs/libc/stdio/lib_getc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_getc.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_getchar.c b/libs/libc/stdio/lib_getchar.c
index 5904c85..4034661 100644
--- a/libs/libc/stdio/lib_getchar.c
+++ b/libs/libc/stdio/lib_getchar.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_getchar.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_getdelim.c b/libs/libc/stdio/lib_getdelim.c
index 46c3acd..3eaed14 100644
--- a/libs/libc/stdio/lib_getdelim.c
+++ b/libs/libc/stdio/lib_getdelim.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_getdelim.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_gets.c b/libs/libc/stdio/lib_gets.c
index c39d447..c35c86b 100644
--- a/libs/libc/stdio/lib_gets.c
+++ b/libs/libc/stdio/lib_gets.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_gets.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_gets_s.c b/libs/libc/stdio/lib_gets_s.c
index fb9a265..bcb9c02 100644
--- a/libs/libc/stdio/lib_gets_s.c
+++ b/libs/libc/stdio/lib_gets_s.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_gets_s.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_getwc.c b/libs/libc/stdio/lib_getwc.c
index df8870f..8b91d9f 100644
--- a/libs/libc/stdio/lib_getwc.c
+++ b/libs/libc/stdio/lib_getwc.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_getwc.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/stdio/lib_libbsprintf.c b/libs/libc/stdio/lib_libbsprintf.c
index 714d561..a6dda52 100644
--- a/libs/libc/stdio/lib_libbsprintf.c
+++ b/libs/libc/stdio/lib_libbsprintf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_libbsprintf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_libdgets.c b/libs/libc/stdio/lib_libdgets.c
index 2281516..0f1f8da 100644
--- a/libs/libc/stdio/lib_libdgets.c
+++ b/libs/libc/stdio/lib_libdgets.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_libdgets.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_libfflush.c b/libs/libc/stdio/lib_libfflush.c
index 2e268a0..a0fcb34 100644
--- a/libs/libc/stdio/lib_libfflush.c
+++ b/libs/libc/stdio/lib_libfflush.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_libfflush.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_libfgets.c b/libs/libc/stdio/lib_libfgets.c
index cb07f26..c50191f 100644
--- a/libs/libc/stdio/lib_libfgets.c
+++ b/libs/libc/stdio/lib_libfgets.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_libfgets.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_libfilelock.c b/libs/libc/stdio/lib_libfilelock.c
index f13c5b8..a0e355b 100644
--- a/libs/libc/stdio/lib_libfilelock.c
+++ b/libs/libc/stdio/lib_libfilelock.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_libfilelock.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_libflushall.c b/libs/libc/stdio/lib_libflushall.c
index f8b60b2..be82451 100644
--- a/libs/libc/stdio/lib_libflushall.c
+++ b/libs/libc/stdio/lib_libflushall.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_libflushall.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_libfread_unlocked.c b/libs/libc/stdio/lib_libfread_unlocked.c
index 9b56854..1ce4f93 100644
--- a/libs/libc/stdio/lib_libfread_unlocked.c
+++ b/libs/libc/stdio/lib_libfread_unlocked.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_libfread_unlocked.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_libfwrite.c b/libs/libc/stdio/lib_libfwrite.c
index 6e00bb5..37a6535 100644
--- a/libs/libc/stdio/lib_libfwrite.c
+++ b/libs/libc/stdio/lib_libfwrite.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_libfwrite.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_libgetstreams.c b/libs/libc/stdio/lib_libgetstreams.c
index df412ad..7775cc6 100644
--- a/libs/libc/stdio/lib_libgetstreams.c
+++ b/libs/libc/stdio/lib_libgetstreams.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_libgetstreams.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_libsprintf.c b/libs/libc/stdio/lib_libsprintf.c
index 5b16b48..fdfca62 100644
--- a/libs/libc/stdio/lib_libsprintf.c
+++ b/libs/libc/stdio/lib_libsprintf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_libsprintf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_libvscanf.c b/libs/libc/stdio/lib_libvscanf.c
index da73e1e..f232ab0 100644
--- a/libs/libc/stdio/lib_libvscanf.c
+++ b/libs/libc/stdio/lib_libvscanf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_libvscanf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_libvsprintf.c b/libs/libc/stdio/lib_libvsprintf.c
index 34911c0..e0402ac 100644
--- a/libs/libc/stdio/lib_libvsprintf.c
+++ b/libs/libc/stdio/lib_libvsprintf.c
@@ -1,11 +1,11 @@
/****************************************************************************
* libs/libc/stdio/lib_libvsprintf.c
*
- * Copyright (c) 2002, Alexander Popov (sasho@vip.bg)
- * Copyright (c) 2002,2004,2005 Joerg Wunsch
- * Copyright (c) 2005, Helmut Wallner
- * Copyright (c) 2007, Dmitry Xmelkov
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2002, Alexander Popov (sasho@vip.bg)
+ * SPDX-FileCopyrightText: 2002,2004,2005 Joerg Wunsch
+ * SPDX-FileCopyrightText: 2005, Helmut Wallner
+ * SPDX-FileCopyrightText: 2007, Dmitry Xmelkov
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/stdio/lib_open_memstream.c b/libs/libc/stdio/lib_open_memstream.c
index 777973e..eef98b5 100644
--- a/libs/libc/stdio/lib_open_memstream.c
+++ b/libs/libc/stdio/lib_open_memstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_open_memstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_perror.c b/libs/libc/stdio/lib_perror.c
index 60e74e1..da93099 100644
--- a/libs/libc/stdio/lib_perror.c
+++ b/libs/libc/stdio/lib_perror.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_perror.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_printf.c b/libs/libc/stdio/lib_printf.c
index 2d93482..7c787fb 100644
--- a/libs/libc/stdio/lib_printf.c
+++ b/libs/libc/stdio/lib_printf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_printf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_putc.c b/libs/libc/stdio/lib_putc.c
index 00162b7..8dbe32f 100644
--- a/libs/libc/stdio/lib_putc.c
+++ b/libs/libc/stdio/lib_putc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_putc.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_putchar.c b/libs/libc/stdio/lib_putchar.c
index 97a9ea9..e993667 100644
--- a/libs/libc/stdio/lib_putchar.c
+++ b/libs/libc/stdio/lib_putchar.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_putchar.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_puts.c b/libs/libc/stdio/lib_puts.c
index f6d45fc..b51a5a8 100644
--- a/libs/libc/stdio/lib_puts.c
+++ b/libs/libc/stdio/lib_puts.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_puts.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_putwc.c b/libs/libc/stdio/lib_putwc.c
index f552219..9fc4d16 100644
--- a/libs/libc/stdio/lib_putwc.c
+++ b/libs/libc/stdio/lib_putwc.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_putwc.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/stdio/lib_putwchar.c b/libs/libc/stdio/lib_putwchar.c
index 4391164..c4761fc 100644
--- a/libs/libc/stdio/lib_putwchar.c
+++ b/libs/libc/stdio/lib_putwchar.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_putwchar.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/stdio/lib_rdflush_unlocked.c b/libs/libc/stdio/lib_rdflush_unlocked.c
index 5b5f275..59f2cbc 100644
--- a/libs/libc/stdio/lib_rdflush_unlocked.c
+++ b/libs/libc/stdio/lib_rdflush_unlocked.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_rdflush_unlocked.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_remove.c b/libs/libc/stdio/lib_remove.c
index c455b1d..5242c1e 100644
--- a/libs/libc/stdio/lib_remove.c
+++ b/libs/libc/stdio/lib_remove.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_remove.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_renameat.c b/libs/libc/stdio/lib_renameat.c
index 99abe26..f1e3319 100644
--- a/libs/libc/stdio/lib_renameat.c
+++ b/libs/libc/stdio/lib_renameat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_renameat.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_rewind.c b/libs/libc/stdio/lib_rewind.c
index e488eaf..fadc4d7 100644
--- a/libs/libc/stdio/lib_rewind.c
+++ b/libs/libc/stdio/lib_rewind.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_rewind.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_scanf.c b/libs/libc/stdio/lib_scanf.c
index 349a1de..4444310 100644
--- a/libs/libc/stdio/lib_scanf.c
+++ b/libs/libc/stdio/lib_scanf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_scanf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_setbuf.c b/libs/libc/stdio/lib_setbuf.c
index 5df2292..16e4483 100644
--- a/libs/libc/stdio/lib_setbuf.c
+++ b/libs/libc/stdio/lib_setbuf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_setbuf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_setbuffer.c b/libs/libc/stdio/lib_setbuffer.c
index 0d880f6..27a3a11 100644
--- a/libs/libc/stdio/lib_setbuffer.c
+++ b/libs/libc/stdio/lib_setbuffer.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_setbuffer.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_setvbuf.c b/libs/libc/stdio/lib_setvbuf.c
index 0277cfd..3231dbf 100644
--- a/libs/libc/stdio/lib_setvbuf.c
+++ b/libs/libc/stdio/lib_setvbuf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_setvbuf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_snprintf.c b/libs/libc/stdio/lib_snprintf.c
index 6884f36..68a625b 100644
--- a/libs/libc/stdio/lib_snprintf.c
+++ b/libs/libc/stdio/lib_snprintf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_snprintf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_sprintf.c b/libs/libc/stdio/lib_sprintf.c
index 1536828..6d2951a 100644
--- a/libs/libc/stdio/lib_sprintf.c
+++ b/libs/libc/stdio/lib_sprintf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_sprintf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_sscanf.c b/libs/libc/stdio/lib_sscanf.c
index 3349713..8722647 100644
--- a/libs/libc/stdio/lib_sscanf.c
+++ b/libs/libc/stdio/lib_sscanf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_sscanf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_tempnam.c b/libs/libc/stdio/lib_tempnam.c
index 7151905..def0853 100644
--- a/libs/libc/stdio/lib_tempnam.c
+++ b/libs/libc/stdio/lib_tempnam.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_tempnam.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_tmpfile.c b/libs/libc/stdio/lib_tmpfile.c
index 1965c09..779db9c 100644
--- a/libs/libc/stdio/lib_tmpfile.c
+++ b/libs/libc/stdio/lib_tmpfile.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_tmpfile.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_tmpnam.c b/libs/libc/stdio/lib_tmpnam.c
index e480446..b40c431 100644
--- a/libs/libc/stdio/lib_tmpnam.c
+++ b/libs/libc/stdio/lib_tmpnam.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_tmpnam.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_ultoa_invert.c b/libs/libc/stdio/lib_ultoa_invert.c
index ae35b96..8c4aeab 100644
--- a/libs/libc/stdio/lib_ultoa_invert.c
+++ b/libs/libc/stdio/lib_ultoa_invert.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_ultoa_invert.c
*
- * Copyright © 2017, Keith Packard
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2017, Keith Packard. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/stdio/lib_ultoa_invert.h b/libs/libc/stdio/lib_ultoa_invert.h
index b297a2f..52a3792 100644
--- a/libs/libc/stdio/lib_ultoa_invert.h
+++ b/libs/libc/stdio/lib_ultoa_invert.h
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_ultoa_invert.h
*
- * Copyright (c) 2005, Dmitry Xmelkov
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2005, Dmitry Xmelkov. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/stdio/lib_ungetc.c b/libs/libc/stdio/lib_ungetc.c
index 1b9827c..76b3c68 100644
--- a/libs/libc/stdio/lib_ungetc.c
+++ b/libs/libc/stdio/lib_ungetc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_ungetc.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_ungetwc.c b/libs/libc/stdio/lib_ungetwc.c
index d3ea7bc..fcd8b91 100644
--- a/libs/libc/stdio/lib_ungetwc.c
+++ b/libs/libc/stdio/lib_ungetwc.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_ungetwc.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/stdio/lib_vasprintf.c b/libs/libc/stdio/lib_vasprintf.c
index 257640a..5f00137 100644
--- a/libs/libc/stdio/lib_vasprintf.c
+++ b/libs/libc/stdio/lib_vasprintf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_vasprintf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_vdprintf.c b/libs/libc/stdio/lib_vdprintf.c
index aef5923..d7c7349 100644
--- a/libs/libc/stdio/lib_vdprintf.c
+++ b/libs/libc/stdio/lib_vdprintf.c
@@ -1,9 +1,10 @@
/****************************************************************************
* libs/libc/stdio/lib_vdprintf.c
*
- * Copyright (C) 2012 Andrew Tridgell. All rights reserved.
- * Authors: Andrew Tridgell <andrew@tridgell.net>
- * Gregory Nutt <gnutt@nuttx.org>
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2012 Andrew Tridgell. All rights reserved.
+ * SPDX-FileContributor: Andrew Tridgell <andrew@tridgell.net>
+ * SPDX-FileContributor: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/stdio/lib_vfprintf.c b/libs/libc/stdio/lib_vfprintf.c
index 511accc..a9963d2 100644
--- a/libs/libc/stdio/lib_vfprintf.c
+++ b/libs/libc/stdio/lib_vfprintf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_vfprintf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_vfscanf.c b/libs/libc/stdio/lib_vfscanf.c
index 9106b41..8ecd148 100644
--- a/libs/libc/stdio/lib_vfscanf.c
+++ b/libs/libc/stdio/lib_vfscanf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_vfscanf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_vprintf.c b/libs/libc/stdio/lib_vprintf.c
index eeb0e16..fd980a9 100644
--- a/libs/libc/stdio/lib_vprintf.c
+++ b/libs/libc/stdio/lib_vprintf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_vprintf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_vscanf.c b/libs/libc/stdio/lib_vscanf.c
index bd49105..e87590c 100644
--- a/libs/libc/stdio/lib_vscanf.c
+++ b/libs/libc/stdio/lib_vscanf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_vscanf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_vsnprintf.c b/libs/libc/stdio/lib_vsnprintf.c
index 292056c..8b81e07 100644
--- a/libs/libc/stdio/lib_vsnprintf.c
+++ b/libs/libc/stdio/lib_vsnprintf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_vsnprintf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_vsprintf.c b/libs/libc/stdio/lib_vsprintf.c
index b474a63..aae5df4 100644
--- a/libs/libc/stdio/lib_vsprintf.c
+++ b/libs/libc/stdio/lib_vsprintf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_vsprintf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_vsscanf.c b/libs/libc/stdio/lib_vsscanf.c
index 6be4a0c..8a35242 100644
--- a/libs/libc/stdio/lib_vsscanf.c
+++ b/libs/libc/stdio/lib_vsscanf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_vsscanf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdio/lib_wrflush_unlocked.c b/libs/libc/stdio/lib_wrflush_unlocked.c
index 0280ac7..3260388 100644
--- a/libs/libc/stdio/lib_wrflush_unlocked.c
+++ b/libs/libc/stdio/lib_wrflush_unlocked.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdio/lib_wrflush_unlocked.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/CMakeLists.txt b/libs/libc/stdlib/CMakeLists.txt
index f2a21cd..a0cde9e 100644
--- a/libs/libc/stdlib/CMakeLists.txt
+++ b/libs/libc/stdlib/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/stdlib/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/stdlib/Make.defs b/libs/libc/stdlib/Make.defs
index 4f719d4..3294bfd 100644
--- a/libs/libc/stdlib/Make.defs
+++ b/libs/libc/stdlib/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/stdlib/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_abort.c b/libs/libc/stdlib/lib_abort.c
index e155084..4f41a2e 100644
--- a/libs/libc/stdlib/lib_abort.c
+++ b/libs/libc/stdlib/lib_abort.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_abort.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_abs.c b/libs/libc/stdlib/lib_abs.c
index 7926406..eed9056 100644
--- a/libs/libc/stdlib/lib_abs.c
+++ b/libs/libc/stdlib/lib_abs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_abs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_aligned_alloc.c b/libs/libc/stdlib/lib_aligned_alloc.c
index 53bcebc..f04e437 100644
--- a/libs/libc/stdlib/lib_aligned_alloc.c
+++ b/libs/libc/stdlib/lib_aligned_alloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_aligned_alloc.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_atexit.c b/libs/libc/stdlib/lib_atexit.c
index b2cfcea..5a3322c 100644
--- a/libs/libc/stdlib/lib_atexit.c
+++ b/libs/libc/stdlib/lib_atexit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_atexit.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_atof.c b/libs/libc/stdlib/lib_atof.c
index 3c75173..9e04a3d 100644
--- a/libs/libc/stdlib/lib_atof.c
+++ b/libs/libc/stdlib/lib_atof.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_atof.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_atoi.c b/libs/libc/stdlib/lib_atoi.c
index 4181464..5c48e6d 100644
--- a/libs/libc/stdlib/lib_atoi.c
+++ b/libs/libc/stdlib/lib_atoi.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_atoi.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_atol.c b/libs/libc/stdlib/lib_atol.c
index d1d6ba8..31bc867 100644
--- a/libs/libc/stdlib/lib_atol.c
+++ b/libs/libc/stdlib/lib_atol.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_atol.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_atoll.c b/libs/libc/stdlib/lib_atoll.c
index e42a065..300970c 100644
--- a/libs/libc/stdlib/lib_atoll.c
+++ b/libs/libc/stdlib/lib_atoll.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_atoll.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_checkbase.c b/libs/libc/stdlib/lib_checkbase.c
index ad8f112..3c322b6 100644
--- a/libs/libc/stdlib/lib_checkbase.c
+++ b/libs/libc/stdlib/lib_checkbase.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_checkbase.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_div.c b/libs/libc/stdlib/lib_div.c
index 818056a..af02d98 100644
--- a/libs/libc/stdlib/lib_div.c
+++ b/libs/libc/stdlib/lib_div.c
@@ -1,8 +1,9 @@
/****************************************************************************
* libs/libc/stdlib/lib_div.c
*
- * Copyright (C) 2015 Stavros Polymenis. All rights reserved.
- * Author: Stavros Polymenis <sp@orbitalfox.com>
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2015 Stavros Polymenis. All rights reserved.
+ * SPDX-FileContributor: Author: Stavros Polymenis <sp@orbitalfox.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/stdlib/lib_exit.c b/libs/libc/stdlib/lib_exit.c
index e45438b..3d371f2 100644
--- a/libs/libc/stdlib/lib_exit.c
+++ b/libs/libc/stdlib/lib_exit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_exit.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_getprogname.c b/libs/libc/stdlib/lib_getprogname.c
index eb244e2..33ead76 100644
--- a/libs/libc/stdlib/lib_getprogname.c
+++ b/libs/libc/stdlib/lib_getprogname.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_getprogname.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_itoa.c b/libs/libc/stdlib/lib_itoa.c
index a1eb52d..9f19614 100644
--- a/libs/libc/stdlib/lib_itoa.c
+++ b/libs/libc/stdlib/lib_itoa.c
@@ -1,13 +1,11 @@
/****************************************************************************
* libs/libc/stdlib/lib_itoa.c
*
- * Copyright (C) 2013 Brooks Automation, Inc. All rights reserved.
- * Author: Ryan Sundberg <ryan.sundberg@brooks.com>
- *
- * This file is a part of NuttX:
- *
- * Copyright (C) 2010-2011 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <gnutt@nuttx.org>
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2010-2011 Gregory Nutt
+ * SPDX-FileCopyrightText: 2013 Brooks Automation, Inc. All rights reserved.
+ * SPDX-FileContributor: Ryan Sundberg <ryan.sundberg@brooks.com>
+ * SPDX-FileContributor: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/stdlib/lib_labs.c b/libs/libc/stdlib/lib_labs.c
index 0f8f9ff..3cb7338 100644
--- a/libs/libc/stdlib/lib_labs.c
+++ b/libs/libc/stdlib/lib_labs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_labs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_ldiv.c b/libs/libc/stdlib/lib_ldiv.c
index 9b095e7..6278460 100644
--- a/libs/libc/stdlib/lib_ldiv.c
+++ b/libs/libc/stdlib/lib_ldiv.c
@@ -1,13 +1,11 @@
/****************************************************************************
* libs/libc/stdlib/lib_ldiv.c
*
- * Copyright (C) 2015 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <gnutt@nuttx.org>
- *
- * A direct leverage of the div() inplement by:
- *
- * Copyright (C) 2015 Stavros Polymenis. All rights reserved.
- * Author: Stavros Polymenis <sp@orbitalfox.com>
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2015 Gregory Nutt. All rights reserved.
+ * SPDX-FileCopyrightText: 2015 Stavros Polymenis. All rights reserved.
+ * SPDX-FileContributor: Gregory Nutt <gnutt@nuttx.org>
+ * SPDX-FileContributor: Stavros Polymenis <sp@orbitalfox.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/stdlib/lib_llabs.c b/libs/libc/stdlib/lib_llabs.c
index 5eb29cd..a2efd8d 100644
--- a/libs/libc/stdlib/lib_llabs.c
+++ b/libs/libc/stdlib/lib_llabs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_llabs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_lldiv.c b/libs/libc/stdlib/lib_lldiv.c
index 34ba598..b819447 100644
--- a/libs/libc/stdlib/lib_lldiv.c
+++ b/libs/libc/stdlib/lib_lldiv.c
@@ -1,13 +1,11 @@
/****************************************************************************
* libs/libc/stdlib/lib_lldiv.c
*
- * Copyright (C) 2015 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <gnutt@nuttx.org>
- *
- * A direct leverage of the div() inplement by:
- *
- * Copyright (C) 2015 Stavros Polymenis. All rights reserved.
- * Author: Stavros Polymenis <sp@orbitalfox.com>
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2015 Gregory Nutt. All rights reserved.
+ * SPDX-FileCopyrightText: 2015 Stavros Polymenis. All rights reserved.
+ * SPDX-FileContributor: Gregory Nutt <gnutt@nuttx.org>
+ * SPDX-FileContributor: Stavros Polymenis <sp@orbitalfox.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/stdlib/lib_mblen.c b/libs/libc/stdlib/lib_mblen.c
index 64fe2c1..3ead67b 100644
--- a/libs/libc/stdlib/lib_mblen.c
+++ b/libs/libc/stdlib/lib_mblen.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_mblen.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_mbstowcs.c b/libs/libc/stdlib/lib_mbstowcs.c
index 41a6c4f..37c9b6d 100644
--- a/libs/libc/stdlib/lib_mbstowcs.c
+++ b/libs/libc/stdlib/lib_mbstowcs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_mbstowcs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_mbtowc.c b/libs/libc/stdlib/lib_mbtowc.c
index 3ea8de4..4a95196 100644
--- a/libs/libc/stdlib/lib_mbtowc.c
+++ b/libs/libc/stdlib/lib_mbtowc.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_mbtowc.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/stdlib/lib_mkdtemp.c b/libs/libc/stdlib/lib_mkdtemp.c
index 59e7a14..19c84a1 100644
--- a/libs/libc/stdlib/lib_mkdtemp.c
+++ b/libs/libc/stdlib/lib_mkdtemp.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_mkdtemp.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_mkstemp.c b/libs/libc/stdlib/lib_mkstemp.c
index 1c64f2e..6f65bfe 100644
--- a/libs/libc/stdlib/lib_mkstemp.c
+++ b/libs/libc/stdlib/lib_mkstemp.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_mkstemp.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_mktemp.c b/libs/libc/stdlib/lib_mktemp.c
index aca6861..e742daa 100644
--- a/libs/libc/stdlib/lib_mktemp.c
+++ b/libs/libc/stdlib/lib_mktemp.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_mktemp.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_openpty.c b/libs/libc/stdlib/lib_openpty.c
index 6e80561..24f74dc 100644
--- a/libs/libc/stdlib/lib_openpty.c
+++ b/libs/libc/stdlib/lib_openpty.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_openpty.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_posix_memalign.c b/libs/libc/stdlib/lib_posix_memalign.c
index f4f8e5e..82ccf55 100644
--- a/libs/libc/stdlib/lib_posix_memalign.c
+++ b/libs/libc/stdlib/lib_posix_memalign.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_posix_memalign.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_ptsname.c b/libs/libc/stdlib/lib_ptsname.c
index 170db5d..ddf92bc 100644
--- a/libs/libc/stdlib/lib_ptsname.c
+++ b/libs/libc/stdlib/lib_ptsname.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_ptsname.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_ptsnamer.c b/libs/libc/stdlib/lib_ptsnamer.c
index cf8343f..8a342d3 100644
--- a/libs/libc/stdlib/lib_ptsnamer.c
+++ b/libs/libc/stdlib/lib_ptsnamer.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_ptsnamer.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_rand.c b/libs/libc/stdlib/lib_rand.c
index 23611da..b05878a 100644
--- a/libs/libc/stdlib/lib_rand.c
+++ b/libs/libc/stdlib/lib_rand.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_rand.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_rand48.c b/libs/libc/stdlib/lib_rand48.c
index 5d083d0..a5a3f6e 100644
--- a/libs/libc/stdlib/lib_rand48.c
+++ b/libs/libc/stdlib/lib_rand48.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_rand48.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_reallocarray.c b/libs/libc/stdlib/lib_reallocarray.c
index 1931a98..7810883 100644
--- a/libs/libc/stdlib/lib_reallocarray.c
+++ b/libs/libc/stdlib/lib_reallocarray.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_reallocarray.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_realpath.c b/libs/libc/stdlib/lib_realpath.c
index 596f244..3973e1a 100644
--- a/libs/libc/stdlib/lib_realpath.c
+++ b/libs/libc/stdlib/lib_realpath.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_realpath.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_srand.c b/libs/libc/stdlib/lib_srand.c
index ac20b95..3b5cc7a 100644
--- a/libs/libc/stdlib/lib_srand.c
+++ b/libs/libc/stdlib/lib_srand.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_srand.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_strtol.c b/libs/libc/stdlib/lib_strtol.c
index a517ad8..9e78ae8 100644
--- a/libs/libc/stdlib/lib_strtol.c
+++ b/libs/libc/stdlib/lib_strtol.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_strtol.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_strtold.c b/libs/libc/stdlib/lib_strtold.c
index d994ddf..56a2099 100644
--- a/libs/libc/stdlib/lib_strtold.c
+++ b/libs/libc/stdlib/lib_strtold.c
@@ -1,10 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_strtold.c
- * Convert string to float and (long) double
*
- * A pretty straight forward conversion of strtod():
- *
- * Copyright © 2005-2020 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: Copyright © 2005-2020 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/stdlib/lib_strtoll.c b/libs/libc/stdlib/lib_strtoll.c
index d495b4a..05dc917 100644
--- a/libs/libc/stdlib/lib_strtoll.c
+++ b/libs/libc/stdlib/lib_strtoll.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_strtoll.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_strtoul.c b/libs/libc/stdlib/lib_strtoul.c
index cc7025a..0dadec7 100644
--- a/libs/libc/stdlib/lib_strtoul.c
+++ b/libs/libc/stdlib/lib_strtoul.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_strtoul.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_strtoull.c b/libs/libc/stdlib/lib_strtoull.c
index b3b6804..e3ac64f 100644
--- a/libs/libc/stdlib/lib_strtoull.c
+++ b/libs/libc/stdlib/lib_strtoull.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_strtoull.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_unlockpt.c b/libs/libc/stdlib/lib_unlockpt.c
index aab8eb8..c792344 100644
--- a/libs/libc/stdlib/lib_unlockpt.c
+++ b/libs/libc/stdlib/lib_unlockpt.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_unlockpt.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_valloc.c b/libs/libc/stdlib/lib_valloc.c
index 1c72cf7..1114663 100644
--- a/libs/libc/stdlib/lib_valloc.c
+++ b/libs/libc/stdlib/lib_valloc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_valloc.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_wcstombs.c b/libs/libc/stdlib/lib_wcstombs.c
index 3b19a9d..e0520df 100644
--- a/libs/libc/stdlib/lib_wcstombs.c
+++ b/libs/libc/stdlib/lib_wcstombs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stdlib/lib_wcstombs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stdlib/lib_wctomb.c b/libs/libc/stdlib/lib_wctomb.c
index 855ed1c..dcf0aca 100644
--- a/libs/libc/stdlib/lib_wctomb.c
+++ b/libs/libc/stdlib/lib_wctomb.c
@@ -1,8 +1,7 @@
/****************************************************************************
* libs/libc/stdlib/lib_wctomb.c
*
- * This code is derived from software contributed to Berkeley by
- * Chris Torek.
+ * SPDX-License-Identifier: BSD-3-Clause-UC
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/stream/CMakeLists.txt b/libs/libc/stream/CMakeLists.txt
index fc6b53a..8c6fb41 100644
--- a/libs/libc/stream/CMakeLists.txt
+++ b/libs/libc/stream/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/stream/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/stream/Make.defs b/libs/libc/stream/Make.defs
index e9ae093..729411f 100644
--- a/libs/libc/stream/Make.defs
+++ b/libs/libc/stream/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/stream/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_blkoutstream.c b/libs/libc/stream/lib_blkoutstream.c
index 666f3f5..14be9be 100644
--- a/libs/libc/stream/lib_blkoutstream.c
+++ b/libs/libc/stream/lib_blkoutstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_blkoutstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_bufferedoutstream.c b/libs/libc/stream/lib_bufferedoutstream.c
index 305a0fc..ae9c9f5 100644
--- a/libs/libc/stream/lib_bufferedoutstream.c
+++ b/libs/libc/stream/lib_bufferedoutstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_bufferedoutstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_fileoutstream.c b/libs/libc/stream/lib_fileoutstream.c
index 02e0796..d3ffe6a 100644
--- a/libs/libc/stream/lib_fileoutstream.c
+++ b/libs/libc/stream/lib_fileoutstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_fileoutstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_hexdumpstream.c b/libs/libc/stream/lib_hexdumpstream.c
index 2854980..7bdcc89 100644
--- a/libs/libc/stream/lib_hexdumpstream.c
+++ b/libs/libc/stream/lib_hexdumpstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_hexdumpstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_libnoflush.c b/libs/libc/stream/lib_libnoflush.c
index 61dc0bc..0633812 100644
--- a/libs/libc/stream/lib_libnoflush.c
+++ b/libs/libc/stream/lib_libnoflush.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_libnoflush.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_libsnoflush.c b/libs/libc/stream/lib_libsnoflush.c
index cd69b31..c93e0bf 100644
--- a/libs/libc/stream/lib_libsnoflush.c
+++ b/libs/libc/stream/lib_libsnoflush.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_libsnoflush.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_lowoutstream.c b/libs/libc/stream/lib_lowoutstream.c
index 5bc248e..ffefea7 100644
--- a/libs/libc/stream/lib_lowoutstream.c
+++ b/libs/libc/stream/lib_lowoutstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_lowoutstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_lzfcompress.c b/libs/libc/stream/lib_lzfcompress.c
index a43d9af..a26bfa1 100644
--- a/libs/libc/stream/lib_lzfcompress.c
+++ b/libs/libc/stream/lib_lzfcompress.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_lzfcompress.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_meminstream.c b/libs/libc/stream/lib_meminstream.c
index 473a2e3..c4b0576 100644
--- a/libs/libc/stream/lib_meminstream.c
+++ b/libs/libc/stream/lib_meminstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_meminstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_memoutstream.c b/libs/libc/stream/lib_memoutstream.c
index 9186938..17b3bf2 100644
--- a/libs/libc/stream/lib_memoutstream.c
+++ b/libs/libc/stream/lib_memoutstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_memoutstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_memsistream.c b/libs/libc/stream/lib_memsistream.c
index d6146c3..08e6235 100644
--- a/libs/libc/stream/lib_memsistream.c
+++ b/libs/libc/stream/lib_memsistream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_memsistream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_memsostream.c b/libs/libc/stream/lib_memsostream.c
index ecfd694..2187c5e 100644
--- a/libs/libc/stream/lib_memsostream.c
+++ b/libs/libc/stream/lib_memsostream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_memsostream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_mtdoutstream.c b/libs/libc/stream/lib_mtdoutstream.c
index abdc58d..229a78d 100644
--- a/libs/libc/stream/lib_mtdoutstream.c
+++ b/libs/libc/stream/lib_mtdoutstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_mtdoutstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_nullinstream.c b/libs/libc/stream/lib_nullinstream.c
index def2fad..effdd1e 100644
--- a/libs/libc/stream/lib_nullinstream.c
+++ b/libs/libc/stream/lib_nullinstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_nullinstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_nulloutstream.c b/libs/libc/stream/lib_nulloutstream.c
index de18b07..c3f5739 100644
--- a/libs/libc/stream/lib_nulloutstream.c
+++ b/libs/libc/stream/lib_nulloutstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_nulloutstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_rawinstream.c b/libs/libc/stream/lib_rawinstream.c
index 0f39fe4..02d4e01 100644
--- a/libs/libc/stream/lib_rawinstream.c
+++ b/libs/libc/stream/lib_rawinstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_rawinstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_rawoutstream.c b/libs/libc/stream/lib_rawoutstream.c
index c905989..5eb798c 100644
--- a/libs/libc/stream/lib_rawoutstream.c
+++ b/libs/libc/stream/lib_rawoutstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_rawoutstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_rawsistream.c b/libs/libc/stream/lib_rawsistream.c
index e29b759..72d7755 100644
--- a/libs/libc/stream/lib_rawsistream.c
+++ b/libs/libc/stream/lib_rawsistream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_rawsistream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_rawsostream.c b/libs/libc/stream/lib_rawsostream.c
index 319486d..a81efa2 100644
--- a/libs/libc/stream/lib_rawsostream.c
+++ b/libs/libc/stream/lib_rawsostream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_rawsostream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_stdinstream.c b/libs/libc/stream/lib_stdinstream.c
index 40f4ac1..ae7094e 100644
--- a/libs/libc/stream/lib_stdinstream.c
+++ b/libs/libc/stream/lib_stdinstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_stdinstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_stdoutstream.c b/libs/libc/stream/lib_stdoutstream.c
index 8e168ff..6723461 100644
--- a/libs/libc/stream/lib_stdoutstream.c
+++ b/libs/libc/stream/lib_stdoutstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_stdoutstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_stdsistream.c b/libs/libc/stream/lib_stdsistream.c
index 0af0488..a86dab9 100644
--- a/libs/libc/stream/lib_stdsistream.c
+++ b/libs/libc/stream/lib_stdsistream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_stdsistream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_stdsostream.c b/libs/libc/stream/lib_stdsostream.c
index 02886d6..c3a2331 100644
--- a/libs/libc/stream/lib_stdsostream.c
+++ b/libs/libc/stream/lib_stdsostream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_stdsostream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_syslograwstream.c b/libs/libc/stream/lib_syslograwstream.c
index de99b9b..23354004 100644
--- a/libs/libc/stream/lib_syslograwstream.c
+++ b/libs/libc/stream/lib_syslograwstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_syslograwstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_syslogstream.c b/libs/libc/stream/lib_syslogstream.c
index e8af6d3..495a7ba 100644
--- a/libs/libc/stream/lib_syslogstream.c
+++ b/libs/libc/stream/lib_syslogstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_syslogstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/stream/lib_zeroinstream.c b/libs/libc/stream/lib_zeroinstream.c
index 55f4202..051e15c 100644
--- a/libs/libc/stream/lib_zeroinstream.c
+++ b/libs/libc/stream/lib_zeroinstream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/stream/lib_zeroinstream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/CMakeLists.txt b/libs/libc/string/CMakeLists.txt
index c893384..289316b 100644
--- a/libs/libc/string/CMakeLists.txt
+++ b/libs/libc/string/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/string/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/string/Make.defs b/libs/libc/string/Make.defs
index 54989a9..0f8ac1d 100644
--- a/libs/libc/string/Make.defs
+++ b/libs/libc/string/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/string/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_bzero.c b/libs/libc/string/lib_bzero.c
index a0dfeac..e73ad42 100644
--- a/libs/libc/string/lib_bzero.c
+++ b/libs/libc/string/lib_bzero.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_bzero.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_explicit_bzero.c b/libs/libc/string/lib_explicit_bzero.c
index ca8f7ce..05f2cd8 100644
--- a/libs/libc/string/lib_explicit_bzero.c
+++ b/libs/libc/string/lib_explicit_bzero.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_explicit_bzero.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_ffs.c b/libs/libc/string/lib_ffs.c
index 3ee8fef..19cb983 100644
--- a/libs/libc/string/lib_ffs.c
+++ b/libs/libc/string/lib_ffs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_ffs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_ffsl.c b/libs/libc/string/lib_ffsl.c
index b7a8a88..35b591e 100644
--- a/libs/libc/string/lib_ffsl.c
+++ b/libs/libc/string/lib_ffsl.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_ffsl.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_ffsll.c b/libs/libc/string/lib_ffsll.c
index 11e07b1..ad7c4ba 100644
--- a/libs/libc/string/lib_ffsll.c
+++ b/libs/libc/string/lib_ffsll.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_ffsll.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_fls.c b/libs/libc/string/lib_fls.c
index e5ff818..feb170a 100644
--- a/libs/libc/string/lib_fls.c
+++ b/libs/libc/string/lib_fls.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_fls.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_flsl.c b/libs/libc/string/lib_flsl.c
index 6c0f8b5..8c754fa 100644
--- a/libs/libc/string/lib_flsl.c
+++ b/libs/libc/string/lib_flsl.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_flsl.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_flsll.c b/libs/libc/string/lib_flsll.c
index c81e3e6..155cd65 100644
--- a/libs/libc/string/lib_flsll.c
+++ b/libs/libc/string/lib_flsll.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_flsll.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_index.c b/libs/libc/string/lib_index.c
index e62745c..1432093 100644
--- a/libs/libc/string/lib_index.c
+++ b/libs/libc/string/lib_index.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_index.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_isbasedigit.c b/libs/libc/string/lib_isbasedigit.c
index c9d5b77..4780b46 100644
--- a/libs/libc/string/lib_isbasedigit.c
+++ b/libs/libc/string/lib_isbasedigit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_isbasedigit.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_memccpy.c b/libs/libc/string/lib_memccpy.c
index e9f1773..283e565 100644
--- a/libs/libc/string/lib_memccpy.c
+++ b/libs/libc/string/lib_memccpy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_memccpy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_memchr.c b/libs/libc/string/lib_memchr.c
index 7eb4242..2c24e32 100644
--- a/libs/libc/string/lib_memchr.c
+++ b/libs/libc/string/lib_memchr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_memchr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_memcmp.c b/libs/libc/string/lib_memcmp.c
index 7f3efad..251cbf7 100644
--- a/libs/libc/string/lib_memcmp.c
+++ b/libs/libc/string/lib_memcmp.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_memcmp.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_memcpy.c b/libs/libc/string/lib_memcpy.c
index 2d6748f..c1ff6ae 100644
--- a/libs/libc/string/lib_memcpy.c
+++ b/libs/libc/string/lib_memcpy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_memcpy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_memmem.c b/libs/libc/string/lib_memmem.c
index 73d8afd..f698731 100644
--- a/libs/libc/string/lib_memmem.c
+++ b/libs/libc/string/lib_memmem.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_memmem.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_memmove.c b/libs/libc/string/lib_memmove.c
index aec9e60..fd6d433 100644
--- a/libs/libc/string/lib_memmove.c
+++ b/libs/libc/string/lib_memmove.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_memmove.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_mempcpy.c b/libs/libc/string/lib_mempcpy.c
index 1869800..57c1280 100644
--- a/libs/libc/string/lib_mempcpy.c
+++ b/libs/libc/string/lib_mempcpy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_mempcpy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_memrchr.c b/libs/libc/string/lib_memrchr.c
index 6e32e48..9a8f4a6 100644
--- a/libs/libc/string/lib_memrchr.c
+++ b/libs/libc/string/lib_memrchr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_memrchr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_memset.c b/libs/libc/string/lib_memset.c
index bca6ced..1a00a41 100644
--- a/libs/libc/string/lib_memset.c
+++ b/libs/libc/string/lib_memset.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_memset.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_popcount.c b/libs/libc/string/lib_popcount.c
index 6988a45..87fb1cd 100644
--- a/libs/libc/string/lib_popcount.c
+++ b/libs/libc/string/lib_popcount.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_popcount.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_popcountl.c b/libs/libc/string/lib_popcountl.c
index 027f4af..3874e7b 100644
--- a/libs/libc/string/lib_popcountl.c
+++ b/libs/libc/string/lib_popcountl.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_popcountl.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_popcountll.c b/libs/libc/string/lib_popcountll.c
index 0854df4..0468852 100644
--- a/libs/libc/string/lib_popcountll.c
+++ b/libs/libc/string/lib_popcountll.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_popcountll.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_rawmemchr.c b/libs/libc/string/lib_rawmemchr.c
index f4e99c9..47a57e6 100644
--- a/libs/libc/string/lib_rawmemchr.c
+++ b/libs/libc/string/lib_rawmemchr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_rawmemchr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_rindex.c b/libs/libc/string/lib_rindex.c
index 2375ee0..29e23eb 100644
--- a/libs/libc/string/lib_rindex.c
+++ b/libs/libc/string/lib_rindex.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_rindex.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_skipspace.c b/libs/libc/string/lib_skipspace.c
index 0f025b9..7a00211 100644
--- a/libs/libc/string/lib_skipspace.c
+++ b/libs/libc/string/lib_skipspace.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_skipspace.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_stpcpy.c b/libs/libc/string/lib_stpcpy.c
index 3809536..ae1a9cb 100644
--- a/libs/libc/string/lib_stpcpy.c
+++ b/libs/libc/string/lib_stpcpy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_stpcpy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_stpncpy.c b/libs/libc/string/lib_stpncpy.c
index 1095c34..acbc1f3 100644
--- a/libs/libc/string/lib_stpncpy.c
+++ b/libs/libc/string/lib_stpncpy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_stpncpy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strcasecmp.c b/libs/libc/string/lib_strcasecmp.c
index 2e2c885..1bfcfd0 100644
--- a/libs/libc/string/lib_strcasecmp.c
+++ b/libs/libc/string/lib_strcasecmp.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strcasecmp.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strcasestr.c b/libs/libc/string/lib_strcasestr.c
index 9ccddaf..9962ca2 100644
--- a/libs/libc/string/lib_strcasestr.c
+++ b/libs/libc/string/lib_strcasestr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strcasestr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strcat.c b/libs/libc/string/lib_strcat.c
index 6795c7e..7dcc5e4 100644
--- a/libs/libc/string/lib_strcat.c
+++ b/libs/libc/string/lib_strcat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strcat.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strchr.c b/libs/libc/string/lib_strchr.c
index a0a5d4a..98538ab 100644
--- a/libs/libc/string/lib_strchr.c
+++ b/libs/libc/string/lib_strchr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strchr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strchrnul.c b/libs/libc/string/lib_strchrnul.c
index b70be79..d8433b6 100644
--- a/libs/libc/string/lib_strchrnul.c
+++ b/libs/libc/string/lib_strchrnul.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strchrnul.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strcmp.c b/libs/libc/string/lib_strcmp.c
index e4e09f7..f445d5f 100644
--- a/libs/libc/string/lib_strcmp.c
+++ b/libs/libc/string/lib_strcmp.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strcmp.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strcoll.c b/libs/libc/string/lib_strcoll.c
index c5bed80..31d49db 100644
--- a/libs/libc/string/lib_strcoll.c
+++ b/libs/libc/string/lib_strcoll.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strcoll.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/string/lib_strcpy.c b/libs/libc/string/lib_strcpy.c
index bf11193..38c73c3 100644
--- a/libs/libc/string/lib_strcpy.c
+++ b/libs/libc/string/lib_strcpy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strcpy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strcspn.c b/libs/libc/string/lib_strcspn.c
index 7a8211e..1b68641 100644
--- a/libs/libc/string/lib_strcspn.c
+++ b/libs/libc/string/lib_strcspn.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strcspn.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strdup.c b/libs/libc/string/lib_strdup.c
index c22e5be..e92b4ad 100644
--- a/libs/libc/string/lib_strdup.c
+++ b/libs/libc/string/lib_strdup.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strdup.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strerror.c b/libs/libc/string/lib_strerror.c
index 70454d2..5fab598 100644
--- a/libs/libc/string/lib_strerror.c
+++ b/libs/libc/string/lib_strerror.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strerror.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strerrorr.c b/libs/libc/string/lib_strerrorr.c
index 625d853..1aa2dbd 100644
--- a/libs/libc/string/lib_strerrorr.c
+++ b/libs/libc/string/lib_strerrorr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strerrorr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strlcat.c b/libs/libc/string/lib_strlcat.c
index 6be5edd..d96aabb 100644
--- a/libs/libc/string/lib_strlcat.c
+++ b/libs/libc/string/lib_strlcat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strlcat.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strlcpy.c b/libs/libc/string/lib_strlcpy.c
index 81f471f..21eb8ab 100644
--- a/libs/libc/string/lib_strlcpy.c
+++ b/libs/libc/string/lib_strlcpy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strlcpy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strlen.c b/libs/libc/string/lib_strlen.c
index da0fca9..594f01a 100644
--- a/libs/libc/string/lib_strlen.c
+++ b/libs/libc/string/lib_strlen.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strlen.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strncasecmp.c b/libs/libc/string/lib_strncasecmp.c
index efd18df..d3efd33 100644
--- a/libs/libc/string/lib_strncasecmp.c
+++ b/libs/libc/string/lib_strncasecmp.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strncasecmp.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strncat.c b/libs/libc/string/lib_strncat.c
index 98ff265..4abe2d1 100644
--- a/libs/libc/string/lib_strncat.c
+++ b/libs/libc/string/lib_strncat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strncat.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strncmp.c b/libs/libc/string/lib_strncmp.c
index 3028e1d..e46c7ab 100644
--- a/libs/libc/string/lib_strncmp.c
+++ b/libs/libc/string/lib_strncmp.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strncmp.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strncpy.c b/libs/libc/string/lib_strncpy.c
index 6bfd2a5..3e36df4 100644
--- a/libs/libc/string/lib_strncpy.c
+++ b/libs/libc/string/lib_strncpy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strncpy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strndup.c b/libs/libc/string/lib_strndup.c
index 130d0ce..1db4ee9 100644
--- a/libs/libc/string/lib_strndup.c
+++ b/libs/libc/string/lib_strndup.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strndup.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strnlen.c b/libs/libc/string/lib_strnlen.c
index 44cf5cc..bf162a7 100644
--- a/libs/libc/string/lib_strnlen.c
+++ b/libs/libc/string/lib_strnlen.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strnlen.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strpbrk.c b/libs/libc/string/lib_strpbrk.c
index b52aa92..8494443 100644
--- a/libs/libc/string/lib_strpbrk.c
+++ b/libs/libc/string/lib_strpbrk.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strpbrk.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strrchr.c b/libs/libc/string/lib_strrchr.c
index 526f802..d19afc7 100644
--- a/libs/libc/string/lib_strrchr.c
+++ b/libs/libc/string/lib_strrchr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strrchr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strsep.c b/libs/libc/string/lib_strsep.c
index f40fa5d..0ec9d1c 100644
--- a/libs/libc/string/lib_strsep.c
+++ b/libs/libc/string/lib_strsep.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strsep.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strsignal.c b/libs/libc/string/lib_strsignal.c
index 3f21685..048dc5b 100644
--- a/libs/libc/string/lib_strsignal.c
+++ b/libs/libc/string/lib_strsignal.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strsignal.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strspn.c b/libs/libc/string/lib_strspn.c
index 65443e0..f9cd903 100644
--- a/libs/libc/string/lib_strspn.c
+++ b/libs/libc/string/lib_strspn.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strspn.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strstr.c b/libs/libc/string/lib_strstr.c
index d61d14a..5451e85 100644
--- a/libs/libc/string/lib_strstr.c
+++ b/libs/libc/string/lib_strstr.c
@@ -1,9 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strstr.c
*
- * The MIT License (MIT)
- *
- * Copyright (c) 2014-2015 Tal Einat
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2014-2015 Tal Einat
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation files
diff --git a/libs/libc/string/lib_strtok.c b/libs/libc/string/lib_strtok.c
index 9f3efe7..d3dc9fe 100644
--- a/libs/libc/string/lib_strtok.c
+++ b/libs/libc/string/lib_strtok.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strtok.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strtokr.c b/libs/libc/string/lib_strtokr.c
index 55487f1..2602902 100644
--- a/libs/libc/string/lib_strtokr.c
+++ b/libs/libc/string/lib_strtokr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strtokr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strverscmp.c b/libs/libc/string/lib_strverscmp.c
index 6ab59e2..91076c5 100644
--- a/libs/libc/string/lib_strverscmp.c
+++ b/libs/libc/string/lib_strverscmp.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strverscmp.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/string/lib_strxfrm.c b/libs/libc/string/lib_strxfrm.c
index 20dd8d4..07e9e11 100644
--- a/libs/libc/string/lib_strxfrm.c
+++ b/libs/libc/string/lib_strxfrm.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_strxfrm.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/string/lib_timingsafe_bcmp.c b/libs/libc/string/lib_timingsafe_bcmp.c
index c150ffd..a92fd2c 100644
--- a/libs/libc/string/lib_timingsafe_bcmp.c
+++ b/libs/libc/string/lib_timingsafe_bcmp.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_timingsafe_bcmp.c
- * $OpenBSD: timingsafe_bcmp.c,v 1.3 2015/08/31 02:53:57 guenther Exp $
*
- * Copyright (c) 2010 Damien Miller. All rights reserved.
+ * SPDX-License-Identifier: ISC
+ * SPDX-FileCopyrightText: 2010 Damien Miller. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
diff --git a/libs/libc/string/lib_vikmemcpy.c b/libs/libc/string/lib_vikmemcpy.c
index 8356358..8e7dd19 100644
--- a/libs/libc/string/lib_vikmemcpy.c
+++ b/libs/libc/string/lib_vikmemcpy.c
@@ -1,16 +1,8 @@
/****************************************************************************
* libs/libc/string/lib_vikmemcpy.c
*
- * This is version of the optimized memcpy by Daniel Vik, adapted to the
- * NuttX environment.
- *
- * Copyright (C) 1999-2010 Daniel Vik
- *
- * Adaptations include:
- * - File name change
- * - Use of types defined in stdint.h
- * - Integration with the NuttX configuration system
- * - Other cosmetic changes for consistency with NuttX coding standards
+ * SPDX-License-Identifier: Zlib
+ * SPDX-FileCopyrightText: Copyright (C) 1999-2010 Daniel Vik
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any
@@ -32,23 +24,6 @@
* 3. This notice may not be removed or altered from any source
* distribution.
*
- * Description: Implementation of the standard library function memcpy.
- * This implementation of memcpy() is ANSI-C89 compatible.
- *
- * The following configuration options can be set:
- *
- * CONFIG_ENDIAN_BIG
- * Uses processor with big endian addressing. Default is little endian.
- *
- * CONFIG_MEMCPY_PRE_INC_PTRS
- * Use pre increment of pointers. Default is post increment of pointers.
- *
- * CONFIG_MEMCPY_INDEXED_COPY
- * Copying data using array indexing. Using this option, disables the
- * CONFIG_MEMCPY_PRE_INC_PTRS option.
- *
- * CONFIG_MEMCPY_64BIT - Compiles memcpy for 64 bit architectures
- *
****************************************************************************/
/****************************************************************************
diff --git a/libs/libc/symtab/CMakeLists.txt b/libs/libc/symtab/CMakeLists.txt
index d567382..733021f 100644
--- a/libs/libc/symtab/CMakeLists.txt
+++ b/libs/libc/symtab/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/symtab/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/symtab/Make.defs b/libs/libc/symtab/Make.defs
index 021d49d..5d720bb 100644
--- a/libs/libc/symtab/Make.defs
+++ b/libs/libc/symtab/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/symtab/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/symtab/symtab_allsyms.c b/libs/libc/symtab/symtab_allsyms.c
index 436d0c5..b2dd9ae 100644
--- a/libs/libc/symtab/symtab_allsyms.c
+++ b/libs/libc/symtab/symtab_allsyms.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/symtab/symtab_allsyms.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/symtab/symtab_findbyname.c b/libs/libc/symtab/symtab_findbyname.c
index 7efa80c..ecc503d 100644
--- a/libs/libc/symtab/symtab_findbyname.c
+++ b/libs/libc/symtab/symtab_findbyname.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/symtab/symtab_findbyname.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/symtab/symtab_findbyvalue.c b/libs/libc/symtab/symtab_findbyvalue.c
index eaed5a0..037aa46 100644
--- a/libs/libc/symtab/symtab_findbyvalue.c
+++ b/libs/libc/symtab/symtab_findbyvalue.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/symtab/symtab_findbyvalue.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/symtab/symtab_sortbyname.c b/libs/libc/symtab/symtab_sortbyname.c
index 7a0b7d0..a988e01 100644
--- a/libs/libc/symtab/symtab_sortbyname.c
+++ b/libs/libc/symtab/symtab_sortbyname.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/symtab/symtab_sortbyname.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/syslog/CMakeLists.txt b/libs/libc/syslog/CMakeLists.txt
index 8db92ad..e583e84 100644
--- a/libs/libc/syslog/CMakeLists.txt
+++ b/libs/libc/syslog/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/syslog/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/syslog/Make.defs b/libs/libc/syslog/Make.defs
index c58fb45..242cd1d 100644
--- a/libs/libc/syslog/Make.defs
+++ b/libs/libc/syslog/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/syslog/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/syslog/lib_setlogmask.c b/libs/libc/syslog/lib_setlogmask.c
index 5bc70e7..d6398c6 100644
--- a/libs/libc/syslog/lib_setlogmask.c
+++ b/libs/libc/syslog/lib_setlogmask.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/syslog/lib_setlogmask.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/syslog/lib_syslog.c b/libs/libc/syslog/lib_syslog.c
index 4ff67c7..5cdb73c 100644
--- a/libs/libc/syslog/lib_syslog.c
+++ b/libs/libc/syslog/lib_syslog.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/syslog/lib_syslog.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/syslog/syslog.h b/libs/libc/syslog/syslog.h
index f05efe8..c13c87b 100644
--- a/libs/libc/syslog/syslog.h
+++ b/libs/libc/syslog/syslog.h
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/syslog/syslog.h
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/termios/CMakeLists.txt b/libs/libc/termios/CMakeLists.txt
index eefb89f..71b7381 100644
--- a/libs/libc/termios/CMakeLists.txt
+++ b/libs/libc/termios/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/termios/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/termios/Make.defs b/libs/libc/termios/Make.defs
index fcb1dc7..3cf9956 100644
--- a/libs/libc/termios/Make.defs
+++ b/libs/libc/termios/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/termios/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/termios/lib_cfmakeraw.c b/libs/libc/termios/lib_cfmakeraw.c
index ea84d46..858ace7 100644
--- a/libs/libc/termios/lib_cfmakeraw.c
+++ b/libs/libc/termios/lib_cfmakeraw.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/termios/lib_cfmakeraw.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/termios/lib_cfspeed.c b/libs/libc/termios/lib_cfspeed.c
index 79f5025..99b5c98 100644
--- a/libs/libc/termios/lib_cfspeed.c
+++ b/libs/libc/termios/lib_cfspeed.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/termios/lib_cfspeed.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/termios/lib_isatty.c b/libs/libc/termios/lib_isatty.c
index b88e75b..7f1b8b7 100644
--- a/libs/libc/termios/lib_isatty.c
+++ b/libs/libc/termios/lib_isatty.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/termios/lib_isatty.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/termios/lib_tcdrain.c b/libs/libc/termios/lib_tcdrain.c
index c0e242a..852a9af 100644
--- a/libs/libc/termios/lib_tcdrain.c
+++ b/libs/libc/termios/lib_tcdrain.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/termios/lib_tcdrain.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/termios/lib_tcflow.c b/libs/libc/termios/lib_tcflow.c
index 0b5456f..e6429a4 100644
--- a/libs/libc/termios/lib_tcflow.c
+++ b/libs/libc/termios/lib_tcflow.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/termios/lib_tcflow.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/termios/lib_tcflush.c b/libs/libc/termios/lib_tcflush.c
index 88b35a2..f6b088c 100644
--- a/libs/libc/termios/lib_tcflush.c
+++ b/libs/libc/termios/lib_tcflush.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/termios/lib_tcflush.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/termios/lib_tcgetattr.c b/libs/libc/termios/lib_tcgetattr.c
index a1bbcdc..669aa70 100644
--- a/libs/libc/termios/lib_tcgetattr.c
+++ b/libs/libc/termios/lib_tcgetattr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/termios/lib_tcgetattr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/termios/lib_tcsendbreak.c b/libs/libc/termios/lib_tcsendbreak.c
index 088d177..b8f8971 100644
--- a/libs/libc/termios/lib_tcsendbreak.c
+++ b/libs/libc/termios/lib_tcsendbreak.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/termios/lib_tcsendbreak.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/termios/lib_tcsetattr.c b/libs/libc/termios/lib_tcsetattr.c
index 8142087..f30c963 100644
--- a/libs/libc/termios/lib_tcsetattr.c
+++ b/libs/libc/termios/lib_tcsetattr.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/termios/lib_tcsetattr.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/termios/lib_ttyname.c b/libs/libc/termios/lib_ttyname.c
index f94a7ca..cbcfd4a 100644
--- a/libs/libc/termios/lib_ttyname.c
+++ b/libs/libc/termios/lib_ttyname.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/termios/lib_ttyname.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/termios/lib_ttynamer.c b/libs/libc/termios/lib_ttynamer.c
index 6eb7031..8a30257 100644
--- a/libs/libc/termios/lib_ttynamer.c
+++ b/libs/libc/termios/lib_ttynamer.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/termios/lib_ttynamer.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/CMakeLists.txt b/libs/libc/time/CMakeLists.txt
index 5d99f5c..f01d6d8 100644
--- a/libs/libc/time/CMakeLists.txt
+++ b/libs/libc/time/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/time/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
@@ -17,7 +19,6 @@
# the License.
#
# ##############################################################################
-# ##############################################################################
set(SRCS
lib_strftime.c
diff --git a/libs/libc/time/Make.defs b/libs/libc/time/Make.defs
index 65553c6..78d23a9 100644
--- a/libs/libc/time/Make.defs
+++ b/libs/libc/time/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/time/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_asctime.c b/libs/libc/time/lib_asctime.c
index 5504b03..9eb32e8 100644
--- a/libs/libc/time/lib_asctime.c
+++ b/libs/libc/time/lib_asctime.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_asctime.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_asctimer.c b/libs/libc/time/lib_asctimer.c
index 1d8b58e..36ee2d2 100644
--- a/libs/libc/time/lib_asctimer.c
+++ b/libs/libc/time/lib_asctimer.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_asctimer.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_calendar2utc.c b/libs/libc/time/lib_calendar2utc.c
index a476bc7..c602ade 100644
--- a/libs/libc/time/lib_calendar2utc.c
+++ b/libs/libc/time/lib_calendar2utc.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_calendar2utc.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_ctime.c b/libs/libc/time/lib_ctime.c
index 7f0c335..3564d16 100644
--- a/libs/libc/time/lib_ctime.c
+++ b/libs/libc/time/lib_ctime.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_ctime.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_ctimer.c b/libs/libc/time/lib_ctimer.c
index 55b4eac..2bb7145 100644
--- a/libs/libc/time/lib_ctimer.c
+++ b/libs/libc/time/lib_ctimer.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_ctimer.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_dayofweek.c b/libs/libc/time/lib_dayofweek.c
index f2219ef..ca9ff68 100644
--- a/libs/libc/time/lib_dayofweek.c
+++ b/libs/libc/time/lib_dayofweek.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_dayofweek.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_daysbeforemonth.c b/libs/libc/time/lib_daysbeforemonth.c
index ec77378..65334c5 100644
--- a/libs/libc/time/lib_daysbeforemonth.c
+++ b/libs/libc/time/lib_daysbeforemonth.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_daysbeforemonth.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_difftime.c b/libs/libc/time/lib_difftime.c
index 88efd4d..f158b55 100644
--- a/libs/libc/time/lib_difftime.c
+++ b/libs/libc/time/lib_difftime.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_difftime.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_gethrtime.c b/libs/libc/time/lib_gethrtime.c
index 278aed1..930a8eb 100644
--- a/libs/libc/time/lib_gethrtime.c
+++ b/libs/libc/time/lib_gethrtime.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_gethrtime.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_gettimeofday.c b/libs/libc/time/lib_gettimeofday.c
index fa815fd..8535831 100644
--- a/libs/libc/time/lib_gettimeofday.c
+++ b/libs/libc/time/lib_gettimeofday.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_gettimeofday.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_gmtime.c b/libs/libc/time/lib_gmtime.c
index e98b160..1d2102d 100644
--- a/libs/libc/time/lib_gmtime.c
+++ b/libs/libc/time/lib_gmtime.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_gmtime.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_gmtimer.c b/libs/libc/time/lib_gmtimer.c
index d78d8e2..dfc742b 100644
--- a/libs/libc/time/lib_gmtimer.c
+++ b/libs/libc/time/lib_gmtimer.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_gmtimer.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_isleapyear.c b/libs/libc/time/lib_isleapyear.c
index eedec59..f18e463 100644
--- a/libs/libc/time/lib_isleapyear.c
+++ b/libs/libc/time/lib_isleapyear.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_isleapyear.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_localtime.c b/libs/libc/time/lib_localtime.c
index ffefbfd..64e79f2 100644
--- a/libs/libc/time/lib_localtime.c
+++ b/libs/libc/time/lib_localtime.c
@@ -1,19 +1,12 @@
/****************************************************************************
* libs/libc/time/lib_localtime.c
*
- * Re-released as part of NuttX under the 3-clause BSD license:
- *
- * Copyright (C) 2014 Gregory Nutt. All rights reserved.
- * Ported to NuttX by Max Neklyudov
- * Style updates by Gregory Nutt
- *
- * With these notes:
- *
- * This file is in the public domain, so clarified as of
- * 1996-06-05 by Arthur David Olson.
- *
- * Leap second handling from Bradley White.
- * POSIX-style TZ environment variable handling from Guy Harris.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2014 Gregory Nutt. All rights reserved.
+ * SPDX-FileContributor: Ported to NuttX by Max Neklyudov
+ * SPDX-FileContributor: Guy Harris
+ * SPDX-FileContributor: Bradley White
+ * SPDX-FileContributor: Arthur David Olson
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/time/lib_nanosleep.c b/libs/libc/time/lib_nanosleep.c
index 1d74f90..4d8d030 100644
--- a/libs/libc/time/lib_nanosleep.c
+++ b/libs/libc/time/lib_nanosleep.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_nanosleep.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_settimeofday.c b/libs/libc/time/lib_settimeofday.c
index 5e2e7ea..dc0a5ab 100644
--- a/libs/libc/time/lib_settimeofday.c
+++ b/libs/libc/time/lib_settimeofday.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_settimeofday.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_strftime.c b/libs/libc/time/lib_strftime.c
index 107c12c..ddb6466 100644
--- a/libs/libc/time/lib_strftime.c
+++ b/libs/libc/time/lib_strftime.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_strftime.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_time.c b/libs/libc/time/lib_time.c
index 999dbc3..67a3701 100644
--- a/libs/libc/time/lib_time.c
+++ b/libs/libc/time/lib_time.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_time.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_timegm.c b/libs/libc/time/lib_timegm.c
index cdaf97f..96f23ed 100644
--- a/libs/libc/time/lib_timegm.c
+++ b/libs/libc/time/lib_timegm.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_timegm.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/time/lib_timespec_get.c b/libs/libc/time/lib_timespec_get.c
index 5add5e5..3bc0d3a 100644
--- a/libs/libc/time/lib_timespec_get.c
+++ b/libs/libc/time/lib_timespec_get.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/time/lib_timespec_get.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/tls/CMakeLists.txt b/libs/libc/tls/CMakeLists.txt
index c882c4c..70dfba3 100644
--- a/libs/libc/tls/CMakeLists.txt
+++ b/libs/libc/tls/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/tls/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/tls/Make.defs b/libs/libc/tls/Make.defs
index 788518b..fd109f5 100644
--- a/libs/libc/tls/Make.defs
+++ b/libs/libc/tls/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/tls/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/tls/task_getinfo.c b/libs/libc/tls/task_getinfo.c
index 4bfad05..4a9a7f6 100644
--- a/libs/libc/tls/task_getinfo.c
+++ b/libs/libc/tls/task_getinfo.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/tls/task_getinfo.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/tls/task_tls.c b/libs/libc/tls/task_tls.c
index 5330e52..9a07b59 100644
--- a/libs/libc/tls/task_tls.c
+++ b/libs/libc/tls/task_tls.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/tls/task_tls.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/tls/task_tls_destruct.c b/libs/libc/tls/task_tls_destruct.c
index 7e068af..4bbbba5 100644
--- a/libs/libc/tls/task_tls_destruct.c
+++ b/libs/libc/tls/task_tls_destruct.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/tls/task_tls_destruct.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/tls/tls_cleanup.c b/libs/libc/tls/tls_cleanup.c
index 5ee7bba..0465dc7 100644
--- a/libs/libc/tls/tls_cleanup.c
+++ b/libs/libc/tls/tls_cleanup.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/tls/tls_cleanup.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/tls/tls_destruct.c b/libs/libc/tls/tls_destruct.c
index bf72040..d968d70 100644
--- a/libs/libc/tls/tls_destruct.c
+++ b/libs/libc/tls/tls_destruct.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/tls/tls_destruct.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/tls/tls_getinfo.c b/libs/libc/tls/tls_getinfo.c
index 8f65df4..50e4379 100644
--- a/libs/libc/tls/tls_getinfo.c
+++ b/libs/libc/tls/tls_getinfo.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/tls/tls_getinfo.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uio/CMakeLists.txt b/libs/libc/uio/CMakeLists.txt
index 645c7d3..1074488 100644
--- a/libs/libc/uio/CMakeLists.txt
+++ b/libs/libc/uio/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/uio/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/uio/Make.defs b/libs/libc/uio/Make.defs
index eca0896..0462076 100644
--- a/libs/libc/uio/Make.defs
+++ b/libs/libc/uio/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/uio/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uio/lib_preadv.c b/libs/libc/uio/lib_preadv.c
index 427d512..709f896 100644
--- a/libs/libc/uio/lib_preadv.c
+++ b/libs/libc/uio/lib_preadv.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/uio/lib_preadv.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uio/lib_pwritev.c b/libs/libc/uio/lib_pwritev.c
index 1203e20..2cd195e 100644
--- a/libs/libc/uio/lib_pwritev.c
+++ b/libs/libc/uio/lib_pwritev.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/uio/lib_pwritev.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uio/lib_readv.c b/libs/libc/uio/lib_readv.c
index 95e7d57..c16d0a6 100644
--- a/libs/libc/uio/lib_readv.c
+++ b/libs/libc/uio/lib_readv.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/uio/lib_readv.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uio/lib_writev.c b/libs/libc/uio/lib_writev.c
index b8df8ff..79623e6 100644
--- a/libs/libc/uio/lib_writev.c
+++ b/libs/libc/uio/lib_writev.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/uio/lib_writev.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/CMakeLists.txt b/libs/libc/unistd/CMakeLists.txt
index e2b3d28..4771e78 100644
--- a/libs/libc/unistd/CMakeLists.txt
+++ b/libs/libc/unistd/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/unistd/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/unistd/Make.defs b/libs/libc/unistd/Make.defs
index f15c29b..bd8aa9f 100644
--- a/libs/libc/unistd/Make.defs
+++ b/libs/libc/unistd/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/unistd/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_access.c b/libs/libc/unistd/lib_access.c
index d35abcd..9ad7e42 100644
--- a/libs/libc/unistd/lib_access.c
+++ b/libs/libc/unistd/lib_access.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_access.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_alarm.c b/libs/libc/unistd/lib_alarm.c
index d6c5dfb..9df4c0e 100644
--- a/libs/libc/unistd/lib_alarm.c
+++ b/libs/libc/unistd/lib_alarm.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_alarm.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_chdir.c b/libs/libc/unistd/lib_chdir.c
index 82438aa..51b4315 100644
--- a/libs/libc/unistd/lib_chdir.c
+++ b/libs/libc/unistd/lib_chdir.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_chdir.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_daemon.c b/libs/libc/unistd/lib_daemon.c
index 28f9a3f..b9e11d2 100644
--- a/libs/libc/unistd/lib_daemon.c
+++ b/libs/libc/unistd/lib_daemon.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_daemon.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_execl.c b/libs/libc/unistd/lib_execl.c
index 6caf029..4ba1d2d 100644
--- a/libs/libc/unistd/lib_execl.c
+++ b/libs/libc/unistd/lib_execl.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_execl.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_execle.c b/libs/libc/unistd/lib_execle.c
index a4860c2..537d1e2 100644
--- a/libs/libc/unistd/lib_execle.c
+++ b/libs/libc/unistd/lib_execle.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_execle.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_execv.c b/libs/libc/unistd/lib_execv.c
index 59f0bc3..8448b5c 100644
--- a/libs/libc/unistd/lib_execv.c
+++ b/libs/libc/unistd/lib_execv.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_execv.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_fchdir.c b/libs/libc/unistd/lib_fchdir.c
index b59cc66..19e0794 100644
--- a/libs/libc/unistd/lib_fchdir.c
+++ b/libs/libc/unistd/lib_fchdir.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_fchdir.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_fchownat.c b/libs/libc/unistd/lib_fchownat.c
index a140c66..8992f65 100644
--- a/libs/libc/unistd/lib_fchownat.c
+++ b/libs/libc/unistd/lib_fchownat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_fchownat.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_flock.c b/libs/libc/unistd/lib_flock.c
index 8e2b33e..9b16956 100644
--- a/libs/libc/unistd/lib_flock.c
+++ b/libs/libc/unistd/lib_flock.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_flock.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_fork.c b/libs/libc/unistd/lib_fork.c
index dbd3c14..5c947e3 100644
--- a/libs/libc/unistd/lib_fork.c
+++ b/libs/libc/unistd/lib_fork.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_fork.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_fstatvfs.c b/libs/libc/unistd/lib_fstatvfs.c
index 1871006..5276b03 100644
--- a/libs/libc/unistd/lib_fstatvfs.c
+++ b/libs/libc/unistd/lib_fstatvfs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_fstatvfs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_futimes.c b/libs/libc/unistd/lib_futimes.c
index 3061649..f56bfbc 100644
--- a/libs/libc/unistd/lib_futimes.c
+++ b/libs/libc/unistd/lib_futimes.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_futimes.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getcwd.c b/libs/libc/unistd/lib_getcwd.c
index 6a6bd47..94a9989 100644
--- a/libs/libc/unistd/lib_getcwd.c
+++ b/libs/libc/unistd/lib_getcwd.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getcwd.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getegid.c b/libs/libc/unistd/lib_getegid.c
index 89b6bef..48cf8fb 100644
--- a/libs/libc/unistd/lib_getegid.c
+++ b/libs/libc/unistd/lib_getegid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getegid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getentropy.c b/libs/libc/unistd/lib_getentropy.c
index 9c4ec1c..078b2e3 100644
--- a/libs/libc/unistd/lib_getentropy.c
+++ b/libs/libc/unistd/lib_getentropy.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getentropy.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_geteuid.c b/libs/libc/unistd/lib_geteuid.c
index 4b17ae9..d17049f 100644
--- a/libs/libc/unistd/lib_geteuid.c
+++ b/libs/libc/unistd/lib_geteuid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_geteuid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getgid.c b/libs/libc/unistd/lib_getgid.c
index ee6e762..da97bd2 100644
--- a/libs/libc/unistd/lib_getgid.c
+++ b/libs/libc/unistd/lib_getgid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getgid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_gethostname.c b/libs/libc/unistd/lib_gethostname.c
index 57dcf73..9e0cf5b 100644
--- a/libs/libc/unistd/lib_gethostname.c
+++ b/libs/libc/unistd/lib_gethostname.c
@@ -1,10 +1,11 @@
/****************************************************************************
* libs/libc/unistd/lib_gethostname.c
*
- * Copyright (C) 2015 Stavros Polymenis. All rights reserved.
- * Copyright (C) 2015, 2016 Gregory Nutt. All rights reserved.
- * Author: Stavros Polymenis <sp@orbitalfox.com>
- * Gregory Nutt <gnutt@nuttx.org>
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2015 Stavros Polymenis. All rights reserved.
+ * SPDX-FileCopyrightText: 2015, 2016 Gregory Nutt. All rights reserved.
+ * SPDX-FileContributor: Stavros Polymenis <sp@orbitalfox.com>
+ * SPDX-FileContributor: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/unistd/lib_getopt.c b/libs/libc/unistd/lib_getopt.c
index bdd3456..0f25c95 100644
--- a/libs/libc/unistd/lib_getopt.c
+++ b/libs/libc/unistd/lib_getopt.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getopt.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getopt_common.c b/libs/libc/unistd/lib_getopt_common.c
index cede600..014f297 100644
--- a/libs/libc/unistd/lib_getopt_common.c
+++ b/libs/libc/unistd/lib_getopt_common.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getopt_common.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getopt_long.c b/libs/libc/unistd/lib_getopt_long.c
index b3a8fa4..735cf6a 100644
--- a/libs/libc/unistd/lib_getopt_long.c
+++ b/libs/libc/unistd/lib_getopt_long.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getopt_long.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getopt_longonly.c b/libs/libc/unistd/lib_getopt_longonly.c
index cfe49ee..e136bfd 100644
--- a/libs/libc/unistd/lib_getopt_longonly.c
+++ b/libs/libc/unistd/lib_getopt_longonly.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getopt_longonly.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getoptargp.c b/libs/libc/unistd/lib_getoptargp.c
index 37034a1..000bff3 100644
--- a/libs/libc/unistd/lib_getoptargp.c
+++ b/libs/libc/unistd/lib_getoptargp.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getoptargp.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getopterrp.c b/libs/libc/unistd/lib_getopterrp.c
index fb02ef1..6feab79 100644
--- a/libs/libc/unistd/lib_getopterrp.c
+++ b/libs/libc/unistd/lib_getopterrp.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getopterrp.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getoptindp.c b/libs/libc/unistd/lib_getoptindp.c
index 440284b..2a59ac3 100644
--- a/libs/libc/unistd/lib_getoptindp.c
+++ b/libs/libc/unistd/lib_getoptindp.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getoptindp.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getoptoptp.c b/libs/libc/unistd/lib_getoptoptp.c
index c1615e4..9a112ee 100644
--- a/libs/libc/unistd/lib_getoptoptp.c
+++ b/libs/libc/unistd/lib_getoptoptp.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getoptoptp.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getoptvars.c b/libs/libc/unistd/lib_getoptvars.c
index 49f3b6a..172f396 100644
--- a/libs/libc/unistd/lib_getoptvars.c
+++ b/libs/libc/unistd/lib_getoptvars.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getoptvars.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getpgid.c b/libs/libc/unistd/lib_getpgid.c
index d09bceb..ddca4d0 100644
--- a/libs/libc/unistd/lib_getpgid.c
+++ b/libs/libc/unistd/lib_getpgid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getpgid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getpgrp.c b/libs/libc/unistd/lib_getpgrp.c
index fbc7ecc..4dcb120 100644
--- a/libs/libc/unistd/lib_getpgrp.c
+++ b/libs/libc/unistd/lib_getpgrp.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getpgrp.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getpriority.c b/libs/libc/unistd/lib_getpriority.c
index 9f3f4a1..8f2f746 100644
--- a/libs/libc/unistd/lib_getpriority.c
+++ b/libs/libc/unistd/lib_getpriority.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getpriority.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getrlimit.c b/libs/libc/unistd/lib_getrlimit.c
index c523852..1e4850a 100644
--- a/libs/libc/unistd/lib_getrlimit.c
+++ b/libs/libc/unistd/lib_getrlimit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getrlimit.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getrusage.c b/libs/libc/unistd/lib_getrusage.c
index 57d4485..d718ed2 100644
--- a/libs/libc/unistd/lib_getrusage.c
+++ b/libs/libc/unistd/lib_getrusage.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getrusage.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_getuid.c b/libs/libc/unistd/lib_getuid.c
index 85ad77e..616e06b 100644
--- a/libs/libc/unistd/lib_getuid.c
+++ b/libs/libc/unistd/lib_getuid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_getuid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_linkat.c b/libs/libc/unistd/lib_linkat.c
index f0b2520..cb0729a 100644
--- a/libs/libc/unistd/lib_linkat.c
+++ b/libs/libc/unistd/lib_linkat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_linkat.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_lockf.c b/libs/libc/unistd/lib_lockf.c
index 4ceade3..4195717 100644
--- a/libs/libc/unistd/lib_lockf.c
+++ b/libs/libc/unistd/lib_lockf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_lockf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_lutimes.c b/libs/libc/unistd/lib_lutimes.c
index bc6f5ed..bc7df73 100644
--- a/libs/libc/unistd/lib_lutimes.c
+++ b/libs/libc/unistd/lib_lutimes.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_lutimes.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_nice.c b/libs/libc/unistd/lib_nice.c
index d3861e4..4e02715 100644
--- a/libs/libc/unistd/lib_nice.c
+++ b/libs/libc/unistd/lib_nice.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_nice.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_pathconf.c b/libs/libc/unistd/lib_pathconf.c
index e572cbf..69d750a 100644
--- a/libs/libc/unistd/lib_pathconf.c
+++ b/libs/libc/unistd/lib_pathconf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_pathconf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_posix_fallocate.c b/libs/libc/unistd/lib_posix_fallocate.c
index e3bf307..6f50ef37 100644
--- a/libs/libc/unistd/lib_posix_fallocate.c
+++ b/libs/libc/unistd/lib_posix_fallocate.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_posix_fallocate.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_readlinkat.c b/libs/libc/unistd/lib_readlinkat.c
index 85e863b..8d3043b 100644
--- a/libs/libc/unistd/lib_readlinkat.c
+++ b/libs/libc/unistd/lib_readlinkat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_readlinkat.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_restoredir.c b/libs/libc/unistd/lib_restoredir.c
index 2a7a493..cb6009d 100644
--- a/libs/libc/unistd/lib_restoredir.c
+++ b/libs/libc/unistd/lib_restoredir.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_restoredir.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_setegid.c b/libs/libc/unistd/lib_setegid.c
index 91be25d..fc72ca1 100644
--- a/libs/libc/unistd/lib_setegid.c
+++ b/libs/libc/unistd/lib_setegid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_setegid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_seteuid.c b/libs/libc/unistd/lib_seteuid.c
index d77579e..6d137ea 100644
--- a/libs/libc/unistd/lib_seteuid.c
+++ b/libs/libc/unistd/lib_seteuid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_seteuid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_setgid.c b/libs/libc/unistd/lib_setgid.c
index d148e44..57b7017 100644
--- a/libs/libc/unistd/lib_setgid.c
+++ b/libs/libc/unistd/lib_setgid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_setgid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_sethostname.c b/libs/libc/unistd/lib_sethostname.c
index 4573622..e80a241 100644
--- a/libs/libc/unistd/lib_sethostname.c
+++ b/libs/libc/unistd/lib_sethostname.c
@@ -1,10 +1,11 @@
/****************************************************************************
* libs/libc/unistd/lib_sethostname.c
*
- * Copyright (C) 2015 Stavros Polymenis. All rights reserved.
- * Copyright (C) 2015, 2016 Gregory Nutt. All rights reserved.
- * Author: Stavros Polymenis <sp@orbitalfox.com>
- * Gregory Nutt <gnutt@nuttx.org>
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 2015 Stavros Polymenis. All rights reserved.
+ * SPDX-FileCopyrightText: 2015, 2016 Gregory Nutt. All rights reserved.
+ * SPDX-FileContributor: Stavros Polymenis <sp@orbitalfox.com>
+ * SPDX-FileContributor: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/unistd/lib_setpriority.c b/libs/libc/unistd/lib_setpriority.c
index 96213a8..ff711ab 100644
--- a/libs/libc/unistd/lib_setpriority.c
+++ b/libs/libc/unistd/lib_setpriority.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_setpriority.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_setregid.c b/libs/libc/unistd/lib_setregid.c
index f71fe57..0f331e9 100644
--- a/libs/libc/unistd/lib_setregid.c
+++ b/libs/libc/unistd/lib_setregid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_setregid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_setreuid.c b/libs/libc/unistd/lib_setreuid.c
index f4d6b37..f2163a8 100644
--- a/libs/libc/unistd/lib_setreuid.c
+++ b/libs/libc/unistd/lib_setreuid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_setreuid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_setrlimit.c b/libs/libc/unistd/lib_setrlimit.c
index 8c00c3f..6f21c91 100644
--- a/libs/libc/unistd/lib_setrlimit.c
+++ b/libs/libc/unistd/lib_setrlimit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_setrlimit.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_setuid.c b/libs/libc/unistd/lib_setuid.c
index b6c5efd..fdd4f53 100644
--- a/libs/libc/unistd/lib_setuid.c
+++ b/libs/libc/unistd/lib_setuid.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_setuid.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_sleep.c b/libs/libc/unistd/lib_sleep.c
index 82bec85..98a7894 100644
--- a/libs/libc/unistd/lib_sleep.c
+++ b/libs/libc/unistd/lib_sleep.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_sleep.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_statvfs.c b/libs/libc/unistd/lib_statvfs.c
index 449fe56..7f77568 100644
--- a/libs/libc/unistd/lib_statvfs.c
+++ b/libs/libc/unistd/lib_statvfs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_statvfs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_swab.c b/libs/libc/unistd/lib_swab.c
index 2f183ff..ea72f58 100644
--- a/libs/libc/unistd/lib_swab.c
+++ b/libs/libc/unistd/lib_swab.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_swab.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_symlinkat.c b/libs/libc/unistd/lib_symlinkat.c
index 6a6d6ee..14ebe44 100644
--- a/libs/libc/unistd/lib_symlinkat.c
+++ b/libs/libc/unistd/lib_symlinkat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_symlinkat.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_sysconf.c b/libs/libc/unistd/lib_sysconf.c
index a35120e..8683350 100644
--- a/libs/libc/unistd/lib_sysconf.c
+++ b/libs/libc/unistd/lib_sysconf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_sysconf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_times.c b/libs/libc/unistd/lib_times.c
index 7d40a60..f6f51f8 100644
--- a/libs/libc/unistd/lib_times.c
+++ b/libs/libc/unistd/lib_times.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_times.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_truncate.c b/libs/libc/unistd/lib_truncate.c
index 09b664a..b328e12 100644
--- a/libs/libc/unistd/lib_truncate.c
+++ b/libs/libc/unistd/lib_truncate.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_truncate.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_unlinkat.c b/libs/libc/unistd/lib_unlinkat.c
index cde9387..a63acb5 100644
--- a/libs/libc/unistd/lib_unlinkat.c
+++ b/libs/libc/unistd/lib_unlinkat.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_unlinkat.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_usleep.c b/libs/libc/unistd/lib_usleep.c
index 06a45c4..5e011d6 100644
--- a/libs/libc/unistd/lib_usleep.c
+++ b/libs/libc/unistd/lib_usleep.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_usleep.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_utime.c b/libs/libc/unistd/lib_utime.c
index 26491bd..71e6ff4 100644
--- a/libs/libc/unistd/lib_utime.c
+++ b/libs/libc/unistd/lib_utime.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_utime.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_utimes.c b/libs/libc/unistd/lib_utimes.c
index 16e2945..4ed8da5 100644
--- a/libs/libc/unistd/lib_utimes.c
+++ b/libs/libc/unistd/lib_utimes.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_utimes.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/lib_vfork.c b/libs/libc/unistd/lib_vfork.c
index b7e97be..c5d9655 100644
--- a/libs/libc/unistd/lib_vfork.c
+++ b/libs/libc/unistd/lib_vfork.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/lib_vfork.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/unistd/unistd.h b/libs/libc/unistd/unistd.h
index 86c5c90..ca2a23e 100644
--- a/libs/libc/unistd/unistd.h
+++ b/libs/libc/unistd/unistd.h
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/unistd/unistd.h
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/userfs/CMakeLists.txt b/libs/libc/userfs/CMakeLists.txt
index 96b737d..0d01a98 100644
--- a/libs/libc/userfs/CMakeLists.txt
+++ b/libs/libc/userfs/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/userfs/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/userfs/Make.defs b/libs/libc/userfs/Make.defs
index 9d68d94..198c0c2 100644
--- a/libs/libc/userfs/Make.defs
+++ b/libs/libc/userfs/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/userfs/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/userfs/lib_userfs.c b/libs/libc/userfs/lib_userfs.c
index 6ff6d6c..886f1fb 100644
--- a/libs/libc/userfs/lib_userfs.c
+++ b/libs/libc/userfs/lib_userfs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/userfs/lib_userfs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uuid/CMakeLists.txt b/libs/libc/uuid/CMakeLists.txt
index 13f02a6..e200814 100644
--- a/libs/libc/uuid/CMakeLists.txt
+++ b/libs/libc/uuid/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/uuid/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/uuid/Make.defs b/libs/libc/uuid/Make.defs
index f5ef987..ec27c66 100644
--- a/libs/libc/uuid/Make.defs
+++ b/libs/libc/uuid/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/uuid/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uuid/lib_uuid_compare.c b/libs/libc/uuid/lib_uuid_compare.c
index 56a70a5..016b942 100644
--- a/libs/libc/uuid/lib_uuid_compare.c
+++ b/libs/libc/uuid/lib_uuid_compare.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/uuid/lib_uuid_compare.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uuid/lib_uuid_create.c b/libs/libc/uuid/lib_uuid_create.c
index 41b6182..41262bd 100644
--- a/libs/libc/uuid/lib_uuid_create.c
+++ b/libs/libc/uuid/lib_uuid_create.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/uuid/lib_uuid_create.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uuid/lib_uuid_create_nil.c b/libs/libc/uuid/lib_uuid_create_nil.c
index 3c0a5f3..a7d0e96 100644
--- a/libs/libc/uuid/lib_uuid_create_nil.c
+++ b/libs/libc/uuid/lib_uuid_create_nil.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/uuid/lib_uuid_create_nil.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uuid/lib_uuid_equal.c b/libs/libc/uuid/lib_uuid_equal.c
index 59977f7..d23326a 100644
--- a/libs/libc/uuid/lib_uuid_equal.c
+++ b/libs/libc/uuid/lib_uuid_equal.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/uuid/lib_uuid_equal.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uuid/lib_uuid_from_string.c b/libs/libc/uuid/lib_uuid_from_string.c
index d1b10c6..ca4104a 100644
--- a/libs/libc/uuid/lib_uuid_from_string.c
+++ b/libs/libc/uuid/lib_uuid_from_string.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/uuid/lib_uuid_from_string.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uuid/lib_uuid_hash.c b/libs/libc/uuid/lib_uuid_hash.c
index 27915fa..8140c8d 100644
--- a/libs/libc/uuid/lib_uuid_hash.c
+++ b/libs/libc/uuid/lib_uuid_hash.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/uuid/lib_uuid_hash.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uuid/lib_uuid_is_nil.c b/libs/libc/uuid/lib_uuid_is_nil.c
index f907e1c..79eb60a 100644
--- a/libs/libc/uuid/lib_uuid_is_nil.c
+++ b/libs/libc/uuid/lib_uuid_is_nil.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/uuid/lib_uuid_is_nil.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uuid/lib_uuid_stream.c b/libs/libc/uuid/lib_uuid_stream.c
index 1f03f36..0d4949e 100644
--- a/libs/libc/uuid/lib_uuid_stream.c
+++ b/libs/libc/uuid/lib_uuid_stream.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/uuid/lib_uuid_stream.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/uuid/lib_uuid_to_string.c b/libs/libc/uuid/lib_uuid_to_string.c
index 614d01f..fead51a 100644
--- a/libs/libc/uuid/lib_uuid_to_string.c
+++ b/libs/libc/uuid/lib_uuid_to_string.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/uuid/lib_uuid_to_string.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/wchar/CMakeLists.txt b/libs/libc/wchar/CMakeLists.txt
index 8f53373..1bdd3cb 100644
--- a/libs/libc/wchar/CMakeLists.txt
+++ b/libs/libc/wchar/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/wchar/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/wchar/Make.defs b/libs/libc/wchar/Make.defs
index 1ff33ba..c43484f 100644
--- a/libs/libc/wchar/Make.defs
+++ b/libs/libc/wchar/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/wchar/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/wchar/lib_btowc.c b/libs/libc/wchar/lib_btowc.c
index 48ddff6..4c46590 100644
--- a/libs/libc/wchar/lib_btowc.c
+++ b/libs/libc/wchar/lib_btowc.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_btowc.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_mbrlen.c b/libs/libc/wchar/lib_mbrlen.c
index 60b327a..fd9441f 100644
--- a/libs/libc/wchar/lib_mbrlen.c
+++ b/libs/libc/wchar/lib_mbrlen.c
@@ -1,14 +1,10 @@
/****************************************************************************
* libs/libc/wchar/lib_mbrlen.c
*
- * Copyright (c) 2002-2004 Tim J. Robbins.
- * All rights reserved.
- *
- * Copyright (c) 2011 The FreeBSD Foundation
- * All rights reserved.
- *
- * Portions of this software were developed by David Chisnall
- * under sponsorship from the FreeBSD Foundation.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2002-2004 Tim J. Robbins. All rights reserved.
+ * SPDX-FileCopyrightText: 2011 The FreeBSD Foundation,All rights reserved.
+ * SPDX-FileContributor: David Chisnall
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_mbrtowc.c b/libs/libc/wchar/lib_mbrtowc.c
index 2f2f79a..3efe932 100644
--- a/libs/libc/wchar/lib_mbrtowc.c
+++ b/libs/libc/wchar/lib_mbrtowc.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_mbrtowc.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_mbsinit.c b/libs/libc/wchar/lib_mbsinit.c
index 39288ed..a4eead8 100644
--- a/libs/libc/wchar/lib_mbsinit.c
+++ b/libs/libc/wchar/lib_mbsinit.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_mbsinit.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/wchar/lib_mbsnrtowcs.c b/libs/libc/wchar/lib_mbsnrtowcs.c
index c81356f..907fb1c 100644
--- a/libs/libc/wchar/lib_mbsnrtowcs.c
+++ b/libs/libc/wchar/lib_mbsnrtowcs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_mbsnrtowcs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/wchar/lib_mbsrtowcs.c b/libs/libc/wchar/lib_mbsrtowcs.c
index 947477b..178999a 100644
--- a/libs/libc/wchar/lib_mbsrtowcs.c
+++ b/libs/libc/wchar/lib_mbsrtowcs.c
@@ -1,14 +1,10 @@
/****************************************************************************
* libs/libc/wchar/lib_mbsrtowcs.c
*
- * Copyright (c) 2002-2004 Tim J. Robbins.
- * All rights reserved.
- *
- * Copyright (c) 2011 The FreeBSD Foundation
- * All rights reserved.
- *
- * Portions of this software were developed by David Chisnall
- * under sponsorship from the FreeBSD Foundation.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 2002-2004 Tim J. Robbins. All rights reserved.
+ * SPDX-FileCopyrightText: 2011 The FreeBSD Foundation. All rights reserved.
+ * SPDX-FileContributor: David Chisnall
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_swprintf.c b/libs/libc/wchar/lib_swprintf.c
index fd0b41f..0261f36 100644
--- a/libs/libc/wchar/lib_swprintf.c
+++ b/libs/libc/wchar/lib_swprintf.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_swprintf.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/wchar/lib_wcrtomb.c b/libs/libc/wchar/lib_wcrtomb.c
index e2a0a57..17e8a7e 100644
--- a/libs/libc/wchar/lib_wcrtomb.c
+++ b/libs/libc/wchar/lib_wcrtomb.c
@@ -1,32 +1,22 @@
/****************************************************************************
* libs/libc/wchar/lib_wcrtomb.c
*
- * This code is derived from software contributed to Berkeley by
- * Chris Torek.
+ * SPDX-License-Identifier: Apache-2.0
*
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership. The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at
*
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*
****************************************************************************/
diff --git a/libs/libc/wchar/lib_wcscat.c b/libs/libc/wchar/lib_wcscat.c
index b94cb3c..aef83ad 100644
--- a/libs/libc/wchar/lib_wcscat.c
+++ b/libs/libc/wchar/lib_wcscat.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcscat.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wcschr.c b/libs/libc/wchar/lib_wcschr.c
index 5bc3dc0..0e9904c 100644
--- a/libs/libc/wchar/lib_wcschr.c
+++ b/libs/libc/wchar/lib_wcschr.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcschr.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wcscmp.c b/libs/libc/wchar/lib_wcscmp.c
index a41a051..9cc5060 100644
--- a/libs/libc/wchar/lib_wcscmp.c
+++ b/libs/libc/wchar/lib_wcscmp.c
@@ -1,32 +1,22 @@
/****************************************************************************
* libs/libc/wchar/lib_wcscmp.c
*
- * This code is derived from software contributed to Berkeley by
- * Chris Torek.
+ * SPDX-License-Identifier: Apache-2.0
*
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership. The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at
*
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*
****************************************************************************/
diff --git a/libs/libc/wchar/lib_wcscoll.c b/libs/libc/wchar/lib_wcscoll.c
index 153f3da..3aba7b8 100644
--- a/libs/libc/wchar/lib_wcscoll.c
+++ b/libs/libc/wchar/lib_wcscoll.c
@@ -1,32 +1,22 @@
/****************************************************************************
* libs/libc/wchar/lib_wcscoll.c
*
- * This code is derived from software contributed to Berkeley by
- * Chris Torek.
+ * SPDX-License-Identifier: Apache-2.0
*
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership. The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at
*
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*
****************************************************************************/
diff --git a/libs/libc/wchar/lib_wcscpy.c b/libs/libc/wchar/lib_wcscpy.c
index 694140c3..649233d 100644
--- a/libs/libc/wchar/lib_wcscpy.c
+++ b/libs/libc/wchar/lib_wcscpy.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcscpy.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wcscspn.c b/libs/libc/wchar/lib_wcscspn.c
index 0873458..8997bc7 100644
--- a/libs/libc/wchar/lib_wcscspn.c
+++ b/libs/libc/wchar/lib_wcscspn.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcscspn.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wcsftime.c b/libs/libc/wchar/lib_wcsftime.c
index e156172..e399bd8 100644
--- a/libs/libc/wchar/lib_wcsftime.c
+++ b/libs/libc/wchar/lib_wcsftime.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcsftime.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/wchar/lib_wcslcat.c b/libs/libc/wchar/lib_wcslcat.c
index 867b037..aead124 100644
--- a/libs/libc/wchar/lib_wcslcat.c
+++ b/libs/libc/wchar/lib_wcslcat.c
@@ -2,9 +2,7 @@
* libs/libc/wchar/lib_wcslcat.c
*
* SPDX-License-Identifier: BSD-3-Clause
- *
- * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
- * All rights reserved.
+ * SPDX-FileCopyrightText: 1998 Todd C. Miller <Todd.Miller@courtesan.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -28,8 +26,6 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * from OpenBSD: strlcat.c,v 1.3 2000/11/24 11:10:02 itojun Exp
- *
****************************************************************************/
/****************************************************************************
diff --git a/libs/libc/wchar/lib_wcslcpy.c b/libs/libc/wchar/lib_wcslcpy.c
index ece59ae..3dd658d 100644
--- a/libs/libc/wchar/lib_wcslcpy.c
+++ b/libs/libc/wchar/lib_wcslcpy.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcslcpy.c
*
- * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-3-Clause
+ * SPDX-FileCopyrightText: 1998 Todd C. Miller <Todd.Miller@courtesan.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_wcslen.c b/libs/libc/wchar/lib_wcslen.c
index c510e48..966b214 100644
--- a/libs/libc/wchar/lib_wcslen.c
+++ b/libs/libc/wchar/lib_wcslen.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcslen.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -26,8 +26,6 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * citrus Id: wcslen.c,v 1.1 1999/12/29 21:47:45 tshiozak Exp
- *
****************************************************************************/
/****************************************************************************
diff --git a/libs/libc/wchar/lib_wcsncat.c b/libs/libc/wchar/lib_wcsncat.c
index c96a628..5308959 100644
--- a/libs/libc/wchar/lib_wcsncat.c
+++ b/libs/libc/wchar/lib_wcsncat.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcsncat.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wcsncmp.c b/libs/libc/wchar/lib_wcsncmp.c
index 1c2e19d..19209c2 100644
--- a/libs/libc/wchar/lib_wcsncmp.c
+++ b/libs/libc/wchar/lib_wcsncmp.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcsncmp.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wcsncpy.c b/libs/libc/wchar/lib_wcsncpy.c
index c064a46..d214eb9 100644
--- a/libs/libc/wchar/lib_wcsncpy.c
+++ b/libs/libc/wchar/lib_wcsncpy.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcsncpy.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wcsnrtombs.c b/libs/libc/wchar/lib_wcsnrtombs.c
index a0f8c4a..bc56cb0 100644
--- a/libs/libc/wchar/lib_wcsnrtombs.c
+++ b/libs/libc/wchar/lib_wcsnrtombs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcsnrtombs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/wchar/lib_wcspbrk.c b/libs/libc/wchar/lib_wcspbrk.c
index e827852..4934c88 100644
--- a/libs/libc/wchar/lib_wcspbrk.c
+++ b/libs/libc/wchar/lib_wcspbrk.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcspbrk.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wcsrchr.c b/libs/libc/wchar/lib_wcsrchr.c
index 6c4215a..59968e6 100644
--- a/libs/libc/wchar/lib_wcsrchr.c
+++ b/libs/libc/wchar/lib_wcsrchr.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcsrchr.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wcsrtombs.c b/libs/libc/wchar/lib_wcsrtombs.c
index ad0625c..70e6768 100644
--- a/libs/libc/wchar/lib_wcsrtombs.c
+++ b/libs/libc/wchar/lib_wcsrtombs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcsrtombs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/wchar/lib_wcsspn.c b/libs/libc/wchar/lib_wcsspn.c
index 54f59de..36a0d85 100644
--- a/libs/libc/wchar/lib_wcsspn.c
+++ b/libs/libc/wchar/lib_wcsspn.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcsspn.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wcsstr.c b/libs/libc/wchar/lib_wcsstr.c
index 1549670..6b04680 100644
--- a/libs/libc/wchar/lib_wcsstr.c
+++ b/libs/libc/wchar/lib_wcsstr.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcsstr.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wcstod.c b/libs/libc/wchar/lib_wcstod.c
index 55ae599..95443b7 100644
--- a/libs/libc/wchar/lib_wcstod.c
+++ b/libs/libc/wchar/lib_wcstod.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcstod.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_wcstof.c b/libs/libc/wchar/lib_wcstof.c
index 1109d8d..7000176 100644
--- a/libs/libc/wchar/lib_wcstof.c
+++ b/libs/libc/wchar/lib_wcstof.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcstof.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_wcstok.c b/libs/libc/wchar/lib_wcstok.c
index 12d3693..56e04ef 100644
--- a/libs/libc/wchar/lib_wcstok.c
+++ b/libs/libc/wchar/lib_wcstok.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcstok.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wcstol.c b/libs/libc/wchar/lib_wcstol.c
index d1649fb..650a64a 100644
--- a/libs/libc/wchar/lib_wcstol.c
+++ b/libs/libc/wchar/lib_wcstol.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcstol.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_wcstold.c b/libs/libc/wchar/lib_wcstold.c
index 27ddc4d..033562c 100644
--- a/libs/libc/wchar/lib_wcstold.c
+++ b/libs/libc/wchar/lib_wcstold.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcstold.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_wcstoll.c b/libs/libc/wchar/lib_wcstoll.c
index 8fb7849..66102b4 100644
--- a/libs/libc/wchar/lib_wcstoll.c
+++ b/libs/libc/wchar/lib_wcstoll.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcstoll.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_wcstoul.c b/libs/libc/wchar/lib_wcstoul.c
index bb903e9..3db98d9 100644
--- a/libs/libc/wchar/lib_wcstoul.c
+++ b/libs/libc/wchar/lib_wcstoul.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcstoul.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_wcstoull.c b/libs/libc/wchar/lib_wcstoull.c
index 6f4ac5a..4072fdb 100644
--- a/libs/libc/wchar/lib_wcstoull.c
+++ b/libs/libc/wchar/lib_wcstoull.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcstoull.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_wcswcs.c b/libs/libc/wchar/lib_wcswcs.c
index 7fca39f..d4f1487 100644
--- a/libs/libc/wchar/lib_wcswcs.c
+++ b/libs/libc/wchar/lib_wcswcs.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcswcs.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wcswidth.c b/libs/libc/wchar/lib_wcswidth.c
index 5df340b..cd0556e 100644
--- a/libs/libc/wchar/lib_wcswidth.c
+++ b/libs/libc/wchar/lib_wcswidth.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcswidth.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wcsxfrm.c b/libs/libc/wchar/lib_wcsxfrm.c
index 9d89be9..076d9cd 100644
--- a/libs/libc/wchar/lib_wcsxfrm.c
+++ b/libs/libc/wchar/lib_wcsxfrm.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcsxfrm.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_wctob.c b/libs/libc/wchar/lib_wctob.c
index 3ceae8f..75950d1 100644
--- a/libs/libc/wchar/lib_wctob.c
+++ b/libs/libc/wchar/lib_wctob.c
@@ -1,32 +1,22 @@
/****************************************************************************
* libs/libc/wchar/lib_wctob.c
*
- * This code is derived from software contributed to Berkeley by
- * Chris Torek.
+ * SPDX-License-Identifier: Apache-2.0
*
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the University nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership. The
+ * ASF licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the
+ * License. You may obtain a copy of the License at
*
- * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations
+ * under the License.
*
****************************************************************************/
diff --git a/libs/libc/wchar/lib_wcwidth.c b/libs/libc/wchar/lib_wcwidth.c
index 4ce10a2..2c2ca57 100644
--- a/libs/libc/wchar/lib_wcwidth.c
+++ b/libs/libc/wchar/lib_wcwidth.c
@@ -1,7 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wcwidth.c
*
- * Copyright © 2005-2014 Rich Felker, et al.
+ * SPDX-License-Identifier: MIT
+ * SPDX-FileCopyrightText: 2005-2014 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
diff --git a/libs/libc/wchar/lib_wmemchr.c b/libs/libc/wchar/lib_wmemchr.c
index e2d0614..5b334fe 100644
--- a/libs/libc/wchar/lib_wmemchr.c
+++ b/libs/libc/wchar/lib_wmemchr.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wmemchr.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_wmemcmp.c b/libs/libc/wchar/lib_wmemcmp.c
index d4e52d4..002c526 100644
--- a/libs/libc/wchar/lib_wmemcmp.c
+++ b/libs/libc/wchar/lib_wmemcmp.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wmemcmp.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_wmemcpy.c b/libs/libc/wchar/lib_wmemcpy.c
index 3e7839d..acbcc58 100644
--- a/libs/libc/wchar/lib_wmemcpy.c
+++ b/libs/libc/wchar/lib_wmemcpy.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wmemcpy.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_wmemmove.c b/libs/libc/wchar/lib_wmemmove.c
index a853125..5382c4d 100644
--- a/libs/libc/wchar/lib_wmemmove.c
+++ b/libs/libc/wchar/lib_wmemmove.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wmemmove.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wchar/lib_wmemset.c b/libs/libc/wchar/lib_wmemset.c
index 8871ac9..881d937 100644
--- a/libs/libc/wchar/lib_wmemset.c
+++ b/libs/libc/wchar/lib_wmemset.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wchar/lib_wmemset.c
*
- * Copyright (c)1999 Citrus Project,
- * All rights reserved.
+ * SPDX-License-Identifier: BSD-2-Clause
+ * SPDX-FileCopyrightText: 1999 Citrus Project, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
diff --git a/libs/libc/wctype/CMakeLists.txt b/libs/libc/wctype/CMakeLists.txt
index d02a0b4..216ac09 100644
--- a/libs/libc/wctype/CMakeLists.txt
+++ b/libs/libc/wctype/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/wctype/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/wctype/Make.defs b/libs/libc/wctype/Make.defs
index 9b00d7d..3902938 100644
--- a/libs/libc/wctype/Make.defs
+++ b/libs/libc/wctype/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/wctype/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/wctype/lib_iswctype.c b/libs/libc/wctype/lib_iswctype.c
index 034ea9b..ec49326 100644
--- a/libs/libc/wctype/lib_iswctype.c
+++ b/libs/libc/wctype/lib_iswctype.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wctype/lib_iswctype.c
*
- * Copyright (c) 2002 Red Hat Incorporated.
- * All rights reserved.
+ * SPDX-License-Identifier: TwistedSNMP
+ * SPDX-FileCopyrightText: 2002 Red Hat Incorporated. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
diff --git a/libs/libc/wctype/lib_towlower.c b/libs/libc/wctype/lib_towlower.c
index a73aba8..a176ed9 100644
--- a/libs/libc/wctype/lib_towlower.c
+++ b/libs/libc/wctype/lib_towlower.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wctype/lib_towlower.c
*
- * Copyright (c) 2002 Red Hat Incorporated.
- * All rights reserved.
+ * SPDX-License-Identifier: TwistedSNMP
+ * SPDX-FileCopyrightText: 2002 Red Hat Incorporated. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
diff --git a/libs/libc/wctype/lib_towupper.c b/libs/libc/wctype/lib_towupper.c
index 230cbc7..6dc4a92 100644
--- a/libs/libc/wctype/lib_towupper.c
+++ b/libs/libc/wctype/lib_towupper.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wctype/lib_towupper.c
*
- * Copyright (c) 2002 Red Hat Incorporated.
- * All rights reserved.
+ * SPDX-License-Identifier: TwistedSNMP
+ * SPDX-FileCopyrightText: 2002 Red Hat Incorporated. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
diff --git a/libs/libc/wctype/lib_wctype.c b/libs/libc/wctype/lib_wctype.c
index 0833838..607de8c 100644
--- a/libs/libc/wctype/lib_wctype.c
+++ b/libs/libc/wctype/lib_wctype.c
@@ -1,8 +1,8 @@
/****************************************************************************
* libs/libc/wctype/lib_wctype.c
*
- * Copyright (c) 2002 Red Hat Incorporated.
- * All rights reserved.
+ * SPDX-License-Identifier: TwistedSNMP
+ * SPDX-FileCopyrightText: 2002 Red Hat Incorporated. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
diff --git a/libs/libc/wqueue/CMakeLists.txt b/libs/libc/wqueue/CMakeLists.txt
index de316df..d7bb84c 100644
--- a/libs/libc/wqueue/CMakeLists.txt
+++ b/libs/libc/wqueue/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/wqueue/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/wqueue/Make.defs b/libs/libc/wqueue/Make.defs
index a743ae2..d20b68a 100644
--- a/libs/libc/wqueue/Make.defs
+++ b/libs/libc/wqueue/Make.defs
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/wqueue/Make.defs
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/wqueue/work_cancel.c b/libs/libc/wqueue/work_cancel.c
index 839e204..4a86335 100644
--- a/libs/libc/wqueue/work_cancel.c
+++ b/libs/libc/wqueue/work_cancel.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/wqueue/work_cancel.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/wqueue/work_queue.c b/libs/libc/wqueue/work_queue.c
index 5972fd7..0a00bf6 100644
--- a/libs/libc/wqueue/work_queue.c
+++ b/libs/libc/wqueue/work_queue.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/wqueue/work_queue.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/wqueue/work_usrthread.c b/libs/libc/wqueue/work_usrthread.c
index ccf942e..8e4c679 100644
--- a/libs/libc/wqueue/work_usrthread.c
+++ b/libs/libc/wqueue/work_usrthread.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/wqueue/work_usrthread.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/wqueue/wqueue.h b/libs/libc/wqueue/wqueue.h
index 6a58b50..c262693 100644
--- a/libs/libc/wqueue/wqueue.h
+++ b/libs/libc/wqueue/wqueue.h
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/wqueue/wqueue.h
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/zoneinfo/CMakeLists.txt b/libs/libc/zoneinfo/CMakeLists.txt
index 736c09f..f71a341 100644
--- a/libs/libc/zoneinfo/CMakeLists.txt
+++ b/libs/libc/zoneinfo/CMakeLists.txt
@@ -1,6 +1,8 @@
# ##############################################################################
# libs/libc/zoneinfo/CMakeLists.txt
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
# license agreements. See the NOTICE file distributed with this work for
# additional information regarding copyright ownership. The ASF licenses this
diff --git a/libs/libc/zoneinfo/Makefile b/libs/libc/zoneinfo/Makefile
index 0fd1c68..746afcc 100644
--- a/libs/libc/zoneinfo/Makefile
+++ b/libs/libc/zoneinfo/Makefile
@@ -1,6 +1,8 @@
############################################################################
# libs/libc/zoneinfo/Makefile
#
+# SPDX-License-Identifier: Apache-2.0
+#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership. The
diff --git a/libs/libc/zoneinfo/tzromfs.c b/libs/libc/zoneinfo/tzromfs.c
index 0cccc2b..74ac44c 100644
--- a/libs/libc/zoneinfo/tzromfs.c
+++ b/libs/libc/zoneinfo/tzromfs.c
@@ -1,6 +1,8 @@
/****************************************************************************
* libs/libc/zoneinfo/tzromfs.c
*
+ * SPDX-License-Identifier: Apache-2.0
+ *
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The