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

Sebastian Huber sebastian.huber@embedded-brains.de
Sat Jun 20 09:52:04 GMT 2026


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(+)

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.
  *
-- 
2.51.0



More information about the Newlib mailing list