[v2,2/8] libc: further adoption of SPDX licensing ID tags.

Message ID 20260620095210.2530342-3-sebastian.huber@embedded-brains.de
State New
Headers
Series Synchronize *div() implementations with FreeBSD |

Commit Message

Sebastian Huber June 20, 2026, 9:52 a.m. UTC
  From: "Pedro F. Giffuni" <pfg@FreeBSD.org>

Mainly focus on files that use BSD 2-Clause license, however the tool I
was using mis-identified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.
---
 newlib/libc/stdlib/imaxdiv.c | 2 ++
 newlib/libc/stdlib/lldiv.c   | 2 ++
 2 files changed, 4 insertions(+)
  

Patch

diff --git a/newlib/libc/stdlib/imaxdiv.c b/newlib/libc/stdlib/imaxdiv.c
index eb3e99ad6..f597752bd 100644
--- a/newlib/libc/stdlib/imaxdiv.c
+++ b/newlib/libc/stdlib/imaxdiv.c
@@ -1,4 +1,6 @@ 
 /*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
  * Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
  * All rights reserved.
  *
diff --git a/newlib/libc/stdlib/lldiv.c b/newlib/libc/stdlib/lldiv.c
index 2dadf0e1e..66e1226bf 100644
--- a/newlib/libc/stdlib/lldiv.c
+++ b/newlib/libc/stdlib/lldiv.c
@@ -43,6 +43,8 @@  No supporting OS subroutines are required.
 */
 
 /*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
  * Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
  * All rights reserved.
  *