This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit b4522aab1a7230bc8ebfa8c5bfb5238a46db5f6f Author: Alin Jerpelea <[email protected]> AuthorDate: Sat Nov 28 09:19:58 2026 +0100 libs: fix license header fix warnings from ATR Signed-off-by: Alin Jerpelea <[email protected]> --- libs/libc/dlfcn/lib_dlfind_object.c | 2 + libs/libc/elf/elf_addrenv.c | 2 + libs/libc/elf/elf_gethandle.c | 2 + libs/libc/elf/elf_getsymbol.c | 2 + libs/libc/elf/elf_insert.c | 2 + libs/libc/elf/elf_remove.c | 2 + libs/libc/locale/big5.h | 22 ++++++ libs/libc/locale/codepages.h | 22 ++++++ libs/libc/locale/gb18030.h | 22 ++++++ libs/libc/locale/hkscs.h | 22 ++++++ libs/libc/locale/jis0208.h | 22 ++++++ libs/libc/locale/ksc.h | 22 ++++++ libs/libc/locale/legacychars.h | 22 ++++++ libs/libc/locale/revjis.h | 22 ++++++ libs/libc/machine/arch_libc.c | 2 + libs/libc/machine/arm/aeabi_memclr.c | 2 + libs/libc/machine/arm/aeabi_memclr4.c | 2 + libs/libc/machine/arm/aeabi_memclr8.c | 2 + libs/libc/machine/arm/aeabi_memcpy.c | 2 + libs/libc/machine/arm/aeabi_memcpy4.c | 2 + libs/libc/machine/arm/aeabi_memcpy8.c | 2 + libs/libc/machine/arm/aeabi_memmove.c | 2 + libs/libc/machine/arm/aeabi_memmove4.c | 2 + libs/libc/machine/arm/aeabi_memmove8.c | 2 + libs/libc/machine/arm/aeabi_memset.c | 2 + libs/libc/machine/arm/aeabi_memset4.c | 2 + libs/libc/machine/arm/aeabi_memset8.c | 2 + libs/libc/machine/arm64/arch_mcount.c | 2 + libs/libc/machine/risc-v/asm.h | 1 + libs/libc/machine/xtensa/arch_mcount.c | 2 + libs/libc/misc/lib_crc8rohc.c | 2 + libs/libc/misc/lib_note.c | 2 + libs/libc/netdb/lib_dnsdelserver.c | 2 + libs/libc/pwd/lib_getspnam.c | 2 + libs/libc/pwd/lib_getspnamr.c | 2 + libs/libc/regex/regerror.c | 28 ++++---- libs/libc/regex/regexec.c | 28 ++++---- libs/libc/regex/tre-mem.c | 28 ++++---- libs/libc/search/hash_func.c | 3 +- libs/libc/stdlib/lib_bsearch.c | 3 +- libs/libc/stdlib/lib_qsort.c | 5 +- libs/libc/stream/lib_base64outstream.c | 2 + libs/libc/stream/lib_mtdsostream.c | 2 + libs/libc/time/lib_strptime.c | 2 + libs/libc/unistd/lib_crypt.c | 2 + libs/libc/unistd/lib_crypt_r.c | 2 + libs/libc/unistd/lib_getpass.c | 2 + libs/libc/wchar/lib_wcslcat.c | 1 + libs/libm/newlib/include/tgmath.h | 2 + libs/libxx/libcxx/from_chars_support.h | 34 +++++---- libs/libxx/libminiabi/libxx_cxa_guard.cxx | 92 ++++++++++++------------ libs/libxx/libminiabi/libxx_cxapurevirtual.cxx | 79 ++++++++++---------- libs/libxx/libminiabi/libxx_delete.cxx | 91 +++++++++++------------ libs/libxx/libminiabi/libxx_deletea.cxx | 71 +++++++++--------- libs/libxx/libminiabi/libxx_dynamic_cast.cxx | 3 +- libs/libxx/libminiabi/libxx_new.cxx | 79 ++++++++++---------- libs/libxx/libminiabi/libxx_newa.cxx | 99 +++++++++++++------------- libs/libxx/libminiabi/libxx_typeinfo.cxx | 3 +- libs/libxx/libminiabi/libxx_typeinfo.h | 3 +- 59 files changed, 577 insertions(+), 316 deletions(-) diff --git a/libs/libc/dlfcn/lib_dlfind_object.c b/libs/libc/dlfcn/lib_dlfind_object.c index b74900247a7..0d82df39ab6 100644 --- a/libs/libc/dlfcn/lib_dlfind_object.c +++ b/libs/libc/dlfcn/lib_dlfind_object.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/dlfcn/lib_dlfind_object.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The diff --git a/libs/libc/elf/elf_addrenv.c b/libs/libc/elf/elf_addrenv.c index 8a395042fdc..5248b64f762 100644 --- a/libs/libc/elf/elf_addrenv.c +++ b/libs/libc/elf/elf_addrenv.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/elf/elf_addrenv.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The diff --git a/libs/libc/elf/elf_gethandle.c b/libs/libc/elf/elf_gethandle.c index c6ca31fca4f..b11b4d1a0fa 100644 --- a/libs/libc/elf/elf_gethandle.c +++ b/libs/libc/elf/elf_gethandle.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/elf/elf_gethandle.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The diff --git a/libs/libc/elf/elf_getsymbol.c b/libs/libc/elf/elf_getsymbol.c index 04142a5560c..dd0372d35b8 100644 --- a/libs/libc/elf/elf_getsymbol.c +++ b/libs/libc/elf/elf_getsymbol.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/elf/elf_getsymbol.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The diff --git a/libs/libc/elf/elf_insert.c b/libs/libc/elf/elf_insert.c index f506bcc90d5..3dd8d9d85f1 100644 --- a/libs/libc/elf/elf_insert.c +++ b/libs/libc/elf/elf_insert.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/elf/elf_insert.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. The diff --git a/libs/libc/elf/elf_remove.c b/libs/libc/elf/elf_remove.c index 3402f1c20a2..99ce84d7851 100644 --- a/libs/libc/elf/elf_remove.c +++ b/libs/libc/elf/elf_remove.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/elf/elf_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/locale/big5.h b/libs/libc/locale/big5.h index 332ea3bc5a5..1a7a8c8a55a 100644 --- a/libs/libc/locale/big5.h +++ b/libs/libc/locale/big5.h @@ -1,3 +1,25 @@ +/**************************************************************************** + * libs/libc/locale/big5.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 + * 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. + * + ****************************************************************************/ + 12288,65292,12289,12290,65294,8231,65307,65306,65311,65281,65072,8230,8229, 65104,65105,65106,183,65108,65109,65110,65111,65372,8211,65073,8212,65075, 9588,65076,65103,65288,65289,65077,65078,65371,65373,65079,65080,12308,12309, diff --git a/libs/libc/locale/codepages.h b/libs/libc/locale/codepages.h index 4e236ef3abe..f06527a72fe 100644 --- a/libs/libc/locale/codepages.h +++ b/libs/libc/locale/codepages.h @@ -1,3 +1,25 @@ +/**************************************************************************** + * libs/libc/locale/codepages.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 + * 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. + * + ****************************************************************************/ + "iso88591\0" "latin1\0" "\0\100" diff --git a/libs/libc/locale/gb18030.h b/libs/libc/locale/gb18030.h index 8f300e9b698..8c9b448e90e 100644 --- a/libs/libc/locale/gb18030.h +++ b/libs/libc/locale/gb18030.h @@ -1,3 +1,25 @@ +/**************************************************************************** + * libs/libc/locale/gb18030.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 + * 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. + * + ****************************************************************************/ + 19970,19972,19973,19974,19983,19986,19991,19999,20000,20001,20003,20006,20009, 20014,20015,20017,20019,20021,20023,20028,20032,20033,20034,20036,20038,20042, 20049,20053,20055,20058,20059,20066,20067,20068,20069,20071,20072,20074,20075, diff --git a/libs/libc/locale/hkscs.h b/libs/libc/locale/hkscs.h index d3565174d9c..a2761b467fd 100644 --- a/libs/libc/locale/hkscs.h +++ b/libs/libc/locale/hkscs.h @@ -1,3 +1,25 @@ +/**************************************************************************** + * libs/libc/locale/hkscs.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 + * 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. + * + ****************************************************************************/ + 17392,19506,17923,17830,17784,29287,19831,17843,31921,19682,31941,15253,18230, 18244,19527,19520,17087,13847,29522,28299,28882,19543,41809,18255,17882,19589, 31852,19719,19108,18081,27427,29221,23124,6755,15878,16225,26189,22267,0, diff --git a/libs/libc/locale/jis0208.h b/libs/libc/locale/jis0208.h index 0b8d53cb7cc..0d5311b8592 100644 --- a/libs/libc/locale/jis0208.h +++ b/libs/libc/locale/jis0208.h @@ -1,3 +1,25 @@ +/**************************************************************************** + * libs/libc/locale/jis0208.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 + * 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. + * + ****************************************************************************/ + 12288,12289,12290,65292,65294,12539,65306,65307,65311,65281,12443,12444,180, 65344,168,65342,65507,65343,12541,12542,12445,12446,12291,20189,12293,12294, 12295,12540,8213,8208,65295,92,12316,8214,65372,8230,8229,8216,8217,8220,8221, diff --git a/libs/libc/locale/ksc.h b/libs/libc/locale/ksc.h index cf2ec68909f..80bf65e486c 100644 --- a/libs/libc/locale/ksc.h +++ b/libs/libc/locale/ksc.h @@ -1,3 +1,25 @@ +/**************************************************************************** + * libs/libc/locale/ksc.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 + * 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. + * + ****************************************************************************/ + 12288,12289,12290,183,8229,8230,168,12291,173,8213,8741,65340,8764,8216,8217, 8220,8221,12308,12309,12296,12297,12298,12299,12300,12301,12302,12303,12304, 12305,177,215,247,8800,8804,8805,8734,8756,176,8242,8243,8451,8491,65504, diff --git a/libs/libc/locale/legacychars.h b/libs/libc/locale/legacychars.h index 9639b4af969..5646e5f01c2 100644 --- a/libs/libc/locale/legacychars.h +++ b/libs/libc/locale/legacychars.h @@ -1,3 +1,25 @@ +/**************************************************************************** + * libs/libc/locale/legacychars.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 + * 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. + * + ****************************************************************************/ + 256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274, 275,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295, 296,297,298,299,302,303,304,305,308,309,310,311,312,313,314,315,316,317,318, diff --git a/libs/libc/locale/revjis.h b/libs/libc/locale/revjis.h index 3ab369f6ef5..595223c86a7 100644 --- a/libs/libc/locale/revjis.h +++ b/libs/libc/locale/revjis.h @@ -1,3 +1,25 @@ +/**************************************************************************** + * libs/libc/locale/revjis.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 + * 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. + * + ****************************************************************************/ + 31,80,81,87,14,299,74,61,12,344,62,63,1280,1281,1282,1283,1284,1285,1286,1287, 1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302, 1303,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325, diff --git a/libs/libc/machine/arch_libc.c b/libs/libc/machine/arch_libc.c index fcf360dea25..45aea4f4890 100644 --- a/libs/libc/machine/arch_libc.c +++ b/libs/libc/machine/arch_libc.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/arch_libc.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_memclr.c b/libs/libc/machine/arm/aeabi_memclr.c index 9b195cdb412..30449f1856f 100644 --- a/libs/libc/machine/arm/aeabi_memclr.c +++ b/libs/libc/machine/arm/aeabi_memclr.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/arm/aeabi_memclr.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_memclr4.c b/libs/libc/machine/arm/aeabi_memclr4.c index 029cd13abea..1f14131fe69 100644 --- a/libs/libc/machine/arm/aeabi_memclr4.c +++ b/libs/libc/machine/arm/aeabi_memclr4.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/arm/aeabi_memclr4.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_memclr8.c b/libs/libc/machine/arm/aeabi_memclr8.c index 4463903a662..5816ab56815 100644 --- a/libs/libc/machine/arm/aeabi_memclr8.c +++ b/libs/libc/machine/arm/aeabi_memclr8.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/arm/aeabi_memclr8.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_memcpy.c b/libs/libc/machine/arm/aeabi_memcpy.c index c74a060b38f..acf6544ea64 100644 --- a/libs/libc/machine/arm/aeabi_memcpy.c +++ b/libs/libc/machine/arm/aeabi_memcpy.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/arm/aeabi_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/machine/arm/aeabi_memcpy4.c b/libs/libc/machine/arm/aeabi_memcpy4.c index 9b98a172226..218e9a40efd 100644 --- a/libs/libc/machine/arm/aeabi_memcpy4.c +++ b/libs/libc/machine/arm/aeabi_memcpy4.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/arm/aeabi_memcpy4.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_memcpy8.c b/libs/libc/machine/arm/aeabi_memcpy8.c index 0146c745b45..f6560d8cf51 100644 --- a/libs/libc/machine/arm/aeabi_memcpy8.c +++ b/libs/libc/machine/arm/aeabi_memcpy8.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/arm/aeabi_memcpy8.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_memmove.c b/libs/libc/machine/arm/aeabi_memmove.c index b36d178c1a3..a4dbe3dbe16 100644 --- a/libs/libc/machine/arm/aeabi_memmove.c +++ b/libs/libc/machine/arm/aeabi_memmove.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/arm/aeabi_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/machine/arm/aeabi_memmove4.c b/libs/libc/machine/arm/aeabi_memmove4.c index 15171d7ff68..daedd4a38ec 100644 --- a/libs/libc/machine/arm/aeabi_memmove4.c +++ b/libs/libc/machine/arm/aeabi_memmove4.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/arm/aeabi_memmove4.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_memmove8.c b/libs/libc/machine/arm/aeabi_memmove8.c index bacdaed7c00..2649cd8bfa9 100644 --- a/libs/libc/machine/arm/aeabi_memmove8.c +++ b/libs/libc/machine/arm/aeabi_memmove8.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/arm/aeabi_memmove8.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_memset.c b/libs/libc/machine/arm/aeabi_memset.c index 5bb8d73012f..216ece78aed 100644 --- a/libs/libc/machine/arm/aeabi_memset.c +++ b/libs/libc/machine/arm/aeabi_memset.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/arm/aeabi_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/machine/arm/aeabi_memset4.c b/libs/libc/machine/arm/aeabi_memset4.c index 0c51d05c9e5..c3c1abb423f 100644 --- a/libs/libc/machine/arm/aeabi_memset4.c +++ b/libs/libc/machine/arm/aeabi_memset4.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/arm/aeabi_memset4.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_memset8.c b/libs/libc/machine/arm/aeabi_memset8.c index d754545455d..68d9c179c7b 100644 --- a/libs/libc/machine/arm/aeabi_memset8.c +++ b/libs/libc/machine/arm/aeabi_memset8.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/arm/aeabi_memset8.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_mcount.c b/libs/libc/machine/arm64/arch_mcount.c index f88a4566791..423383fbb34 100644 --- a/libs/libc/machine/arm64/arch_mcount.c +++ b/libs/libc/machine/arm64/arch_mcount.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/arm64/arch_mcount.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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/asm.h b/libs/libc/machine/risc-v/asm.h index be8da277351..8bbe2125e97 100644 --- a/libs/libc/machine/risc-v/asm.h +++ b/libs/libc/machine/risc-v/asm.h @@ -11,6 +11,7 @@ * including the implied warranties of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. A copy of this license is available at * http://www.opensource.org/licenses. + * ****************************************************************************/ #ifndef __LIBS_LIBC_MACHINE_RISCV_GNU_ASM_H diff --git a/libs/libc/machine/xtensa/arch_mcount.c b/libs/libc/machine/xtensa/arch_mcount.c index f4dda9b0cc2..2c7915677ea 100644 --- a/libs/libc/machine/xtensa/arch_mcount.c +++ b/libs/libc/machine/xtensa/arch_mcount.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/machine/xtensa/arch_mcount.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_crc8rohc.c b/libs/libc/misc/lib_crc8rohc.c index 274c6e43d57..17ea5b74859 100644 --- a/libs/libc/misc/lib_crc8rohc.c +++ b/libs/libc/misc/lib_crc8rohc.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/misc/lib_crc8rohc.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_note.c b/libs/libc/misc/lib_note.c index c6da77e0269..0dce4503182 100644 --- a/libs/libc/misc/lib_note.c +++ b/libs/libc/misc/lib_note.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/misc/lib_note.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_dnsdelserver.c b/libs/libc/netdb/lib_dnsdelserver.c index 67effeeaa91..ccc4f7ef7f4 100644 --- a/libs/libc/netdb/lib_dnsdelserver.c +++ b/libs/libc/netdb/lib_dnsdelserver.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/netdb/lib_dnsdelserver.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_getspnam.c b/libs/libc/pwd/lib_getspnam.c index a34783710b9..8e28450f641 100644 --- a/libs/libc/pwd/lib_getspnam.c +++ b/libs/libc/pwd/lib_getspnam.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/pwd/lib_getspnam.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_getspnamr.c b/libs/libc/pwd/lib_getspnamr.c index 8a68fe03137..adf98a19e3b 100644 --- a/libs/libc/pwd/lib_getspnamr.c +++ b/libs/libc/pwd/lib_getspnamr.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/pwd/lib_getspnamr.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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/regerror.c b/libs/libc/regex/regerror.c index 9a30e1f2ed8..97666d9b033 100644 --- a/libs/libc/regex/regerror.c +++ b/libs/libc/regex/regerror.c @@ -4,9 +4,9 @@ * SPDX-License-Identifier: BSD-2-Clause * SPDX-FileCopyrightText: 2001-2009 Ville Laurikari <[email protected]> * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * 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. @@ -15,17 +15,17 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER 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 - * HOLDER 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. + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER 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 + * HOLDER 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/regex/regexec.c b/libs/libc/regex/regexec.c index f2be062331d..d9b91f54f14 100644 --- a/libs/libc/regex/regexec.c +++ b/libs/libc/regex/regexec.c @@ -4,9 +4,9 @@ * SPDX-License-Identifier: BSD-2-Clause * SPDX-FileCopyrightText: 2001-2009 Ville Laurikari <[email protected]> * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * 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. @@ -15,17 +15,17 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER 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 - * HOLDER 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. + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER 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 + * HOLDER 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/regex/tre-mem.c b/libs/libc/regex/tre-mem.c index 78f663f7c98..16aff165b23 100644 --- a/libs/libc/regex/tre-mem.c +++ b/libs/libc/regex/tre-mem.c @@ -4,9 +4,9 @@ * SPDX-License-Identifier: BSD-2-Clause * SPDX-FileCopyrightText: 2001-2009 Ville Laurikari <[email protected]> * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * 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. @@ -15,17 +15,17 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER 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 - * HOLDER 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. + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER 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 + * HOLDER 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/search/hash_func.c b/libs/libc/search/hash_func.c index ed4df891a4b..56b20048d8d 100644 --- a/libs/libc/search/hash_func.c +++ b/libs/libc/search/hash_func.c @@ -2,7 +2,8 @@ * libs/libc/search/hash_func.c * * SPDX-License-Identifier: BSD-3-Clause-UC - * SPDX-FileCopyrightText: 1990, 1993 The Regents of the University of California. + * SPDX-FileCopyrightText: 1993 The Regents of the University of California. + * SPDX-FileCopyrightText: 1990 The Regents of the University of California. * * This code is derived from software contributed to Berkeley by * Margo Seltzer. diff --git a/libs/libc/stdlib/lib_bsearch.c b/libs/libc/stdlib/lib_bsearch.c index 6306afbf008..dab551c0ca0 100644 --- a/libs/libc/stdlib/lib_bsearch.c +++ b/libs/libc/stdlib/lib_bsearch.c @@ -2,7 +2,8 @@ * libs/libc/stdlib/lib_bsearch.c * * SPDX-License-Identifier: BSD-3-Clause - * SPDX-FileCopyrightText: 1990, 1993 The Regents of the University of California. All rights reserved. + * SPDX-FileCopyrightText: 1993 The Regents of the University of California. + * SPDX-FileCopyrightText: 1990 The Regents of the University of California. * * 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_qsort.c b/libs/libc/stdlib/lib_qsort.c index 6c68b2dcdff..6778a2eabe7 100644 --- a/libs/libc/stdlib/lib_qsort.c +++ b/libs/libc/stdlib/lib_qsort.c @@ -2,8 +2,9 @@ * libs/libc/stdlib/lib_qsort.c * * SPDX-License-Identifier: BSD-3-Clause - * SPDX-FileCopyrightText: 2007, 2009, 2011 Gregory Nutt. All rights reserved. - * SPDX-FileCopyrightText: 1992, 1993 The Regents of the University of California. All rights reserved. + * SPDX-FileCopyrightText: 2007, 2009, 2011 Gregory Nutt + * SPDX-FileCopyrightText: 1993 The Regents of the University of California + * SPDX-FileCopyrightText: 1992 The Regents of the University of California * SPDX-FileContributor: Gregory Nutt <[email protected]> * * Redistribution and use in source and binary forms, with or without diff --git a/libs/libc/stream/lib_base64outstream.c b/libs/libc/stream/lib_base64outstream.c index 27c4461e5f4..2eef3e3f1df 100644 --- a/libs/libc/stream/lib_base64outstream.c +++ b/libs/libc/stream/lib_base64outstream.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/stream/lib_base64outstream.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_mtdsostream.c b/libs/libc/stream/lib_mtdsostream.c index 9f0e586ce1e..7c2527dc697 100644 --- a/libs/libc/stream/lib_mtdsostream.c +++ b/libs/libc/stream/lib_mtdsostream.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/stream/lib_mtdsostream.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_strptime.c b/libs/libc/time/lib_strptime.c index 086d3d6480c..5f1f49f9690 100644 --- a/libs/libc/time/lib_strptime.c +++ b/libs/libc/time/lib_strptime.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/time/lib_strptime.c * + * SPDX-License-Identifier: MIT + * * musl as a whole is licensed under the following standard MIT license: * * Copyright © 2005-2020 Rich Felker, et al. diff --git a/libs/libc/unistd/lib_crypt.c b/libs/libc/unistd/lib_crypt.c index 69890a778ef..16add9dddc7 100644 --- a/libs/libc/unistd/lib_crypt.c +++ b/libs/libc/unistd/lib_crypt.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/unistd/lib_crypt.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_crypt_r.c b/libs/libc/unistd/lib_crypt_r.c index dc3d71db5ec..5b53bcba46e 100644 --- a/libs/libc/unistd/lib_crypt_r.c +++ b/libs/libc/unistd/lib_crypt_r.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/unistd/lib_crypt_r.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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_getpass.c b/libs/libc/unistd/lib_getpass.c index 9eb3222a1e8..adc93b5ef93 100644 --- a/libs/libc/unistd/lib_getpass.c +++ b/libs/libc/unistd/lib_getpass.c @@ -1,6 +1,8 @@ /**************************************************************************** * libs/libc/unistd/lib_getpass.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed to the Apache Software Foundation (ASF) under one or 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 063fc0a2f01..f187da4814a 100644 --- a/libs/libc/wchar/lib_wcslcat.c +++ b/libs/libc/wchar/lib_wcslcat.c @@ -7,6 +7,7 @@ * 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 diff --git a/libs/libm/newlib/include/tgmath.h b/libs/libm/newlib/include/tgmath.h index 939c8af104d..301190cb3d1 100644 --- a/libs/libm/newlib/include/tgmath.h +++ b/libs/libm/newlib/include/tgmath.h @@ -1,4 +1,6 @@ /**************************************************************************** + * libs/libm/newlib/include/tgmath.h + * * SPDX-License-Identifier: BSD-3-Clause * SPDX-FileCopyrightText: Copyright (c) 2004 Stefan Farfeleder. * diff --git a/libs/libxx/libcxx/from_chars_support.h b/libs/libxx/libcxx/from_chars_support.h index 6edb4a4d086..b4dcb098a66 100644 --- a/libs/libxx/libcxx/from_chars_support.h +++ b/libs/libxx/libcxx/from_chars_support.h @@ -1,18 +1,22 @@ -//===-- from_chars_support.h - from_chars float support -------- -*- C++ -*-===// -// -// Minimal self-contained replacement for LLVM libc's shared/ headers: -// shared/fp_bits.h, shared/str_to_float.h, shared/str_to_integer.h -// -// Delegates actual string-to-float conversion to system strtof/strtod, -// providing the API surface that libcxx's from_chars_floating_point.h expects. -// -// Supports float and double only. No long double, no wchar_t. -// -// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. -// See https://llvm.org/LICENSE.txt for license information. -// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -// -//===----------------------------------------------------------------------===// +/**************************************************************************** + * libs/libxx/libcxx/from_chars_support.h + * + * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + * + * from_chars_support.h - from_chars float support -------- -*- C++ -*-===// + * + * Minimal self-contained replacement for LLVM libc's shared/ headers: + * shared/fp_bits.h, shared/str_to_float.h, shared/str_to_integer.h + * + * Delegates actual string-to-float conversion to system strtof/strtod, + * providing the API surface that libcxx's from_chars_floating_point.h expects. + * + * Supports float and double only. No long double, no wchar_t. + * + * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. + * See https://llvm.org/LICENSE.txt for license information. + * + ****************************************************************************/ #ifndef LIBCXX_SRC_INCLUDE_FROM_CHARS_SUPPORT_H #define LIBCXX_SRC_INCLUDE_FROM_CHARS_SUPPORT_H diff --git a/libs/libxx/libminiabi/libxx_cxa_guard.cxx b/libs/libxx/libminiabi/libxx_cxa_guard.cxx index 07cb2cbe398..ab75db19f3e 100644 --- a/libs/libxx/libminiabi/libxx_cxa_guard.cxx +++ b/libs/libxx/libminiabi/libxx_cxa_guard.cxx @@ -1,38 +1,38 @@ -//*************************************************************************** -// libs/libxx/libminiabi/libxx_cxa_guard.cxx -// -// SPDX-License-Identifier: Apache-2.0 -// -// Licensed to the Apache Software 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. -// -//*************************************************************************** - -//*************************************************************************** -// Included Files -//*************************************************************************** +/**************************************************************************** + * libs/libxx/libminiabi/libxx_cxa_guard.cxx + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed to the Apache Software 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. + * + ****************************************************************************/ + +/**************************************************************************** + * Included Files + ****************************************************************************/ #include <nuttx/compiler.h> -//*************************************************************************** -// Pre-processor Definitions -//*************************************************************************** +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ -//*************************************************************************** -// Private Types -//*************************************************************************** +/**************************************************************************** + * Private Types + ****************************************************************************/ #ifdef __ARM_EABI__ // The 32-bit ARM C++ ABI specifies that the guard is a 32-bit @@ -49,19 +49,19 @@ typedef int __guard; __extension__ typedef int __guard __attribute__((mode(__DI__))); #endif -//*************************************************************************** -// Private Data -//*************************************************************************** +/**************************************************************************** + * Private Data + ****************************************************************************/ -//*************************************************************************** -// Public Functions -//*************************************************************************** +/**************************************************************************** + * Public Functions + ****************************************************************************/ extern "C" { - //************************************************************************* - // Name: __cxa_guard_acquire - //************************************************************************* + /************************************************************************** + * Name: __cxa_guard_acquire + **************************************************************************/ int __cxa_guard_acquire(FAR __guard *g) { @@ -72,9 +72,9 @@ extern "C" #endif } - //************************************************************************* - // Name: __cxa_guard_release - //************************************************************************* + /************************************************************************** + * Name: __cxa_guard_release + **************************************************************************/ void __cxa_guard_release(FAR __guard *g) { @@ -85,9 +85,9 @@ extern "C" #endif } - //************************************************************************* - // Name: __cxa_guard_abort - //************************************************************************* + /************************************************************************** + * Name: __cxa_guard_abort + **************************************************************************/ void __cxa_guard_abort(FAR __guard *) { diff --git a/libs/libxx/libminiabi/libxx_cxapurevirtual.cxx b/libs/libxx/libminiabi/libxx_cxapurevirtual.cxx index 95885100b9f..bb42f1ac474 100644 --- a/libs/libxx/libminiabi/libxx_cxapurevirtual.cxx +++ b/libs/libxx/libminiabi/libxx_cxapurevirtual.cxx @@ -1,49 +1,50 @@ -//*************************************************************************** -// libs/libxx/libminiabi/libxx_cxapurevirtual.cxx -// -// SPDX-License-Identifier: Apache-2.0 -// -// Licensed to the Apache Software 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 -// -//*************************************************************************** +/**************************************************************************** + * libs/libxx/libminiabi/libxx_cxapurevirtual.cxx + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed to the Apache Software 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. + * + ****************************************************************************/ -//*************************************************************************** -// Included Files -//*************************************************************************** +/**************************************************************************** + * Included Files + ****************************************************************************/ #include <cassert> -//*************************************************************************** -// Pre-processor Definitions -//*************************************************************************** +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ -//*************************************************************************** -// Private Data -//*************************************************************************** +/**************************************************************************** + * Private Data + ****************************************************************************/ -//*************************************************************************** -// Operators -//*************************************************************************** +/**************************************************************************** + * Operators + ****************************************************************************/ -//*************************************************************************** -// Name: __cxa_pure_virtual -// -// Description: -// Crash when an un-implemented pure virtual function is called -// -//*************************************************************************** +/**************************************************************************** + * Name: __cxa_pure_virtual + * + * Description: + * Crash when an un-implemented pure virtual function is called + * + ****************************************************************************/ extern "C" { diff --git a/libs/libxx/libminiabi/libxx_delete.cxx b/libs/libxx/libminiabi/libxx_delete.cxx index a363c949243..cfd5e6857df 100644 --- a/libs/libxx/libminiabi/libxx_delete.cxx +++ b/libs/libxx/libminiabi/libxx_delete.cxx @@ -1,27 +1,28 @@ -//*************************************************************************** -// libs/libxx/libminiabi/libxx_delete.cxx -// -// SPDX-License-Identifier: Apache-2.0 -// -// Licensed to the Apache Software 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 -// -//*************************************************************************** +/**************************************************************************** + * libs/libxx/libminiabi/libxx_delete.cxx + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed to the Apache Software 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. + * + ****************************************************************************/ -//*************************************************************************** -// Included Files -//*************************************************************************** +/**************************************************************************** + * Included Files + ****************************************************************************/ #include <nuttx/config.h> @@ -29,13 +30,13 @@ #include <nuttx/lib/lib.h> -//*************************************************************************** -// Operators -//*************************************************************************** +/**************************************************************************** + * Operators + ****************************************************************************/ -//*************************************************************************** -// Name: delete -//*************************************************************************** +/**************************************************************************** + * Name: delete + ****************************************************************************/ void operator delete(FAR void *ptr) throw() { @@ -44,23 +45,23 @@ void operator delete(FAR void *ptr) throw() #ifdef CONFIG_HAVE_CXX14 -//*************************************************************************** -// Operators -//*************************************************************************** +/**************************************************************************** + * Operators + *****************************************************************************/ -//*************************************************************************** -// Name: delete -// -// NOTE: -// This should take a type of size_t. But size_t has an unknown underlying -// type. In the nuttx sys/types.h header file, size_t is typed as uint32_t -// (which is determined by architecture-specific logic). But the C++ -// compiler may believe that size_t is of a different type resulting in -// compilation errors in the operator. Using the underlying integer type -// instead of size_t seems to resolve the compilation issues. Need to -// REVISIT this. -// -//*************************************************************************** +/**************************************************************************** + * Name: delete + * + * NOTE: + * This should take a type of size_t. But size_t has an unknown underlying + * type. In the nuttx sys/types.h header file, size_t is typed as uint32_t + * (which is determined by architecture-specific logic). But the C++ + * compiler may believe that size_t is of a different type resulting in + * compilation errors in the operator. Using the underlying integer type + * instead of size_t seems to resolve the compilation issues. Need to + * REVISIT this. + * + ****************************************************************************/ void operator delete(FAR void *ptr, std::size_t size) { diff --git a/libs/libxx/libminiabi/libxx_deletea.cxx b/libs/libxx/libminiabi/libxx_deletea.cxx index 8218b734121..c960d1ece5a 100644 --- a/libs/libxx/libminiabi/libxx_deletea.cxx +++ b/libs/libxx/libminiabi/libxx_deletea.cxx @@ -1,25 +1,28 @@ -//*************************************************************************** -// libs/libxx/libminiabi/libxx_deletea.cxx -// -// Licensed to the Apache Software 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 -// -//*************************************************************************** - -//*************************************************************************** -// Included Files -//*************************************************************************** +/**************************************************************************** + * libs/libxx/libminiabi/libxx_deletea.cxx + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed to the Apache Software 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. + * + ****************************************************************************/ + +/**************************************************************************** + * Included Files + ****************************************************************************/ #include <nuttx/config.h> #include <nuttx/compiler.h> @@ -28,13 +31,13 @@ #include <nuttx/lib/lib.h> -//*************************************************************************** -// Operators -//*************************************************************************** +/**************************************************************************** + * Operators + ****************************************************************************/ -//*************************************************************************** -// Name: delete[] -//*************************************************************************** +/**************************************************************************** + * Name: delete[] + ****************************************************************************/ void operator delete[](FAR void *ptr) throw() { @@ -43,13 +46,13 @@ void operator delete[](FAR void *ptr) throw() #ifdef CONFIG_HAVE_CXX14 -//*************************************************************************** -// Operators -//*************************************************************************** +/**************************************************************************** + * Operators + ****************************************************************************/ -//*************************************************************************** -// Name: delete[] -//*************************************************************************** +/**************************************************************************** + * Name: delete[] + ****************************************************************************/ void operator delete[](FAR void *ptr, std::size_t size) { diff --git a/libs/libxx/libminiabi/libxx_dynamic_cast.cxx b/libs/libxx/libminiabi/libxx_dynamic_cast.cxx index 62c066731ba..c3a2cfba3e8 100644 --- a/libs/libxx/libminiabi/libxx_dynamic_cast.cxx +++ b/libs/libxx/libminiabi/libxx_dynamic_cast.cxx @@ -1,7 +1,8 @@ /**************************************************************************** * libs/libxx/libminiabi/libxx_dynamic_cast.cxx * - * Copyright 2010-2011 PathScale, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2010-2011 PathScale, Inc. 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/libxx/libminiabi/libxx_new.cxx b/libs/libxx/libminiabi/libxx_new.cxx index 80ce8b8f4ef..e43adfd2238 100644 --- a/libs/libxx/libminiabi/libxx_new.cxx +++ b/libs/libxx/libminiabi/libxx_new.cxx @@ -1,27 +1,28 @@ -//*************************************************************************** -// libs/libxx/libminiabi/libxx_new.cxx -// -// SPDX-License-Identifier: Apache-2.0 -// -// Licensed to the Apache Software 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 -// -//*************************************************************************** +/**************************************************************************** + * libs/libxx/libminiabi/libxx_new.cxx + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed to the Apache Software 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. + * + ****************************************************************************/ -//*************************************************************************** -// Included Files -//*************************************************************************** +/**************************************************************************** + * Included Files + ****************************************************************************/ #include <nuttx/config.h> #include <assert.h> @@ -30,23 +31,23 @@ #include <nuttx/lib/lib.h> -//*************************************************************************** -// Operators -//*************************************************************************** +/**************************************************************************** + * Operators + ****************************************************************************/ -//*************************************************************************** -// Name: new -// -// NOTE: -// This should take a type of size_t. But size_t has an unknown underlying -// type. In the nuttx sys/types.h header file, size_t is typed as uint32_t -// (which is determined by architecture-specific logic). But the C++ -// compiler may believe that size_t is of a different type resulting in -// compilation errors in the operator. Using the underlying integer type -// instead of size_t seems to resolve the compilation issues. Need to -// REVISIT this. -// -//*************************************************************************** +/**************************************************************************** + * Name: new + * + * NOTE: + * This should take a type of size_t. But size_t has an unknown underlying + * type. In the nuttx sys/types.h header file, size_t is typed as uint32_t + * (which is determined by architecture-specific logic). But the C++ + * compiler may believe that size_t is of a different type resulting in + * compilation errors in the operator. Using the underlying integer type + * instead of size_t seems to resolve the compilation issues. Need to + * REVISIT this. + * + ****************************************************************************/ FAR void *operator new(std::size_t nbytes) { diff --git a/libs/libxx/libminiabi/libxx_newa.cxx b/libs/libxx/libminiabi/libxx_newa.cxx index 6d53c358b6f..a51eb4c40aa 100644 --- a/libs/libxx/libminiabi/libxx_newa.cxx +++ b/libs/libxx/libminiabi/libxx_newa.cxx @@ -1,27 +1,28 @@ -//*************************************************************************** -// libs/libxx/libminiabi/libxx_newa.cxx -// -// SPDX-License-Identifier: Apache-2.0 -// -// Licensed to the Apache Software 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 -// -//*************************************************************************** - -//*************************************************************************** -// Included Files -//*************************************************************************** +/**************************************************************************** + * libs/libxx/libminiabi/libxx_newa.cxx + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed to the Apache Software 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. + * + ****************************************************************************/ + +/**************************************************************************** + * Included Files + ****************************************************************************/ #include <nuttx/config.h> #include <assert.h> @@ -30,31 +31,31 @@ #include <nuttx/lib/lib.h> -//*************************************************************************** -// Pre-processor Definitions -//*************************************************************************** - -//*************************************************************************** -// Private Data -//*************************************************************************** - -//*************************************************************************** -// Operators -//*************************************************************************** - -//*************************************************************************** -// Name: new -// -// NOTE: -// This should take a type of size_t. But size_t has an unknown underlying -// type. In the nuttx sys/types.h header file, size_t is typed as uint32_t -// (which is determined by architecture-specific logic). But the C++ -// compiler may believe that size_t is of a different type resulting in -// compilation errors in the operator. Using the underlying integer type -// instead of size_t seems to resolve the compilation issues. Need to -// REVISIT this. -// -//*************************************************************************** +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +/**************************************************************************** + * Private Data + ****************************************************************************/ + +/**************************************************************************** + * Operators + ****************************************************************************/ + +/**************************************************************************** + * Name: new + * + * NOTE: + * This should take a type of size_t. But size_t has an unknown underlying + * type. In the nuttx sys/types.h header file, size_t is typed as uint32_t + * (which is determined by architecture-specific logic). But the C++ + * compiler may believe that size_t is of a different type resulting in + * compilation errors in the operator. Using the underlying integer type + * instead of size_t seems to resolve the compilation issues. Need to + * REVISIT this. + * + ****************************************************************************/ FAR void *operator new[](std::size_t nbytes) { diff --git a/libs/libxx/libminiabi/libxx_typeinfo.cxx b/libs/libxx/libminiabi/libxx_typeinfo.cxx index 1172fb50306..07132fafb4e 100644 --- a/libs/libxx/libminiabi/libxx_typeinfo.cxx +++ b/libs/libxx/libminiabi/libxx_typeinfo.cxx @@ -1,7 +1,8 @@ /**************************************************************************** * libs/libxx/libminiabi/libxx_typeinfo.cxx * - * Copyright 2010-2011 PathScale, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2010-2011 PathScale, Inc. 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/libxx/libminiabi/libxx_typeinfo.h b/libs/libxx/libminiabi/libxx_typeinfo.h index f65e9e1096b..b7009985576 100644 --- a/libs/libxx/libminiabi/libxx_typeinfo.h +++ b/libs/libxx/libminiabi/libxx_typeinfo.h @@ -1,7 +1,8 @@ /**************************************************************************** * libs/libxx/libminiabi/libxx_typeinfo.h * - * Copyright 2010-2011 PathScale, Inc. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2010-2011 PathScale, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are
