[v2,1/8] General further adoption of SPDX licensing ID tags.

Message ID 20260620095210.2530342-2-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 3-Clause license.

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.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.
---
 newlib/libc/stdlib/div.c  | 4 +++-
 newlib/libc/stdlib/ldiv.c | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)
  

Patch

diff --git a/newlib/libc/stdlib/div.c b/newlib/libc/stdlib/div.c
index 4868c6d47..4296f1e80 100644
--- a/newlib/libc/stdlib/div.c
+++ b/newlib/libc/stdlib/div.c
@@ -41,7 +41,9 @@  PORTABILITY
 No supporting OS subroutines are required.
 */
 
-/*
+/*-
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
  * Copyright (c) 1990 Regents of the University of California.
  * All rights reserved.
  *
diff --git a/newlib/libc/stdlib/ldiv.c b/newlib/libc/stdlib/ldiv.c
index 39bb36e11..c02711a78 100644
--- a/newlib/libc/stdlib/ldiv.c
+++ b/newlib/libc/stdlib/ldiv.c
@@ -42,7 +42,9 @@  No supporting OS subroutines are required.
 */
 
 
-/*
+/*-
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
  * Copyright (c) 1990 Regents of the University of California.
  * All rights reserved.
  *