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

Sebastian Huber <[email protected]> Sat, 20 Jun 2026 11:52:04 +0200
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
From: "Pedro F. Giffuni" <[email protected]>

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 - erro=
r
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(+)

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 <[email protected]>
  * 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.
 */
=20
 /*-
+ * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+ *
  * Copyright (c) 2001 Mike Barcroft <[email protected]>
  * All rights reserved.
  *
--=20
2.51.0