From 19707b8841d1f19f90172199cce09f0590e43394 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 19:01:36 +0100 Subject: [PATCH 01/38] Revert "system/nxdiag: Change the order to generate the sysinfo.h file" This reverts commit 9d7714f8430a1cb4c017dacd46f50247d1997779. --- system/nxdiag/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/nxdiag/Makefile b/system/nxdiag/Makefile index 0da0a0a84b1..f25d17aac8d 100644 --- a/system/nxdiag/Makefile +++ b/system/nxdiag/Makefile @@ -113,7 +113,7 @@ sysinfo.h : checkpython3 $(INFO_DEPS) exit 1; \ fi -depend:: sysinfo.h +context:: sysinfo.h distclean:: $(call DELFILE, sysinfo.h) From c132d3349749c37cfbfe2f68f4bad062b5406917 Mon Sep 17 00:00:00 2001 From: Tiago Medicci Date: Thu, 5 Dec 2024 16:08:55 -0300 Subject: [PATCH 02/38] system/nxdiag: Change the order to generate the sysinfo.h file The generation of `sys info.h` depends on evaluating whether Espressif's HAL exists in the arch folder. However, cloning the HAL itself happens in the `context` phase of the build, so it is necessary to wait for it to finish before proceeding to the evaluation in nxdiag. This is done by using the `depend` phase to generate the `sysinfo.h` file. --- system/nxdiag/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/nxdiag/Makefile b/system/nxdiag/Makefile index f25d17aac8d..0da0a0a84b1 100644 --- a/system/nxdiag/Makefile +++ b/system/nxdiag/Makefile @@ -113,7 +113,7 @@ sysinfo.h : checkpython3 $(INFO_DEPS) exit 1; \ fi -context:: sysinfo.h +depend:: sysinfo.h distclean:: $(call DELFILE, sysinfo.h) From 08c4ad3d573e0b7b5e1c424df2d832611b561e29 Mon Sep 17 00:00:00 2001 From: Tiago Medicci Date: Wed, 4 Dec 2024 16:48:38 -0300 Subject: [PATCH 03/38] interpreters/python: Add Python's port to NuttX This is the NuttX's port of Python (cpython)! Initial support of Python includes building the Python's static library and the `python` (Programs/python.c) application. Python's modules are stored in `pyc` (byte-code file) and loaded as needed from flash. --- interpreters/python/.gitignore | 6 + interpreters/python/Kconfig | 58 ++++++ interpreters/python/Make.defs | 30 +++ interpreters/python/Makefile | 172 ++++++++++++++++ interpreters/python/Setup.local | 50 +++++ interpreters/python/config.site | 21 ++ interpreters/python/mount_modules.c | 132 ++++++++++++ ...around-newlib-resource.h-limitations.patch | 29 +++ ...32_t-unsigned-int-type-mismatch-issu.patch | 151 ++++++++++++++ ...s.py-for-generating-an-archive-of-py.patch | 42 ++++ ...04-recognize-nuttx-as-a-supported-OS.patch | 60 ++++++ ...ilds-Without-HAVE_DYNAMIC_LOADING-Se.patch | 189 ++++++++++++++++++ ...to-avoid-conflict-with-nuttx-unused_.patch | 168 ++++++++++++++++ .../patch/0007-undef-atexit_register.patch | 29 +++ .../patch/0008-declare-struct-timeval.patch | 27 +++ ...s-select-header-to-define-FD_SETSIZE.patch | 27 +++ ...d_ino-member-of-the-structure-dirent.patch | 173 ++++++++++++++++ 17 files changed, 1364 insertions(+) create mode 100644 interpreters/python/.gitignore create mode 100644 interpreters/python/Kconfig create mode 100644 interpreters/python/Make.defs create mode 100644 interpreters/python/Makefile create mode 100644 interpreters/python/Setup.local create mode 100644 interpreters/python/config.site create mode 100644 interpreters/python/mount_modules.c create mode 100644 interpreters/python/patch/0001-workaround-newlib-resource.h-limitations.patch create mode 100644 interpreters/python/patch/0002-fix-various-uint32_t-unsigned-int-type-mismatch-issu.patch create mode 100644 interpreters/python/patch/0003-reuse-wasm_assets.py-for-generating-an-archive-of-py.patch create mode 100644 interpreters/python/patch/0004-recognize-nuttx-as-a-supported-OS.patch create mode 100644 interpreters/python/patch/0005-gh-122907-Fix-Builds-Without-HAVE_DYNAMIC_LOADING-Se.patch create mode 100644 interpreters/python/patch/0006-change-var-name-to-avoid-conflict-with-nuttx-unused_.patch create mode 100644 interpreters/python/patch/0007-undef-atexit_register.patch create mode 100644 interpreters/python/patch/0008-declare-struct-timeval.patch create mode 100644 interpreters/python/patch/0009-include-nuttx-sys-select-header-to-define-FD_SETSIZE.patch create mode 100644 interpreters/python/patch/0010-check-for-the-d_ino-member-of-the-structure-dirent.patch diff --git a/interpreters/python/.gitignore b/interpreters/python/.gitignore new file mode 100644 index 00000000000..ad58719cdd4 --- /dev/null +++ b/interpreters/python/.gitignore @@ -0,0 +1,6 @@ +/*.zip +/build/ +/install/ +/Python/ +/romfs_cpython_modules.h +/romfs_cpython_modules.img diff --git a/interpreters/python/Kconfig b/interpreters/python/Kconfig new file mode 100644 index 00000000000..da20c8ec43f --- /dev/null +++ b/interpreters/python/Kconfig @@ -0,0 +1,58 @@ +# +# For a description of the syntax of this configuration file, +# see the file kconfig-language.txt in the NuttX tools repository. +# + +config INTERPRETER_CPYTHON + tristate "CPython" + depends on LIB_ZLIB + depends on EXPERIMENTAL + default n + ---help--- + Enable the CPython port to NuttX. This is a port of the Python + interpreter to NuttX. Initially, it is tweaked to work with the + RISC-V QEMU virtual board (`rv-virt`). + +if INTERPRETER_CPYTHON + +config INTERPRETER_CPYTHON_VERSION + string "Python Version" + default "3.13.0" + +config INTERPRETER_CPYTHON_STACKSIZE + int "CPython stack size" + default 307200 + ---help--- + This is the stack size allocated when the CPython task runs. + +config INTERPRETER_CPYTHON_PRIORITY + int "CPython task priority" + default 150 + ---help--- + This is the priority of the CPython task. + +config INTERPRETER_CPYTHON_PROGNAME + string "CPython name" + default "python" + ---help--- + This is the name of the program that will be used from the nsh. + +config INTERPRETER_CPYTHON_MOUNT_MODULES_STACKSIZE + int "CPython's Modules Mount stack size" + default 4096 + ---help--- + This is the stack size allocated when the CPython's Modules Mount task runs. + +config INTERPRETER_CPYTHON_MOUNT_MODULES_PRIORITY + int "CPython's Modules Mount task priority" + default 150 + ---help--- + This is the priority of the CPython's Modules Mount task. + +config INTERPRETER_CPYTHON_MOUNT_MODULES_PROGNAME + string "CPython's Modules Mount app name" + default "python_mount_modules" + ---help--- + This is the name of the program that will be used from the nsh. + +endif diff --git a/interpreters/python/Make.defs b/interpreters/python/Make.defs new file mode 100644 index 00000000000..a1aecbdb4bc --- /dev/null +++ b/interpreters/python/Make.defs @@ -0,0 +1,30 @@ +############################################################################ +# apps/interpreters/python/Make.defs +# +# 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. +# +############################################################################ + +ifneq ($(CONFIG_INTERPRETER_CPYTHON),) + +CPYTHON_VERSION = $(patsubst "%",%,$(strip $(CONFIG_INTERPRETER_CPYTHON_VERSION))) +CPYTHON_VERSION_MINOR=$(basename $(CPYTHON_VERSION)) + +EXTRA_LIBPATHS += -L$(APPDIR)/interpreters/python/install/target +EXTRA_LIBS += -lpython$(CPYTHON_VERSION_MINOR) + +CONFIGURED_APPS += $(APPDIR)/interpreters/python +endif diff --git a/interpreters/python/Makefile b/interpreters/python/Makefile new file mode 100644 index 00000000000..80db1722e36 --- /dev/null +++ b/interpreters/python/Makefile @@ -0,0 +1,172 @@ +############################################################################ +# apps/interpreters/python/Makefile +# +# 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. +# +############################################################################ + +include $(APPDIR)/Make.defs + +CPYTHON_URL ?= "https://github.com/python/cpython/archive" +CPYTHON_VERSION = $(patsubst "%",%,$(strip $(CONFIG_INTERPRETER_CPYTHON_VERSION))) +CPYTHON_VERSION_MINOR=$(basename $(CPYTHON_VERSION)) +CPYTHON_ZIP = v$(CPYTHON_VERSION).zip + +CPYTHON_UNPACKNAME = Python +UNPACK ?= unzip -q -o + +MACHDEP=nuttx +CONFIG_SITE=${CURDIR}/config.site +CPYTHON_PATH=$(CURDIR)/$(CPYTHON_UNPACKNAME) + +BUILDIR=$(CURDIR)/build +INSTALLDIR=$(CURDIR)/install +HOSTBUILD=$(BUILDIR)/host +HOSTINSTALL=$(INSTALLDIR)/host +HOSTPYTHON=$(HOSTINSTALL)/bin/python3 +TARGETBUILD=$(BUILDIR)/target +TARGETINSTALL=$(INSTALLDIR)/target +TARGETLIBPYTHON=$(TARGETINSTALL)/libpython$(CPYTHON_VERSION_MINOR).a +TARGETMODULESPACK=$(TARGETBUILD)/lib/python$(shell echo $(CPYTHON_VERSION_MINOR) | tr -d .).zip +TARGETMODULES=$(TARGETINSTALL)/lib/ + +DEPPATH += --dep-path $(CPYTHON_UNPACKNAME)$(DELIM)Programs +VPATH += :$(CPYTHON_UNPACKNAME)$(DELIM)Programs + +$(CPYTHON_ZIP): + @echo "Downloading: $(CPYTHON_URL)/$(CPYTHON_ZIP)" + $(Q) $(call DOWNLOAD,$(CPYTHON_URL),$(CPYTHON_ZIP)) + +$(CPYTHON_UNPACKNAME): $(CPYTHON_ZIP) + @echo "Unpacking: $(CPYTHON_ZIP) -> $(CPYTHON_UNPACKNAME)" + $(Q) $(UNPACK) $(CPYTHON_ZIP) + $(Q) mv cpython-$(CPYTHON_VERSION) $(CPYTHON_UNPACKNAME) + @echo "Patching $(CPYTHON_UNPACKNAME)" + $(Q) patch -p1 -d $(CPYTHON_UNPACKNAME) < patch$(DELIM)0001-workaround-newlib-resource.h-limitations.patch + $(Q) patch -p1 -d $(CPYTHON_UNPACKNAME) < patch$(DELIM)0002-fix-various-uint32_t-unsigned-int-type-mismatch-issu.patch + $(Q) patch -p1 -d $(CPYTHON_UNPACKNAME) < patch$(DELIM)0003-reuse-wasm_assets.py-for-generating-an-archive-of-py.patch + $(Q) patch -p1 -d $(CPYTHON_UNPACKNAME) < patch$(DELIM)0004-recognize-nuttx-as-a-supported-OS.patch + $(Q) patch -p1 -d $(CPYTHON_UNPACKNAME) < patch$(DELIM)0005-gh-122907-Fix-Builds-Without-HAVE_DYNAMIC_LOADING-Se.patch + $(Q) patch -p1 -d $(CPYTHON_UNPACKNAME) < patch$(DELIM)0006-change-var-name-to-avoid-conflict-with-nuttx-unused_.patch + $(Q) patch -p1 -d $(CPYTHON_UNPACKNAME) < patch$(DELIM)0007-undef-atexit_register.patch + $(Q) patch -p1 -d $(CPYTHON_UNPACKNAME) < patch$(DELIM)0008-declare-struct-timeval.patch + $(Q) patch -p1 -d $(CPYTHON_UNPACKNAME) < patch$(DELIM)0009-include-nuttx-sys-select-header-to-define-FD_SETSIZE.patch + $(Q) patch -p1 -d $(CPYTHON_UNPACKNAME) < patch$(DELIM)0010-check-for-the-d_ino-member-of-the-structure-dirent.patch + +$(HOSTPYTHON): + mkdir -p $(HOSTBUILD) + mkdir -p $(HOSTINSTALL) + $(Q) ( \ + cd $(HOSTBUILD) && $(CPYTHON_PATH)/configure \ + --with-pydebug \ + --prefix=$(HOSTINSTALL) \ + ) + $(MAKE) -C $(HOSTBUILD) install + +# For the Python's `configure` script, please consider the following +# when building for NuttX: +# +# Use sed to remove optimization flags from NuttX's CFLAGS because +# Python's configure script requires them in OPT. Having the flags in +# both places causes a conflict. +# +# Also, use -O0 for OPT because -Os is causing problems in +# Python/Modules/getpath.c (issue will be filed soon to track this +# problem). + +$(TARGETBUILD)/Makefile: $(HOSTPYTHON) + $(Q) mkdir -p $(TARGETBUILD)/Modules + $(Q) mkdir -p $(TARGETMODULES)/python$(CPYTHON_VERSION_MINOR) + $(Q) ( cp Setup.local $(TARGETBUILD)/Modules/Setup.local ) + $(Q) ( \ + cd $(TARGETBUILD); \ + CFLAGS="$(CFLAGS)"; \ + ARCH=$(CONFIG_ARCH); \ + ARCH_CHIP=$(CONFIG_ARCH_CHIP); \ + ARCH="$${ARCH//-/}"; \ + ARCH_CHIP="$${ARCH_CHIP//-/}"; \ + CFLAGS="$$(echo "$${CFLAGS}" | sed 's/-Os //')" \ + CC="$(CC)" \ + CXX="$(CXX)" \ + AR="$(AR)" \ + ARFLAGS=" " \ + MACHDEP="$(MACHDEP)" \ + OPT="-g -O0 -Wall" \ + CONFIG_SITE="$(CONFIG_SITE)" \ + $(CPYTHON_PATH)/configure \ + --prefix=${TARGETINSTALL} \ + --disable-shared \ + --host=$${ARCH}-$${ARCH_CHIP}-nuttx \ + --build=$(shell $(CPYTHON_PATH)/config.guess) \ + --with-build-python=${HOSTPYTHON} \ + --without-mimalloc \ + --without-pymalloc \ + --disable-test-modules \ + ) + +$(TARGETLIBPYTHON): $(TARGETBUILD)/Makefile + $(MAKE) -C $(TARGETBUILD) regen-frozen + $(MAKE) -C $(TARGETBUILD) libpython$(CPYTHON_VERSION_MINOR).a wasm_stdlib + $(Q) ( cp $(TARGETBUILD)/libpython$(CPYTHON_VERSION_MINOR).a $(TARGETLIBPYTHON) ) + $(Q) $(UNPACK) $(TARGETMODULESPACK) -d $(TARGETMODULES)/python$(CPYTHON_VERSION_MINOR) + +CFLAGS += ${INCDIR_PREFIX}$(CPYTHON_PATH)$(DELIM)Include +CFLAGS += ${INCDIR_PREFIX}$(CPYTHON_PATH)$(DELIM)Test +CFLAGS += ${INCDIR_PREFIX}$(CPYTHON_PATH)$(DELIM)Include$(DELIM)internal +CFLAGS += ${INCDIR_PREFIX}$(APPDIR)$(DELIM)system +CFLAGS += ${INCDIR_PREFIX}$(APPDIR)$(DELIM)system$(DELIM)zlib$(DELIM)zlib +CFLAGS += ${INCDIR_PREFIX}$(TARGETBUILD) + +MODULE = $(CONFIG_INTERPRETER_CPYTHON) + +PROGNAME += $(CONFIG_INTERPRETER_CPYTHON_PROGNAME) +PRIORITY += $(CONFIG_INTERPRETER_CPYTHON_PRIORITY) +STACKSIZE += $(CONFIG_INTERPRETER_CPYTHON_STACKSIZE) + +MAINSRC += python.c + +PROGNAME += $(CONFIG_INTERPRETER_CPYTHON_MOUNT_MODULES_PROGNAME) +PRIORITY += $(CONFIG_INTERPRETER_CPYTHON_MOUNT_MODULES_PRIORITY) +STACKSIZE += $(CONFIG_INTERPRETER_CPYTHON_MOUNT_MODULES_STACKSIZE) + +MAINSRC += mount_modules.c + +checkgenromfs: + @genromfs -h 1>/dev/null 2>&1 || { \ + echo "Host executable genromfs not available in PATH"; \ + echo "You may need to download in from https://romfs.sourceforge.net/"; \ + exit 1; \ + } + +romfs_cpython_modules.img : $(TARGETLIBPYTHON) checkgenromfs + @genromfs -f $@ -d $(TARGETMODULES) -V "ROMFS_Test" || { echo "genromfs failed" ; exit 1 ; } + +romfs_cpython_modules.h : romfs_cpython_modules.img + @xxd -i $< >$@ || { echo "xxd of $< failed" ; exit 1 ; } + +context:: $(CPYTHON_UNPACKNAME) + +depend:: romfs_cpython_modules.h + +distclean:: + $(call DELDIR, $(BUILDIR)) + $(call DELDIR, $(INSTALLDIR)) + $(call DELDIR, $(CPYTHON_UNPACKNAME)) + $(call DELFILE, $(CPYTHON_ZIP)) + $(call DELFILE, romfs_cpython_modules.img) + $(call DELFILE, romfs_cpython_modules.h) + +include $(APPDIR)/Application.mk diff --git a/interpreters/python/Setup.local b/interpreters/python/Setup.local new file mode 100644 index 00000000000..beca9d6663a --- /dev/null +++ b/interpreters/python/Setup.local @@ -0,0 +1,50 @@ +# This file gets copied into the Modules/ folder when building +# newlib configurations which do not support dynamic library +# loading. + +*disabled* +_asyncio +_blake2 +_bz2 +_codecs_cn +_codecs_hk +_codecs_iso2022 +_codecs_jp +_codecs_kr +_codecs_tw +_ctypes +_decimal +_elementtree +_hashlib +_heapq +_interpchannels +_interpqueues +_lsprof +_lzma +_md5 +_multibytecodec +_sha1 +_sha2 +_sha2 +_sha3 +_sha3 +_socket +_sqlite3 +_ssl +_statistics +_testbuffer +_testcapi +_testclinic +_testclinic_limited +_testexternalinspection +_testinternalcapi +_testlimitedcapi +_uuid +_xxtestfuzz +_zoneinfo +mmap +pwd +pyexpat +readline +resource +xxsubtype diff --git a/interpreters/python/config.site b/interpreters/python/config.site new file mode 100644 index 00000000000..d806ba564d7 --- /dev/null +++ b/interpreters/python/config.site @@ -0,0 +1,21 @@ +export ac_cv_file__dev_ptmx="no" +export ac_cv_file__dev_ptc="no" +export ac_cv_buggy_getaddrinfo="no" +export ac_cv_func_getaddrinfo="yes" +export ac_cv_pthread_is_default="yes" +export ac_cv_func_acosh="yes" +export ac_cv_func_asinh="yes" +export ac_cv_func_atanh="yes" +export ac_cv_func_erf="yes" +export ac_cv_func_erfc="yes" +export ac_cv_func_expm1="yes" +export ac_cv_func_log1p="yes" +export ac_cv_func_log2="yes" +export ac_cv_func_clock_gettime="yes" +export ac_cv_header_sys_syscall_h="no" +export ac_cv_func_timegm="yes" +export ac_cv_func_clock="yes" +export ac_cv_func_fork="yes" +export ac_cv_func_waitpid="yes" +export ac_cv_func_pipe="yes" +export MODULE_BUILDTYPE="static" diff --git a/interpreters/python/mount_modules.c b/interpreters/python/mount_modules.c new file mode 100644 index 00000000000..89a7bc377a5 --- /dev/null +++ b/interpreters/python/mount_modules.c @@ -0,0 +1,132 @@ +/**************************************************************************** + * apps/interpreters/python/mount_modules.c + * + * 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 + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + +#include "romfs_cpython_modules.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +/* Configuration settings */ + +#ifndef CONFIG_CPYTHON_ROMFS_RAMDEVNO +# define CONFIG_CPYTHON_ROMFS_RAMDEVNO 1 +#endif + +#ifndef CONFIG_CPYTHON_ROMFS_SECTORSIZE +# define CONFIG_CPYTHON_ROMFS_SECTORSIZE 64 +#endif + +#ifndef CONFIG_CPYTHON_ROMFS_MOUNTPOINT +# define CONFIG_CPYTHON_ROMFS_MOUNTPOINT "/usr/local/lib/" +#endif + +#ifdef CONFIG_DISABLE_MOUNTPOINT +# error "Mountpoint support is disabled" +#endif + +#ifndef CONFIG_FS_ROMFS +# error "ROMFS support not enabled" +#endif + +#define NSECTORS(b) (((b)+CONFIG_CPYTHON_ROMFS_SECTORSIZE-1)/CONFIG_CPYTHON_ROMFS_SECTORSIZE) +#define STR_RAMDEVNO(m) #m +#define MKMOUNT_DEVNAME(m) "/dev/ram" STR_RAMDEVNO(m) +#define MOUNT_DEVNAME MKMOUNT_DEVNAME(CONFIG_CPYTHON_ROMFS_RAMDEVNO) + +/**************************************************************************** + * Private Types + ****************************************************************************/ + +/**************************************************************************** + * Private Data + ****************************************************************************/ + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: mount_modules + ****************************************************************************/ + +int main(int argc, FAR char *argv[]) +{ + int ret; + struct boardioc_romdisk_s desc; + + /* Create a RAM disk for the test */ + + desc.minor = CONFIG_CPYTHON_ROMFS_RAMDEVNO; /* Minor device number of the ROM disk. */ + desc.nsectors = NSECTORS(romfs_cpython_modules_img_len); /* The number of sectors in the ROM disk */ + desc.sectsize = CONFIG_CPYTHON_ROMFS_SECTORSIZE; /* The size of one sector in bytes */ + desc.image = (FAR uint8_t *)romfs_cpython_modules_img; /* File system image */ + + ret = boardctl(BOARDIOC_ROMDISK, (uintptr_t)&desc); + + if (ret < 0) + { + printf("ERROR: Failed to create RAM disk: %s\n", strerror(errno)); + return 1; + } + + /* Mount the test file system */ + + printf("Mounting ROMFS filesystem at target=%s with source=%s\n", + CONFIG_CPYTHON_ROMFS_MOUNTPOINT, MOUNT_DEVNAME); + + ret = mount(MOUNT_DEVNAME, CONFIG_CPYTHON_ROMFS_MOUNTPOINT, "romfs", + MS_RDONLY, NULL); + if (ret < 0) + { + printf("ERROR: Mount failed: %s\n", strerror(errno)); + return 1; + } + + return 0; +} diff --git a/interpreters/python/patch/0001-workaround-newlib-resource.h-limitations.patch b/interpreters/python/patch/0001-workaround-newlib-resource.h-limitations.patch new file mode 100644 index 00000000000..dfb9d437a3b --- /dev/null +++ b/interpreters/python/patch/0001-workaround-newlib-resource.h-limitations.patch @@ -0,0 +1,29 @@ +From b2ac42cefa3747c7f7a9066fceed834286e829af Mon Sep 17 00:00:00 2001 +From: Ivan Grokhotkov +Date: Tue, 22 Oct 2024 23:58:17 +0200 +Subject: [PATCH 01/10] workaround newlib resource.h limitations + +configure script checks if resource.h is available but doesn't check +if it defines all the necessary functions. + +Temporary workaround until these functions are added to IDF. +--- + Modules/faulthandler.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c +index b62362f2777..327d883f94e 100644 +--- a/Modules/faulthandler.c ++++ b/Modules/faulthandler.c +@@ -968,7 +968,7 @@ faulthandler_suppress_crash_report(void) + SetErrorMode(mode | SEM_NOGPFAULTERRORBOX); + #endif + +-#ifdef HAVE_SYS_RESOURCE_H ++#if 0 && defined(HAVE_SYS_RESOURCE_H) + struct rlimit rl; + + /* Disable creation of core dump */ +-- +2.46.1 + diff --git a/interpreters/python/patch/0002-fix-various-uint32_t-unsigned-int-type-mismatch-issu.patch b/interpreters/python/patch/0002-fix-various-uint32_t-unsigned-int-type-mismatch-issu.patch new file mode 100644 index 00000000000..0bf12755af3 --- /dev/null +++ b/interpreters/python/patch/0002-fix-various-uint32_t-unsigned-int-type-mismatch-issu.patch @@ -0,0 +1,151 @@ +From 036b39478c2419af1e0a64763b9ac741cf886387 Mon Sep 17 00:00:00 2001 +From: Ivan Grokhotkov +Date: Wed, 23 Oct 2024 16:48:49 +0200 +Subject: [PATCH 02/10] fix various uint32_t/'unsigned int' type mismatch + issues + +In a few places existing code assumes that uint32_t == unsigned int. +Since in Xtensa and RISC-V bare metal toolchains uint32_t is instead +'unsigned long', the original code fails to build. +--- + Modules/zlibmodule.c | 28 ++++++++++++++-------------- + Objects/typeobject.c | 2 +- + 2 files changed, 15 insertions(+), 15 deletions(-) + +diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c +index b115f67f228..034a9420b16 100644 +--- a/Modules/zlibmodule.c ++++ b/Modules/zlibmodule.c +@@ -28,13 +28,13 @@ + On failure, return -1 */ + static inline Py_ssize_t + OutputBuffer_InitAndGrow(_BlocksOutputBuffer *buffer, Py_ssize_t max_length, +- Bytef **next_out, uint32_t *avail_out) ++ Bytef **next_out, unsigned int *avail_out) + { + Py_ssize_t allocated; + + allocated = _BlocksOutputBuffer_InitAndGrow( + buffer, max_length, (void**) next_out); +- *avail_out = (uint32_t) allocated; ++ *avail_out = (unsigned) allocated; + return allocated; + } + +@@ -42,24 +42,24 @@ OutputBuffer_InitAndGrow(_BlocksOutputBuffer *buffer, Py_ssize_t max_length, + On failure, return -1 */ + static inline Py_ssize_t + OutputBuffer_Grow(_BlocksOutputBuffer *buffer, +- Bytef **next_out, uint32_t *avail_out) ++ Bytef **next_out, unsigned int *avail_out) + { + Py_ssize_t allocated; + + allocated = _BlocksOutputBuffer_Grow( + buffer, (void**) next_out, (Py_ssize_t) *avail_out); +- *avail_out = (uint32_t) allocated; ++ *avail_out = (unsigned int) allocated; + return allocated; + } + + static inline Py_ssize_t +-OutputBuffer_GetDataSize(_BlocksOutputBuffer *buffer, uint32_t avail_out) ++OutputBuffer_GetDataSize(_BlocksOutputBuffer *buffer, unsigned int avail_out) + { + return _BlocksOutputBuffer_GetDataSize(buffer, (Py_ssize_t) avail_out); + } + + static inline PyObject * +-OutputBuffer_Finish(_BlocksOutputBuffer *buffer, uint32_t avail_out) ++OutputBuffer_Finish(_BlocksOutputBuffer *buffer, unsigned int avail_out) + { + return _BlocksOutputBuffer_Finish(buffer, (Py_ssize_t) avail_out); + } +@@ -97,7 +97,7 @@ typedef struct { + static inline Py_ssize_t + OutputBuffer_WindowInitWithSize(_BlocksOutputBuffer *buffer, _Uint32Window *window, + Py_ssize_t init_size, +- Bytef **next_out, uint32_t *avail_out) ++ Bytef **next_out, unsigned int *avail_out) + { + Py_ssize_t allocated = _BlocksOutputBuffer_InitWithSize( + buffer, init_size, (void**) next_out); +@@ -105,7 +105,7 @@ OutputBuffer_WindowInitWithSize(_BlocksOutputBuffer *buffer, _Uint32Window *wind + if (allocated >= 0) { + // the UINT32_MAX sliding window + Py_ssize_t window_size = Py_MIN((size_t)allocated, UINT32_MAX); +- *avail_out = (uint32_t) window_size; ++ *avail_out = (unsigned int) window_size; + + window->left_bytes = allocated - window_size; + window->next_posi = *next_out + window_size; +@@ -119,7 +119,7 @@ OutputBuffer_WindowInitWithSize(_BlocksOutputBuffer *buffer, _Uint32Window *wind + On failure, return value < 0 */ + static inline Py_ssize_t + OutputBuffer_WindowGrow(_BlocksOutputBuffer *buffer, _Uint32Window *window, +- Bytef **next_out, uint32_t *avail_out) ++ Bytef **next_out, unsigned int *avail_out) + { + Py_ssize_t allocated; + +@@ -136,7 +136,7 @@ OutputBuffer_WindowGrow(_BlocksOutputBuffer *buffer, _Uint32Window *window, + Py_ssize_t window_size = Py_MIN((size_t)window->left_bytes, UINT32_MAX); + + *next_out = window->next_posi; +- *avail_out = (uint32_t) window_size; ++ *avail_out = (unsigned int) window_size; + + window->left_bytes -= window_size; + window->next_posi += window_size; +@@ -148,7 +148,7 @@ OutputBuffer_WindowGrow(_BlocksOutputBuffer *buffer, _Uint32Window *window, + // only the first block may > UINT32_MAX + allocated = _BlocksOutputBuffer_Grow( + buffer, (void**) next_out, (Py_ssize_t) *avail_out); +- *avail_out = (uint32_t) allocated; ++ *avail_out = (unsigned int) allocated; + return allocated; + } + +@@ -158,7 +158,7 @@ OutputBuffer_WindowGrow(_BlocksOutputBuffer *buffer, _Uint32Window *window, + On failure, return NULL */ + static inline PyObject * + OutputBuffer_WindowFinish(_BlocksOutputBuffer *buffer, _Uint32Window *window, +- uint32_t avail_out) ++ unsigned avail_out) + { + Py_ssize_t real_avail_out = (Py_ssize_t) avail_out + window->left_bytes; + return _BlocksOutputBuffer_Finish(buffer, real_avail_out); +@@ -1398,7 +1398,7 @@ set_inflate_zdict_ZlibDecompressor(zlibstate *state, ZlibDecompressor *self) + } + + static Py_ssize_t +-arrange_output_buffer_with_maximum(uint32_t *avail_out, ++arrange_output_buffer_with_maximum(unsigned int *avail_out, + uint8_t **next_out, + PyObject **buffer, + Py_ssize_t length, +@@ -1430,7 +1430,7 @@ arrange_output_buffer_with_maximum(uint32_t *avail_out, + } + } + +- *avail_out = (uint32_t)Py_MIN((size_t)(length - occupied), UINT32_MAX); ++ *avail_out = (unsigned)Py_MIN((size_t)(length - occupied), UINT32_MAX); + *next_out = (uint8_t *)PyBytes_AS_STRING(*buffer) + occupied; + + return length; +diff --git a/Objects/typeobject.c b/Objects/typeobject.c +index c911c302003..9c640e0ab65 100644 +--- a/Objects/typeobject.c ++++ b/Objects/typeobject.c +@@ -5140,7 +5140,7 @@ is_dunder_name(PyObject *name) + static PyObject * + update_cache(struct type_cache_entry *entry, PyObject *name, unsigned int version_tag, PyObject *value) + { +- _Py_atomic_store_uint32_relaxed(&entry->version, version_tag); ++ _Py_atomic_store_uint32_relaxed((uint32_t*) &entry->version, version_tag); + _Py_atomic_store_ptr_relaxed(&entry->value, value); /* borrowed */ + assert(_PyASCIIObject_CAST(name)->hash != -1); + OBJECT_STAT_INC_COND(type_cache_collisions, entry->name != Py_None && entry->name != name); +-- +2.46.1 + diff --git a/interpreters/python/patch/0003-reuse-wasm_assets.py-for-generating-an-archive-of-py.patch b/interpreters/python/patch/0003-reuse-wasm_assets.py-for-generating-an-archive-of-py.patch new file mode 100644 index 00000000000..f8e03a2cfc0 --- /dev/null +++ b/interpreters/python/patch/0003-reuse-wasm_assets.py-for-generating-an-archive-of-py.patch @@ -0,0 +1,42 @@ +From 4af7a9b726ca2c8ac330b51f98acf0a103f6fa71 Mon Sep 17 00:00:00 2001 +From: Ivan Grokhotkov +Date: Wed, 23 Oct 2024 16:54:39 +0200 +Subject: [PATCH 03/10] reuse wasm_assets.py for generating an archive of + python lib dir + +wasm_assets.py is a useful script to prepare the smallest possible +package of pre-compiled python stdlib modules. There is very little +wasm-specific there. + +This patch adds nuttx to the supported OS list in the script, as well +as fixes what I think is a bug in path calculation. + +Co-authored-by: Tiago Medicci Serrano +--- + Tools/wasm/wasm_assets.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/Tools/wasm/wasm_assets.py b/Tools/wasm/wasm_assets.py +index ffa5e303412..381d4819c39 100755 +--- a/Tools/wasm/wasm_assets.py ++++ b/Tools/wasm/wasm_assets.py +@@ -99,6 +99,7 @@ + "_sysconfigdata__emscripten_wasm32-emscripten", + "_sysconfigdata__wasi_wasm32-wasi", + "_sysconfigdata__wasi_wasm64-wasi", ++ "_sysconfigdata__nuttx_" + ) + + +@@ -203,7 +204,7 @@ def main() -> None: + relative_prefix = args.prefix.relative_to(pathlib.Path("/")) + args.srcdir = SRCDIR + args.srcdir_lib = SRCDIR_LIB +- args.wasm_root = args.buildroot / relative_prefix ++ args.wasm_root = args.buildroot #/ relative_prefix + args.wasm_stdlib_zip = args.wasm_root / WASM_STDLIB_ZIP + args.wasm_stdlib = args.wasm_root / WASM_STDLIB + args.wasm_dynload = args.wasm_root / WASM_DYNLOAD +-- +2.46.1 + diff --git a/interpreters/python/patch/0004-recognize-nuttx-as-a-supported-OS.patch b/interpreters/python/patch/0004-recognize-nuttx-as-a-supported-OS.patch new file mode 100644 index 00000000000..6d8531ce66d --- /dev/null +++ b/interpreters/python/patch/0004-recognize-nuttx-as-a-supported-OS.patch @@ -0,0 +1,60 @@ +From 1bb8d824a4b4e4b38c3541b7c26c5d71f0970266 Mon Sep 17 00:00:00 2001 +From: Ivan Grokhotkov +Date: Wed, 23 Oct 2024 16:55:53 +0200 +Subject: [PATCH 04/10] recognize *-*-nuttx as a supported OS + +cpython's configure script bails out when cross-compiling for an +unknown OS, so we have to add "nuttx" to the list, even though it +is not used almost anywhere else. + +Co-authored-by: Tiago Medicci Serrano +--- + config.sub | 2 +- + configure | 3 +++ + configure.ac | 3 +++ + 3 files changed, 7 insertions(+), 1 deletion(-) + +diff --git a/config.sub b/config.sub +index 1bb6a05dc11..2a87d3e0ddb 100755 +--- a/config.sub ++++ b/config.sub +@@ -1769,7 +1769,7 @@ case $os in + | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ + | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ + | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \ +- | fiwix* | mlibc* | cos* | mbr* | ironclad* ) ++ | fiwix* | mlibc* | cos* | mbr* | ironclad* | nuttx* ) + ;; + # This one is extra strict with allowed versions + sco3.2v2 | sco3.2v[4-9]* | sco5v6*) +diff --git a/configure b/configure +index 7cdd386c387..6da5e9f3832 100755 +--- a/configure ++++ b/configure +@@ -4527,6 +4527,9 @@ printf "%s\n" "$IPHONEOS_DEPLOYMENT_TARGET" >&6; } + wasm32-*-* | wasm64-*-*) + _host_ident=$host_cpu + ;; ++ *-*-nuttx*) ++ _host_ident=$host_cpu ++ ;; + *) + # for now, limit cross builds to known configurations + MACHDEP="unknown" +diff --git a/configure.ac b/configure.ac +index 24e28a1e2de..80d6738fab5 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -777,6 +777,9 @@ if test "$cross_compiling" = yes; then + wasm32-*-* | wasm64-*-*) + _host_ident=$host_cpu + ;; ++ *-*-nuttx*) ++ _host_ident=$host_cpu ++ ;; + *) + # for now, limit cross builds to known configurations + MACHDEP="unknown" +-- +2.46.1 + diff --git a/interpreters/python/patch/0005-gh-122907-Fix-Builds-Without-HAVE_DYNAMIC_LOADING-Se.patch b/interpreters/python/patch/0005-gh-122907-Fix-Builds-Without-HAVE_DYNAMIC_LOADING-Se.patch new file mode 100644 index 00000000000..cf25d88c2bd --- /dev/null +++ b/interpreters/python/patch/0005-gh-122907-Fix-Builds-Without-HAVE_DYNAMIC_LOADING-Se.patch @@ -0,0 +1,189 @@ +From cd8af3cbc9881e5a4a7c0644c8844478c8d0245d Mon Sep 17 00:00:00 2001 +From: Eric Snow +Date: Tue, 13 Aug 2024 14:44:57 -0600 +Subject: [PATCH 05/10] gh-122907: Fix Builds Without HAVE_DYNAMIC_LOADING Set + (gh-122952) + +As of 529a160 (gh-118204), building with HAVE_DYNAMIC_LOADING stopped working. This is a minimal fix just to get builds working again. There are actually a number of long-standing deficiencies with HAVE_DYNAMIC_LOADING builds that need to be resolved separately. +(cherry picked from commit ee1b8ce26e700350e47a5f65201097121c41912e) + +Co-authored-by: Eric Snow +--- + Include/internal/pycore_importdl.h | 4 ++++ + Lib/importlib/_bootstrap_external.py | 16 ++++++++-------- + ...024-08-12-11-19-37.gh-issue-122907.q68096.rst | 3 +++ + Python/importdl.c | 12 ++++++++---- + Tools/build/check_extension_modules.py | 9 +++++++++ + 5 files changed, 32 insertions(+), 12 deletions(-) + create mode 100644 Misc/NEWS.d/next/Core_and_Builtins/2024-08-12-11-19-37.gh-issue-122907.q68096.rst + +diff --git a/Include/internal/pycore_importdl.h b/Include/internal/pycore_importdl.h +index e5f222b371a..525a16f6b97 100644 +--- a/Include/internal/pycore_importdl.h ++++ b/Include/internal/pycore_importdl.h +@@ -56,9 +56,11 @@ extern int _Py_ext_module_loader_info_init_for_core( + extern int _Py_ext_module_loader_info_init_for_builtin( + struct _Py_ext_module_loader_info *p_info, + PyObject *name); ++#ifdef HAVE_DYNAMIC_LOADING + extern int _Py_ext_module_loader_info_init_from_spec( + struct _Py_ext_module_loader_info *info, + PyObject *spec); ++#endif + + /* The result from running an extension module's init function. */ + struct _Py_ext_module_loader_result { +@@ -87,9 +89,11 @@ extern void _Py_ext_module_loader_result_apply_error( + + /* The module init function. */ + typedef PyObject *(*PyModInitFunction)(void); ++#ifdef HAVE_DYNAMIC_LOADING + extern PyModInitFunction _PyImport_GetModInitFunc( + struct _Py_ext_module_loader_info *info, + FILE *fp); ++#endif + extern int _PyImport_RunModInitFunc( + PyModInitFunction p0, + struct _Py_ext_module_loader_info *info, +diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py +index 7742855e8b2..d8c61c92558 100644 +--- a/Lib/importlib/_bootstrap_external.py ++++ b/Lib/importlib/_bootstrap_external.py +@@ -1793,14 +1793,14 @@ def _get_supported_file_loaders(): + + Each item is a tuple (loader, suffixes). + """ +- if sys.platform in {"ios", "tvos", "watchos"}: +- extension_loaders = [(AppleFrameworkLoader, [ +- suffix.replace(".so", ".fwork") +- for suffix in _imp.extension_suffixes() +- ])] +- else: +- extension_loaders = [] +- extension_loaders.append((ExtensionFileLoader, _imp.extension_suffixes())) ++ extension_loaders = [] ++ if hasattr(_imp, 'create_dynamic'): ++ if sys.platform in {"ios", "tvos", "watchos"}: ++ extension_loaders = [(AppleFrameworkLoader, [ ++ suffix.replace(".so", ".fwork") ++ for suffix in _imp.extension_suffixes() ++ ])] ++ extension_loaders.append((ExtensionFileLoader, _imp.extension_suffixes())) + source = SourceFileLoader, SOURCE_SUFFIXES + bytecode = SourcelessFileLoader, BYTECODE_SUFFIXES + return extension_loaders + [source, bytecode] +diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2024-08-12-11-19-37.gh-issue-122907.q68096.rst b/Misc/NEWS.d/next/Core_and_Builtins/2024-08-12-11-19-37.gh-issue-122907.q68096.rst +new file mode 100644 +index 00000000000..88c872f4ef4 +--- /dev/null ++++ b/Misc/NEWS.d/next/Core_and_Builtins/2024-08-12-11-19-37.gh-issue-122907.q68096.rst +@@ -0,0 +1,3 @@ ++Building with ``HAVE_DYNAMIC_LOADING`` now works as well as it did in 3.12. ++Existing deficiences will be addressed separately. ++(See https://github.com/python/cpython/issues/122950.) +diff --git a/Python/importdl.c b/Python/importdl.c +index 7c42d37283c..b1a6fcc8223 100644 +--- a/Python/importdl.c ++++ b/Python/importdl.c +@@ -8,6 +8,8 @@ + #include "pycore_pystate.h" + #include "pycore_runtime.h" + ++#include "pycore_importdl.h" ++ + /* ./configure sets HAVE_DYNAMIC_LOADING if dynamic loading of modules is + supported on this platform. configure will then compile and link in one + of the dynload_*.c files, as appropriate. We will call a function in +@@ -15,8 +17,6 @@ + */ + #ifdef HAVE_DYNAMIC_LOADING + +-#include "pycore_importdl.h" +- + #ifdef MS_WINDOWS + extern dl_funcptr _PyImport_FindSharedFuncptrWindows(const char *prefix, + const char *shortname, +@@ -28,6 +28,8 @@ extern dl_funcptr _PyImport_FindSharedFuncptr(const char *prefix, + const char *pathname, FILE *fp); + #endif + ++#endif /* HAVE_DYNAMIC_LOADING */ ++ + + /***********************************/ + /* module info to use when loading */ +@@ -205,6 +207,7 @@ _Py_ext_module_loader_info_init_for_core( + return 0; + } + ++#ifdef HAVE_DYNAMIC_LOADING + int + _Py_ext_module_loader_info_init_from_spec( + struct _Py_ext_module_loader_info *p_info, +@@ -226,6 +229,7 @@ _Py_ext_module_loader_info_init_from_spec( + Py_DECREF(filename); + return err; + } ++#endif /* HAVE_DYNAMIC_LOADING */ + + + /********************************/ +@@ -372,6 +376,7 @@ _Py_ext_module_loader_result_apply_error( + /* getting/running the module init function */ + /********************************************/ + ++#ifdef HAVE_DYNAMIC_LOADING + PyModInitFunction + _PyImport_GetModInitFunc(struct _Py_ext_module_loader_info *info, + FILE *fp) +@@ -406,6 +411,7 @@ _PyImport_GetModInitFunc(struct _Py_ext_module_loader_info *info, + + return (PyModInitFunction)exportfunc; + } ++#endif /* HAVE_DYNAMIC_LOADING */ + + int + _PyImport_RunModInitFunc(PyModInitFunction p0, +@@ -513,5 +519,3 @@ _PyImport_RunModInitFunc(PyModInitFunction p0, + p_res->err = &p_res->_err; + return -1; + } +- +-#endif /* HAVE_DYNAMIC_LOADING */ +diff --git a/Tools/build/check_extension_modules.py b/Tools/build/check_extension_modules.py +index 7de35b499da..66b2a262e11 100644 +--- a/Tools/build/check_extension_modules.py ++++ b/Tools/build/check_extension_modules.py +@@ -27,6 +27,7 @@ + import sys + import sysconfig + import warnings ++import _imp + + from importlib._bootstrap import _load as bootstrap_load + from importlib.machinery import BuiltinImporter, ExtensionFileLoader, ModuleSpec +@@ -154,6 +155,11 @@ def __init__(self, cross_compiling: bool = False, strict: bool = False): + self.notavailable = [] + + def check(self): ++ if not hasattr(_imp, 'create_dynamic'): ++ logger.warning( ++ ('Dynamic extensions not supported ' ++ '(HAVE_DYNAMIC_LOADING not defined)'), ++ ) + for modinfo in self.modules: + logger.debug("Checking '%s' (%s)", modinfo.name, self.get_location(modinfo)) + if modinfo.state == ModuleState.DISABLED: +@@ -415,6 +421,9 @@ def check_module_import(self, modinfo: ModuleInfo): + logger.error("%s failed to import: %s", modinfo.name, e) + raise + except Exception as e: ++ if not hasattr(_imp, 'create_dynamic'): ++ logger.warning("Dynamic extension '%s' ignored", modinfo.name) ++ return + logger.exception("Importing extension '%s' failed!", modinfo.name) + raise + +-- +2.46.1 + diff --git a/interpreters/python/patch/0006-change-var-name-to-avoid-conflict-with-nuttx-unused_.patch b/interpreters/python/patch/0006-change-var-name-to-avoid-conflict-with-nuttx-unused_.patch new file mode 100644 index 00000000000..641233bf4eb --- /dev/null +++ b/interpreters/python/patch/0006-change-var-name-to-avoid-conflict-with-nuttx-unused_.patch @@ -0,0 +1,168 @@ +From d424766bff74fb34a80a09c6e2ed8d9b40350bb8 Mon Sep 17 00:00:00 2001 +From: Tiago Medicci +Date: Wed, 13 Nov 2024 14:20:36 -0300 +Subject: [PATCH 06/10] change var name to avoid conflict with nuttx + unused_data macro + +--- + Modules/zlibmodule.c | 42 +++++++++++++++++++++--------------------- + 1 file changed, 21 insertions(+), 21 deletions(-) + +diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c +index 034a9420b16..595d4ad32e9 100644 +--- a/Modules/zlibmodule.c ++++ b/Modules/zlibmodule.c +@@ -213,7 +213,7 @@ typedef struct + { + PyObject_HEAD + z_stream zst; +- PyObject *unused_data; ++ PyObject *unused_data_var; + PyObject *unconsumed_tail; + char eof; + bool is_initialised; +@@ -267,8 +267,8 @@ newcompobject(PyTypeObject *type) + self->eof = 0; + self->is_initialised = 0; + self->zdict = NULL; +- self->unused_data = PyBytes_FromStringAndSize("", 0); +- if (self->unused_data == NULL) { ++ self->unused_data_var = PyBytes_FromStringAndSize("", 0); ++ if (self->unused_data_var == NULL) { + Py_DECREF(self); + return NULL; + } +@@ -708,7 +708,7 @@ Dealloc(compobject *self) + { + PyObject *type = (PyObject *)Py_TYPE(self); + PyThread_free_lock(self->lock); +- Py_XDECREF(self->unused_data); ++ Py_XDECREF(self->unused_data_var); + Py_XDECREF(self->unconsumed_tail); + Py_XDECREF(self->zdict); + PyObject_Free(self); +@@ -803,15 +803,15 @@ zlib_Compress_compress_impl(compobject *self, PyTypeObject *cls, + } + + /* Helper for objdecompress() and flush(). Saves any unconsumed input data in +- self->unused_data or self->unconsumed_tail, as appropriate. */ ++ self->unused_data_var or self->unconsumed_tail, as appropriate. */ + static int + save_unconsumed_input(compobject *self, Py_buffer *data, int err) + { + if (err == Z_STREAM_END) { + /* The end of the compressed data has been reached. Store the leftover +- input data in self->unused_data. */ ++ input data in self->unused_data_var. */ + if (self->zst.avail_in > 0) { +- Py_ssize_t old_size = PyBytes_GET_SIZE(self->unused_data); ++ Py_ssize_t old_size = PyBytes_GET_SIZE(self->unused_data_var); + Py_ssize_t new_size, left_size; + PyObject *new_data; + left_size = (Byte *)data->buf + data->len - self->zst.next_in; +@@ -824,10 +824,10 @@ save_unconsumed_input(compobject *self, Py_buffer *data, int err) + if (new_data == NULL) + return -1; + memcpy(PyBytes_AS_STRING(new_data), +- PyBytes_AS_STRING(self->unused_data), old_size); ++ PyBytes_AS_STRING(self->unused_data_var), old_size); + memcpy(PyBytes_AS_STRING(new_data) + old_size, + self->zst.next_in, left_size); +- Py_SETREF(self->unused_data, new_data); ++ Py_SETREF(self->unused_data_var, new_data); + self->zst.avail_in = 0; + } + } +@@ -1091,7 +1091,7 @@ zlib_Compress_copy_impl(compobject *self, PyTypeObject *cls) + zlib_error(state, self->zst, err, "while copying compression object"); + goto error; + } +- Py_XSETREF(return_value->unused_data, Py_NewRef(self->unused_data)); ++ Py_XSETREF(return_value->unused_data_var, Py_NewRef(self->unused_data_var)); + Py_XSETREF(return_value->unconsumed_tail, Py_NewRef(self->unconsumed_tail)); + Py_XSETREF(return_value->zdict, Py_XNewRef(self->zdict)); + return_value->eof = self->eof; +@@ -1176,7 +1176,7 @@ zlib_Decompress_copy_impl(compobject *self, PyTypeObject *cls) + goto error; + } + +- Py_XSETREF(return_value->unused_data, Py_NewRef(self->unused_data)); ++ Py_XSETREF(return_value->unused_data_var, Py_NewRef(self->unused_data_var)); + Py_XSETREF(return_value->unconsumed_tail, Py_NewRef(self->unconsumed_tail)); + Py_XSETREF(return_value->zdict, Py_XNewRef(self->zdict)); + return_value->eof = self->eof; +@@ -1341,7 +1341,7 @@ typedef struct { + z_stream zst; + PyObject *zdict; + PyThread_type_lock lock; +- PyObject *unused_data; ++ PyObject *unused_data_var; + uint8_t *input_buffer; + Py_ssize_t input_buffer_size; + /* zst>avail_in is only 32 bit, so we store the true length +@@ -1367,7 +1367,7 @@ ZlibDecompressor_dealloc(ZlibDecompressor *self) + inflateEnd(&self->zst); + } + PyMem_Free(self->input_buffer); +- Py_CLEAR(self->unused_data); ++ Py_CLEAR(self->unused_data_var); + Py_CLEAR(self->zdict); + PyObject_Free(self); + Py_DECREF(type); +@@ -1602,12 +1602,12 @@ decompress(ZlibDecompressor *self, uint8_t *data, + self->needs_input = 0; + + if (self->avail_in_real > 0) { +- PyObject *unused_data = PyBytes_FromStringAndSize( ++ PyObject *unused_data_var = PyBytes_FromStringAndSize( + (char *)self->zst.next_in, self->avail_in_real); +- if (unused_data == NULL) { ++ if (unused_data_var == NULL) { + goto error; + } +- Py_XSETREF(self->unused_data, unused_data); ++ Py_XSETREF(self->unused_data_var, unused_data_var); + } + } + else if (self->avail_in_real == 0) { +@@ -1671,7 +1671,7 @@ was less than *max_length* bytes, or because *max_length* was negative), + + Attempting to decompress data after the end of stream is reached raises an + EOFError. Any data found after the end of the stream is ignored and saved in +-the unused_data attribute. ++the unused_data_var attribute. + [clinic start generated code]*/ + + static PyObject * +@@ -1739,8 +1739,8 @@ ZlibDecompressor__new__(PyTypeObject *cls, + self->zst.zfree = PyZlib_Free; + self->zst.next_in = NULL; + self->zst.avail_in = 0; +- self->unused_data = PyBytes_FromStringAndSize(NULL, 0); +- if (self->unused_data == NULL) { ++ self->unused_data_var = PyBytes_FromStringAndSize(NULL, 0); ++ if (self->unused_data_var == NULL) { + Py_CLEAR(self); + return NULL; + } +@@ -1806,7 +1806,7 @@ static PyMethodDef ZlibDecompressor_methods[] = { + + #define COMP_OFF(x) offsetof(compobject, x) + static PyMemberDef Decomp_members[] = { +- {"unused_data", _Py_T_OBJECT, COMP_OFF(unused_data), Py_READONLY}, ++ {"unused_data_var", _Py_T_OBJECT, COMP_OFF(unused_data_var), Py_READONLY}, + {"unconsumed_tail", _Py_T_OBJECT, COMP_OFF(unconsumed_tail), Py_READONLY}, + {"eof", Py_T_BOOL, COMP_OFF(eof), Py_READONLY}, + {NULL}, +@@ -1824,7 +1824,7 @@ PyDoc_STRVAR(ZlibDecompressor_needs_input_doc, + static PyMemberDef ZlibDecompressor_members[] = { + {"eof", Py_T_BOOL, offsetof(ZlibDecompressor, eof), + Py_READONLY, ZlibDecompressor_eof__doc__}, +- {"unused_data", Py_T_OBJECT_EX, offsetof(ZlibDecompressor, unused_data), ++ {"unused_data_var", Py_T_OBJECT_EX, offsetof(ZlibDecompressor, unused_data_var), + Py_READONLY, ZlibDecompressor_unused_data__doc__}, + {"needs_input", Py_T_BOOL, offsetof(ZlibDecompressor, needs_input), Py_READONLY, + ZlibDecompressor_needs_input_doc}, +-- +2.46.1 + diff --git a/interpreters/python/patch/0007-undef-atexit_register.patch b/interpreters/python/patch/0007-undef-atexit_register.patch new file mode 100644 index 00000000000..266f704a946 --- /dev/null +++ b/interpreters/python/patch/0007-undef-atexit_register.patch @@ -0,0 +1,29 @@ +From 1b802bfd159a6a9766ca5834af90f55d54285b4b Mon Sep 17 00:00:00 2001 +From: Tiago Medicci +Date: Wed, 13 Nov 2024 14:22:04 -0300 +Subject: [PATCH 07/10] undef atexit_register + +Even if not built, nuttx/include/nuttx/atexit.h defines it and this +causes conflicts. +--- + Modules/atexitmodule.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/Modules/atexitmodule.c b/Modules/atexitmodule.c +index 297a8d74ba3..1fea72fbc99 100644 +--- a/Modules/atexitmodule.c ++++ b/Modules/atexitmodule.c +@@ -175,6 +175,10 @@ Register a function to be executed upon normal program termination\n\ + \n\ + func is returned to facilitate usage as a decorator."); + ++#ifdef atexit_register ++# undef atexit_register ++#endif ++ + static PyObject * + atexit_register(PyObject *module, PyObject *args, PyObject *kwargs) + { +-- +2.46.1 + diff --git a/interpreters/python/patch/0008-declare-struct-timeval.patch b/interpreters/python/patch/0008-declare-struct-timeval.patch new file mode 100644 index 00000000000..bb8d3cb43d8 --- /dev/null +++ b/interpreters/python/patch/0008-declare-struct-timeval.patch @@ -0,0 +1,27 @@ +From b40e89c190ec7c6b3b0116a3f7025ab13854398f Mon Sep 17 00:00:00 2001 +From: Tiago Medicci +Date: Wed, 13 Nov 2024 14:23:34 -0300 +Subject: [PATCH 08/10] declare struct timeval + +Otherwise, build will fail due to redefinition of _PyTime_FromTimeval +--- + Include/internal/pycore_time.h | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/Include/internal/pycore_time.h b/Include/internal/pycore_time.h +index 205ac5d3781..c30e07f4b4a 100644 +--- a/Include/internal/pycore_time.h ++++ b/Include/internal/pycore_time.h +@@ -58,9 +58,7 @@ extern "C" { + #endif + + +-#ifdef __clang__ + struct timeval; +-#endif + + #define _SIZEOF_PYTIME_T 8 + +-- +2.46.1 + diff --git a/interpreters/python/patch/0009-include-nuttx-sys-select-header-to-define-FD_SETSIZE.patch b/interpreters/python/patch/0009-include-nuttx-sys-select-header-to-define-FD_SETSIZE.patch new file mode 100644 index 00000000000..b52b76be1b2 --- /dev/null +++ b/interpreters/python/patch/0009-include-nuttx-sys-select-header-to-define-FD_SETSIZE.patch @@ -0,0 +1,27 @@ +From 9a32a300c95e0061220d2608a014c7fa39dedab3 Mon Sep 17 00:00:00 2001 +From: Tiago Medicci +Date: Thu, 14 Nov 2024 13:44:49 -0300 +Subject: [PATCH 09/10] include nuttx sys/select header to define FD_SETSIZE + +--- + Modules/selectmodule.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c +index 5bd9b7732a4..e9fab839122 100644 +--- a/Modules/selectmodule.c ++++ b/Modules/selectmodule.c +@@ -63,6 +63,10 @@ extern void bzero(void *, int); + #include + #endif + ++#ifdef HAVE_SYS_SELECT_H ++#include ++#endif ++ + #ifdef MS_WINDOWS + # ifndef WIN32_LEAN_AND_MEAN + # define WIN32_LEAN_AND_MEAN +-- +2.46.1 + diff --git a/interpreters/python/patch/0010-check-for-the-d_ino-member-of-the-structure-dirent.patch b/interpreters/python/patch/0010-check-for-the-d_ino-member-of-the-structure-dirent.patch new file mode 100644 index 00000000000..d65b1f287c6 --- /dev/null +++ b/interpreters/python/patch/0010-check-for-the-d_ino-member-of-the-structure-dirent.patch @@ -0,0 +1,173 @@ +From 4f6a1db85c56df378dc3856ed95a0a7342f44d89 Mon Sep 17 00:00:00 2001 +From: Tiago Medicci +Date: Tue, 3 Dec 2024 17:18:50 -0300 +Subject: [PATCH 10/10] check for the d_ino member of the structure dirent + +--- + Modules/posixmodule.c | 18 ++++++++++++++++-- + configure | 43 +++++++++++++++++++++++++++++++++++++++++++ + configure.ac | 5 +++++ + pyconfig.h.in | 3 +++ + 4 files changed, 67 insertions(+), 2 deletions(-) + +diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c +index 51e34b5f4b7..2aa507aa942 100644 +--- a/Modules/posixmodule.c ++++ b/Modules/posixmodule.c +@@ -15522,7 +15522,9 @@ typedef struct { + #ifdef HAVE_DIRENT_D_TYPE + unsigned char d_type; + #endif ++#ifdef HAVE_DIRENT_D_INO + ino_t d_ino; ++#endif + int dir_fd; + #endif + } DirEntry; +@@ -15821,6 +15823,7 @@ os.DirEntry.inode + Return inode of the entry; cached per entry. + [clinic start generated code]*/ + ++#ifdef HAVE_DIRENT_D_INO + static PyObject * + os_DirEntry_inode_impl(DirEntry *self) + /*[clinic end generated code: output=156bb3a72162440e input=3ee7b872ae8649f0]*/ +@@ -15856,6 +15859,7 @@ os_DirEntry_inode_impl(DirEntry *self) + return PyLong_FromUnsignedLongLong(self->d_ino); + #endif + } ++#endif + + static PyObject * + DirEntry_repr(DirEntry *self) +@@ -15892,7 +15896,9 @@ static PyMethodDef DirEntry_methods[] = { + OS_DIRENTRY_IS_SYMLINK_METHODDEF + OS_DIRENTRY_IS_JUNCTION_METHODDEF + OS_DIRENTRY_STAT_METHODDEF ++#ifdef HAVE_DIRENT_D_INO + OS_DIRENTRY_INODE_METHODDEF ++#endif + OS_DIRENTRY___FSPATH___METHODDEF + {"__class_getitem__", Py_GenericAlias, + METH_O|METH_CLASS, PyDoc_STR("See PEP 585")}, +@@ -16043,7 +16049,10 @@ join_path_filename(const char *path_narrow, const char* filename, Py_ssize_t fil + + static PyObject * + DirEntry_from_posix_info(PyObject *module, path_t *path, const char *name, +- Py_ssize_t name_len, ino_t d_ino ++ Py_ssize_t name_len ++#ifdef HAVE_DIRENT_D_INO ++ , ino_t d_ino ++#endif + #ifdef HAVE_DIRENT_D_TYPE + , unsigned char d_type + #endif +@@ -16095,7 +16104,9 @@ DirEntry_from_posix_info(PyObject *module, path_t *path, const char *name, + #ifdef HAVE_DIRENT_D_TYPE + entry->d_type = d_type; + #endif ++#ifdef HAVE_DIRENT_D_INO + entry->d_ino = d_ino; ++#endif + + return (PyObject *)entry; + +@@ -16248,7 +16259,10 @@ ScandirIterator_iternext(ScandirIterator *iterator) + PyObject *module = PyType_GetModule(Py_TYPE(iterator)); + entry = DirEntry_from_posix_info(module, + &iterator->path, direntp->d_name, +- name_len, direntp->d_ino ++ name_len ++#ifdef HAVE_DIRENT_D_INO ++ , direntp->d_ino ++#endif + #ifdef HAVE_DIRENT_D_TYPE + , direntp->d_type + #endif +diff --git a/configure b/configure +index 6da5e9f3832..c89beb7ef6a 100755 +--- a/configure ++++ b/configure +@@ -27746,6 +27746,49 @@ then : + printf "%s\n" "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h + + ++fi ++ ++# check if the dirent structure of a d_ino is defined ++{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_ino field" >&5 ++printf %s "checking if the dirent structure of a d_ino field... " >&6; } ++if test ${ac_cv_dirent_d_ino+y} ++then : ++ printf %s "(cached) " >&6 ++else $as_nop ++ ++cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++ ++ ++ #include ++ ++ int main(void) { ++ struct dirent entry; ++ return entry.d_ino == 0; ++ } ++ ++ ++_ACEOF ++if ac_fn_c_try_link "$LINENO" ++then : ++ ac_cv_dirent_d_ino=yes ++else $as_nop ++ ac_cv_dirent_d_ino=no ++fi ++rm -f core conftest.err conftest.$ac_objext conftest.beam \ ++ conftest$ac_exeext conftest.$ac_ext ++ ++fi ++{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dirent_d_ino" >&5 ++printf "%s\n" "$ac_cv_dirent_d_ino" >&6; } ++ ++if test "x$ac_cv_dirent_d_ino" = xyes ++then : ++ ++ ++printf "%s\n" "#define HAVE_DIRENT_D_INO 1" >>confdefs.h ++ ++ + fi + + # check if the Linux getrandom() syscall is available +diff --git a/configure.ac b/configure.ac +index 80d6738fab5..40f2f950b36 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -7084,6 +7084,11 @@ AS_VAR_IF([ac_cv_dirent_d_type], [yes], [ + [Define to 1 if the dirent structure has a d_type field]) + ]) + ++AS_VAR_IF([ac_cv_dirent_d_ino], [yes], [ ++ AC_DEFINE([HAVE_DIRENT_D_INO], [1], ++ [Define to 1 if the dirent structure has a d_ino field]) ++]) ++ + # check if the Linux getrandom() syscall is available + AC_CACHE_CHECK([for the Linux getrandom() syscall], [ac_cv_getrandom_syscall], [ + AC_LINK_IFELSE( +diff --git a/pyconfig.h.in b/pyconfig.h.in +index 4d8b1d4f254..4a2ba83a872 100644 +--- a/pyconfig.h.in ++++ b/pyconfig.h.in +@@ -277,6 +277,9 @@ + /* Define to 1 if the dirent structure has a d_type field */ + #undef HAVE_DIRENT_D_TYPE + ++/* Define to 1 if the dirent structure has a d_ino field */ ++#undef HAVE_DIRENT_D_INO ++ + /* Define to 1 if you have the header file, and it defines `DIR'. + */ + #undef HAVE_DIRENT_H +-- +2.46.1 + From 7923aab11f2891593038bf27ddb589729f5d9db2 Mon Sep 17 00:00:00 2001 From: Tiago Medicci Date: Tue, 10 Dec 2024 12:06:53 -0300 Subject: [PATCH 04/38] interpreters/python: Avoid warnings that could be treated as errors This commit disables some warnings when building CPython to avoid CI failing when `EXTRAFLAGS="-Wno-cpp -Werror"` is set. --- interpreters/python/Makefile | 20 +++++++---- interpreters/python/config.site | 1 + ...around-newlib-resource.h-limitations.patch | 6 ++-- ...32_t-unsigned-int-type-mismatch-issu.patch | 6 ++-- ...s.py-for-generating-an-archive-of-py.patch | 5 +-- ...04-recognize-nuttx-as-a-supported-OS.patch | 5 +-- ...ilds-Without-HAVE_DYNAMIC_LOADING-Se.patch | 5 +-- ...to-avoid-conflict-with-nuttx-unused_.patch | 5 +-- .../patch/0007-undef-atexit_register.patch | 6 ++-- .../patch/0008-declare-struct-timeval.patch | 6 ++-- ...s-select-header-to-define-FD_SETSIZE.patch | 5 +-- ...d_ino-member-of-the-structure-dirent.patch | 36 +++++++++++++++---- ...on-warning-if-UNUSED-is-already-defi.patch | 26 ++++++++++++++ 13 files changed, 100 insertions(+), 32 deletions(-) create mode 100644 interpreters/python/patch/0011-avoid-redefinition-warning-if-UNUSED-is-already-defi.patch diff --git a/interpreters/python/Makefile b/interpreters/python/Makefile index 80db1722e36..e3cda75dfef 100644 --- a/interpreters/python/Makefile +++ b/interpreters/python/Makefile @@ -43,6 +43,18 @@ TARGETLIBPYTHON=$(TARGETINSTALL)/libpython$(CPYTHON_VERSION_MINOR).a TARGETMODULESPACK=$(TARGETBUILD)/lib/python$(shell echo $(CPYTHON_VERSION_MINOR) | tr -d .).zip TARGETMODULES=$(TARGETINSTALL)/lib/ +CFLAGS += ${INCDIR_PREFIX}$(CPYTHON_PATH)$(DELIM)Include +CFLAGS += ${INCDIR_PREFIX}$(CPYTHON_PATH)$(DELIM)Test +CFLAGS += ${INCDIR_PREFIX}$(CPYTHON_PATH)$(DELIM)Include$(DELIM)internal +CFLAGS += ${INCDIR_PREFIX}$(APPDIR)$(DELIM)system +CFLAGS += ${INCDIR_PREFIX}$(APPDIR)$(DELIM)system$(DELIM)zlib$(DELIM)zlib +CFLAGS += ${INCDIR_PREFIX}$(TARGETBUILD) +CFLAGS += -Wno-shadow -Wno-undef -Wno-format -Wno-builtin-macro-redefined +CFLAGS += -Wno-type-limits -Wno-implicit-fallthrough -Wno-char-subscripts +CFLAGS += -Wno-sign-compare -Wno-unused-const-variable -Wno-unused-function +CFLAGS += -Wno-unused-variable -Wno-overflow -Wno-unused-but-set-variable +CFLAGS += -Wno-strict-prototypes + DEPPATH += --dep-path $(CPYTHON_UNPACKNAME)$(DELIM)Programs VPATH += :$(CPYTHON_UNPACKNAME)$(DELIM)Programs @@ -65,6 +77,7 @@ $(CPYTHON_UNPACKNAME): $(CPYTHON_ZIP) $(Q) patch -p1 -d $(CPYTHON_UNPACKNAME) < patch$(DELIM)0008-declare-struct-timeval.patch $(Q) patch -p1 -d $(CPYTHON_UNPACKNAME) < patch$(DELIM)0009-include-nuttx-sys-select-header-to-define-FD_SETSIZE.patch $(Q) patch -p1 -d $(CPYTHON_UNPACKNAME) < patch$(DELIM)0010-check-for-the-d_ino-member-of-the-structure-dirent.patch + $(Q) patch -p1 -d $(CPYTHON_UNPACKNAME) < patch$(DELIM)0011-avoid-redefinition-warning-if-UNUSED-is-already-defi.patch $(HOSTPYTHON): mkdir -p $(HOSTBUILD) @@ -123,13 +136,6 @@ $(TARGETLIBPYTHON): $(TARGETBUILD)/Makefile $(Q) ( cp $(TARGETBUILD)/libpython$(CPYTHON_VERSION_MINOR).a $(TARGETLIBPYTHON) ) $(Q) $(UNPACK) $(TARGETMODULESPACK) -d $(TARGETMODULES)/python$(CPYTHON_VERSION_MINOR) -CFLAGS += ${INCDIR_PREFIX}$(CPYTHON_PATH)$(DELIM)Include -CFLAGS += ${INCDIR_PREFIX}$(CPYTHON_PATH)$(DELIM)Test -CFLAGS += ${INCDIR_PREFIX}$(CPYTHON_PATH)$(DELIM)Include$(DELIM)internal -CFLAGS += ${INCDIR_PREFIX}$(APPDIR)$(DELIM)system -CFLAGS += ${INCDIR_PREFIX}$(APPDIR)$(DELIM)system$(DELIM)zlib$(DELIM)zlib -CFLAGS += ${INCDIR_PREFIX}$(TARGETBUILD) - MODULE = $(CONFIG_INTERPRETER_CPYTHON) PROGNAME += $(CONFIG_INTERPRETER_CPYTHON_PROGNAME) diff --git a/interpreters/python/config.site b/interpreters/python/config.site index d806ba564d7..c99b73e5644 100644 --- a/interpreters/python/config.site +++ b/interpreters/python/config.site @@ -18,4 +18,5 @@ export ac_cv_func_clock="yes" export ac_cv_func_fork="yes" export ac_cv_func_waitpid="yes" export ac_cv_func_pipe="yes" +export ac_cv_enable_strict_prototypes_warning="no" export MODULE_BUILDTYPE="static" diff --git a/interpreters/python/patch/0001-workaround-newlib-resource.h-limitations.patch b/interpreters/python/patch/0001-workaround-newlib-resource.h-limitations.patch index dfb9d437a3b..d2ef33c3cdd 100644 --- a/interpreters/python/patch/0001-workaround-newlib-resource.h-limitations.patch +++ b/interpreters/python/patch/0001-workaround-newlib-resource.h-limitations.patch @@ -1,12 +1,14 @@ -From b2ac42cefa3747c7f7a9066fceed834286e829af Mon Sep 17 00:00:00 2001 +From 3917fd37644948096c6bebf53e701b59fa527cf5 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 22 Oct 2024 23:58:17 +0200 -Subject: [PATCH 01/10] workaround newlib resource.h limitations +Subject: [PATCH 01/11] workaround newlib resource.h limitations configure script checks if resource.h is available but doesn't check if it defines all the necessary functions. Temporary workaround until these functions are added to IDF. + +Signed-off-by: Tiago Medicci --- Modules/faulthandler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreters/python/patch/0002-fix-various-uint32_t-unsigned-int-type-mismatch-issu.patch b/interpreters/python/patch/0002-fix-various-uint32_t-unsigned-int-type-mismatch-issu.patch index 0bf12755af3..4dcef4e78c0 100644 --- a/interpreters/python/patch/0002-fix-various-uint32_t-unsigned-int-type-mismatch-issu.patch +++ b/interpreters/python/patch/0002-fix-various-uint32_t-unsigned-int-type-mismatch-issu.patch @@ -1,12 +1,14 @@ -From 036b39478c2419af1e0a64763b9ac741cf886387 Mon Sep 17 00:00:00 2001 +From 562138b0486ad050b5ce601d434910973ff6f094 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Wed, 23 Oct 2024 16:48:49 +0200 -Subject: [PATCH 02/10] fix various uint32_t/'unsigned int' type mismatch +Subject: [PATCH 02/11] fix various uint32_t/'unsigned int' type mismatch issues In a few places existing code assumes that uint32_t == unsigned int. Since in Xtensa and RISC-V bare metal toolchains uint32_t is instead 'unsigned long', the original code fails to build. + +Signed-off-by: Tiago Medicci --- Modules/zlibmodule.c | 28 ++++++++++++++-------------- Objects/typeobject.c | 2 +- diff --git a/interpreters/python/patch/0003-reuse-wasm_assets.py-for-generating-an-archive-of-py.patch b/interpreters/python/patch/0003-reuse-wasm_assets.py-for-generating-an-archive-of-py.patch index f8e03a2cfc0..83b46c6d5be 100644 --- a/interpreters/python/patch/0003-reuse-wasm_assets.py-for-generating-an-archive-of-py.patch +++ b/interpreters/python/patch/0003-reuse-wasm_assets.py-for-generating-an-archive-of-py.patch @@ -1,7 +1,7 @@ -From 4af7a9b726ca2c8ac330b51f98acf0a103f6fa71 Mon Sep 17 00:00:00 2001 +From dcc6b2b6aa396f96e7c9efe3e793d96c7004ef4f Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Wed, 23 Oct 2024 16:54:39 +0200 -Subject: [PATCH 03/10] reuse wasm_assets.py for generating an archive of +Subject: [PATCH 03/11] reuse wasm_assets.py for generating an archive of python lib dir wasm_assets.py is a useful script to prepare the smallest possible @@ -12,6 +12,7 @@ This patch adds nuttx to the supported OS list in the script, as well as fixes what I think is a bug in path calculation. Co-authored-by: Tiago Medicci Serrano +Signed-off-by: Tiago Medicci --- Tools/wasm/wasm_assets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interpreters/python/patch/0004-recognize-nuttx-as-a-supported-OS.patch b/interpreters/python/patch/0004-recognize-nuttx-as-a-supported-OS.patch index 6d8531ce66d..d187e248ca5 100644 --- a/interpreters/python/patch/0004-recognize-nuttx-as-a-supported-OS.patch +++ b/interpreters/python/patch/0004-recognize-nuttx-as-a-supported-OS.patch @@ -1,13 +1,14 @@ -From 1bb8d824a4b4e4b38c3541b7c26c5d71f0970266 Mon Sep 17 00:00:00 2001 +From ff067ccb26c91de352de362a25d87bcbabe924dc Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Wed, 23 Oct 2024 16:55:53 +0200 -Subject: [PATCH 04/10] recognize *-*-nuttx as a supported OS +Subject: [PATCH 04/11] recognize *-*-nuttx as a supported OS cpython's configure script bails out when cross-compiling for an unknown OS, so we have to add "nuttx" to the list, even though it is not used almost anywhere else. Co-authored-by: Tiago Medicci Serrano +Signed-off-by: Tiago Medicci --- config.sub | 2 +- configure | 3 +++ diff --git a/interpreters/python/patch/0005-gh-122907-Fix-Builds-Without-HAVE_DYNAMIC_LOADING-Se.patch b/interpreters/python/patch/0005-gh-122907-Fix-Builds-Without-HAVE_DYNAMIC_LOADING-Se.patch index cf25d88c2bd..52bbd6b68c8 100644 --- a/interpreters/python/patch/0005-gh-122907-Fix-Builds-Without-HAVE_DYNAMIC_LOADING-Se.patch +++ b/interpreters/python/patch/0005-gh-122907-Fix-Builds-Without-HAVE_DYNAMIC_LOADING-Se.patch @@ -1,13 +1,14 @@ -From cd8af3cbc9881e5a4a7c0644c8844478c8d0245d Mon Sep 17 00:00:00 2001 +From 7e646549488f2d3de4cf1e04ad975625342a9218 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Tue, 13 Aug 2024 14:44:57 -0600 -Subject: [PATCH 05/10] gh-122907: Fix Builds Without HAVE_DYNAMIC_LOADING Set +Subject: [PATCH 05/11] gh-122907: Fix Builds Without HAVE_DYNAMIC_LOADING Set (gh-122952) As of 529a160 (gh-118204), building with HAVE_DYNAMIC_LOADING stopped working. This is a minimal fix just to get builds working again. There are actually a number of long-standing deficiencies with HAVE_DYNAMIC_LOADING builds that need to be resolved separately. (cherry picked from commit ee1b8ce26e700350e47a5f65201097121c41912e) Co-authored-by: Eric Snow +Signed-off-by: Tiago Medicci --- Include/internal/pycore_importdl.h | 4 ++++ Lib/importlib/_bootstrap_external.py | 16 ++++++++-------- diff --git a/interpreters/python/patch/0006-change-var-name-to-avoid-conflict-with-nuttx-unused_.patch b/interpreters/python/patch/0006-change-var-name-to-avoid-conflict-with-nuttx-unused_.patch index 641233bf4eb..a7787b4ff26 100644 --- a/interpreters/python/patch/0006-change-var-name-to-avoid-conflict-with-nuttx-unused_.patch +++ b/interpreters/python/patch/0006-change-var-name-to-avoid-conflict-with-nuttx-unused_.patch @@ -1,9 +1,10 @@ -From d424766bff74fb34a80a09c6e2ed8d9b40350bb8 Mon Sep 17 00:00:00 2001 +From 82a3c7c021324e4245289c565b2d379b83ed4be3 Mon Sep 17 00:00:00 2001 From: Tiago Medicci Date: Wed, 13 Nov 2024 14:20:36 -0300 -Subject: [PATCH 06/10] change var name to avoid conflict with nuttx +Subject: [PATCH 06/11] change var name to avoid conflict with nuttx unused_data macro +Signed-off-by: Tiago Medicci --- Modules/zlibmodule.c | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/interpreters/python/patch/0007-undef-atexit_register.patch b/interpreters/python/patch/0007-undef-atexit_register.patch index 266f704a946..7003f155fb8 100644 --- a/interpreters/python/patch/0007-undef-atexit_register.patch +++ b/interpreters/python/patch/0007-undef-atexit_register.patch @@ -1,10 +1,12 @@ -From 1b802bfd159a6a9766ca5834af90f55d54285b4b Mon Sep 17 00:00:00 2001 +From 7eab2315d75d5e78e67e0b049ebb2fc71914b7ea Mon Sep 17 00:00:00 2001 From: Tiago Medicci Date: Wed, 13 Nov 2024 14:22:04 -0300 -Subject: [PATCH 07/10] undef atexit_register +Subject: [PATCH 07/11] undef atexit_register Even if not built, nuttx/include/nuttx/atexit.h defines it and this causes conflicts. + +Signed-off-by: Tiago Medicci --- Modules/atexitmodule.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interpreters/python/patch/0008-declare-struct-timeval.patch b/interpreters/python/patch/0008-declare-struct-timeval.patch index bb8d3cb43d8..646c87c28a1 100644 --- a/interpreters/python/patch/0008-declare-struct-timeval.patch +++ b/interpreters/python/patch/0008-declare-struct-timeval.patch @@ -1,9 +1,11 @@ -From b40e89c190ec7c6b3b0116a3f7025ab13854398f Mon Sep 17 00:00:00 2001 +From fc042cfa496f37f2a859495ad281583f79af0044 Mon Sep 17 00:00:00 2001 From: Tiago Medicci Date: Wed, 13 Nov 2024 14:23:34 -0300 -Subject: [PATCH 08/10] declare struct timeval +Subject: [PATCH 08/11] declare struct timeval Otherwise, build will fail due to redefinition of _PyTime_FromTimeval + +Signed-off-by: Tiago Medicci --- Include/internal/pycore_time.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/interpreters/python/patch/0009-include-nuttx-sys-select-header-to-define-FD_SETSIZE.patch b/interpreters/python/patch/0009-include-nuttx-sys-select-header-to-define-FD_SETSIZE.patch index b52b76be1b2..312797960f3 100644 --- a/interpreters/python/patch/0009-include-nuttx-sys-select-header-to-define-FD_SETSIZE.patch +++ b/interpreters/python/patch/0009-include-nuttx-sys-select-header-to-define-FD_SETSIZE.patch @@ -1,8 +1,9 @@ -From 9a32a300c95e0061220d2608a014c7fa39dedab3 Mon Sep 17 00:00:00 2001 +From 3d140751ebec3aedd8ed3cdf2a7eff5009693112 Mon Sep 17 00:00:00 2001 From: Tiago Medicci Date: Thu, 14 Nov 2024 13:44:49 -0300 -Subject: [PATCH 09/10] include nuttx sys/select header to define FD_SETSIZE +Subject: [PATCH 09/11] include nuttx sys/select header to define FD_SETSIZE +Signed-off-by: Tiago Medicci --- Modules/selectmodule.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interpreters/python/patch/0010-check-for-the-d_ino-member-of-the-structure-dirent.patch b/interpreters/python/patch/0010-check-for-the-d_ino-member-of-the-structure-dirent.patch index d65b1f287c6..13cffe3fa0c 100644 --- a/interpreters/python/patch/0010-check-for-the-d_ino-member-of-the-structure-dirent.patch +++ b/interpreters/python/patch/0010-check-for-the-d_ino-member-of-the-structure-dirent.patch @@ -1,15 +1,37 @@ -From 4f6a1db85c56df378dc3856ed95a0a7342f44d89 Mon Sep 17 00:00:00 2001 +From 4191bf1e4505776efa0780ebc4fc5195a6ce79d3 Mon Sep 17 00:00:00 2001 From: Tiago Medicci Date: Tue, 3 Dec 2024 17:18:50 -0300 -Subject: [PATCH 10/10] check for the d_ino member of the structure dirent +Subject: [PATCH 10/11] check for the d_ino member of the structure dirent +Signed-off-by: Tiago Medicci --- - Modules/posixmodule.c | 18 ++++++++++++++++-- - configure | 43 +++++++++++++++++++++++++++++++++++++++++++ - configure.ac | 5 +++++ - pyconfig.h.in | 3 +++ - 4 files changed, 67 insertions(+), 2 deletions(-) + Modules/clinic/posixmodule.c.h | 2 ++ + Modules/posixmodule.c | 18 ++++++++++++-- + configure | 43 ++++++++++++++++++++++++++++++++++ + configure.ac | 5 ++++ + pyconfig.h.in | 3 +++ + 5 files changed, 69 insertions(+), 2 deletions(-) +diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h +index 14a6efb9ac9..6e716f77db8 100644 +--- a/Modules/clinic/posixmodule.c.h ++++ b/Modules/clinic/posixmodule.c.h +@@ -11652,6 +11652,7 @@ PyDoc_STRVAR(os_DirEntry_inode__doc__, + #define OS_DIRENTRY_INODE_METHODDEF \ + {"inode", (PyCFunction)os_DirEntry_inode, METH_NOARGS, os_DirEntry_inode__doc__}, + ++#ifdef HAVE_DIRENT_D_INO + static PyObject * + os_DirEntry_inode_impl(DirEntry *self); + +@@ -11660,6 +11661,7 @@ os_DirEntry_inode(DirEntry *self, PyObject *Py_UNUSED(ignored)) + { + return os_DirEntry_inode_impl(self); + } ++#endif + + PyDoc_STRVAR(os_DirEntry___fspath____doc__, + "__fspath__($self, /)\n" diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 51e34b5f4b7..2aa507aa942 100644 --- a/Modules/posixmodule.c diff --git a/interpreters/python/patch/0011-avoid-redefinition-warning-if-UNUSED-is-already-defi.patch b/interpreters/python/patch/0011-avoid-redefinition-warning-if-UNUSED-is-already-defi.patch new file mode 100644 index 00000000000..15b5cf0c0f1 --- /dev/null +++ b/interpreters/python/patch/0011-avoid-redefinition-warning-if-UNUSED-is-already-defi.patch @@ -0,0 +1,26 @@ +From b82ab44e498a9e9bcdcbbfa1d6161023d8ea8c5b Mon Sep 17 00:00:00 2001 +From: Tiago Medicci +Date: Tue, 10 Dec 2024 12:03:47 -0300 +Subject: [PATCH 11/11] avoid redefinition warning if UNUSED is already defined + +--- + Parser/pegen.h | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/Parser/pegen.h b/Parser/pegen.h +index 32c64e7774b..42574456f23 100644 +--- a/Parser/pegen.h ++++ b/Parser/pegen.h +@@ -250,7 +250,9 @@ void * _PyPegen_seq_last_item(asdl_seq *seq); + #define PyPegen_last_item(seq, type) ((type)_PyPegen_seq_last_item((asdl_seq*)seq)) + void * _PyPegen_seq_first_item(asdl_seq *seq); + #define PyPegen_first_item(seq, type) ((type)_PyPegen_seq_first_item((asdl_seq*)seq)) ++#ifndef UNUSED + #define UNUSED(expr) do { (void)(expr); } while (0) ++#endif + #define EXTRA_EXPR(head, tail) head->lineno, (head)->col_offset, (tail)->end_lineno, (tail)->end_col_offset, p->arena + #define EXTRA _start_lineno, _start_col_offset, _end_lineno, _end_col_offset, p->arena + PyObject *_PyPegen_new_type_comment(Parser *, const char *); +-- +2.46.1 + From dfb2869a6ff83717f6621676f93d2cf133793f1d Mon Sep 17 00:00:00 2001 From: chao an Date: Mon, 9 Dec 2024 13:25:11 +0800 Subject: [PATCH 05/38] mlearning/tflite-micro: add a config option to redirect micro log to syslog new config option TFLITEMICRO_SYSLOG to redirect micro log to syslog Signed-off-by: chao an --- mlearning/tflite-micro/CMakeLists.txt | 4 ++ mlearning/tflite-micro/Kconfig | 24 ++++++++++ mlearning/tflite-micro/Makefile | 5 ++ mlearning/tflite-micro/tflm_syslog.cc | 66 +++++++++++++++++++++++++++ 4 files changed, 99 insertions(+) create mode 100644 mlearning/tflite-micro/tflm_syslog.cc diff --git a/mlearning/tflite-micro/CMakeLists.txt b/mlearning/tflite-micro/CMakeLists.txt index 482e920b7bb..ad52a6f655a 100644 --- a/mlearning/tflite-micro/CMakeLists.txt +++ b/mlearning/tflite-micro/CMakeLists.txt @@ -101,6 +101,10 @@ if(CONFIG_TFLITEMICRO) # Remove test file list(FILTER TFLITE_MICRO_SRCS EXCLUDE REGEX ".*test.cc") + if(CONFIG_TFLITEMICRO_SYSLOG) + list(FILTER TFLITE_MICRO_SRCS EXCLUDE REGEX "micro_log.cc") + list(APPEND TFLITE_MICRO_SRCS ${CMAKE_CURRENT_LIST_DIR}/tflm_syslog.cc) + endif() if(CONFIG_MLEARNING_CMSIS_NN) list(APPEND COMMON_FLAGS -DCMSIS_NN) diff --git a/mlearning/tflite-micro/Kconfig b/mlearning/tflite-micro/Kconfig index 06193fff16e..359ea581934 100644 --- a/mlearning/tflite-micro/Kconfig +++ b/mlearning/tflite-micro/Kconfig @@ -32,6 +32,30 @@ config TFLITEMICRO_TOOL bool "tflite-micro cmdline tool" default n +config TFLITEMICRO_SYSLOG + bool "tflite-micro syslog backend" + default n + +if TFLITEMICRO_SYSLOG + +config TFLITEMICRO_SYSLOG_LEVEL + int "tflite-micro syslog level" + default 6 + ---help--- + Syslog level mapping of tflm, This log level mapping is consistent + with the nuttx syslog level, please refer to syslog.h: + + define LOG_EMERG 0 /* System is unusable */ + define LOG_ALERT 1 /* Action must be taken immediately */ + define LOG_CRIT 2 /* Critical conditions */ + define LOG_ERR 3 /* Error conditions */ + define LOG_WARNING 4 /* Warning conditions */ + define LOG_NOTICE 5 /* Normal, but significant, condition */ + define LOG_INFO 6 /* Informational message */ + define LOG_DEBUG 7 /* Debug-level message */ + +endif # TFLITEMICRO_SYSLOG + if TFLITEMICRO_TOOL config TFLITEMICRO_TOOL_PRIORITY int "tflite-micro tool priority" diff --git a/mlearning/tflite-micro/Makefile b/mlearning/tflite-micro/Makefile index b5dbd7f814a..dd0c1c6ad71 100644 --- a/mlearning/tflite-micro/Makefile +++ b/mlearning/tflite-micro/Makefile @@ -78,6 +78,11 @@ CXXSRCS += $(wildcard $(TFLM_DIR)/tensorflow/lite/micro/tflite_bridge/*.cc) CXXSRCS += $(wildcard $(TFLM_DIR)/tensorflow/lite/schema/*.cc) CXXSRCS := $(filter-out %test.cc, $(CXXSRCS)) +ifneq ($(CONFIG_TFLITEMICRO_SYSLOG),) + CXXSRCS := $(filter-out %micro_log.cc, $(CXXSRCS)) + CXXSRCS += $(wildcard $(CURDIR)/tflm_syslog.cc) +endif + # cmsis ifneq ($(CONFIG_MLEARNING_CMSIS_NN),) COMMON_FLAGS += -DCMSIS_NN diff --git a/mlearning/tflite-micro/tflm_syslog.cc b/mlearning/tflite-micro/tflm_syslog.cc new file mode 100644 index 00000000000..f306a9153bf --- /dev/null +++ b/mlearning/tflite-micro/tflm_syslog.cc @@ -0,0 +1,66 @@ +/**************************************************************************** + * apps/mlearning/tflite-micro/tflm_syslog.cc + * + * 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. + * + ****************************************************************************/ + +#include "tensorflow/lite/micro/micro_log.h" + +#include +#include + +#if !defined(TF_LITE_STRIP_ERROR_STRINGS) +#include "tensorflow/lite/micro/debug_log.h" +#endif + +#if !defined(TF_LITE_STRIP_ERROR_STRINGS) + +void VMicroPrintf(FAR const char *format, va_list ap) +{ + vsyslog(CONFIG_TFLITEMICRO_SYSLOG_LEVEL, format, ap); +} + +void MicroPrintf(FAR const char *format, ...) +{ + va_list ap; + + /* Let vsyslog do the work */ + + va_start(ap, format); + vsyslog(CONFIG_TFLITEMICRO_SYSLOG_LEVEL, format, ap); + va_end(ap); +} + +int MicroSnprintf(FAR char *buffer, size_t buf_size, FAR const char *format, ...) +{ + va_list ap; + int ret; + + va_start(ap, format); + ret = vsnprintf(buffer, buf_size, format, ap); + va_end(ap); + + return ret; +} + +int MicroVsnprintf(FAR char *buffer, size_t buf_size, + FAR const char *format, va_list vlist) +{ + return vsnprintf(buffer, buf_size, format, vlist); +} + +#endif // !defined(TF_LITE_STRIP_ERROR_STRINGS) From cc9d4b631feaefbaf8a8e6e819b59106704f6aa1 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Fri, 20 Dec 2024 02:49:33 +0100 Subject: [PATCH 06/38] inertial: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- inertial/CMakeLists.txt | 2 ++ inertial/Make.defs | 2 ++ inertial/Makefile | 2 ++ inertial/madgwick/Make.defs | 2 ++ inertial/madgwick/Makefile | 2 ++ 5 files changed, 10 insertions(+) diff --git a/inertial/CMakeLists.txt b/inertial/CMakeLists.txt index fb213b9eebc..66cfc9e2738 100644 --- a/inertial/CMakeLists.txt +++ b/inertial/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/inertial/CMakeLists.txt # +# SPDX-License-Identifier: BSD-3-Clause +# # 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 diff --git a/inertial/Make.defs b/inertial/Make.defs index 03113ac85de..d19af339753 100644 --- a/inertial/Make.defs +++ b/inertial/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/inertial/Make.defs # +# SPDX-License-Identifier: BSD-3-Clause +# # 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/inertial/Makefile b/inertial/Makefile index e05b10cd28d..e12c1d62347 100644 --- a/inertial/Makefile +++ b/inertial/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/inertial/Makefile # +# SPDX-License-Identifier: BSD-3-Clause +# # 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/inertial/madgwick/Make.defs b/inertial/madgwick/Make.defs index 814fb83af50..e16d25d84eb 100644 --- a/inertial/madgwick/Make.defs +++ b/inertial/madgwick/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/inertial/madgwick/Make.defs # +# SPDX-License-Identifier: BSD-3-Clause +# # 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/inertial/madgwick/Makefile b/inertial/madgwick/Makefile index 936d28219f8..38dac5227b1 100644 --- a/inertial/madgwick/Makefile +++ b/inertial/madgwick/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/inertial/madgwick/Makefile # +# SPDX-License-Identifier: BSD-3-Clause +# # 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 From dfa843203f9b3aaca1af40b511d7fe904ece6b05 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Fri, 20 Dec 2024 03:49:25 +0100 Subject: [PATCH 07/38] interpreters: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- interpreters/CMakeLists.txt | 2 + interpreters/Make.defs | 2 + interpreters/Makefile | 2 + interpreters/bas/CMakeLists.txt | 2 + interpreters/bas/Make.defs | 2 + interpreters/bas/Makefile | 2 + interpreters/bas/bas.c | 3 +- interpreters/bas/bas.h | 3 +- interpreters/bas/bas_auto.c | 4 +- interpreters/bas/bas_auto.h | 3 +- interpreters/bas/bas_autotypes.h | 3 +- interpreters/bas/bas_error.h | 3 +- interpreters/bas/bas_fs.c | 4 +- interpreters/bas/bas_fs.h | 3 +- interpreters/bas/bas_global.c | 4 +- interpreters/bas/bas_global.h | 3 +- interpreters/bas/bas_main.c | 3 +- interpreters/bas/bas_program.c | 4 +- interpreters/bas/bas_program.h | 3 +- interpreters/bas/bas_programtypes.h | 3 +- interpreters/bas/bas_statement.c | 3 +- interpreters/bas/bas_statement.h | 3 +- interpreters/bas/bas_str.c | 4 +- interpreters/bas/bas_str.h | 3 +- interpreters/bas/bas_token.c | 21 ++++++++ interpreters/bas/bas_token.h | 3 +- interpreters/bas/bas_token.l | 22 ++++++++ interpreters/bas/bas_value.c | 3 +- interpreters/bas/bas_value.h | 3 +- interpreters/bas/bas_var.c | 3 +- interpreters/bas/bas_var.h | 3 +- interpreters/bas/bas_vt100.c | 2 + interpreters/bas/bas_vt100.h | 2 + interpreters/duktape/Make.defs | 2 + interpreters/duktape/Makefile | 2 + interpreters/ficl/Make.defs | 2 + interpreters/ficl/Makefile | 2 + interpreters/ficl/configure.sh | 22 ++++++++ interpreters/ficl/src/nuttx.c | 50 ++++++++----------- interpreters/ficl/src/nuttx.h | 2 + interpreters/lua/CMakeLists.txt | 2 + interpreters/lua/Make.defs | 2 + interpreters/lua/Makefile | 2 + interpreters/lua/Module.mk | 2 + interpreters/lua/nuttx_linit.c | 2 + .../luajit/0001-luajit-armv7m-nuttx.patch | 6 +-- interpreters/luajit/Make.defs | 2 + interpreters/luajit/Makefile | 2 + interpreters/luamodules/CMakeLists.txt | 2 + interpreters/luamodules/Make.defs | 2 + interpreters/luamodules/Makefile | 2 + interpreters/luamodules/cjson/Make.defs | 2 + interpreters/luamodules/cjson/Makefile | 2 + interpreters/luamodules/lfs/Make.defs | 2 + interpreters/luamodules/lfs/Makefile | 2 + .../luamodules/luasyslog/CMakeLists.txt | 2 + interpreters/luamodules/luasyslog/Make.defs | 2 + interpreters/luamodules/luasyslog/Makefile | 2 + interpreters/luamodules/luv/Make.defs | 2 + interpreters/luamodules/luv/Makefile | 2 + interpreters/minibasic/CMakeLists.txt | 2 + interpreters/minibasic/Make.defs | 2 + interpreters/minibasic/Makefile | 2 + interpreters/minibasic/basic.c | 50 ++++++++----------- interpreters/minibasic/script.c | 49 ++++++++---------- interpreters/python/Make.defs | 2 + interpreters/python/Makefile | 2 + interpreters/python/mount_modules.c | 2 + interpreters/quickjs/CMakeLists.txt | 2 + interpreters/quickjs/Make.defs | 2 + interpreters/quickjs/Makefile | 2 + interpreters/quickjs/qjsmini.c | 2 + interpreters/toywasm/Make.defs | 2 + interpreters/toywasm/Makefile | 2 + interpreters/toywasm/include/toywasm_config.h | 2 + .../toywasm/include/toywasm_version.h | 2 + interpreters/toywasm/regen.sh | 21 ++++++++ interpreters/toywasm/src/toywasm_config.c | 2 + interpreters/toywasm/tmpl/c-sections.in | 20 ++++++++ interpreters/toywasm/tmpl/license.in | 2 +- interpreters/wamr/CMakeLists.txt | 2 + interpreters/wamr/Make.defs | 2 + interpreters/wamr/Makefile | 2 + interpreters/wamr/Module.mk | 2 + interpreters/wamr/Toolchain.defs | 2 + interpreters/wamr/wamr_custom_init.c | 2 + interpreters/wasm3/Make.defs | 2 + interpreters/wasm3/Makefile | 2 + 88 files changed, 328 insertions(+), 119 deletions(-) diff --git a/interpreters/CMakeLists.txt b/interpreters/CMakeLists.txt index 3141c68123f..94592ab058a 100644 --- a/interpreters/CMakeLists.txt +++ b/interpreters/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/interpreters/CMakeLists.txt # +# 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 diff --git a/interpreters/Make.defs b/interpreters/Make.defs index 0ead58c3b37..64c220bbd47 100644 --- a/interpreters/Make.defs +++ b/interpreters/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/Make.defs # +# 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/interpreters/Makefile b/interpreters/Makefile index ec2e50c1cfb..63f027808ca 100644 --- a/interpreters/Makefile +++ b/interpreters/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/Makefile # +# 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/interpreters/bas/CMakeLists.txt b/interpreters/bas/CMakeLists.txt index 18aa8cfc259..86219418a90 100644 --- a/interpreters/bas/CMakeLists.txt +++ b/interpreters/bas/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/interpreters/bas/CMakeLists.txt # +# 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 diff --git a/interpreters/bas/Make.defs b/interpreters/bas/Make.defs index 6cf5db783c4..e17fec9a6c3 100644 --- a/interpreters/bas/Make.defs +++ b/interpreters/bas/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/bas/Make.defs # +# 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/interpreters/bas/Makefile b/interpreters/bas/Makefile index 55edb4d70d7..332cb17dfde 100644 --- a/interpreters/bas/Makefile +++ b/interpreters/bas/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/bas/Makefile # +# 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/interpreters/bas/bas.c b/interpreters/bas/bas.c index 46a5c85df61..3ccaea3b9d8 100644 --- a/interpreters/bas/bas.c +++ b/interpreters/bas/bas.c @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas.c * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas.h b/interpreters/bas/bas.h index 4373ad7ad66..eb4890d5066 100644 --- a/interpreters/bas/bas.h +++ b/interpreters/bas/bas.h @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas.h * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_auto.c b/interpreters/bas/bas_auto.c index 13f4222a088..25d14a6cd92 100644 --- a/interpreters/bas/bas_auto.c +++ b/interpreters/bas/bas_auto.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_auto.c - * BASIC file system interface. * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_auto.h b/interpreters/bas/bas_auto.h index d608a575fb1..4aaa6878b55 100644 --- a/interpreters/bas/bas_auto.h +++ b/interpreters/bas/bas_auto.h @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_auto.h * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_autotypes.h b/interpreters/bas/bas_autotypes.h index ac08d144fc9..b1dd547b910 100644 --- a/interpreters/bas/bas_autotypes.h +++ b/interpreters/bas/bas_autotypes.h @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_autotypes.h * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_error.h b/interpreters/bas/bas_error.h index 0d2697aeb46..58fe4dd2ddd 100644 --- a/interpreters/bas/bas_error.h +++ b/interpreters/bas/bas_error.h @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_error.h * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_fs.c b/interpreters/bas/bas_fs.c index 1d0863bbe9e..199f41bb94d 100644 --- a/interpreters/bas/bas_fs.c +++ b/interpreters/bas/bas_fs.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_fs.c - * BASIC file system interface. * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_fs.h b/interpreters/bas/bas_fs.h index 54ffb22e5db..38ddb155305 100644 --- a/interpreters/bas/bas_fs.h +++ b/interpreters/bas/bas_fs.h @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_fs.h * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_global.c b/interpreters/bas/bas_global.c index ef5b682cd29..480ac47db52 100644 --- a/interpreters/bas/bas_global.c +++ b/interpreters/bas/bas_global.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_global.c - * Global variables and functions. * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_global.h b/interpreters/bas/bas_global.h index 197c51bc6f5..f51aae78dd9 100644 --- a/interpreters/bas/bas_global.h +++ b/interpreters/bas/bas_global.h @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_global.h * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_main.c b/interpreters/bas/bas_main.c index 986ac1d2f33..4bb2d0f12de 100644 --- a/interpreters/bas/bas_main.c +++ b/interpreters/bas/bas_main.c @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_main.c * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_program.c b/interpreters/bas/bas_program.c index 51fda65bd1c..4d281da630b 100644 --- a/interpreters/bas/bas_program.c +++ b/interpreters/bas/bas_program.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_program.c - * Program storage. * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_program.h b/interpreters/bas/bas_program.h index 3243e1023b4..712918af927 100644 --- a/interpreters/bas/bas_program.h +++ b/interpreters/bas/bas_program.h @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_program.h * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_programtypes.h b/interpreters/bas/bas_programtypes.h index 9174f6595ed..d328f58193e 100644 --- a/interpreters/bas/bas_programtypes.h +++ b/interpreters/bas/bas_programtypes.h @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_programtypes.h * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_statement.c b/interpreters/bas/bas_statement.c index 5172bdfb3ab..b95a38a3c08 100644 --- a/interpreters/bas/bas_statement.c +++ b/interpreters/bas/bas_statement.c @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_statement.c * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_statement.h b/interpreters/bas/bas_statement.h index 3421aab14c3..5b1fe9fcd48 100644 --- a/interpreters/bas/bas_statement.h +++ b/interpreters/bas/bas_statement.h @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/statement.h * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_str.c b/interpreters/bas/bas_str.c index 421a10e7989..1c68982dd0a 100644 --- a/interpreters/bas/bas_str.c +++ b/interpreters/bas/bas_str.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_str.c - * Dynamic strings. * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_str.h b/interpreters/bas/bas_str.h index c9a49395a09..e70fe8711b0 100644 --- a/interpreters/bas/bas_str.h +++ b/interpreters/bas/bas_str.h @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_str.h * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_token.c b/interpreters/bas/bas_token.c index 51448a01845..f4c2fbd2663 100644 --- a/interpreters/bas/bas_token.c +++ b/interpreters/bas/bas_token.c @@ -1,3 +1,24 @@ +/**************************************************************************** + * apps/interpreters/bas/bas_token.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 + * 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. + * + ****************************************************************************/ #line 3 "" diff --git a/interpreters/bas/bas_token.h b/interpreters/bas/bas_token.h index ffe3fc4cd3b..7cb15d3a3f9 100644 --- a/interpreters/bas/bas_token.h +++ b/interpreters/bas/bas_token.h @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_token.h * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_token.l b/interpreters/bas/bas_token.l index d68fb900a1e..131544262e0 100644 --- a/interpreters/bas/bas_token.l +++ b/interpreters/bas/bas_token.l @@ -1,3 +1,25 @@ +/**************************************************************************** + * apps/interpreters/bas/bas_token.l + * + * 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. + * + ****************************************************************************/ + /* Tokens and token sequence arrays. */ %{ #include diff --git a/interpreters/bas/bas_value.c b/interpreters/bas/bas_value.c index 901eb55beab..3c99281d029 100644 --- a/interpreters/bas/bas_value.c +++ b/interpreters/bas/bas_value.c @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_value.c * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_value.h b/interpreters/bas/bas_value.h index c60037c09a7..5a428bd5d21 100644 --- a/interpreters/bas/bas_value.h +++ b/interpreters/bas/bas_value.h @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_value.h * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_var.c b/interpreters/bas/bas_var.c index a5cf9fe0f8e..1e26dca222f 100644 --- a/interpreters/bas/bas_var.c +++ b/interpreters/bas/bas_var.c @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_var.c * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_var.h b/interpreters/bas/bas_var.h index 022d1422b85..1f5f0444bb5 100644 --- a/interpreters/bas/bas_var.h +++ b/interpreters/bas/bas_var.h @@ -1,7 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_var.h * - * Copyright (c) 1999-2014 Michael Haardt + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 1999-2014 Michael Haardt * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/interpreters/bas/bas_vt100.c b/interpreters/bas/bas_vt100.c index ebdd60b54f4..84410232d68 100644 --- a/interpreters/bas/bas_vt100.c +++ b/interpreters/bas/bas_vt100.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_vt100.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/interpreters/bas/bas_vt100.h b/interpreters/bas/bas_vt100.h index 45ade3d26b4..fc7b5d2c56e 100644 --- a/interpreters/bas/bas_vt100.h +++ b/interpreters/bas/bas_vt100.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/interpreters/bas/bas_vt100.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 diff --git a/interpreters/duktape/Make.defs b/interpreters/duktape/Make.defs index b9d4fbfd623..e0627acf7b5 100644 --- a/interpreters/duktape/Make.defs +++ b/interpreters/duktape/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/duktape/Make.defs # +# 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/interpreters/duktape/Makefile b/interpreters/duktape/Makefile index 37dacaaa4b5..c6a0a621e8d 100644 --- a/interpreters/duktape/Makefile +++ b/interpreters/duktape/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/duktape/Makefile # +# 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/interpreters/ficl/Make.defs b/interpreters/ficl/Make.defs index fb76bd5a47c..95cbe50b95a 100644 --- a/interpreters/ficl/Make.defs +++ b/interpreters/ficl/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/ficl/Make.defs # +# 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/interpreters/ficl/Makefile b/interpreters/ficl/Makefile index 6b3308c6fbc..46d058e1346 100644 --- a/interpreters/ficl/Makefile +++ b/interpreters/ficl/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/ficl/Makefile # +# 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/interpreters/ficl/configure.sh b/interpreters/ficl/configure.sh index d84e0d4fc21..d7e232d3abc 100755 --- a/interpreters/ficl/configure.sh +++ b/interpreters/ficl/configure.sh @@ -1,4 +1,26 @@ #!/usr/bin/env bash +############################################################################ +# apps/interpreters/ficl/configure.sh +# +# 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. +# +############################################################################ + USAGE="$0 " diff --git a/interpreters/ficl/src/nuttx.c b/interpreters/ficl/src/nuttx.c index 5d01b8c8427..86cc1712b49 100644 --- a/interpreters/ficl/src/nuttx.c +++ b/interpreters/ficl/src/nuttx.c @@ -1,39 +1,31 @@ /**************************************************************************** * apps/interpreters/ficl/src/nuttx.c * - * Copyright (C) 2016 Gregory Nutt. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * - * This file was taken from Mini Basic, versino 1.0 developed by Malcolm - * McLean, Leeds University. Mini Basic version 1.0 was released the - * Creative Commons Attribution license which, from my reading, appears to - * be compatible with the NuttX BSD-style license: + * 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 * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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 - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * 3. Neither the name NuttX nor the names of its contributors may be - * used to endorse or promote products derived from this software - * without specific prior written permission. + * 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. * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 OWNER 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 file was taken from Mini Basic, versino 1.0 developed by Malcolm + * McLean, Leeds University. Mini Basic version 1.0 was released the + * Creative Commons Attribution license which, from my reading, appears to + * be compatible with the NuttX license. * ****************************************************************************/ diff --git a/interpreters/ficl/src/nuttx.h b/interpreters/ficl/src/nuttx.h index 87887e757d3..d1b94a17021 100644 --- a/interpreters/ficl/src/nuttx.h +++ b/interpreters/ficl/src/nuttx.h @@ -1,6 +1,8 @@ /*************************************************************************** * apps/interpreters/ficl/src/nuttx.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 diff --git a/interpreters/lua/CMakeLists.txt b/interpreters/lua/CMakeLists.txt index ace2c604b8c..8083a605d8a 100644 --- a/interpreters/lua/CMakeLists.txt +++ b/interpreters/lua/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/interpreters/lua/CMakeLists.txt # +# 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 diff --git a/interpreters/lua/Make.defs b/interpreters/lua/Make.defs index 52f0b68df5e..a0cf323abbd 100644 --- a/interpreters/lua/Make.defs +++ b/interpreters/lua/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/lua/Make.defs # +# 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/interpreters/lua/Makefile b/interpreters/lua/Makefile index 6f9dbfceead..86e446667e7 100644 --- a/interpreters/lua/Makefile +++ b/interpreters/lua/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/lua/Makefile # +# 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/interpreters/lua/Module.mk b/interpreters/lua/Module.mk index 675ef51bd4d..52e9023c0db 100644 --- a/interpreters/lua/Module.mk +++ b/interpreters/lua/Module.mk @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/lua/Module.mk # +# 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/interpreters/lua/nuttx_linit.c b/interpreters/lua/nuttx_linit.c index c15b1ab8c15..3e47a9c9992 100644 --- a/interpreters/lua/nuttx_linit.c +++ b/interpreters/lua/nuttx_linit.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/interpreters/lua/nuttx_linit.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/interpreters/luajit/0001-luajit-armv7m-nuttx.patch b/interpreters/luajit/0001-luajit-armv7m-nuttx.patch index fda4d75059b..d6c20879ef1 100644 --- a/interpreters/luajit/0001-luajit-armv7m-nuttx.patch +++ b/interpreters/luajit/0001-luajit-armv7m-nuttx.patch @@ -18,9 +18,9 @@ index 00000000..8f94ba40 +++ b/dynasm/dasm_armv7m.h @@ -0,0 +1,563 @@ +/* -+** DynASM ARM encoding engine. -+** Copyright (C) 2018 Jernej Turnsek. All rights reserved. -+** Copyright (C) 2005-2017 Mike Pall. All rights reserved. ++** SPDX-License-Identifier: MIT ++** SPDX-FileCopyrightText: 2018 Jernej Turnsek. All rights reserved. ++** SPDX-FileCopyrightText: 2005-2017 Mike Pall. All rights reserved. +** Released under the MIT license. See dynasm.lua for full copyright notice. +*/ + diff --git a/interpreters/luajit/Make.defs b/interpreters/luajit/Make.defs index 066d3922fff..c9957001c65 100644 --- a/interpreters/luajit/Make.defs +++ b/interpreters/luajit/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/luajit/Make.defs # +# 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/interpreters/luajit/Makefile b/interpreters/luajit/Makefile index 778d0ed4a44..1d7f2dfb4f5 100644 --- a/interpreters/luajit/Makefile +++ b/interpreters/luajit/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/luajit/Makefile # +# 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/interpreters/luamodules/CMakeLists.txt b/interpreters/luamodules/CMakeLists.txt index 92f6b8d5f21..9ac42149c8d 100644 --- a/interpreters/luamodules/CMakeLists.txt +++ b/interpreters/luamodules/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/interpreters/luamodules/CMakeLists.txt # +# 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 diff --git a/interpreters/luamodules/Make.defs b/interpreters/luamodules/Make.defs index 224a325c5f7..1dd614d1334 100644 --- a/interpreters/luamodules/Make.defs +++ b/interpreters/luamodules/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/luamodules/Make.defs # +# 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/interpreters/luamodules/Makefile b/interpreters/luamodules/Makefile index 2943f21ea22..b18df0fb3b8 100644 --- a/interpreters/luamodules/Makefile +++ b/interpreters/luamodules/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/luamodules/Makefile # +# 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/interpreters/luamodules/cjson/Make.defs b/interpreters/luamodules/cjson/Make.defs index ef9e639c22a..863ba0ba418 100644 --- a/interpreters/luamodules/cjson/Make.defs +++ b/interpreters/luamodules/cjson/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/luamodules/cjson/Make.defs # +# 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/interpreters/luamodules/cjson/Makefile b/interpreters/luamodules/cjson/Makefile index 2fd7411574e..f9986df4d35 100644 --- a/interpreters/luamodules/cjson/Makefile +++ b/interpreters/luamodules/cjson/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/luamodules/cjson/Makefile # +# 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/interpreters/luamodules/lfs/Make.defs b/interpreters/luamodules/lfs/Make.defs index 868d80cdd56..0ce0cadffc4 100644 --- a/interpreters/luamodules/lfs/Make.defs +++ b/interpreters/luamodules/lfs/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/luamodules/lfs/Make.defs # +# 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/interpreters/luamodules/lfs/Makefile b/interpreters/luamodules/lfs/Makefile index 2987ff3c244..f41313aac29 100644 --- a/interpreters/luamodules/lfs/Makefile +++ b/interpreters/luamodules/lfs/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/luamodules/lfs/Makefile # +# 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/interpreters/luamodules/luasyslog/CMakeLists.txt b/interpreters/luamodules/luasyslog/CMakeLists.txt index 9f6bf0b0ad3..6f1fc2e1186 100644 --- a/interpreters/luamodules/luasyslog/CMakeLists.txt +++ b/interpreters/luamodules/luasyslog/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/interpreters/luamodules/luasyslog/CMakeLists.txt # +# 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 diff --git a/interpreters/luamodules/luasyslog/Make.defs b/interpreters/luamodules/luasyslog/Make.defs index 6b1d990788b..7861da2e2bc 100644 --- a/interpreters/luamodules/luasyslog/Make.defs +++ b/interpreters/luamodules/luasyslog/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/luamodules/luasyslog/Make.defs # +# 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/interpreters/luamodules/luasyslog/Makefile b/interpreters/luamodules/luasyslog/Makefile index 52f188d3520..2421472f81d 100644 --- a/interpreters/luamodules/luasyslog/Makefile +++ b/interpreters/luamodules/luasyslog/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/luamodules/luasyslog/Makefile # +# 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/interpreters/luamodules/luv/Make.defs b/interpreters/luamodules/luv/Make.defs index c1af97de20d..2f1a4ae5015 100644 --- a/interpreters/luamodules/luv/Make.defs +++ b/interpreters/luamodules/luv/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/luamodules/luv/Make.defs # +# 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/interpreters/luamodules/luv/Makefile b/interpreters/luamodules/luv/Makefile index 9eb0111639d..8f4c2535706 100644 --- a/interpreters/luamodules/luv/Makefile +++ b/interpreters/luamodules/luv/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/luamodules/luv/Makefile # +# 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/interpreters/minibasic/CMakeLists.txt b/interpreters/minibasic/CMakeLists.txt index cead0f358c1..7c1e1401dff 100644 --- a/interpreters/minibasic/CMakeLists.txt +++ b/interpreters/minibasic/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/interpreters/minibasic/CMakeLists.txt # +# 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 diff --git a/interpreters/minibasic/Make.defs b/interpreters/minibasic/Make.defs index da9cb2bfe3c..518bfb561ea 100644 --- a/interpreters/minibasic/Make.defs +++ b/interpreters/minibasic/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/minibasic/Make.defs # +# 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/interpreters/minibasic/Makefile b/interpreters/minibasic/Makefile index ced37e10055..40f59775013 100644 --- a/interpreters/minibasic/Makefile +++ b/interpreters/minibasic/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/minibasic/Makefile # +# 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/interpreters/minibasic/basic.c b/interpreters/minibasic/basic.c index 8a3a404a4e4..791463a304f 100644 --- a/interpreters/minibasic/basic.c +++ b/interpreters/minibasic/basic.c @@ -1,39 +1,31 @@ /**************************************************************************** * apps/interpreters/minibasic/basic.c * - * Copyright (C) 2016 Gregory Nutt. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 * - * This file was taken from Mini Basic, versino 1.0 developed by Malcolm - * McLean, Leeds University. Mini Basic version 1.0 was released the - * Creative Commons Attribution license which, from my reading, appears to - * be compatible with the NuttX BSD-style license: + * 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 * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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 - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * 3. Neither the name NuttX nor the names of its contributors may be - * used to endorse or promote products derived from this software - * without specific prior written permission. + * 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. + * + ****************************************************************************/ + +/**************************************************************************** * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 OWNER 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 file was taken from Mini Basic, versino 1.0 developed by Malcolm + * McLean, Leeds University. Mini Basic version 1.0 was released the + * Creative Commons Attribution license which, from my reading, appears to + * be compatible with the NuttX license: * ****************************************************************************/ diff --git a/interpreters/minibasic/script.c b/interpreters/minibasic/script.c index 1710433b670..af3b668f935 100644 --- a/interpreters/minibasic/script.c +++ b/interpreters/minibasic/script.c @@ -1,41 +1,32 @@ /**************************************************************************** * apps/interpreters/minibasic/script.c - * Driver file for MiniBasic. * - * Copyright (C) 2016 Gregory Nutt. All rights reserved. + * 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. + * + ****************************************************************************/ + +/**************************************************************************** * * This file was taken from Mini Basic, versino 1.0 developed by Malcolm * McLean, Leeds University. Mini Basic version 1.0 was released the * Creative Commons Attribution license which, from my reading, appears to * be compatible with the NuttX BSD-style license: * - * 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 - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * 3. Neither the name NuttX nor the names of its contributors may be - * used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 OWNER 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/interpreters/python/Make.defs b/interpreters/python/Make.defs index a1aecbdb4bc..39472e7a1c5 100644 --- a/interpreters/python/Make.defs +++ b/interpreters/python/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/python/Make.defs # +# 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/interpreters/python/Makefile b/interpreters/python/Makefile index e3cda75dfef..4b6c42eac39 100644 --- a/interpreters/python/Makefile +++ b/interpreters/python/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/python/Makefile # +# 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/interpreters/python/mount_modules.c b/interpreters/python/mount_modules.c index 89a7bc377a5..681031579c4 100644 --- a/interpreters/python/mount_modules.c +++ b/interpreters/python/mount_modules.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/interpreters/python/mount_modules.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/interpreters/quickjs/CMakeLists.txt b/interpreters/quickjs/CMakeLists.txt index eae0b3763bc..38c4b26e8f4 100644 --- a/interpreters/quickjs/CMakeLists.txt +++ b/interpreters/quickjs/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/interpreters/quickjs/CMakeLists.txt # +# 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 diff --git a/interpreters/quickjs/Make.defs b/interpreters/quickjs/Make.defs index d08b683fadb..8a39b85239b 100644 --- a/interpreters/quickjs/Make.defs +++ b/interpreters/quickjs/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/quickjs/Make.defs # +# 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/interpreters/quickjs/Makefile b/interpreters/quickjs/Makefile index 52d38c5c752..fb522ebcbf0 100644 --- a/interpreters/quickjs/Makefile +++ b/interpreters/quickjs/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/quickjs/Makefile # +# 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/interpreters/quickjs/qjsmini.c b/interpreters/quickjs/qjsmini.c index 18957f93954..d7932b81cb1 100644 --- a/interpreters/quickjs/qjsmini.c +++ b/interpreters/quickjs/qjsmini.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/interpreters/quickjs/qjsmini.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/interpreters/toywasm/Make.defs b/interpreters/toywasm/Make.defs index 70dcf9673ad..08f1857c56f 100644 --- a/interpreters/toywasm/Make.defs +++ b/interpreters/toywasm/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/toywasm/Make.defs # +# 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/interpreters/toywasm/Makefile b/interpreters/toywasm/Makefile index 4ed98d4c666..6a012b808be 100644 --- a/interpreters/toywasm/Makefile +++ b/interpreters/toywasm/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/toywasm/Makefile # +# 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/interpreters/toywasm/include/toywasm_config.h b/interpreters/toywasm/include/toywasm_config.h index 26db93dabe2..022a0fa588e 100644 --- a/interpreters/toywasm/include/toywasm_config.h +++ b/interpreters/toywasm/include/toywasm_config.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/interpreters/toywasm/include/toywasm_config.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 diff --git a/interpreters/toywasm/include/toywasm_version.h b/interpreters/toywasm/include/toywasm_version.h index d3d3025927b..903f6778fe4 100644 --- a/interpreters/toywasm/include/toywasm_version.h +++ b/interpreters/toywasm/include/toywasm_version.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/interpreters/toywasm/include/toywasm_version.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 diff --git a/interpreters/toywasm/regen.sh b/interpreters/toywasm/regen.sh index 091484cd087..927666be6ee 100755 --- a/interpreters/toywasm/regen.sh +++ b/interpreters/toywasm/regen.sh @@ -1,4 +1,25 @@ #! /bin/sh +############################################################################ +# apps/interpreters/toywasm/regen.sh +# +# 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. +# +############################################################################ # A script to generate a few files for nuttx-apps build. diff --git a/interpreters/toywasm/src/toywasm_config.c b/interpreters/toywasm/src/toywasm_config.c index 0f89af96470..2877e824cbe 100644 --- a/interpreters/toywasm/src/toywasm_config.c +++ b/interpreters/toywasm/src/toywasm_config.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/interpreters/toywasm/src/toywasm_config.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/interpreters/toywasm/tmpl/c-sections.in b/interpreters/toywasm/tmpl/c-sections.in index 46a3315126d..723a3f7b4a6 100644 --- a/interpreters/toywasm/tmpl/c-sections.in +++ b/interpreters/toywasm/tmpl/c-sections.in @@ -1,3 +1,23 @@ +/**************************************************************************** + * apps/interpreters/toywasm/tmpl/c-sections.in + * + * 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. + * + ****************************************************************************/ + /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/interpreters/toywasm/tmpl/license.in b/interpreters/toywasm/tmpl/license.in index 90da07e105a..97d002a8452 100644 --- a/interpreters/toywasm/tmpl/license.in +++ b/interpreters/toywasm/tmpl/license.in @@ -1,5 +1,5 @@ /**************************************************************************** - * apps/interpreters/toywasm/FILENAME + * apps/interpreters/toywasm/tmpl/license.in * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with diff --git a/interpreters/wamr/CMakeLists.txt b/interpreters/wamr/CMakeLists.txt index 827f13af0ff..f155e61bfc0 100644 --- a/interpreters/wamr/CMakeLists.txt +++ b/interpreters/wamr/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/interpreters/wamr/CMakeLists.txt # +# 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 diff --git a/interpreters/wamr/Make.defs b/interpreters/wamr/Make.defs index 0c53a3614e0..a7e45544b73 100644 --- a/interpreters/wamr/Make.defs +++ b/interpreters/wamr/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/wamr/Make.defs # +# 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/interpreters/wamr/Makefile b/interpreters/wamr/Makefile index f52d5adaaf9..4e78fa7bdfa 100644 --- a/interpreters/wamr/Makefile +++ b/interpreters/wamr/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/wamr/Makefile # +# 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/interpreters/wamr/Module.mk b/interpreters/wamr/Module.mk index b30eb6c8775..4e7de6334d6 100644 --- a/interpreters/wamr/Module.mk +++ b/interpreters/wamr/Module.mk @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/wamr/Module.mk # +# 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/interpreters/wamr/Toolchain.defs b/interpreters/wamr/Toolchain.defs index 98a84861898..c0a6c5b362f 100644 --- a/interpreters/wamr/Toolchain.defs +++ b/interpreters/wamr/Toolchain.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/wamr/Toolchain.defs # +# 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/interpreters/wamr/wamr_custom_init.c b/interpreters/wamr/wamr_custom_init.c index 1c4dd430368..9c895e0a227 100644 --- a/interpreters/wamr/wamr_custom_init.c +++ b/interpreters/wamr/wamr_custom_init.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/interpreters/wamr/wamr_custom_init.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/interpreters/wasm3/Make.defs b/interpreters/wasm3/Make.defs index db0e96c8cfb..a78510e7a45 100644 --- a/interpreters/wasm3/Make.defs +++ b/interpreters/wasm3/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/wasm3/Make.defs # +# 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/interpreters/wasm3/Makefile b/interpreters/wasm3/Makefile index eeb9aa3d404..2c87f998889 100644 --- a/interpreters/wasm3/Makefile +++ b/interpreters/wasm3/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/interpreters/wasm3/Makefile # +# 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 From 55e010a3f690ff72fc6c0800af355c34c9e903b4 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Fri, 20 Dec 2024 04:11:06 +0100 Subject: [PATCH 08/38] logging: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- logging/CMakeLists.txt | 2 ++ logging/Make.defs | 2 ++ logging/Makefile | 2 ++ logging/embedlog/CMakeLists.txt | 2 ++ logging/embedlog/Make.defs | 2 ++ logging/embedlog/Makefile | 2 ++ logging/nxscope/CMakeLists.txt | 2 ++ logging/nxscope/Make.defs | 2 ++ logging/nxscope/Makefile | 2 ++ logging/nxscope/nxscope.c | 2 ++ logging/nxscope/nxscope_chan.c | 2 ++ logging/nxscope/nxscope_idummy.c | 2 ++ logging/nxscope/nxscope_internals.c | 2 ++ logging/nxscope/nxscope_internals.h | 2 ++ logging/nxscope/nxscope_iser.c | 2 ++ logging/nxscope/nxscope_pser.c | 2 ++ 16 files changed, 32 insertions(+) diff --git a/logging/CMakeLists.txt b/logging/CMakeLists.txt index 4591b75c4f3..99615502ab2 100644 --- a/logging/CMakeLists.txt +++ b/logging/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/logging/CMakeLists.txt # +# 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 diff --git a/logging/Make.defs b/logging/Make.defs index 458180da9ca..ebfb6482939 100644 --- a/logging/Make.defs +++ b/logging/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/logging/Make.defs # +# 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/logging/Makefile b/logging/Makefile index e838062546d..f7971ba9598 100644 --- a/logging/Makefile +++ b/logging/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/logging/Makefile # +# 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/logging/embedlog/CMakeLists.txt b/logging/embedlog/CMakeLists.txt index edef25f1290..f9684075e28 100644 --- a/logging/embedlog/CMakeLists.txt +++ b/logging/embedlog/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/logging/embedlog/CMakeLists.txt # +# 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 diff --git a/logging/embedlog/Make.defs b/logging/embedlog/Make.defs index 4d3d4f7a98c..1b59e6ef3f5 100644 --- a/logging/embedlog/Make.defs +++ b/logging/embedlog/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/logging/embedlog/Make.defs # +# 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/logging/embedlog/Makefile b/logging/embedlog/Makefile index 747b7ec5cbc..e4e6f2b4c38 100644 --- a/logging/embedlog/Makefile +++ b/logging/embedlog/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/logging/embedlog/Makefile # +# 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/logging/nxscope/CMakeLists.txt b/logging/nxscope/CMakeLists.txt index 7a277e6a8b1..378ebefd565 100644 --- a/logging/nxscope/CMakeLists.txt +++ b/logging/nxscope/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/logging/nxscope/CMakeLists.txt # +# 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 diff --git a/logging/nxscope/Make.defs b/logging/nxscope/Make.defs index 1007faa7e37..92db87b7979 100644 --- a/logging/nxscope/Make.defs +++ b/logging/nxscope/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/logging/nxscope/Make.defs # +# 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/logging/nxscope/Makefile b/logging/nxscope/Makefile index d089adfd863..3e45148fc4a 100644 --- a/logging/nxscope/Makefile +++ b/logging/nxscope/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/logging/nxscope/Makefile # +# 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/logging/nxscope/nxscope.c b/logging/nxscope/nxscope.c index 011aa93c2a5..123ff047e3b 100644 --- a/logging/nxscope/nxscope.c +++ b/logging/nxscope/nxscope.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/logging/nxscope/nxscope.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/logging/nxscope/nxscope_chan.c b/logging/nxscope/nxscope_chan.c index eac54897c43..3af048c60d4 100644 --- a/logging/nxscope/nxscope_chan.c +++ b/logging/nxscope/nxscope_chan.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/logging/nxscope/nxscope_chan.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/logging/nxscope/nxscope_idummy.c b/logging/nxscope/nxscope_idummy.c index 650dbb3b8d0..83206e9e70e 100644 --- a/logging/nxscope/nxscope_idummy.c +++ b/logging/nxscope/nxscope_idummy.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/logging/nxscope/nxscope_idummy.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/logging/nxscope/nxscope_internals.c b/logging/nxscope/nxscope_internals.c index 0c25895df4d..43ffdd610e3 100644 --- a/logging/nxscope/nxscope_internals.c +++ b/logging/nxscope/nxscope_internals.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/logging/nxscope/nxscope_internals.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/logging/nxscope/nxscope_internals.h b/logging/nxscope/nxscope_internals.h index cfb921baba9..622268b67ab 100644 --- a/logging/nxscope/nxscope_internals.h +++ b/logging/nxscope/nxscope_internals.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/logging/nxscope/nxscope_internals.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 diff --git a/logging/nxscope/nxscope_iser.c b/logging/nxscope/nxscope_iser.c index d91cf61d52d..c36d6e3504e 100644 --- a/logging/nxscope/nxscope_iser.c +++ b/logging/nxscope/nxscope_iser.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/logging/nxscope/nxscope_iser.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/logging/nxscope/nxscope_pser.c b/logging/nxscope/nxscope_pser.c index ca0648fead8..95bbb60d883 100644 --- a/logging/nxscope/nxscope_pser.c +++ b/logging/nxscope/nxscope_pser.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/logging/nxscope/nxscope_pser.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 From ccba9e1cfb5eb7adf03be25201cab28643410a16 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Fri, 20 Dec 2024 04:22:12 +0100 Subject: [PATCH 09/38] lte: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- lte/CMakeLists.txt | 2 + lte/Make.defs | 41 +++++++------------ lte/Makefile | 41 +++++++------------ lte/alt1250/CMakeLists.txt | 2 + lte/alt1250/Make.defs | 2 + lte/alt1250/Makefile | 2 + lte/alt1250/alt1250_atcmd.c | 2 + lte/alt1250/alt1250_atcmd.h | 2 + lte/alt1250/alt1250_container.c | 2 + lte/alt1250/alt1250_container.h | 2 + lte/alt1250/alt1250_daemon.h | 2 + lte/alt1250/alt1250_dbg.h | 2 + lte/alt1250/alt1250_devevent.c | 2 + lte/alt1250/alt1250_devevent.h | 2 + lte/alt1250/alt1250_devif.c | 2 + lte/alt1250/alt1250_devif.h | 2 + lte/alt1250/alt1250_main.c | 2 + lte/alt1250/alt1250_netdev.c | 2 + lte/alt1250/alt1250_netdev.h | 2 + lte/alt1250/alt1250_postproc.h | 2 + lte/alt1250/alt1250_reset_seq.c | 2 + lte/alt1250/alt1250_reset_seq.h | 2 + lte/alt1250/alt1250_select.c | 2 + lte/alt1250/alt1250_select.h | 2 + lte/alt1250/alt1250_socket.c | 2 + lte/alt1250/alt1250_socket.h | 2 + lte/alt1250/alt1250_usockevent.c | 2 + lte/alt1250/alt1250_usockevent.h | 2 + lte/alt1250/alt1250_usockif.c | 2 + lte/alt1250/alt1250_usockif.h | 2 + lte/alt1250/alt1250_util.c | 2 + lte/alt1250/alt1250_util.h | 2 + lte/alt1250/callback_handlers/alt1250_evt.c | 2 + lte/alt1250/callback_handlers/alt1250_evt.h | 2 + .../usock_handlers/alt1250_accepthdlr.c | 2 + lte/alt1250/usock_handlers/alt1250_bindhdlr.c | 2 + .../usock_handlers/alt1250_closehdlr.c | 2 + .../usock_handlers/alt1250_connecthdlr.c | 2 + lte/alt1250/usock_handlers/alt1250_fwupdate.h | 2 + .../usock_handlers/alt1250_getpeernamehdlr.c | 2 + .../usock_handlers/alt1250_getsocknamehdlr.c | 2 + .../usock_handlers/alt1250_getsockopthdlr.c | 2 + .../alt1250_ioctl_denyinetsock.c | 2 + .../usock_handlers/alt1250_ioctl_event.c | 2 + .../usock_handlers/alt1250_ioctl_fwupdate.c | 2 + .../usock_handlers/alt1250_ioctl_ifreq.c | 2 + .../usock_handlers/alt1250_ioctl_ltecmd.c | 2 + .../usock_handlers/alt1250_ioctl_lwm2m.c | 2 + .../usock_handlers/alt1250_ioctl_normal.c | 2 + .../usock_handlers/alt1250_ioctl_other.c | 2 + .../usock_handlers/alt1250_ioctl_power.c | 2 + .../usock_handlers/alt1250_ioctl_subhdlr.h | 2 + .../usock_handlers/alt1250_ioctlhdlr.c | 2 + .../usock_handlers/alt1250_listenhdlr.c | 2 + .../usock_handlers/alt1250_recvfromhdlr.c | 2 + .../usock_handlers/alt1250_sendtohdlr.c | 2 + .../usock_handlers/alt1250_setsockopthdlr.c | 2 + .../usock_handlers/alt1250_shutdownhdlr.c | 2 + lte/alt1250/usock_handlers/alt1250_sms.c | 2 + lte/alt1250/usock_handlers/alt1250_sms.h | 2 + .../usock_handlers/alt1250_sockethdlr.c | 2 + .../usock_handlers/alt1250_usrsock_hdlr.h | 2 + lte/lapi/CMakeLists.txt | 2 + lte/lapi/Make.defs | 2 + lte/lapi/Makefile | 2 + lte/lapi/src/Make.defs | 2 + lte/lapi/src/lapi_dbg.h | 2 + lte/lapi/src/lapi_evt.c | 2 + lte/lapi/src/lapi_firmware.c | 2 + lte/lapi/src/lapi_log.c | 2 + lte/lapi/src/lapi_lwm2m.c | 2 + lte/lapi/src/lapi_net.c | 2 + lte/lapi/src/lapi_other.c | 2 + lte/lapi/src/lapi_pdn.c | 2 + lte/lapi/src/lapi_pin.c | 2 + lte/lapi/src/lapi_power.c | 2 + lte/lapi/src/lapi_psave.c | 2 + lte/lapi/src/lapi_radio.c | 2 + lte/lapi/src/lapi_sim.c | 2 + 79 files changed, 182 insertions(+), 54 deletions(-) diff --git a/lte/CMakeLists.txt b/lte/CMakeLists.txt index 01e72ea15bd..44b08a29240 100644 --- a/lte/CMakeLists.txt +++ b/lte/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/lte/CMakeLists.txt # +# 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 diff --git a/lte/Make.defs b/lte/Make.defs index 89c366ca2fa..70956ea219a 100644 --- a/lte/Make.defs +++ b/lte/Make.defs @@ -1,36 +1,23 @@ ############################################################################ # apps/lte/Make.defs # -# Copyright 2021 Sony Semiconductor Solutions Corporation +# SPDX-License-Identifier: Apache-2.0 # -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: +# 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 # -# 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 -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# 3. Neither the name of Sony Semiconductor Solutions Corporation nor -# the names of its contributors may be used to endorse or promote -# products derived from this software without specific prior written -# permission. +# http://www.apache.org/licenses/LICENSE-2.0 # -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 OWNER 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. +# 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. # -############################################################################ +# ############################################################################## include $(wildcard lte/*/Make.defs) diff --git a/lte/Makefile b/lte/Makefile index 79ab0d8fbba..4fe43e7e942 100644 --- a/lte/Makefile +++ b/lte/Makefile @@ -1,37 +1,24 @@ ############################################################################ # apps/lte/Makefile # -# Copyright 2021 Sony Semiconductor Solutions Corporation +# SPDX-License-Identifier: Apache-2.0 # -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: +# 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 # -# 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 -# notice, this list of conditions and the following disclaimer in -# the documentation and/or other materials provided with the -# distribution. -# 3. Neither the name of Sony Semiconductor Solutions Corporation nor -# the names of its contributors may be used to endorse or promote -# products derived from this software without specific prior written -# permission. +# http://www.apache.org/licenses/LICENSE-2.0 # -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 OWNER 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. +# 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. # -############################################################################ +# ############################################################################## MENUDESC = "LTE Libraries and NSH Add-Ons" diff --git a/lte/alt1250/CMakeLists.txt b/lte/alt1250/CMakeLists.txt index 9ed2f85ec36..c54f8e1e072 100644 --- a/lte/alt1250/CMakeLists.txt +++ b/lte/alt1250/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/lte/alt1250/CMakeLists.txt # +# 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 diff --git a/lte/alt1250/Make.defs b/lte/alt1250/Make.defs index e5b7a3f9298..4b0fbab09f9 100644 --- a/lte/alt1250/Make.defs +++ b/lte/alt1250/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/lte/alt1250/Make.defs # +# 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/lte/alt1250/Makefile b/lte/alt1250/Makefile index 138b2bed4b5..7f1ee1e2c24 100644 --- a/lte/alt1250/Makefile +++ b/lte/alt1250/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/lte/alt1250/Makefile # +# 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/lte/alt1250/alt1250_atcmd.c b/lte/alt1250/alt1250_atcmd.c index bdd7e285351..2b45585181b 100644 --- a/lte/alt1250/alt1250_atcmd.c +++ b/lte/alt1250/alt1250_atcmd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_atcmd.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/lte/alt1250/alt1250_atcmd.h b/lte/alt1250/alt1250_atcmd.h index d732a331384..4a9e275e636 100644 --- a/lte/alt1250/alt1250_atcmd.h +++ b/lte/alt1250/alt1250_atcmd.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_atcmd.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 diff --git a/lte/alt1250/alt1250_container.c b/lte/alt1250/alt1250_container.c index 5c285011023..21ec1b31a29 100644 --- a/lte/alt1250/alt1250_container.c +++ b/lte/alt1250/alt1250_container.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_container.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/lte/alt1250/alt1250_container.h b/lte/alt1250/alt1250_container.h index 894ff5aa472..2e45e12ce95 100644 --- a/lte/alt1250/alt1250_container.h +++ b/lte/alt1250/alt1250_container.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_container.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 diff --git a/lte/alt1250/alt1250_daemon.h b/lte/alt1250/alt1250_daemon.h index c385d23ce75..45d8a923b8c 100644 --- a/lte/alt1250/alt1250_daemon.h +++ b/lte/alt1250/alt1250_daemon.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_daemon.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 diff --git a/lte/alt1250/alt1250_dbg.h b/lte/alt1250/alt1250_dbg.h index edffed181cb..82b9bb27af6 100644 --- a/lte/alt1250/alt1250_dbg.h +++ b/lte/alt1250/alt1250_dbg.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_dbg.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 diff --git a/lte/alt1250/alt1250_devevent.c b/lte/alt1250/alt1250_devevent.c index f58fe71708a..cdd2da524d4 100644 --- a/lte/alt1250/alt1250_devevent.c +++ b/lte/alt1250/alt1250_devevent.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_devevent.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/lte/alt1250/alt1250_devevent.h b/lte/alt1250/alt1250_devevent.h index 03667fe0bcc..c4e27aa229c 100644 --- a/lte/alt1250/alt1250_devevent.h +++ b/lte/alt1250/alt1250_devevent.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_devevent.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 diff --git a/lte/alt1250/alt1250_devif.c b/lte/alt1250/alt1250_devif.c index d58f3c75ffc..a742938fbf7 100644 --- a/lte/alt1250/alt1250_devif.c +++ b/lte/alt1250/alt1250_devif.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_devif.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/lte/alt1250/alt1250_devif.h b/lte/alt1250/alt1250_devif.h index 5a01b647df7..c537754df19 100644 --- a/lte/alt1250/alt1250_devif.h +++ b/lte/alt1250/alt1250_devif.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_devif.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 diff --git a/lte/alt1250/alt1250_main.c b/lte/alt1250/alt1250_main.c index d78adacc402..db40a6bf92c 100644 --- a/lte/alt1250/alt1250_main.c +++ b/lte/alt1250/alt1250_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_main.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/lte/alt1250/alt1250_netdev.c b/lte/alt1250/alt1250_netdev.c index 8e40afd92b0..f0e8719fa7f 100644 --- a/lte/alt1250/alt1250_netdev.c +++ b/lte/alt1250/alt1250_netdev.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_netdev.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/lte/alt1250/alt1250_netdev.h b/lte/alt1250/alt1250_netdev.h index a6931e37e7c..3d9c67f4295 100644 --- a/lte/alt1250/alt1250_netdev.h +++ b/lte/alt1250/alt1250_netdev.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_netdev.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 diff --git a/lte/alt1250/alt1250_postproc.h b/lte/alt1250/alt1250_postproc.h index 25cd32a2e05..4e4b819fe11 100644 --- a/lte/alt1250/alt1250_postproc.h +++ b/lte/alt1250/alt1250_postproc.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_postproc.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 diff --git a/lte/alt1250/alt1250_reset_seq.c b/lte/alt1250/alt1250_reset_seq.c index 3dc836803c5..f6080887c49 100644 --- a/lte/alt1250/alt1250_reset_seq.c +++ b/lte/alt1250/alt1250_reset_seq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_reset_seq.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/lte/alt1250/alt1250_reset_seq.h b/lte/alt1250/alt1250_reset_seq.h index 720a948adba..d5769522fd3 100644 --- a/lte/alt1250/alt1250_reset_seq.h +++ b/lte/alt1250/alt1250_reset_seq.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_reset_seq.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 diff --git a/lte/alt1250/alt1250_select.c b/lte/alt1250/alt1250_select.c index e608e3532cf..dd44d38f243 100644 --- a/lte/alt1250/alt1250_select.c +++ b/lte/alt1250/alt1250_select.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_select.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/lte/alt1250/alt1250_select.h b/lte/alt1250/alt1250_select.h index 4336e5f66a8..c386255343a 100644 --- a/lte/alt1250/alt1250_select.h +++ b/lte/alt1250/alt1250_select.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_select.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 diff --git a/lte/alt1250/alt1250_socket.c b/lte/alt1250/alt1250_socket.c index 94af4bff5a4..d6eccf7104a 100644 --- a/lte/alt1250/alt1250_socket.c +++ b/lte/alt1250/alt1250_socket.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_socket.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/lte/alt1250/alt1250_socket.h b/lte/alt1250/alt1250_socket.h index 64409e96c98..77b8286ae40 100644 --- a/lte/alt1250/alt1250_socket.h +++ b/lte/alt1250/alt1250_socket.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_socket.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 diff --git a/lte/alt1250/alt1250_usockevent.c b/lte/alt1250/alt1250_usockevent.c index 9c4b637a5aa..5bc76555bd7 100644 --- a/lte/alt1250/alt1250_usockevent.c +++ b/lte/alt1250/alt1250_usockevent.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_usockevent.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/lte/alt1250/alt1250_usockevent.h b/lte/alt1250/alt1250_usockevent.h index 6309ee85bb8..922f0b3a436 100644 --- a/lte/alt1250/alt1250_usockevent.h +++ b/lte/alt1250/alt1250_usockevent.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_usockevent.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 diff --git a/lte/alt1250/alt1250_usockif.c b/lte/alt1250/alt1250_usockif.c index f85d05a6186..ec188775ceb 100644 --- a/lte/alt1250/alt1250_usockif.c +++ b/lte/alt1250/alt1250_usockif.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_usockif.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/lte/alt1250/alt1250_usockif.h b/lte/alt1250/alt1250_usockif.h index df33f4cc73d..2ffcc02e46a 100644 --- a/lte/alt1250/alt1250_usockif.h +++ b/lte/alt1250/alt1250_usockif.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_usockif.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 diff --git a/lte/alt1250/alt1250_util.c b/lte/alt1250/alt1250_util.c index 9346a6f4214..75fc00a3d33 100644 --- a/lte/alt1250/alt1250_util.c +++ b/lte/alt1250/alt1250_util.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_util.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/lte/alt1250/alt1250_util.h b/lte/alt1250/alt1250_util.h index 85be0c992e1..ac60e05aa5c 100644 --- a/lte/alt1250/alt1250_util.h +++ b/lte/alt1250/alt1250_util.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/alt1250_util.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 diff --git a/lte/alt1250/callback_handlers/alt1250_evt.c b/lte/alt1250/callback_handlers/alt1250_evt.c index 73bf1a840c2..59cfe0bed95 100644 --- a/lte/alt1250/callback_handlers/alt1250_evt.c +++ b/lte/alt1250/callback_handlers/alt1250_evt.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/callback_handlers/alt1250_evt.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/lte/alt1250/callback_handlers/alt1250_evt.h b/lte/alt1250/callback_handlers/alt1250_evt.h index b87a4fcc884..9df097fe83b 100644 --- a/lte/alt1250/callback_handlers/alt1250_evt.h +++ b/lte/alt1250/callback_handlers/alt1250_evt.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/callback_handlers/alt1250_evt.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 diff --git a/lte/alt1250/usock_handlers/alt1250_accepthdlr.c b/lte/alt1250/usock_handlers/alt1250_accepthdlr.c index 9b2bf1d526d..4151425d802 100644 --- a/lte/alt1250/usock_handlers/alt1250_accepthdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_accepthdlr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_accepthdlr.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/lte/alt1250/usock_handlers/alt1250_bindhdlr.c b/lte/alt1250/usock_handlers/alt1250_bindhdlr.c index b79ea10cb65..85a12b0ee34 100644 --- a/lte/alt1250/usock_handlers/alt1250_bindhdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_bindhdlr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_bindhdlr.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/lte/alt1250/usock_handlers/alt1250_closehdlr.c b/lte/alt1250/usock_handlers/alt1250_closehdlr.c index c2c25dd1a48..6391046df67 100644 --- a/lte/alt1250/usock_handlers/alt1250_closehdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_closehdlr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_closehdlr.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/lte/alt1250/usock_handlers/alt1250_connecthdlr.c b/lte/alt1250/usock_handlers/alt1250_connecthdlr.c index 7df629b846f..cad728ab392 100644 --- a/lte/alt1250/usock_handlers/alt1250_connecthdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_connecthdlr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_connecthdlr.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/lte/alt1250/usock_handlers/alt1250_fwupdate.h b/lte/alt1250/usock_handlers/alt1250_fwupdate.h index 23b23266819..38281cdc01c 100644 --- a/lte/alt1250/usock_handlers/alt1250_fwupdate.h +++ b/lte/alt1250/usock_handlers/alt1250_fwupdate.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_fwupdate.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 diff --git a/lte/alt1250/usock_handlers/alt1250_getpeernamehdlr.c b/lte/alt1250/usock_handlers/alt1250_getpeernamehdlr.c index aa42593255d..5374b06c81e 100644 --- a/lte/alt1250/usock_handlers/alt1250_getpeernamehdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_getpeernamehdlr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_getpeernamehdlr.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/lte/alt1250/usock_handlers/alt1250_getsocknamehdlr.c b/lte/alt1250/usock_handlers/alt1250_getsocknamehdlr.c index b6df948874f..23350cf1ab2 100644 --- a/lte/alt1250/usock_handlers/alt1250_getsocknamehdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_getsocknamehdlr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_getsocknamehdlr.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/lte/alt1250/usock_handlers/alt1250_getsockopthdlr.c b/lte/alt1250/usock_handlers/alt1250_getsockopthdlr.c index 28174fce83f..2805cd57472 100644 --- a/lte/alt1250/usock_handlers/alt1250_getsockopthdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_getsockopthdlr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_getsockopthdlr.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/lte/alt1250/usock_handlers/alt1250_ioctl_denyinetsock.c b/lte/alt1250/usock_handlers/alt1250_ioctl_denyinetsock.c index 8de3ff1423c..d85ca7ac054 100644 --- a/lte/alt1250/usock_handlers/alt1250_ioctl_denyinetsock.c +++ b/lte/alt1250/usock_handlers/alt1250_ioctl_denyinetsock.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_ioctl_denyinetsock.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/lte/alt1250/usock_handlers/alt1250_ioctl_event.c b/lte/alt1250/usock_handlers/alt1250_ioctl_event.c index 913f456d4e7..cf7ee532aff 100644 --- a/lte/alt1250/usock_handlers/alt1250_ioctl_event.c +++ b/lte/alt1250/usock_handlers/alt1250_ioctl_event.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_ioctl_event.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/lte/alt1250/usock_handlers/alt1250_ioctl_fwupdate.c b/lte/alt1250/usock_handlers/alt1250_ioctl_fwupdate.c index 7fa67e29871..dfd6c41ae91 100644 --- a/lte/alt1250/usock_handlers/alt1250_ioctl_fwupdate.c +++ b/lte/alt1250/usock_handlers/alt1250_ioctl_fwupdate.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_ioctl_fwupdate.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/lte/alt1250/usock_handlers/alt1250_ioctl_ifreq.c b/lte/alt1250/usock_handlers/alt1250_ioctl_ifreq.c index 875361681b2..6a948c653ae 100644 --- a/lte/alt1250/usock_handlers/alt1250_ioctl_ifreq.c +++ b/lte/alt1250/usock_handlers/alt1250_ioctl_ifreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_ioctl_ifreq.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/lte/alt1250/usock_handlers/alt1250_ioctl_ltecmd.c b/lte/alt1250/usock_handlers/alt1250_ioctl_ltecmd.c index 82e211f6f62..889f9b41f2d 100644 --- a/lte/alt1250/usock_handlers/alt1250_ioctl_ltecmd.c +++ b/lte/alt1250/usock_handlers/alt1250_ioctl_ltecmd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_ioctl_ltecmd.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/lte/alt1250/usock_handlers/alt1250_ioctl_lwm2m.c b/lte/alt1250/usock_handlers/alt1250_ioctl_lwm2m.c index ea82ad92b8f..e68704a8723 100644 --- a/lte/alt1250/usock_handlers/alt1250_ioctl_lwm2m.c +++ b/lte/alt1250/usock_handlers/alt1250_ioctl_lwm2m.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_ioctl_lwm2m.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/lte/alt1250/usock_handlers/alt1250_ioctl_normal.c b/lte/alt1250/usock_handlers/alt1250_ioctl_normal.c index 8c116833ae6..90b3a678f12 100644 --- a/lte/alt1250/usock_handlers/alt1250_ioctl_normal.c +++ b/lte/alt1250/usock_handlers/alt1250_ioctl_normal.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_ioctl_normal.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/lte/alt1250/usock_handlers/alt1250_ioctl_other.c b/lte/alt1250/usock_handlers/alt1250_ioctl_other.c index 5010c84d5b8..057553a5cd6 100644 --- a/lte/alt1250/usock_handlers/alt1250_ioctl_other.c +++ b/lte/alt1250/usock_handlers/alt1250_ioctl_other.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_ioctl_other.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/lte/alt1250/usock_handlers/alt1250_ioctl_power.c b/lte/alt1250/usock_handlers/alt1250_ioctl_power.c index 21e62462ddf..c910060c168 100644 --- a/lte/alt1250/usock_handlers/alt1250_ioctl_power.c +++ b/lte/alt1250/usock_handlers/alt1250_ioctl_power.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_ioctl_power.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/lte/alt1250/usock_handlers/alt1250_ioctl_subhdlr.h b/lte/alt1250/usock_handlers/alt1250_ioctl_subhdlr.h index 6ce7a1b74e7..fcd3b00f8ee 100644 --- a/lte/alt1250/usock_handlers/alt1250_ioctl_subhdlr.h +++ b/lte/alt1250/usock_handlers/alt1250_ioctl_subhdlr.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_ioctl_subhdlr.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 diff --git a/lte/alt1250/usock_handlers/alt1250_ioctlhdlr.c b/lte/alt1250/usock_handlers/alt1250_ioctlhdlr.c index 568d199282d..43d638024e7 100644 --- a/lte/alt1250/usock_handlers/alt1250_ioctlhdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_ioctlhdlr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_ioctlhdlr.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/lte/alt1250/usock_handlers/alt1250_listenhdlr.c b/lte/alt1250/usock_handlers/alt1250_listenhdlr.c index a3c3bed263a..4c66beeafe3 100644 --- a/lte/alt1250/usock_handlers/alt1250_listenhdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_listenhdlr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_listenhdlr.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/lte/alt1250/usock_handlers/alt1250_recvfromhdlr.c b/lte/alt1250/usock_handlers/alt1250_recvfromhdlr.c index 906a0b9bb81..b2c45f1391b 100644 --- a/lte/alt1250/usock_handlers/alt1250_recvfromhdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_recvfromhdlr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_recvfromhdlr.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/lte/alt1250/usock_handlers/alt1250_sendtohdlr.c b/lte/alt1250/usock_handlers/alt1250_sendtohdlr.c index e47b26d9f5d..2894354f23c 100644 --- a/lte/alt1250/usock_handlers/alt1250_sendtohdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_sendtohdlr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_sendtohdlr.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/lte/alt1250/usock_handlers/alt1250_setsockopthdlr.c b/lte/alt1250/usock_handlers/alt1250_setsockopthdlr.c index f4c5106b116..247053bedf4 100644 --- a/lte/alt1250/usock_handlers/alt1250_setsockopthdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_setsockopthdlr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_setsockopthdlr.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/lte/alt1250/usock_handlers/alt1250_shutdownhdlr.c b/lte/alt1250/usock_handlers/alt1250_shutdownhdlr.c index 0c8a9765b00..30a507c52f3 100644 --- a/lte/alt1250/usock_handlers/alt1250_shutdownhdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_shutdownhdlr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_shutdownhdlr.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/lte/alt1250/usock_handlers/alt1250_sms.c b/lte/alt1250/usock_handlers/alt1250_sms.c index 610669cfc5e..5f70beff846 100644 --- a/lte/alt1250/usock_handlers/alt1250_sms.c +++ b/lte/alt1250/usock_handlers/alt1250_sms.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_sms.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/lte/alt1250/usock_handlers/alt1250_sms.h b/lte/alt1250/usock_handlers/alt1250_sms.h index 8f0707a80b8..11f9b4dce36 100644 --- a/lte/alt1250/usock_handlers/alt1250_sms.h +++ b/lte/alt1250/usock_handlers/alt1250_sms.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_sms.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 diff --git a/lte/alt1250/usock_handlers/alt1250_sockethdlr.c b/lte/alt1250/usock_handlers/alt1250_sockethdlr.c index 8d632187950..e6046f36e4c 100644 --- a/lte/alt1250/usock_handlers/alt1250_sockethdlr.c +++ b/lte/alt1250/usock_handlers/alt1250_sockethdlr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_sockethdlr.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/lte/alt1250/usock_handlers/alt1250_usrsock_hdlr.h b/lte/alt1250/usock_handlers/alt1250_usrsock_hdlr.h index 7bd85b2ae8e..5142389fc18 100644 --- a/lte/alt1250/usock_handlers/alt1250_usrsock_hdlr.h +++ b/lte/alt1250/usock_handlers/alt1250_usrsock_hdlr.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/alt1250/usock_handlers/alt1250_usrsock_hdlr.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 diff --git a/lte/lapi/CMakeLists.txt b/lte/lapi/CMakeLists.txt index 53ea4de4a44..45c0d852d22 100644 --- a/lte/lapi/CMakeLists.txt +++ b/lte/lapi/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/lte/lapi/CMakeLists.txt # +# 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 diff --git a/lte/lapi/Make.defs b/lte/lapi/Make.defs index 77996b20e17..9fd239fc243 100644 --- a/lte/lapi/Make.defs +++ b/lte/lapi/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/lte/lapi/Make.defs # +# 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/lte/lapi/Makefile b/lte/lapi/Makefile index 55d9362f7cc..936206501f4 100644 --- a/lte/lapi/Makefile +++ b/lte/lapi/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/lte/lapi/Makefile # +# 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/lte/lapi/src/Make.defs b/lte/lapi/src/Make.defs index daa28436505..4a6816e8644 100644 --- a/lte/lapi/src/Make.defs +++ b/lte/lapi/src/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/lte/lapi/src/Make.defs # +# 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/lte/lapi/src/lapi_dbg.h b/lte/lapi/src/lapi_dbg.h index 092e13f88d1..403847653af 100644 --- a/lte/lapi/src/lapi_dbg.h +++ b/lte/lapi/src/lapi_dbg.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/lapi/src/lapi_dbg.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 diff --git a/lte/lapi/src/lapi_evt.c b/lte/lapi/src/lapi_evt.c index cc047584b17..3826a5073bc 100644 --- a/lte/lapi/src/lapi_evt.c +++ b/lte/lapi/src/lapi_evt.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/lapi/src/lapi_evt.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/lte/lapi/src/lapi_firmware.c b/lte/lapi/src/lapi_firmware.c index a02113f0a53..203c4afb7ff 100644 --- a/lte/lapi/src/lapi_firmware.c +++ b/lte/lapi/src/lapi_firmware.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/lapi/src/lapi_firmware.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/lte/lapi/src/lapi_log.c b/lte/lapi/src/lapi_log.c index 547b1b1fd95..1ddf2e4f2c8 100644 --- a/lte/lapi/src/lapi_log.c +++ b/lte/lapi/src/lapi_log.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/lapi/src/lapi_log.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/lte/lapi/src/lapi_lwm2m.c b/lte/lapi/src/lapi_lwm2m.c index 8542f680763..47a5d9f59c5 100644 --- a/lte/lapi/src/lapi_lwm2m.c +++ b/lte/lapi/src/lapi_lwm2m.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/lapi/src/lapi_lwm2m.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/lte/lapi/src/lapi_net.c b/lte/lapi/src/lapi_net.c index e68583b3523..9eaae54afb4 100644 --- a/lte/lapi/src/lapi_net.c +++ b/lte/lapi/src/lapi_net.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/lapi/src/lapi_net.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/lte/lapi/src/lapi_other.c b/lte/lapi/src/lapi_other.c index 4897bed85b0..b7d6a2b64b6 100644 --- a/lte/lapi/src/lapi_other.c +++ b/lte/lapi/src/lapi_other.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/lapi/src/lapi_other.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/lte/lapi/src/lapi_pdn.c b/lte/lapi/src/lapi_pdn.c index 5fc0451b0c4..def048d70fe 100644 --- a/lte/lapi/src/lapi_pdn.c +++ b/lte/lapi/src/lapi_pdn.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/lapi/src/lapi_pdn.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/lte/lapi/src/lapi_pin.c b/lte/lapi/src/lapi_pin.c index 31135b7fa56..0a0496fa7c4 100644 --- a/lte/lapi/src/lapi_pin.c +++ b/lte/lapi/src/lapi_pin.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/lapi/src/lapi_pin.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/lte/lapi/src/lapi_power.c b/lte/lapi/src/lapi_power.c index c37e45474fe..31ae86df08b 100644 --- a/lte/lapi/src/lapi_power.c +++ b/lte/lapi/src/lapi_power.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/lapi/src/lapi_power.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/lte/lapi/src/lapi_psave.c b/lte/lapi/src/lapi_psave.c index 10defd44c30..8bc3aab0281 100644 --- a/lte/lapi/src/lapi_psave.c +++ b/lte/lapi/src/lapi_psave.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/lapi/src/lapi_psave.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/lte/lapi/src/lapi_radio.c b/lte/lapi/src/lapi_radio.c index 0ba12362f62..09ce0aa0585 100644 --- a/lte/lapi/src/lapi_radio.c +++ b/lte/lapi/src/lapi_radio.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/lapi/src/lapi_radio.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/lte/lapi/src/lapi_sim.c b/lte/lapi/src/lapi_sim.c index dcf7efc1bc3..7de40441767 100644 --- a/lte/lapi/src/lapi_sim.c +++ b/lte/lapi/src/lapi_sim.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/lte/lapi/src/lapi_sim.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 From 0dc42459f07fd3183d62ab1770abc00bb7495a76 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Fri, 20 Dec 2024 05:33:23 +0100 Subject: [PATCH 10/38] math: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- math/CMakeLists.txt | 2 ++ math/Make.defs | 2 ++ math/Makefile | 2 ++ math/gemmlowp/CMakeLists.txt | 2 ++ math/gemmlowp/Make.defs | 2 ++ math/gemmlowp/Makefile | 2 ++ math/kissfft/CMakeLists.txt | 2 ++ math/kissfft/Make.defs | 2 ++ math/kissfft/Makefile | 2 ++ math/libtommath/CMakeLists.txt | 2 ++ math/libtommath/Make.defs | 2 ++ math/libtommath/Makefile | 2 ++ math/ruy/CMakeLists.txt | 2 ++ math/ruy/Make.defs | 2 ++ math/ruy/Makefile | 4 +++- 15 files changed, 31 insertions(+), 1 deletion(-) diff --git a/math/CMakeLists.txt b/math/CMakeLists.txt index a6f7d9ccc57..1b9defeae0f 100644 --- a/math/CMakeLists.txt +++ b/math/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/math/CMakeLists.txt # +# 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 diff --git a/math/Make.defs b/math/Make.defs index 36941e940a0..33017a5a22f 100644 --- a/math/Make.defs +++ b/math/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/math/Make.defs # +# 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/math/Makefile b/math/Makefile index de43fcc1908..e90cc1048b3 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/math/Makefile # +# 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/math/gemmlowp/CMakeLists.txt b/math/gemmlowp/CMakeLists.txt index acff6f11304..b13b1279485 100644 --- a/math/gemmlowp/CMakeLists.txt +++ b/math/gemmlowp/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/math/gemmlowp/CMakeLists.txt # +# 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 diff --git a/math/gemmlowp/Make.defs b/math/gemmlowp/Make.defs index ecd7abd03fd..a89b55ebb29 100644 --- a/math/gemmlowp/Make.defs +++ b/math/gemmlowp/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/math/gemmlowp/Make.defs # +# 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/math/gemmlowp/Makefile b/math/gemmlowp/Makefile index 3f5b76456ac..cceda46d5b5 100644 --- a/math/gemmlowp/Makefile +++ b/math/gemmlowp/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/math/gemmlowp/Makefile # +# 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/math/kissfft/CMakeLists.txt b/math/kissfft/CMakeLists.txt index 86841307542..7273f0e091b 100644 --- a/math/kissfft/CMakeLists.txt +++ b/math/kissfft/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/math/kissfft/CMakeLists.txt # +# 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 diff --git a/math/kissfft/Make.defs b/math/kissfft/Make.defs index 3da1486c9b2..847608309e7 100644 --- a/math/kissfft/Make.defs +++ b/math/kissfft/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/math/kissfft/Make.defs # +# 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/math/kissfft/Makefile b/math/kissfft/Makefile index 3a3b2e824c9..ff4fe9ee3bc 100644 --- a/math/kissfft/Makefile +++ b/math/kissfft/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/math/kissfft/Makefile # +# 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/math/libtommath/CMakeLists.txt b/math/libtommath/CMakeLists.txt index b6c5c6f0a21..211c755e198 100644 --- a/math/libtommath/CMakeLists.txt +++ b/math/libtommath/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/math/libtommath/CMakeLists.txt # +# 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 diff --git a/math/libtommath/Make.defs b/math/libtommath/Make.defs index 6531ad3ae33..61dcb1f655b 100644 --- a/math/libtommath/Make.defs +++ b/math/libtommath/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/math/libtommath/Make.defs # +# 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/math/libtommath/Makefile b/math/libtommath/Makefile index 4c54d99edb4..91b47d46376 100644 --- a/math/libtommath/Makefile +++ b/math/libtommath/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/math/libtommath/Makefile # +# 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/math/ruy/CMakeLists.txt b/math/ruy/CMakeLists.txt index b31f497f271..79ac2ac2b0d 100644 --- a/math/ruy/CMakeLists.txt +++ b/math/ruy/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/math/ruy/CMakeLists.txt # +# 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 diff --git a/math/ruy/Make.defs b/math/ruy/Make.defs index bdba60a4857..bd91a3663ec 100644 --- a/math/ruy/Make.defs +++ b/math/ruy/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/math/ruy/Make.defs # +# 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/math/ruy/Makefile b/math/ruy/Makefile index aa9b2be5e7b..188b81fff93 100644 --- a/math/ruy/Makefile +++ b/math/ruy/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/math/ruy/Makefile # +# 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 @@ -39,4 +41,4 @@ endif CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/math/ruy/ruy CXXFLAGS += ${INCDIR_PREFIX}$(APPDIR)/math/ruy/ruy -include $(APPDIR)/Application.mk \ No newline at end of file +include $(APPDIR)/Application.mk From 1fadb939df8959940ea4cd6602980c2fd588b3db Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Fri, 20 Dec 2024 05:44:24 +0100 Subject: [PATCH 11/38] mlearning: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- mlearning/CMakeLists.txt | 2 ++ mlearning/Make.defs | 2 ++ mlearning/Makefile | 2 ++ mlearning/cmsis-nn/CMakeLists.txt | 2 ++ mlearning/cmsis-nn/Make.defs | 2 ++ mlearning/cmsis-nn/Makefile | 2 ++ mlearning/cmsis/Make.defs | 2 ++ mlearning/cmsis/Makefile | 2 ++ mlearning/cmsis/cmsis-nn-support_nnabla.patch | 20 +++++++++---------- mlearning/cmsis/libcmsisdsp/Make.defs | 2 ++ mlearning/cmsis/libcmsisdsp/Makefile | 2 ++ mlearning/cmsis/libcmsisnn/Make.defs | 2 ++ mlearning/cmsis/libcmsisnn/Makefile | 2 ++ mlearning/darknet/Make.defs | 2 ++ mlearning/darknet/Makefile | 2 ++ mlearning/libnnablart/Make.defs | 2 ++ mlearning/libnnablart/Makefile | 2 ++ mlearning/tflite-micro/CMakeLists.txt | 2 ++ mlearning/tflite-micro/Make.defs | 2 ++ mlearning/tflite-micro/Makefile | 2 ++ .../operators/neon/arm_convolve_s8.c | 5 ++--- .../operators/neon/arm_elementwise_add_s8.c | 5 ++--- .../neon/arm_nn_mat_mult_kernel_s8_s16.c | 5 ++--- .../neon/arm_q7_to_q15_with_offset.c | 5 ++--- mlearning/tflite-micro/tflm_syslog.cc | 2 ++ mlearning/tflite-micro/tflm_tool.cc | 2 ++ 26 files changed, 60 insertions(+), 22 deletions(-) diff --git a/mlearning/CMakeLists.txt b/mlearning/CMakeLists.txt index c4b8742ba35..78ba1da4ae3 100644 --- a/mlearning/CMakeLists.txt +++ b/mlearning/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/mlearning/CMakeLists.txt # +# 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 diff --git a/mlearning/Make.defs b/mlearning/Make.defs index 5ad683160eb..6b5d35fe887 100644 --- a/mlearning/Make.defs +++ b/mlearning/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/Make.defs # +# 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/mlearning/Makefile b/mlearning/Makefile index bf7d539bba0..435024a1151 100644 --- a/mlearning/Makefile +++ b/mlearning/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/Makefile # +# 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/mlearning/cmsis-nn/CMakeLists.txt b/mlearning/cmsis-nn/CMakeLists.txt index c5944620d27..44aff81fc09 100644 --- a/mlearning/cmsis-nn/CMakeLists.txt +++ b/mlearning/cmsis-nn/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/mlearning/cmsis-nn/CMakeLists.txt # +# 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 diff --git a/mlearning/cmsis-nn/Make.defs b/mlearning/cmsis-nn/Make.defs index 669ca73a283..760173037f1 100644 --- a/mlearning/cmsis-nn/Make.defs +++ b/mlearning/cmsis-nn/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/cmsis/Make.defs # +# 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/mlearning/cmsis-nn/Makefile b/mlearning/cmsis-nn/Makefile index 9254c850202..cd81172758a 100644 --- a/mlearning/cmsis-nn/Makefile +++ b/mlearning/cmsis-nn/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/cmsis-nn/Makefile # +# 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/mlearning/cmsis/Make.defs b/mlearning/cmsis/Make.defs index e36031b92dc..845fa6017e1 100644 --- a/mlearning/cmsis/Make.defs +++ b/mlearning/cmsis/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/cmsis/Make.defs # +# 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/mlearning/cmsis/Makefile b/mlearning/cmsis/Makefile index 8bed4380ed7..0ddb4b33079 100644 --- a/mlearning/cmsis/Makefile +++ b/mlearning/cmsis/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/cmsis/Makefile # +# 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/mlearning/cmsis/cmsis-nn-support_nnabla.patch b/mlearning/cmsis/cmsis-nn-support_nnabla.patch index 4de8d687289..58e3a3d8d12 100644 --- a/mlearning/cmsis/cmsis-nn-support_nnabla.patch +++ b/mlearning/cmsis/cmsis-nn-support_nnabla.patch @@ -11,10 +11,10 @@ to add the following function prototypes: +++ CMSIS_5/CMSIS/NN/Include/arm_nnfunctions_nnabla.h @@ -0,0 +1,217 @@ +/* -+ * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. -+ * Copyright 2018 Sony Corporation + * + * SPDX-License-Identifier: Apache-2.0 ++ * SPDX-FileCopyrightText: 2010-2018 Arm Limited or its affiliates. ++ * SPDX-FileCopyrightText: 2018 Sony Corporation + * + * Licensed under the Apache License, Version 2.0 (the License); you may + * not use this file except in compliance with the License. @@ -237,10 +237,10 @@ Sony Corporation added this file to 5.4.0 for these reasons: +++ CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_CHW_f32_basic_nonsquare.c @@ -0,0 +1,207 @@ +/* -+ * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. -+ * Copyright 2018 Sony Corporation + * + * SPDX-License-Identifier: Apache-2.0 ++ * SPDX-FileCopyrightText: 2010-2018 Arm Limited or its affiliates. ++ * SPDX-FileCopyrightText: 2018 Sony Corporation + * + * Licensed under the Apache License, Version 2.0 (the License); you may + * not use this file except in compliance with the License. @@ -451,10 +451,10 @@ Sony Corporation added this file to 5.4.0 to support the CHW tensor layout +++ CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_CHW_q15_basic_nonsquare.c @@ -0,0 +1,231 @@ +/* -+ * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. -+ * Copyright 2018 Sony Corporation + * + * SPDX-License-Identifier: Apache-2.0 ++ * SPDX-FileCopyrightText: 2010-2018 Arm Limited or its affiliates. ++ * SPDX-FileCopyrightText: 2018 Sony Corporation + * + * Licensed under the Apache License, Version 2.0 (the License); you may + * not use this file except in compliance with the License. @@ -689,10 +689,10 @@ Sony Corporation added this file to 5.4.0 to support the CHW tensor layout +++ CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_convolve_CHW_q7_basic_nonsquare.c @@ -0,0 +1,214 @@ +/* -+ * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. -+ * Copyright 2018 Sony Corporation + * + * SPDX-License-Identifier: Apache-2.0 ++ * SPDX-FileCopyrightText: 2010-2018 Arm Limited or its affiliates. ++ * SPDX-FileCopyrightText: 2018 Sony Corporation + * + * Licensed under the Apache License, Version 2.0 (the License); you may + * not use this file except in compliance with the License. @@ -910,10 +910,10 @@ Sony Corporation added this file to 5.4.0 to support the CHW tensor layout +++ CMSIS_5/CMSIS/NN/Source/ConvolutionFunctions/arm_nn_CHW_mat_mult_kernel_q7_q15.c @@ -0,0 +1,196 @@ +/* -+ * Copyright (C) 2010-2018 Arm Limited or its affiliates. All rights reserved. -+ * Copyright 2018 Sony Corporation + * + * SPDX-License-Identifier: Apache-2.0 ++ * SPDX-FileCopyrightText: 2010-2018 Arm Limited or its affiliates. ++ * SPDX-FileCopyrightText: 2018 Sony Corporation + * + * Licensed under the Apache License, Version 2.0 (the License); you may + * not use this file except in compliance with the License. diff --git a/mlearning/cmsis/libcmsisdsp/Make.defs b/mlearning/cmsis/libcmsisdsp/Make.defs index de9d8ea51d0..df93ea67807 100644 --- a/mlearning/cmsis/libcmsisdsp/Make.defs +++ b/mlearning/cmsis/libcmsisdsp/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/cmsis/libcmsisdsp/Make.defs # +# 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/mlearning/cmsis/libcmsisdsp/Makefile b/mlearning/cmsis/libcmsisdsp/Makefile index 8fd73168550..141b7cafac4 100644 --- a/mlearning/cmsis/libcmsisdsp/Makefile +++ b/mlearning/cmsis/libcmsisdsp/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/cmsis/libcmsisdsp/Makefile # +# 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/mlearning/cmsis/libcmsisnn/Make.defs b/mlearning/cmsis/libcmsisnn/Make.defs index 187ff5557f3..5119cdb3d0c 100644 --- a/mlearning/cmsis/libcmsisnn/Make.defs +++ b/mlearning/cmsis/libcmsisnn/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/cmsis/libcmsisnn/Make.defs # +# 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/mlearning/cmsis/libcmsisnn/Makefile b/mlearning/cmsis/libcmsisnn/Makefile index 759b05f4cd6..63cb79e7c48 100644 --- a/mlearning/cmsis/libcmsisnn/Makefile +++ b/mlearning/cmsis/libcmsisnn/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/cmsis/libcmsisnn/Makefile # +# 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/mlearning/darknet/Make.defs b/mlearning/darknet/Make.defs index b06d5b5349e..41c1569e817 100644 --- a/mlearning/darknet/Make.defs +++ b/mlearning/darknet/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/darknet/Make.defs # +# 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/mlearning/darknet/Makefile b/mlearning/darknet/Makefile index cfb379466ac..627245fbd1e 100644 --- a/mlearning/darknet/Makefile +++ b/mlearning/darknet/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/darknet/Makefile # +# 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/mlearning/libnnablart/Make.defs b/mlearning/libnnablart/Make.defs index 8733fa2c900..2f57a0af653 100644 --- a/mlearning/libnnablart/Make.defs +++ b/mlearning/libnnablart/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/libnnablart/Make.defs # +# 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/mlearning/libnnablart/Makefile b/mlearning/libnnablart/Makefile index 32735670fc7..8d7c726c68b 100644 --- a/mlearning/libnnablart/Makefile +++ b/mlearning/libnnablart/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/libnnablart/Makefile # +# 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/mlearning/tflite-micro/CMakeLists.txt b/mlearning/tflite-micro/CMakeLists.txt index ad52a6f655a..b7ecc950a8c 100644 --- a/mlearning/tflite-micro/CMakeLists.txt +++ b/mlearning/tflite-micro/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/mlearning/tflite-micro/CMakeLists.txt # +# 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 diff --git a/mlearning/tflite-micro/Make.defs b/mlearning/tflite-micro/Make.defs index bd375253968..2148d663b47 100644 --- a/mlearning/tflite-micro/Make.defs +++ b/mlearning/tflite-micro/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/tflite-micro/Make.defs # +# 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/mlearning/tflite-micro/Makefile b/mlearning/tflite-micro/Makefile index dd0c1c6ad71..aba043805e7 100644 --- a/mlearning/tflite-micro/Makefile +++ b/mlearning/tflite-micro/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/mlearning/tflite-micro/Makefile # +# 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/mlearning/tflite-micro/operators/neon/arm_convolve_s8.c b/mlearning/tflite-micro/operators/neon/arm_convolve_s8.c index 3d8e5af5ce8..64a3150e10e 100644 --- a/mlearning/tflite-micro/operators/neon/arm_convolve_s8.c +++ b/mlearning/tflite-micro/operators/neon/arm_convolve_s8.c @@ -1,10 +1,9 @@ /**************************************************************************** * apps/mlearning/tflite-micro/operators/neon/arm_convolve_s8.c * - * SPDX-FileCopyrightText: Copyright 2010-2023 Arm Limited and/or - * its affiliates - * * SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: 2010-2023 Arm Limited and/or its affiliates + * * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. diff --git a/mlearning/tflite-micro/operators/neon/arm_elementwise_add_s8.c b/mlearning/tflite-micro/operators/neon/arm_elementwise_add_s8.c index d7147fbcec1..82718f94b74 100644 --- a/mlearning/tflite-micro/operators/neon/arm_elementwise_add_s8.c +++ b/mlearning/tflite-micro/operators/neon/arm_elementwise_add_s8.c @@ -1,10 +1,9 @@ /**************************************************************************** * apps/mlearning/tflite-micro/operators/neon/arm_elementwise_add_s8.c * - * SPDX-FileCopyrightText: Copyright 2010-2023 Arm Limited and/or - * its affiliates - * * SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: 2010-2023 Arm Limited and/or its affiliates + * * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. diff --git a/mlearning/tflite-micro/operators/neon/arm_nn_mat_mult_kernel_s8_s16.c b/mlearning/tflite-micro/operators/neon/arm_nn_mat_mult_kernel_s8_s16.c index 190edb74c7e..9d39cd37d3e 100644 --- a/mlearning/tflite-micro/operators/neon/arm_nn_mat_mult_kernel_s8_s16.c +++ b/mlearning/tflite-micro/operators/neon/arm_nn_mat_mult_kernel_s8_s16.c @@ -1,10 +1,9 @@ /**************************************************************************** * apps/mlearning/tflite-micro/operators/neon/arm_nn_mat_mult_kernel_s8_s16.c * - * SPDX-FileCopyrightText: Copyright 2010-2023 Arm Limited and/or - * its affiliates - * * SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: 2010-2023 Arm Limited and/or its affiliates + * * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. diff --git a/mlearning/tflite-micro/operators/neon/arm_q7_to_q15_with_offset.c b/mlearning/tflite-micro/operators/neon/arm_q7_to_q15_with_offset.c index 770e1a88cca..27349c2316b 100644 --- a/mlearning/tflite-micro/operators/neon/arm_q7_to_q15_with_offset.c +++ b/mlearning/tflite-micro/operators/neon/arm_q7_to_q15_with_offset.c @@ -1,10 +1,9 @@ /**************************************************************************** * apps/mlearning/tflite-micro/operators/neon/arm_q7_to_q15_with_offset.c * - * SPDX-FileCopyrightText: Copyright 2010-2023 Arm Limited and/or - * its affiliates - * * SPDX-License-Identifier: Apache-2.0 + * SPDX-FileCopyrightText: 2010-2023 Arm Limited and/or its affiliates + * * * Licensed under the Apache License, Version 2.0 (the License); you may * not use this file except in compliance with the License. diff --git a/mlearning/tflite-micro/tflm_syslog.cc b/mlearning/tflite-micro/tflm_syslog.cc index f306a9153bf..9a795eeba68 100644 --- a/mlearning/tflite-micro/tflm_syslog.cc +++ b/mlearning/tflite-micro/tflm_syslog.cc @@ -1,6 +1,8 @@ /**************************************************************************** * apps/mlearning/tflite-micro/tflm_syslog.cc * + * 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/mlearning/tflite-micro/tflm_tool.cc b/mlearning/tflite-micro/tflm_tool.cc index df71500b2d2..8edcf45a49b 100644 --- a/mlearning/tflite-micro/tflm_tool.cc +++ b/mlearning/tflite-micro/tflm_tool.cc @@ -1,6 +1,8 @@ /**************************************************************************** * apps/mlearning/tflite-micro/tflm_tool.cc * + * 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 From 40764bbbf152036b819e98f403998228947fdf04 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Fri, 20 Dec 2024 05:58:52 +0100 Subject: [PATCH 12/38] modbus: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- modbus/CMakeLists.txt | 20 +------------------- modbus/Make.defs | 2 ++ modbus/Makefile | 2 ++ modbus/ascii/Make.defs | 2 ++ modbus/ascii/mbascii.c | 5 ++--- modbus/ascii/mbascii.h | 5 ++--- modbus/functions/Make.defs | 2 ++ modbus/functions/mbfunccoils.c | 5 ++--- modbus/functions/mbfunccoils_m.c | 5 ++--- modbus/functions/mbfuncdiag.c | 5 ++--- modbus/functions/mbfuncdisc.c | 5 ++--- modbus/functions/mbfuncdisc_m.c | 5 ++--- modbus/functions/mbfuncholding.c | 5 ++--- modbus/functions/mbfuncholding_m.c | 5 ++--- modbus/functions/mbfuncinput.c | 5 ++--- modbus/functions/mbfuncinput_m.c | 5 ++--- modbus/functions/mbfuncother.c | 5 ++--- modbus/functions/mbutils.c | 5 ++--- modbus/mb.c | 5 ++--- modbus/mb_m.c | 4 ++-- modbus/nuttx/Make.defs | 2 ++ modbus/nuttx/port.h | 5 ++--- modbus/nuttx/portevent.c | 5 ++--- modbus/nuttx/portevent_m.c | 7 +++---- modbus/nuttx/portother.c | 5 ++--- modbus/nuttx/portother_m.c | 5 ++--- modbus/nuttx/portserial.c | 5 ++--- modbus/nuttx/portserial_m.c | 7 +++---- modbus/nuttx/porttimer.c | 5 ++--- modbus/nuttx/porttimer_m.c | 7 +++---- modbus/rtu/Make.defs | 2 ++ modbus/rtu/mbcrc.c | 5 ++--- modbus/rtu/mbcrc.h | 5 ++--- modbus/rtu/mbrtu.c | 5 ++--- modbus/rtu/mbrtu.h | 5 ++--- modbus/rtu/mbrtu_m.c | 5 ++--- modbus/rtu/mbrtu_m.h | 5 ++--- modbus/tcp/Make.defs | 2 ++ modbus/tcp/mbtcp.c | 5 ++--- modbus/tcp/mbtcp.h | 5 ++--- 40 files changed, 82 insertions(+), 117 deletions(-) diff --git a/modbus/CMakeLists.txt b/modbus/CMakeLists.txt index 27acd1fbe8d..ca4f56b5eaf 100644 --- a/modbus/CMakeLists.txt +++ b/modbus/CMakeLists.txt @@ -1,25 +1,7 @@ # ############################################################################## # apps/modbus/CMakeLists.txt # -# 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. -# -# ############################################################################## - -# ############################################################################## -# apps/modbus/CMakeLists.txt +# 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 diff --git a/modbus/Make.defs b/modbus/Make.defs index 99d262bf082..10fd914c3af 100644 --- a/modbus/Make.defs +++ b/modbus/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/modbus/Make.defs # +# 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/modbus/Makefile b/modbus/Makefile index 3589d9017da..ce7eac1d5d0 100644 --- a/modbus/Makefile +++ b/modbus/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/modbus/Makefile # +# 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/modbus/ascii/Make.defs b/modbus/ascii/Make.defs index 4d671d314a6..972cd903fff 100644 --- a/modbus/ascii/Make.defs +++ b/modbus/ascii/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/modbus/ascii/Make.defs # +# 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/modbus/ascii/mbascii.c b/modbus/ascii/mbascii.c index a4bf5a1861a..2394ecca5f4 100644 --- a/modbus/ascii/mbascii.c +++ b/modbus/ascii/mbascii.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/ascii/mbascii.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/ascii/mbascii.h b/modbus/ascii/mbascii.h index 71d63117b19..355484103ef 100644 --- a/modbus/ascii/mbascii.h +++ b/modbus/ascii/mbascii.h @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/ascii/mbascii.h * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/functions/Make.defs b/modbus/functions/Make.defs index 979cf5d7988..a4e6ea90c40 100644 --- a/modbus/functions/Make.defs +++ b/modbus/functions/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/modbus/functions/Make.defs # +# 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/modbus/functions/mbfunccoils.c b/modbus/functions/mbfunccoils.c index 0be07d56fb5..b742de0643b 100644 --- a/modbus/functions/mbfunccoils.c +++ b/modbus/functions/mbfunccoils.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/functions/mbfunccoils.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/functions/mbfunccoils_m.c b/modbus/functions/mbfunccoils_m.c index 710504268ec..c258d757db8 100644 --- a/modbus/functions/mbfunccoils_m.c +++ b/modbus/functions/mbfunccoils_m.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/functions/mbfunccoils_m.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (C) 2013 Armink - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2013 Armink * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/functions/mbfuncdiag.c b/modbus/functions/mbfuncdiag.c index a6ee8fa685a..b34581e6e7d 100644 --- a/modbus/functions/mbfuncdiag.c +++ b/modbus/functions/mbfuncdiag.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/functions/mbfuncdiag.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/functions/mbfuncdisc.c b/modbus/functions/mbfuncdisc.c index 058bdd643c0..3f29072776d 100644 --- a/modbus/functions/mbfuncdisc.c +++ b/modbus/functions/mbfuncdisc.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/functions/mbfuncdisc.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/functions/mbfuncdisc_m.c b/modbus/functions/mbfuncdisc_m.c index 24b620cb754..29386996d51 100644 --- a/modbus/functions/mbfuncdisc_m.c +++ b/modbus/functions/mbfuncdisc_m.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/functions/mbfuncdisc_m.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (C) 2013 Armink - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2013 Armink * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/functions/mbfuncholding.c b/modbus/functions/mbfuncholding.c index 1f8b9989806..964db7a7941 100644 --- a/modbus/functions/mbfuncholding.c +++ b/modbus/functions/mbfuncholding.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/functions/mbfuncholding.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/functions/mbfuncholding_m.c b/modbus/functions/mbfuncholding_m.c index 0407825633b..b017be7154d 100644 --- a/modbus/functions/mbfuncholding_m.c +++ b/modbus/functions/mbfuncholding_m.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/functions/mbfuncholding_m.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (C) 2013 Armink - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2013 Armink * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/functions/mbfuncinput.c b/modbus/functions/mbfuncinput.c index 73eebb0564d..3874cf9660b 100644 --- a/modbus/functions/mbfuncinput.c +++ b/modbus/functions/mbfuncinput.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/functions/mbfuncinput.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/functions/mbfuncinput_m.c b/modbus/functions/mbfuncinput_m.c index b9577a5cb3c..4ca7e811349 100644 --- a/modbus/functions/mbfuncinput_m.c +++ b/modbus/functions/mbfuncinput_m.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/functions/mbfuncinput_m.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (C) 2013 Armink - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2013 Armink * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/functions/mbfuncother.c b/modbus/functions/mbfuncother.c index b0ebaaa5930..ede3fae0cda 100644 --- a/modbus/functions/mbfuncother.c +++ b/modbus/functions/mbfuncother.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/functions/mbfuncother.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/functions/mbutils.c b/modbus/functions/mbutils.c index 3db155eb0b3..816fbe8b2ab 100644 --- a/modbus/functions/mbutils.c +++ b/modbus/functions/mbutils.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/functions/mbutils.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/mb.c b/modbus/mb.c index 7a8155779ee..16f5567d887 100644 --- a/modbus/mb.c +++ b/modbus/mb.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/mb.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/mb_m.c b/modbus/mb_m.c index 16323d7709d..108fdf67831 100644 --- a/modbus/mb_m.c +++ b/modbus/mb_m.c @@ -1,8 +1,8 @@ /**************************************************************************** * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. * - * Copyright (C) 2013 Armink - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2013 Armink * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/nuttx/Make.defs b/modbus/nuttx/Make.defs index 11f82abacb0..7960ecee463 100644 --- a/modbus/nuttx/Make.defs +++ b/modbus/nuttx/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/modbus/nuttx/Make.defs # +# 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/modbus/nuttx/port.h b/modbus/nuttx/port.h index 4b75aceabf5..aada110ed26 100644 --- a/modbus/nuttx/port.h +++ b/modbus/nuttx/port.h @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/nuttx/port.h * - * FreeModbus Library: NuttX Port - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/nuttx/portevent.c b/modbus/nuttx/portevent.c index d45c8bad619..bce6e9c5454 100644 --- a/modbus/nuttx/portevent.c +++ b/modbus/nuttx/portevent.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/nuttx/portevent.c * - * FreeModbus Library: NuttX Port - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/nuttx/portevent_m.c b/modbus/nuttx/portevent_m.c index 2f6143943f7..fb40f4dee24 100644 --- a/modbus/nuttx/portevent_m.c +++ b/modbus/nuttx/portevent_m.c @@ -1,10 +1,9 @@ /**************************************************************************** * apps/modbus/nuttx/portevent_m.c * - * FreeModbus Library: NuttX Modbus Master Port - * Original work (c) 2006 Christian Walter - * Modified work (c) 2016 Vytautas Lukenskas - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter + * SPDX-FileCopyrightText: 2016 Vytautas Lukenskas * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/nuttx/portother.c b/modbus/nuttx/portother.c index 7cb453819be..797ede0dc72 100644 --- a/modbus/nuttx/portother.c +++ b/modbus/nuttx/portother.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/nuttx/portother.c * - * FreeModbus Library: NuttX Port - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/nuttx/portother_m.c b/modbus/nuttx/portother_m.c index 799cef6c683..1d703c1926e 100644 --- a/modbus/nuttx/portother_m.c +++ b/modbus/nuttx/portother_m.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/nuttx/portother_m.c * - * FreeModbus Library: NuttX Port - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/nuttx/portserial.c b/modbus/nuttx/portserial.c index 3bf88794086..35155a732f5 100644 --- a/modbus/nuttx/portserial.c +++ b/modbus/nuttx/portserial.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/nuttx/portserial.c * - * FreeModbus Library: NuttX Port - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/nuttx/portserial_m.c b/modbus/nuttx/portserial_m.c index ea3ad317438..98c11eb2842 100644 --- a/modbus/nuttx/portserial_m.c +++ b/modbus/nuttx/portserial_m.c @@ -1,10 +1,9 @@ /**************************************************************************** * apps/modbus/nuttx/portserial_m.c * - * FreeModbus Library: NuttX Modbus Master Port - * Original work (c) 2006 Christian Walter - * Modified work (c) 2016 Vytautas Lukenskas - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter + * SPDX-FileCopyrightText: 2016 Vytautas Lukenskas * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/nuttx/porttimer.c b/modbus/nuttx/porttimer.c index 2a68654cf15..1685df6eeb1 100644 --- a/modbus/nuttx/porttimer.c +++ b/modbus/nuttx/porttimer.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/nuttx/porttimer.c * - * FreeModbus Library: NuttX Port - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/nuttx/porttimer_m.c b/modbus/nuttx/porttimer_m.c index 96b355cc338..1e878aa00a6 100644 --- a/modbus/nuttx/porttimer_m.c +++ b/modbus/nuttx/porttimer_m.c @@ -1,10 +1,9 @@ /**************************************************************************** * apps/modbus/nuttx/porttimer_m.c * - * FreeModbus Library: NuttX Modbus Master Port - * Original work (c) 2006 Christian Walter - * Modified work (c) 2016 Vytautas Lukenskas - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter + * SPDX-FileCopyrightText: 2016 Vytautas Lukenskas * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/rtu/Make.defs b/modbus/rtu/Make.defs index bc5ce1829a6..ac4ab7e2aa4 100644 --- a/modbus/rtu/Make.defs +++ b/modbus/rtu/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/modbus/rtu/Make.defs # +# 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/modbus/rtu/mbcrc.c b/modbus/rtu/mbcrc.c index 5996f640815..dcaddec7193 100644 --- a/modbus/rtu/mbcrc.c +++ b/modbus/rtu/mbcrc.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/rtu/mbcrc.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/rtu/mbcrc.h b/modbus/rtu/mbcrc.h index 707feb8ef66..56d3db5f890 100644 --- a/modbus/rtu/mbcrc.h +++ b/modbus/rtu/mbcrc.h @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modutils/rtu/mbcrc.h * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/rtu/mbrtu.c b/modbus/rtu/mbrtu.c index eb0d57d6261..cc6b1088e71 100644 --- a/modbus/rtu/mbrtu.c +++ b/modbus/rtu/mbrtu.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/rtu/mbrtu.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/rtu/mbrtu.h b/modbus/rtu/mbrtu.h index 7ef009f17e7..418311bffd1 100644 --- a/modbus/rtu/mbrtu.h +++ b/modbus/rtu/mbrtu.h @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/rtu/mbrtu.h * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/rtu/mbrtu_m.c b/modbus/rtu/mbrtu_m.c index 3fde5067002..85827472998 100644 --- a/modbus/rtu/mbrtu_m.c +++ b/modbus/rtu/mbrtu_m.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/rtu/mbrtu_m.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2013 China Beijing Armink - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2013 China Beijing Armink * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/rtu/mbrtu_m.h b/modbus/rtu/mbrtu_m.h index 2a58a31305b..5fb2eee43ef 100644 --- a/modbus/rtu/mbrtu_m.h +++ b/modbus/rtu/mbrtu_m.h @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/rtu/mbrtu_m.h * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2013 China Beijing Armink - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2013 China Beijing Armink * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/tcp/Make.defs b/modbus/tcp/Make.defs index 9503ca16bc3..dfd220f4107 100644 --- a/modbus/tcp/Make.defs +++ b/modbus/tcp/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/modbus/tcp/Make.defs # +# 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/modbus/tcp/mbtcp.c b/modbus/tcp/mbtcp.c index 67d503ec7ae..ca9c41c433c 100644 --- a/modbus/tcp/mbtcp.c +++ b/modbus/tcp/mbtcp.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/tcp/mbtcp.c * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/modbus/tcp/mbtcp.h b/modbus/tcp/mbtcp.h index b44de01f102..39fa9c8ce44 100644 --- a/modbus/tcp/mbtcp.h +++ b/modbus/tcp/mbtcp.h @@ -1,9 +1,8 @@ /**************************************************************************** * apps/modbus/tcp/mbtcp.h * - * FreeModbus Library: A portable Modbus implementation for Modbus ASCII/RTU. - * Copyright (c) 2006 Christian Walter - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2006 Christian Walter * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions From 480c5fd12cfec6fc84d10a5a396bf71f521af4b6 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Fri, 20 Dec 2024 06:46:20 +0100 Subject: [PATCH 13/38] Cmake: migrate the license to ASF Xiaomi has submitted the SGA and we can migate the license to ASF Signed-off-by: Alin Jerpelea --- netutils/mqttc/CMakeLists.txt | 22 ++++++++++++++-------- netutils/nng/CMakeLists.txt | 22 ++++++++++++++-------- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/netutils/mqttc/CMakeLists.txt b/netutils/mqttc/CMakeLists.txt index 664539d9f42..246cd191941 100644 --- a/netutils/mqttc/CMakeLists.txt +++ b/netutils/mqttc/CMakeLists.txt @@ -1,18 +1,24 @@ +############################################################################ +# apps/netutils/mqttc/CMakeLists.txt # -# Copyright (C) 2024 Xiaomi Corporation +# SPDX-License-Identifier: Apache-2.0 # -# Licensed 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 +# 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 +# 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. +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. # +############################################################################ if(CONFIG_NETUTILS_MQTTC) diff --git a/netutils/nng/CMakeLists.txt b/netutils/nng/CMakeLists.txt index 4aa74131d6a..e4fc48cb38e 100644 --- a/netutils/nng/CMakeLists.txt +++ b/netutils/nng/CMakeLists.txt @@ -1,18 +1,24 @@ +############################################################################ +# apps/netutils/nng/CMakeLists.txt # -# Copyright (C) 2024 Xiaomi Corporation +# SPDX-License-Identifier: Apache-2.0 # -# Licensed 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 +# 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 +# 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. +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. # +############################################################################ if(CONFIG_NETUTILS_NNG) From b5e72b3ec936bbc2ba683ad0703ced83b01934ff Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Fri, 20 Dec 2024 07:57:56 +0100 Subject: [PATCH 14/38] netutils: migrate the license to ASF Xiaomi has submitted the SGA and we can migate the license to ASF Signed-off-by: Alin Jerpelea --- netutils/CMakeLists.txt | 2 + netutils/Make.defs | 2 + netutils/Makefile | 2 + netutils/chat/CMakeLists.txt | 2 + netutils/chat/Make.defs | 2 + netutils/chat/Makefile | 2 + netutils/chat/chat.c | 7 +-- netutils/chat/chat.h | 5 +- netutils/cjson/CMakeLists.txt | 2 + netutils/cjson/Make.defs | 2 + netutils/cjson/Makefile | 2 + netutils/codecs/CMakeLists.txt | 2 + netutils/codecs/Make.defs | 2 + netutils/codecs/Makefile | 2 + netutils/codecs/base64.c | 8 ++-- netutils/codecs/md5.c | 48 ++++++++------------ netutils/codecs/urldecode.c | 39 ++++++---------- netutils/connectedhomeip/CMakeLists.txt | 2 + netutils/cwebsocket/Make.defs | 2 + netutils/cwebsocket/Makefile | 2 + netutils/dhcp6c/CMakeLists.txt | 2 + netutils/dhcp6c/Make.defs | 2 + netutils/dhcp6c/Makefile | 2 + netutils/dhcp6c/dhcp6c.c | 2 + netutils/dhcpc/CMakeLists.txt | 2 + netutils/dhcpc/Make.defs | 2 + netutils/dhcpc/Makefile | 2 + netutils/dhcpc/dhcpc.c | 13 ++---- netutils/dhcpd/CMakeLists.txt | 2 + netutils/dhcpd/Make.defs | 2 + netutils/dhcpd/Makefile | 2 + netutils/dhcpd/dhcpd.c | 2 + netutils/discover/CMakeLists.txt | 2 + netutils/discover/Make.defs | 2 + netutils/discover/Makefile | 2 + netutils/discover/discover.c | 2 + netutils/esp8266/CMakeLists.txt | 2 + netutils/esp8266/Make.defs | 2 + netutils/esp8266/Makefile | 2 + netutils/esp8266/esp8266.c | 2 + netutils/ftpc/CMakeLists.txt | 2 + netutils/ftpc/Make.defs | 2 + netutils/ftpc/Makefile | 2 + netutils/ftpc/ftpc_cdup.c | 2 + netutils/ftpc/ftpc_chdir.c | 2 + netutils/ftpc/ftpc_chmod.c | 2 + netutils/ftpc/ftpc_cmd.c | 2 + netutils/ftpc/ftpc_config.h | 2 + netutils/ftpc/ftpc_connect.c | 2 + netutils/ftpc/ftpc_disconnect.c | 2 + netutils/ftpc/ftpc_filesize.c | 2 + netutils/ftpc/ftpc_filetime.c | 2 + netutils/ftpc/ftpc_getfile.c | 2 + netutils/ftpc/ftpc_getreply.c | 2 + netutils/ftpc/ftpc_help.c | 2 + netutils/ftpc/ftpc_idle.c | 2 + netutils/ftpc/ftpc_internal.h | 2 + netutils/ftpc/ftpc_listdir.c | 2 + netutils/ftpc/ftpc_login.c | 2 + netutils/ftpc/ftpc_mkdir.c | 2 + netutils/ftpc/ftpc_noop.c | 2 + netutils/ftpc/ftpc_putfile.c | 2 + netutils/ftpc/ftpc_quit.c | 2 + netutils/ftpc/ftpc_rename.c | 2 + netutils/ftpc/ftpc_response.c | 2 + netutils/ftpc/ftpc_rmdir.c | 2 + netutils/ftpc/ftpc_rpwd.c | 2 + netutils/ftpc/ftpc_socket.c | 2 + netutils/ftpc/ftpc_transfer.c | 2 + netutils/ftpc/ftpc_unlink.c | 2 + netutils/ftpc/ftpc_utils.c | 2 + netutils/ftpd/CMakeLists.txt | 2 + netutils/ftpd/Make.defs | 2 + netutils/ftpd/Makefile | 2 + netutils/ftpd/ftpd.c | 13 ++---- netutils/ftpd/ftpd.h | 2 + netutils/iperf/CMakeLists.txt | 2 + netutils/iperf/Make.defs | 3 +- netutils/iperf/Makefile | 2 + netutils/iperf/iperf.c | 2 + netutils/iperf/iperf.h | 2 + netutils/iperf/iperf_main.c | 2 + netutils/iptables/CMakeLists.txt | 2 + netutils/iptables/Make.defs | 2 + netutils/iptables/Makefile | 2 + netutils/iptables/xtables.c | 2 + netutils/jsoncpp/CMakeLists.txt | 2 + netutils/jsoncpp/Make.defs | 2 + netutils/jsoncpp/Makefile | 2 + netutils/libcoap/CMakeLists.txt | 2 + netutils/libcoap/Make.defs | 2 + netutils/libcoap/Makefile | 2 + netutils/libcoap/coap_config.h | 8 ++-- netutils/libcurl4nx/CMakeLists.txt | 2 + netutils/libcurl4nx/Make.defs | 2 + netutils/libcurl4nx/Makefile | 2 + netutils/libcurl4nx/curl4nx_easy_cleanup.c | 2 + netutils/libcurl4nx/curl4nx_easy_duphandle.c | 2 + netutils/libcurl4nx/curl4nx_easy_escape.c | 2 + netutils/libcurl4nx/curl4nx_easy_getinfo.c | 2 + netutils/libcurl4nx/curl4nx_easy_init.c | 2 + netutils/libcurl4nx/curl4nx_easy_perform.c | 2 + netutils/libcurl4nx/curl4nx_easy_reset.c | 2 + netutils/libcurl4nx/curl4nx_easy_setopt.c | 2 + netutils/libcurl4nx/curl4nx_easy_unescape.c | 2 + netutils/libcurl4nx/curl4nx_private.h | 2 + netutils/libwebsockets/Make.defs | 2 + netutils/libwebsockets/Makefile | 2 + netutils/libwebsockets/lws_config.h | 2 + netutils/libwebsockets/lws_config_private.h | 4 +- netutils/mqttc/Make.defs | 2 + netutils/mqttc/Makefile | 2 + netutils/nanopb/Make.defs | 2 + netutils/nanopb/Makefile | 2 + netutils/netcat/CMakeLists.txt | 2 + netutils/netcat/Make.defs | 3 +- netutils/netcat/Makefile | 3 +- netutils/netcat/netcat_main.c | 3 +- netutils/netinit/CMakeLists.txt | 2 + netutils/netinit/Make.defs | 2 + netutils/netinit/Makefile | 2 + netutils/netinit/netinit.c | 2 + netutils/netinit/netinit_associate.c | 2 + netutils/netlib/CMakeLists.txt | 2 + netutils/netlib/Make.defs | 2 + netutils/netlib/Makefile | 2 + netutils/netlib/netlib_addipv6addr.c | 2 + netutils/netlib/netlib_autoconfig.c | 2 + netutils/netlib/netlib_conntrack.c | 2 + netutils/netlib/netlib_delarp.c | 2 + netutils/netlib/netlib_delipv6addr.c | 2 + netutils/netlib/netlib_eaddrconv.c | 2 + netutils/netlib/netlib_ethaddrconv.c | 16 +++---- netutils/netlib/netlib_getarp.c | 2 + netutils/netlib/netlib_getarptab.c | 2 + netutils/netlib/netlib_getdevs.c | 2 + netutils/netlib/netlib_getdripv4addr.c | 2 + netutils/netlib/netlib_getessid.c | 2 + netutils/netlib/netlib_getifstatistics.c | 2 + netutils/netlib/netlib_getifstatus.c | 2 + netutils/netlib/netlib_getipv4addr.c | 2 + netutils/netlib/netlib_getipv4netmask.c | 2 + netutils/netlib/netlib_getipv6addr.c | 2 + netutils/netlib/netlib_getmacaddr.c | 2 + netutils/netlib/netlib_getnbtab.c | 2 + netutils/netlib/netlib_getnodeaddr.c | 2 + netutils/netlib/netlib_getpanid.c | 2 + netutils/netlib/netlib_getproperties.c | 2 + netutils/netlib/netlib_getroute.c | 2 + netutils/netlib/netlib_ip6tables.c | 2 + netutils/netlib/netlib_ipmsfilter.c | 2 + netutils/netlib/netlib_iptables.c | 2 + netutils/netlib/netlib_ipv4adaptor.c | 2 + netutils/netlib/netlib_ipv4addrconv.c | 15 +++--- netutils/netlib/netlib_ipv4route.c | 2 + netutils/netlib/netlib_ipv4router.c | 2 + netutils/netlib/netlib_ipv6adaptor.c | 2 + netutils/netlib/netlib_ipv6netmask2prefix.c | 2 + netutils/netlib/netlib_ipv6route.c | 2 + netutils/netlib/netlib_ipv6router.c | 2 + netutils/netlib/netlib_listenon.c | 2 + netutils/netlib/netlib_nodeaddrconv.c | 2 + netutils/netlib/netlib_obtainipv4addr.c | 2 + netutils/netlib/netlib_obtainipv6addr.c | 2 + netutils/netlib/netlib_parsehttpurl.c | 2 + netutils/netlib/netlib_parseurl.c | 2 + netutils/netlib/netlib_prefix2ipv6netmask.c | 2 + netutils/netlib/netlib_saddrconv.c | 2 + netutils/netlib/netlib_server.c | 2 + netutils/netlib/netlib_setarp.c | 2 + netutils/netlib/netlib_setdripv4addr.c | 2 + netutils/netlib/netlib_setdripv6addr.c | 2 + netutils/netlib/netlib_seteaddr.c | 2 + netutils/netlib/netlib_setessid.c | 2 + netutils/netlib/netlib_setifstatus.c | 2 + netutils/netlib/netlib_setipv4addr.c | 2 + netutils/netlib/netlib_setipv4dnsaddr.c | 2 + netutils/netlib/netlib_setipv4netmask.c | 2 + netutils/netlib/netlib_setipv6addr.c | 2 + netutils/netlib/netlib_setipv6dnsaddr.c | 2 + netutils/netlib/netlib_setipv6netmask.c | 2 + netutils/netlib/netlib_setmacaddr.c | 2 + netutils/netlib/netlib_setmtu.c | 2 + netutils/netlib/netlib_setnodeaddr.c | 2 + netutils/nng/Make.defs | 2 + netutils/nng/Makefile | 2 + netutils/ntpclient/CMakeLists.txt | 2 + netutils/ntpclient/Make.defs | 2 + netutils/ntpclient/Makefile | 2 + netutils/ntpclient/ntpclient.c | 2 + netutils/ntpclient/ntpv3.h | 2 + netutils/ping/CMakeLists.txt | 2 + netutils/ping/Make.defs | 2 + netutils/ping/Makefile | 2 + netutils/ping/icmp_ping.c | 2 + netutils/ping/icmpv6_ping.c | 2 + netutils/pppd/CMakeLists.txt | 2 + netutils/pppd/Make.defs | 2 + netutils/pppd/Makefile | 2 + netutils/ptpd/Make.defs | 2 + netutils/ptpd/Makefile | 2 + netutils/ptpd/ptpd.c | 2 + netutils/ptpd/ptpv2.h | 2 + netutils/rexec/CMakeLists.txt | 2 + netutils/rexec/Make.defs | 2 + netutils/rexec/Makefile | 2 + netutils/rexec/rexec.c | 2 + netutils/rexecd/CMakeLists.txt | 2 + netutils/rexecd/Make.defs | 2 + netutils/rexecd/Makefile | 2 + netutils/rexecd/rexecd.c | 2 + netutils/rtptools/CMakeLists.txt | 2 + netutils/rtptools/Make.defs | 2 + netutils/rtptools/Makefile | 2 + netutils/rtptools/config.h | 2 + netutils/smtp/CMakeLists.txt | 2 + netutils/smtp/Make.defs | 2 + netutils/smtp/Makefile | 2 + netutils/smtp/smtp.c | 22 +++------ netutils/telnetc/CMakeLists.txt | 2 + netutils/telnetc/Make.defs | 2 + netutils/telnetc/Makefile | 2 + netutils/telnetc/telnetc.c | 2 + netutils/telnetd/CMakeLists.txt | 2 + netutils/telnetd/Make.defs | 2 + netutils/telnetd/Makefile | 2 + netutils/telnetd/telnetd_daemon.c | 2 + netutils/tftpc/CMakeLists.txt | 2 + netutils/tftpc/Make.defs | 2 + netutils/tftpc/Makefile | 2 + netutils/tftpc/tftpc_get.c | 2 + netutils/tftpc/tftpc_internal.h | 2 + netutils/tftpc/tftpc_packets.c | 2 + netutils/tftpc/tftpc_put.c | 2 + netutils/thttpd/CMakeLists.txt | 2 + netutils/thttpd/Make.defs | 2 + netutils/thttpd/Makefile | 2 + netutils/thttpd/cgi-src/Makefile | 2 + netutils/thttpd/cgi-src/phf.c | 12 ++--- netutils/thttpd/cgi-src/redirect.c | 12 ++--- netutils/thttpd/cgi-src/ssi.c | 12 ++--- netutils/thttpd/config.h | 2 + netutils/thttpd/fdwatch.c | 12 ++--- netutils/thttpd/fdwatch.h | 11 ++--- netutils/thttpd/libhttpd.c | 15 +++--- netutils/thttpd/libhttpd.h | 15 +++--- netutils/thttpd/mime_types.h | 48 ++++++++------------ netutils/thttpd/tdate_parse.c | 12 ++--- netutils/thttpd/tdate_parse.h | 11 ++--- netutils/thttpd/thttpd.c | 14 +++--- netutils/thttpd/thttpd_alloc.c | 2 + netutils/thttpd/thttpd_alloc.h | 39 ++++++---------- netutils/thttpd/thttpd_cgi.c | 15 +++--- netutils/thttpd/thttpd_cgi.h | 15 +++--- netutils/thttpd/thttpd_strings.c | 14 +++--- netutils/thttpd/thttpd_strings.h | 14 +++--- netutils/thttpd/timers.c | 13 ++---- netutils/thttpd/timers.h | 14 +++--- netutils/wakaama/CMakeLists.txt | 2 + netutils/wakaama/examples.cmake | 2 + netutils/wakeonlan/CMakeLists.txt | 2 + netutils/wakeonlan/Make.defs | 2 + netutils/wakeonlan/Makefile | 2 + netutils/wakeonlan/wol_main.c | 2 + netutils/webclient/CMakeLists.txt | 2 + netutils/webclient/Make.defs | 2 + netutils/webclient/Makefile | 2 + netutils/webclient/webclient.c | 17 +++---- netutils/webserver/CMakeLists.txt | 2 + netutils/webserver/Make.defs | 2 + netutils/webserver/Makefile | 2 + netutils/webserver/httpd.c | 19 +++----- netutils/webserver/httpd.h | 14 +++--- netutils/webserver/httpd_cgi.c | 7 ++- netutils/webserver/httpd_cgi.h | 14 +++--- netutils/webserver/httpd_dirlist.c | 2 + netutils/webserver/httpd_fs.c | 14 +++--- netutils/webserver/httpd_mmap.c | 2 + netutils/webserver/httpd_sendfile.c | 2 + netutils/xmlrpc/CMakeLists.txt | 2 + netutils/xmlrpc/Make.defs | 2 + netutils/xmlrpc/Makefile | 2 + netutils/xmlrpc/response.c | 18 ++++---- netutils/xmlrpc/xmlparser.c | 18 ++++---- 284 files changed, 738 insertions(+), 375 deletions(-) diff --git a/netutils/CMakeLists.txt b/netutils/CMakeLists.txt index 62601fd7e9a..e950ed6fff9 100644 --- a/netutils/CMakeLists.txt +++ b/netutils/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/CMakeLists.txt # +# 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 diff --git a/netutils/Make.defs b/netutils/Make.defs index d08431e24bc..bd7c0e0cc7d 100644 --- a/netutils/Make.defs +++ b/netutils/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/Make.defs # +# 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/netutils/Makefile b/netutils/Makefile index 6ec7c188436..87fb891a139 100644 --- a/netutils/Makefile +++ b/netutils/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/Makefile # +# 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/netutils/chat/CMakeLists.txt b/netutils/chat/CMakeLists.txt index 66a4f73485f..eb847a45383 100644 --- a/netutils/chat/CMakeLists.txt +++ b/netutils/chat/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/chat/CMakeLists.txt # +# 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 diff --git a/netutils/chat/Make.defs b/netutils/chat/Make.defs index 06540e51bc5..db5c1371711 100644 --- a/netutils/chat/Make.defs +++ b/netutils/chat/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/chat/Make.defs # +# 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/netutils/chat/Makefile b/netutils/chat/Makefile index 61b61b7fcc0..1c461c85255 100644 --- a/netutils/chat/Makefile +++ b/netutils/chat/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/chat/Makefile # +# 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/netutils/chat/chat.c b/netutils/chat/chat.c index cbc2326a552..2359201f947 100644 --- a/netutils/chat/chat.c +++ b/netutils/chat/chat.c @@ -1,9 +1,10 @@ /**************************************************************************** * apps/netutils/chat/chat.c * - * Copyright (C) 2016 Vladimir Komendantskiy. All rights reserved. - * Author: Vladimir Komendantskiy - * Partly based on code by Max Nekludov + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2016 Vladimir Komendantskiy. All rights reserved. + * SPDX-FileContributor: Vladimir Komendantskiy + * SPDX-FileContributor: Max Nekludov * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/chat/chat.h b/netutils/chat/chat.h index 61fcef637a4..4c9a9126800 100644 --- a/netutils/chat/chat.h +++ b/netutils/chat/chat.h @@ -1,8 +1,9 @@ /**************************************************************************** * apps/netutils/chat/chat.h * - * Copyright (C) 2016 Vladimir Komendantskiy. All rights reserved. - * Author: Vladimir Komendantskiy + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2016 Vladimir Komendantskiy. All rights reserved. + * SPDX-FileContributor: Vladimir Komendantskiy * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/cjson/CMakeLists.txt b/netutils/cjson/CMakeLists.txt index 0261b694c7e..9749f42f12f 100644 --- a/netutils/cjson/CMakeLists.txt +++ b/netutils/cjson/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/cjson/CMakeLists.txt # +# 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 diff --git a/netutils/cjson/Make.defs b/netutils/cjson/Make.defs index 78c8220075a..e8f6d6d8090 100644 --- a/netutils/cjson/Make.defs +++ b/netutils/cjson/Make.defs @@ -1,6 +1,8 @@ ############################################################################# # apps/netutils/cjson/Make.defs # +# 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/netutils/cjson/Makefile b/netutils/cjson/Makefile index 7d7c423b059..d8993373d2b 100644 --- a/netutils/cjson/Makefile +++ b/netutils/cjson/Makefile @@ -1,6 +1,8 @@ ############################################################################# # apps/netutils/cjson/Makefile # +# 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/netutils/codecs/CMakeLists.txt b/netutils/codecs/CMakeLists.txt index d4ae752befe..ee93eacd291 100644 --- a/netutils/codecs/CMakeLists.txt +++ b/netutils/codecs/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/codecs/CMakeLists.txt # +# 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 diff --git a/netutils/codecs/Make.defs b/netutils/codecs/Make.defs index 7d2f0592fc1..b17090ec21d 100644 --- a/netutils/codecs/Make.defs +++ b/netutils/codecs/Make.defs @@ -1,6 +1,8 @@ ############################################################################# # apps/netutils/codecs/Make.defs # +# 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/netutils/codecs/Makefile b/netutils/codecs/Makefile index 68b3bba9b8f..b6a1dee8907 100644 --- a/netutils/codecs/Makefile +++ b/netutils/codecs/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/codecs/Makefile # +# 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/netutils/codecs/base64.c b/netutils/codecs/base64.c index 442a06bad96..36485b85a55 100644 --- a/netutils/codecs/base64.c +++ b/netutils/codecs/base64.c @@ -1,10 +1,10 @@ /**************************************************************************** * apps/netutils/codecs/base64.c * - * This file is part of the NuttX RTOS: - * - * Copyright (C) 2012, 2018 Gregory Nutt. All rights reserved. - * Author: Darcy Gong + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2012, 2018 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2005, Jouni Malinen + * SPDX-FileContributor: Darcy Gong * * Reference: * diff --git a/netutils/codecs/md5.c b/netutils/codecs/md5.c index 38c637dc61c..75dfe3f0c56 100644 --- a/netutils/codecs/md5.c +++ b/netutils/codecs/md5.c @@ -1,11 +1,26 @@ /**************************************************************************** * apps/netutils/codecs/md5.c * - * This file is part of the NuttX RTOS: + * SPDX-License-Identifier: Apache-2.0 * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. - * Author: Darcy Gong + * 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. + * + ****************************************************************************/ + +/**************************************************************************** * Reference: * * This code implements the MD5 message-digest algorithm. @@ -25,33 +40,6 @@ * * See README and COPYING for more details. * - * And is re-released under the NuttX modified BSD license: - * - * 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 - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the Institute nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE 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 INSTITUTE 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/netutils/codecs/urldecode.c b/netutils/codecs/urldecode.c index 1e1a105fe89..5328f311b14 100644 --- a/netutils/codecs/urldecode.c +++ b/netutils/codecs/urldecode.c @@ -1,35 +1,22 @@ /**************************************************************************** * apps/netutils/codecs/urldecode.c * - * This file is part of the NuttX RTOS: + * SPDX-License-Identifier: Apache-2.0 * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. - * Author: Darcy Gong + * 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 * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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 - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the Institute nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE 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 INSTITUTE 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. + * 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. * ****************************************************************************/ diff --git a/netutils/connectedhomeip/CMakeLists.txt b/netutils/connectedhomeip/CMakeLists.txt index 546fbe7335c..1031b472794 100644 --- a/netutils/connectedhomeip/CMakeLists.txt +++ b/netutils/connectedhomeip/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/connectedhomeip/CMakeLists.txt # +# 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 diff --git a/netutils/cwebsocket/Make.defs b/netutils/cwebsocket/Make.defs index 9d068ef8e10..c08da360db1 100644 --- a/netutils/cwebsocket/Make.defs +++ b/netutils/cwebsocket/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/cwebsocket/Make.defs # +# 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/netutils/cwebsocket/Makefile b/netutils/cwebsocket/Makefile index 01ffd9fb219..c9e6bbcd342 100644 --- a/netutils/cwebsocket/Makefile +++ b/netutils/cwebsocket/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/cwebsocket/Makefile # +# 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/netutils/dhcp6c/CMakeLists.txt b/netutils/dhcp6c/CMakeLists.txt index 6ded1078b37..63b061cce86 100644 --- a/netutils/dhcp6c/CMakeLists.txt +++ b/netutils/dhcp6c/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/dhcp6c/CMakeLists.txt # +# 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 diff --git a/netutils/dhcp6c/Make.defs b/netutils/dhcp6c/Make.defs index 39c2c4a3248..120d94f7881 100644 --- a/netutils/dhcp6c/Make.defs +++ b/netutils/dhcp6c/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/dhcp6c/Make.defs # +# 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/netutils/dhcp6c/Makefile b/netutils/dhcp6c/Makefile index c4c659693dc..e7be145f304 100644 --- a/netutils/dhcp6c/Makefile +++ b/netutils/dhcp6c/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/dhcp6c/Makefile # +# 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/netutils/dhcp6c/dhcp6c.c b/netutils/dhcp6c/dhcp6c.c index a264721315b..5418c0a98a5 100644 --- a/netutils/dhcp6c/dhcp6c.c +++ b/netutils/dhcp6c/dhcp6c.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/dhcp6c/dhcp6c.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/netutils/dhcpc/CMakeLists.txt b/netutils/dhcpc/CMakeLists.txt index 3fdea80c226..7bc2ba17e2b 100644 --- a/netutils/dhcpc/CMakeLists.txt +++ b/netutils/dhcpc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/dhcpc/CMakeLists.txt # +# 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 diff --git a/netutils/dhcpc/Make.defs b/netutils/dhcpc/Make.defs index 2022610d84e..84be9ecdc91 100644 --- a/netutils/dhcpc/Make.defs +++ b/netutils/dhcpc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/dhcpc/Make.defs # +# 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/netutils/dhcpc/Makefile b/netutils/dhcpc/Makefile index 4eaea283a8a..43b62a53c67 100644 --- a/netutils/dhcpc/Makefile +++ b/netutils/dhcpc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/dhcpc/Makefile # +# 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/netutils/dhcpc/dhcpc.c b/netutils/dhcpc/dhcpc.c index 2e365e122e7..38de90b2ea4 100644 --- a/netutils/dhcpc/dhcpc.c +++ b/netutils/dhcpc/dhcpc.c @@ -1,14 +1,11 @@ /**************************************************************************** * apps/netutils/dhcpc/dhcpc.c * - * Copyright (C) 2007, 2009, 2011-2012 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Based heavily on portions of uIP: - * - * Author: Adam Dunkels - * Copyright (c) 2005, Swedish Institute of Computer Science - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2007, 2009, 2011-2012 Gregory Nutt. + * SPDX-FileCopyrightText: 2005, Swedish Institute of Computer Science + * SPDX-FileContributor: Gregory Nutt + * SPDX-FileContributor: Adam Dunkels * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/dhcpd/CMakeLists.txt b/netutils/dhcpd/CMakeLists.txt index ab53fa881e5..5c859f23044 100644 --- a/netutils/dhcpd/CMakeLists.txt +++ b/netutils/dhcpd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/dhcpd/CMakeLists.txt # +# 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 diff --git a/netutils/dhcpd/Make.defs b/netutils/dhcpd/Make.defs index f91aa017e27..7b676ed3352 100644 --- a/netutils/dhcpd/Make.defs +++ b/netutils/dhcpd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/dhcpd/Make.defs # +# 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/netutils/dhcpd/Makefile b/netutils/dhcpd/Makefile index be43f42096d..41e2f971cf0 100644 --- a/netutils/dhcpd/Makefile +++ b/netutils/dhcpd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/dhcpd/Makefile # +# 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/netutils/dhcpd/dhcpd.c b/netutils/dhcpd/dhcpd.c index 2f8f280d5cd..367dda5265d 100644 --- a/netutils/dhcpd/dhcpd.c +++ b/netutils/dhcpd/dhcpd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/dhcpd/dhcpd.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/netutils/discover/CMakeLists.txt b/netutils/discover/CMakeLists.txt index 040744fca76..32337dcbf2b 100644 --- a/netutils/discover/CMakeLists.txt +++ b/netutils/discover/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/discover/CMakeLists.txt # +# 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 diff --git a/netutils/discover/Make.defs b/netutils/discover/Make.defs index 6fcbe4d68bc..95a7a9b451c 100644 --- a/netutils/discover/Make.defs +++ b/netutils/discover/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/discover/Make.defs # +# 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/netutils/discover/Makefile b/netutils/discover/Makefile index e38c97571b8..43bd51b7c05 100644 --- a/netutils/discover/Makefile +++ b/netutils/discover/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/discover/Makefile # +# 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/netutils/discover/discover.c b/netutils/discover/discover.c index fd77447a801..6bb3f675b8b 100644 --- a/netutils/discover/discover.c +++ b/netutils/discover/discover.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/discover/discover.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/netutils/esp8266/CMakeLists.txt b/netutils/esp8266/CMakeLists.txt index 9ed0bbfe5fd..b9232cc6072 100644 --- a/netutils/esp8266/CMakeLists.txt +++ b/netutils/esp8266/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/esp8266/CMakeLists.txt # +# 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 diff --git a/netutils/esp8266/Make.defs b/netutils/esp8266/Make.defs index d78ee97f713..6f9a2f463b1 100644 --- a/netutils/esp8266/Make.defs +++ b/netutils/esp8266/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/esp8266/Make.defs # +# 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/netutils/esp8266/Makefile b/netutils/esp8266/Makefile index 357bcb83e8b..faf0f91a393 100644 --- a/netutils/esp8266/Makefile +++ b/netutils/esp8266/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/esp8266/Makefile # +# 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/netutils/esp8266/esp8266.c b/netutils/esp8266/esp8266.c index 5b8b7f62ab8..ac64b4b2f67 100644 --- a/netutils/esp8266/esp8266.c +++ b/netutils/esp8266/esp8266.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/esp8266/esp8266.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/netutils/ftpc/CMakeLists.txt b/netutils/ftpc/CMakeLists.txt index 290f7131070..073e22c3c7a 100644 --- a/netutils/ftpc/CMakeLists.txt +++ b/netutils/ftpc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/ftpc/CMakeLists.txt # +# 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 diff --git a/netutils/ftpc/Make.defs b/netutils/ftpc/Make.defs index 185126699c7..df47acf29a2 100644 --- a/netutils/ftpc/Make.defs +++ b/netutils/ftpc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/ftpc/Make.defs # +# 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/netutils/ftpc/Makefile b/netutils/ftpc/Makefile index 16e2850d1f8..8a7ee81f9c5 100644 --- a/netutils/ftpc/Makefile +++ b/netutils/ftpc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/ftpc/Makefile # +# 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/netutils/ftpc/ftpc_cdup.c b/netutils/ftpc/ftpc_cdup.c index 25eee22838b..6959918560f 100644 --- a/netutils/ftpc/ftpc_cdup.c +++ b/netutils/ftpc/ftpc_cdup.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_cdup.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/netutils/ftpc/ftpc_chdir.c b/netutils/ftpc/ftpc_chdir.c index de356ed8e51..fcfba68ed04 100644 --- a/netutils/ftpc/ftpc_chdir.c +++ b/netutils/ftpc/ftpc_chdir.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_chdir.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/netutils/ftpc/ftpc_chmod.c b/netutils/ftpc/ftpc_chmod.c index 6e949ee0ec2..5710b7c8bc0 100644 --- a/netutils/ftpc/ftpc_chmod.c +++ b/netutils/ftpc/ftpc_chmod.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_chmod.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/netutils/ftpc/ftpc_cmd.c b/netutils/ftpc/ftpc_cmd.c index 08d3070414f..b6b7556b565 100644 --- a/netutils/ftpc/ftpc_cmd.c +++ b/netutils/ftpc/ftpc_cmd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_cmd.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/netutils/ftpc/ftpc_config.h b/netutils/ftpc/ftpc_config.h index ff429f1d7b5..9ac5e08ed86 100644 --- a/netutils/ftpc/ftpc_config.h +++ b/netutils/ftpc/ftpc_config.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_config.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 diff --git a/netutils/ftpc/ftpc_connect.c b/netutils/ftpc/ftpc_connect.c index ff1759fa5fc..8624f4905c2 100644 --- a/netutils/ftpc/ftpc_connect.c +++ b/netutils/ftpc/ftpc_connect.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_connect.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/netutils/ftpc/ftpc_disconnect.c b/netutils/ftpc/ftpc_disconnect.c index 60224ffe713..794b1a06bce 100644 --- a/netutils/ftpc/ftpc_disconnect.c +++ b/netutils/ftpc/ftpc_disconnect.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_disconnect.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/netutils/ftpc/ftpc_filesize.c b/netutils/ftpc/ftpc_filesize.c index 2593eac04d9..67df7da3d85 100644 --- a/netutils/ftpc/ftpc_filesize.c +++ b/netutils/ftpc/ftpc_filesize.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_filesize.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/netutils/ftpc/ftpc_filetime.c b/netutils/ftpc/ftpc_filetime.c index 5f3ab5e81f8..8a9611803de 100644 --- a/netutils/ftpc/ftpc_filetime.c +++ b/netutils/ftpc/ftpc_filetime.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_filetime.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/netutils/ftpc/ftpc_getfile.c b/netutils/ftpc/ftpc_getfile.c index 902d61aba17..83524df4e24 100644 --- a/netutils/ftpc/ftpc_getfile.c +++ b/netutils/ftpc/ftpc_getfile.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_getfile.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/netutils/ftpc/ftpc_getreply.c b/netutils/ftpc/ftpc_getreply.c index 9dd3415384f..d5a3d098368 100644 --- a/netutils/ftpc/ftpc_getreply.c +++ b/netutils/ftpc/ftpc_getreply.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_getreply.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/netutils/ftpc/ftpc_help.c b/netutils/ftpc/ftpc_help.c index fcf28190d43..b1c777f4a3d 100644 --- a/netutils/ftpc/ftpc_help.c +++ b/netutils/ftpc/ftpc_help.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_help.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/netutils/ftpc/ftpc_idle.c b/netutils/ftpc/ftpc_idle.c index eea2c054b2c..42e2fdbef50 100644 --- a/netutils/ftpc/ftpc_idle.c +++ b/netutils/ftpc/ftpc_idle.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_idle.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/netutils/ftpc/ftpc_internal.h b/netutils/ftpc/ftpc_internal.h index c01cb1b694a..70e9bb7b91e 100644 --- a/netutils/ftpc/ftpc_internal.h +++ b/netutils/ftpc/ftpc_internal.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_internal.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 diff --git a/netutils/ftpc/ftpc_listdir.c b/netutils/ftpc/ftpc_listdir.c index 44c7c9c44b7..92461f6e3ab 100644 --- a/netutils/ftpc/ftpc_listdir.c +++ b/netutils/ftpc/ftpc_listdir.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_listdir.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/netutils/ftpc/ftpc_login.c b/netutils/ftpc/ftpc_login.c index 7691ae44d66..9e99c0dc525 100644 --- a/netutils/ftpc/ftpc_login.c +++ b/netutils/ftpc/ftpc_login.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_login.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/netutils/ftpc/ftpc_mkdir.c b/netutils/ftpc/ftpc_mkdir.c index c065e34ebc4..53817a378e7 100644 --- a/netutils/ftpc/ftpc_mkdir.c +++ b/netutils/ftpc/ftpc_mkdir.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_mkdir.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/netutils/ftpc/ftpc_noop.c b/netutils/ftpc/ftpc_noop.c index f96a4c989fd..bc72985b933 100644 --- a/netutils/ftpc/ftpc_noop.c +++ b/netutils/ftpc/ftpc_noop.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_noop.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/netutils/ftpc/ftpc_putfile.c b/netutils/ftpc/ftpc_putfile.c index feeaf431354..9ac75cc0e76 100644 --- a/netutils/ftpc/ftpc_putfile.c +++ b/netutils/ftpc/ftpc_putfile.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_putfile.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/netutils/ftpc/ftpc_quit.c b/netutils/ftpc/ftpc_quit.c index 0669e1d952e..28e5acd867a 100644 --- a/netutils/ftpc/ftpc_quit.c +++ b/netutils/ftpc/ftpc_quit.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_quit.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/netutils/ftpc/ftpc_rename.c b/netutils/ftpc/ftpc_rename.c index 90c1f2efc11..8b3e761ffab 100644 --- a/netutils/ftpc/ftpc_rename.c +++ b/netutils/ftpc/ftpc_rename.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_rename.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/netutils/ftpc/ftpc_response.c b/netutils/ftpc/ftpc_response.c index eb381163680..ac2040e39f0 100644 --- a/netutils/ftpc/ftpc_response.c +++ b/netutils/ftpc/ftpc_response.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_response.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/netutils/ftpc/ftpc_rmdir.c b/netutils/ftpc/ftpc_rmdir.c index f2f90bffc54..b8db51dc15b 100644 --- a/netutils/ftpc/ftpc_rmdir.c +++ b/netutils/ftpc/ftpc_rmdir.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_rmdir.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/netutils/ftpc/ftpc_rpwd.c b/netutils/ftpc/ftpc_rpwd.c index fce28e621fa..8ff608d9bbe 100644 --- a/netutils/ftpc/ftpc_rpwd.c +++ b/netutils/ftpc/ftpc_rpwd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_rpwd.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/netutils/ftpc/ftpc_socket.c b/netutils/ftpc/ftpc_socket.c index 0856ba2556d..db9b4ccd0c7 100644 --- a/netutils/ftpc/ftpc_socket.c +++ b/netutils/ftpc/ftpc_socket.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_socket.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/netutils/ftpc/ftpc_transfer.c b/netutils/ftpc/ftpc_transfer.c index 16864791831..7d294d52dc4 100644 --- a/netutils/ftpc/ftpc_transfer.c +++ b/netutils/ftpc/ftpc_transfer.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_transfer.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/netutils/ftpc/ftpc_unlink.c b/netutils/ftpc/ftpc_unlink.c index 2d99d19628d..42ba48d4882 100644 --- a/netutils/ftpc/ftpc_unlink.c +++ b/netutils/ftpc/ftpc_unlink.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_unlink.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/netutils/ftpc/ftpc_utils.c b/netutils/ftpc/ftpc_utils.c index 23e461fc06b..829aa8672fc 100644 --- a/netutils/ftpc/ftpc_utils.c +++ b/netutils/ftpc/ftpc_utils.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpc/ftpc_utils.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/netutils/ftpd/CMakeLists.txt b/netutils/ftpd/CMakeLists.txt index a75bc2ff0d6..c8e742a0989 100644 --- a/netutils/ftpd/CMakeLists.txt +++ b/netutils/ftpd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/ftpd/CMakeLists.txt # +# 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 diff --git a/netutils/ftpd/Make.defs b/netutils/ftpd/Make.defs index 772fadd8358..21ed7f819d1 100644 --- a/netutils/ftpd/Make.defs +++ b/netutils/ftpd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/ftpd/Make.defs # +# 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/netutils/ftpd/Makefile b/netutils/ftpd/Makefile index 2a61453fe47..244f740d1bd 100644 --- a/netutils/ftpd/Makefile +++ b/netutils/ftpd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/ftpd/Makefile # +# 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/netutils/ftpd/ftpd.c b/netutils/ftpd/ftpd.c index 9df08a1a65e..12491030a46 100644 --- a/netutils/ftpd/ftpd.c +++ b/netutils/ftpd/ftpd.c @@ -1,14 +1,11 @@ /**************************************************************************** * apps/netutils/ftpd/ftpd.c * - * Copyright (C) 2012, 2015, 2020 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Includes original code as well as logic adapted from hwport_ftpd, written - * by Jaehyuk Cho which is released under a BSD license. - * - * Copyright (C) hwport.com. All rights reserved. - * Author: Jaehyuk Cho + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2012, 2015, 2020 Gregory Nutt. + * SPDX-FileCopyrightText: hwport.com. All rights reserved. + * SPDX-FileContributor: Gregory Nutt + * SPDX-FileContributor: Jaehyuk Cho * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/ftpd/ftpd.h b/netutils/ftpd/ftpd.h index 31f3ca3e62c..5acea4a2886 100644 --- a/netutils/ftpd/ftpd.h +++ b/netutils/ftpd/ftpd.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ftpd/ftpd.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 diff --git a/netutils/iperf/CMakeLists.txt b/netutils/iperf/CMakeLists.txt index feea71ea6e4..a566030c7bf 100644 --- a/netutils/iperf/CMakeLists.txt +++ b/netutils/iperf/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/iperf/CMakeLists.txt # +# 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 diff --git a/netutils/iperf/Make.defs b/netutils/iperf/Make.defs index 0e121368233..893564b3f37 100644 --- a/netutils/iperf/Make.defs +++ b/netutils/iperf/Make.defs @@ -1,6 +1,7 @@ ############################################################################ # apps/netutils/iperf/Make.defs -# Adds selected applications to apps/ build +# +# 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 diff --git a/netutils/iperf/Makefile b/netutils/iperf/Makefile index 9db5e0cc5f9..148026eccda 100644 --- a/netutils/iperf/Makefile +++ b/netutils/iperf/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/iperf/Makefile # +# 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/netutils/iperf/iperf.c b/netutils/iperf/iperf.c index 55ee3ca8e94..cda61f68edc 100644 --- a/netutils/iperf/iperf.c +++ b/netutils/iperf/iperf.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/iperf/iperf.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/netutils/iperf/iperf.h b/netutils/iperf/iperf.h index 14b295a9f9f..86739cd5f82 100644 --- a/netutils/iperf/iperf.h +++ b/netutils/iperf/iperf.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/iperf/iperf.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 diff --git a/netutils/iperf/iperf_main.c b/netutils/iperf/iperf_main.c index fc42c13a862..67ff3855ef0 100644 --- a/netutils/iperf/iperf_main.c +++ b/netutils/iperf/iperf_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/iperf/iperf_main.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/netutils/iptables/CMakeLists.txt b/netutils/iptables/CMakeLists.txt index 94f1816d6ee..b049971c235 100644 --- a/netutils/iptables/CMakeLists.txt +++ b/netutils/iptables/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/iptables/CMakeLists.txt # +# 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 diff --git a/netutils/iptables/Make.defs b/netutils/iptables/Make.defs index 17e09d4f913..2ea07def710 100644 --- a/netutils/iptables/Make.defs +++ b/netutils/iptables/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/iptables/Make.defs # +# 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/netutils/iptables/Makefile b/netutils/iptables/Makefile index 08559b73bbc..4b0fe6ee722 100644 --- a/netutils/iptables/Makefile +++ b/netutils/iptables/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/iptables/Makefile # +# 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/netutils/iptables/xtables.c b/netutils/iptables/xtables.c index 6691706a05e..9786db4727d 100644 --- a/netutils/iptables/xtables.c +++ b/netutils/iptables/xtables.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/iptables/xtables.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/netutils/jsoncpp/CMakeLists.txt b/netutils/jsoncpp/CMakeLists.txt index 61422e948d5..3f8d1790370 100644 --- a/netutils/jsoncpp/CMakeLists.txt +++ b/netutils/jsoncpp/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/jsoncpp/CMakeLists.txt # +# 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 diff --git a/netutils/jsoncpp/Make.defs b/netutils/jsoncpp/Make.defs index 3803ab9c064..b66b557f2b9 100644 --- a/netutils/jsoncpp/Make.defs +++ b/netutils/jsoncpp/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/jsoncpp/Make.defs # +# 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/netutils/jsoncpp/Makefile b/netutils/jsoncpp/Makefile index 58f301ff5a6..c7218eaaf19 100644 --- a/netutils/jsoncpp/Makefile +++ b/netutils/jsoncpp/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/jsoncpp/Makefile # +# 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/netutils/libcoap/CMakeLists.txt b/netutils/libcoap/CMakeLists.txt index 5e26c4d350f..404fd9956e1 100644 --- a/netutils/libcoap/CMakeLists.txt +++ b/netutils/libcoap/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/libcoap/CMakeLists.txt # +# 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 diff --git a/netutils/libcoap/Make.defs b/netutils/libcoap/Make.defs index e53c8d306a5..c2d7c3ffb86 100644 --- a/netutils/libcoap/Make.defs +++ b/netutils/libcoap/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/libcoap/Make.defs # +# 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/netutils/libcoap/Makefile b/netutils/libcoap/Makefile index e69c9be1700..877fdb8437c 100644 --- a/netutils/libcoap/Makefile +++ b/netutils/libcoap/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/libcoap/Makefile # +# 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/netutils/libcoap/coap_config.h b/netutils/libcoap/coap_config.h index 4e44e5e8103..b05bb6433d6 100644 --- a/netutils/libcoap/coap_config.h +++ b/netutils/libcoap/coap_config.h @@ -1,11 +1,11 @@ /**************************************************************************** * apps/netutils/libcoap/coap_config.h * - * Copyright (C) 2020 Carlos Gomes Martinho - * - * Copyright (C) 2021-2023 Jon Shallow - * * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2020 Carlos Gomes Martinho + * + * SPDX-FileCopyrightText: 2021-2023 Jon Shallow + * * * This file is part of the CoAP library libcoap. Please see README for terms * of use. diff --git a/netutils/libcurl4nx/CMakeLists.txt b/netutils/libcurl4nx/CMakeLists.txt index 7fbf7615809..4a565fd3954 100644 --- a/netutils/libcurl4nx/CMakeLists.txt +++ b/netutils/libcurl4nx/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/libcurl4nx/CMakeLists.txt # +# 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 diff --git a/netutils/libcurl4nx/Make.defs b/netutils/libcurl4nx/Make.defs index e4be480e14f..f3a3a4350dc 100644 --- a/netutils/libcurl4nx/Make.defs +++ b/netutils/libcurl4nx/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/libcurl4nx/Make.defs # +# 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/netutils/libcurl4nx/Makefile b/netutils/libcurl4nx/Makefile index 43dde03f448..47eeba9aa48 100644 --- a/netutils/libcurl4nx/Makefile +++ b/netutils/libcurl4nx/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/libcurl4nx/Makefile # +# 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/netutils/libcurl4nx/curl4nx_easy_cleanup.c b/netutils/libcurl4nx/curl4nx_easy_cleanup.c index 353bdf9c273..1c30006716c 100644 --- a/netutils/libcurl4nx/curl4nx_easy_cleanup.c +++ b/netutils/libcurl4nx/curl4nx_easy_cleanup.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/libcurl4nx/curl4nx_easy_cleanup.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/netutils/libcurl4nx/curl4nx_easy_duphandle.c b/netutils/libcurl4nx/curl4nx_easy_duphandle.c index f6a10fdc08c..4de16e0aff8 100644 --- a/netutils/libcurl4nx/curl4nx_easy_duphandle.c +++ b/netutils/libcurl4nx/curl4nx_easy_duphandle.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/libcurl4nx/curl4nx_easy_duphandle.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/netutils/libcurl4nx/curl4nx_easy_escape.c b/netutils/libcurl4nx/curl4nx_easy_escape.c index cdd77eb1dcc..ff76d6d8cd5 100644 --- a/netutils/libcurl4nx/curl4nx_easy_escape.c +++ b/netutils/libcurl4nx/curl4nx_easy_escape.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/libcurl4nx/curl4nx_easy_escape.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/netutils/libcurl4nx/curl4nx_easy_getinfo.c b/netutils/libcurl4nx/curl4nx_easy_getinfo.c index 274bcec426f..ed8e90a9d46 100644 --- a/netutils/libcurl4nx/curl4nx_easy_getinfo.c +++ b/netutils/libcurl4nx/curl4nx_easy_getinfo.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/libcurl4nx/curl4nx_easy_getinfo.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/netutils/libcurl4nx/curl4nx_easy_init.c b/netutils/libcurl4nx/curl4nx_easy_init.c index 0fd3d6aec20..1817bf73464 100644 --- a/netutils/libcurl4nx/curl4nx_easy_init.c +++ b/netutils/libcurl4nx/curl4nx_easy_init.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/libcurl4nx/curl4nx_easy_init.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/netutils/libcurl4nx/curl4nx_easy_perform.c b/netutils/libcurl4nx/curl4nx_easy_perform.c index 0fdaa1b5aa1..466b3efe7d2 100644 --- a/netutils/libcurl4nx/curl4nx_easy_perform.c +++ b/netutils/libcurl4nx/curl4nx_easy_perform.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/libcurl4nx/curl4nx_easy_perform.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/netutils/libcurl4nx/curl4nx_easy_reset.c b/netutils/libcurl4nx/curl4nx_easy_reset.c index d40806f5234..7ece89011ba 100644 --- a/netutils/libcurl4nx/curl4nx_easy_reset.c +++ b/netutils/libcurl4nx/curl4nx_easy_reset.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/libcurl4nx/curl4nx_easy_reset.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/netutils/libcurl4nx/curl4nx_easy_setopt.c b/netutils/libcurl4nx/curl4nx_easy_setopt.c index 02fe5d12e4e..03f8ff5d1e0 100644 --- a/netutils/libcurl4nx/curl4nx_easy_setopt.c +++ b/netutils/libcurl4nx/curl4nx_easy_setopt.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/libcurl4nx/curl4nx_easy_setopt.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/netutils/libcurl4nx/curl4nx_easy_unescape.c b/netutils/libcurl4nx/curl4nx_easy_unescape.c index 8d1c1bca3a4..23f169afecb 100644 --- a/netutils/libcurl4nx/curl4nx_easy_unescape.c +++ b/netutils/libcurl4nx/curl4nx_easy_unescape.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/libcurl4nx/curl4nx_easy_unescape.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/netutils/libcurl4nx/curl4nx_private.h b/netutils/libcurl4nx/curl4nx_private.h index 96fcdd93eeb..a67fd0ab098 100644 --- a/netutils/libcurl4nx/curl4nx_private.h +++ b/netutils/libcurl4nx/curl4nx_private.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/libcurl4nx/curl4nx_private.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 diff --git a/netutils/libwebsockets/Make.defs b/netutils/libwebsockets/Make.defs index 7094809e5bb..13fe3849c63 100644 --- a/netutils/libwebsockets/Make.defs +++ b/netutils/libwebsockets/Make.defs @@ -1,6 +1,8 @@ ############################################################################# # apps/netutils/libwebsockets/Make.defs # +# 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/netutils/libwebsockets/Makefile b/netutils/libwebsockets/Makefile index f95e77ecbcf..ad8c0c5e6c8 100644 --- a/netutils/libwebsockets/Makefile +++ b/netutils/libwebsockets/Makefile @@ -1,6 +1,8 @@ ############################################################################# # apps/netutils/libwebsockets/Makefile # +# 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/netutils/libwebsockets/lws_config.h b/netutils/libwebsockets/lws_config.h index d4903b8a433..3fe970b4772 100644 --- a/netutils/libwebsockets/lws_config.h +++ b/netutils/libwebsockets/lws_config.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/libwebsockets/lws_config.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 diff --git a/netutils/libwebsockets/lws_config_private.h b/netutils/libwebsockets/lws_config_private.h index 893e02f0524..8f5170faff9 100644 --- a/netutils/libwebsockets/lws_config_private.h +++ b/netutils/libwebsockets/lws_config_private.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/libwebsockets/lws_config_private.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 @@ -150,4 +152,4 @@ /* Defined if you have the header file. */ #define LWS_HAVE_INTTYPES_H -#endif \ No newline at end of file +#endif diff --git a/netutils/mqttc/Make.defs b/netutils/mqttc/Make.defs index 7c9d235d2df..dc27a70466d 100644 --- a/netutils/mqttc/Make.defs +++ b/netutils/mqttc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/mqttc/Make.defs # +# 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/netutils/mqttc/Makefile b/netutils/mqttc/Makefile index 89f3a7fc702..730ce5139bd 100644 --- a/netutils/mqttc/Makefile +++ b/netutils/mqttc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/mqttc/Makefile # +# 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/netutils/nanopb/Make.defs b/netutils/nanopb/Make.defs index 6cd3bef2608..a59e73d5cdc 100644 --- a/netutils/nanopb/Make.defs +++ b/netutils/nanopb/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/nanopb/Make.defs # +# 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/netutils/nanopb/Makefile b/netutils/nanopb/Makefile index 8bc6982474c..c3624e7ad27 100644 --- a/netutils/nanopb/Makefile +++ b/netutils/nanopb/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/nanopb/Makefile # +# 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/netutils/netcat/CMakeLists.txt b/netutils/netcat/CMakeLists.txt index 9efd885122b..7ac7d78309e 100644 --- a/netutils/netcat/CMakeLists.txt +++ b/netutils/netcat/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/netcat/CMakeLists.txt # +# 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 diff --git a/netutils/netcat/Make.defs b/netutils/netcat/Make.defs index 7e55c357130..5356f19a1c0 100644 --- a/netutils/netcat/Make.defs +++ b/netutils/netcat/Make.defs @@ -1,6 +1,7 @@ ############################################################################# # apps/netutils/netcat/Make.defs -# netcat sample networking application +# +# 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 diff --git a/netutils/netcat/Makefile b/netutils/netcat/Makefile index cc09c0c24f7..c4c3022b3d4 100644 --- a/netutils/netcat/Makefile +++ b/netutils/netcat/Makefile @@ -1,6 +1,7 @@ ############################################################################# # apps/netutils/netcat/Makefile -# Netcat networking application +# +# 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 diff --git a/netutils/netcat/netcat_main.c b/netutils/netcat/netcat_main.c index 155de558fc7..4c5d9670414 100644 --- a/netutils/netcat/netcat_main.c +++ b/netutils/netcat/netcat_main.c @@ -1,6 +1,7 @@ /**************************************************************************** * apps/netutils/netcat/netcat_main.c - * netcat networking application + * + * 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 diff --git a/netutils/netinit/CMakeLists.txt b/netutils/netinit/CMakeLists.txt index 899a6ebf8a5..694ea93dfe5 100644 --- a/netutils/netinit/CMakeLists.txt +++ b/netutils/netinit/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/netinit/CMakeLists.txt # +# 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 diff --git a/netutils/netinit/Make.defs b/netutils/netinit/Make.defs index effb3f05f25..634118797cb 100644 --- a/netutils/netinit/Make.defs +++ b/netutils/netinit/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/netinit/Make.defs # +# 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/netutils/netinit/Makefile b/netutils/netinit/Makefile index 8ee21511fe9..aecf0932546 100644 --- a/netutils/netinit/Makefile +++ b/netutils/netinit/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/netinit/Makefile # +# 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/netutils/netinit/netinit.c b/netutils/netinit/netinit.c index 6a72c3bfe2a..4433eb4a564 100644 --- a/netutils/netinit/netinit.c +++ b/netutils/netinit/netinit.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netinit/netinit.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/netutils/netinit/netinit_associate.c b/netutils/netinit/netinit_associate.c index 161a3545b88..0ce4beff044 100644 --- a/netutils/netinit/netinit_associate.c +++ b/netutils/netinit/netinit_associate.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netinit/netinit_associate.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/netutils/netlib/CMakeLists.txt b/netutils/netlib/CMakeLists.txt index 068fa68fe08..d97307e6d03 100644 --- a/netutils/netlib/CMakeLists.txt +++ b/netutils/netlib/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/netlib/CMakeLists.txt # +# 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 diff --git a/netutils/netlib/Make.defs b/netutils/netlib/Make.defs index 15a44d43fec..144e6fcac86 100644 --- a/netutils/netlib/Make.defs +++ b/netutils/netlib/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/netlib/Make.defs # +# 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/netutils/netlib/Makefile b/netutils/netlib/Makefile index dc8be99d2b6..93508ef859c 100644 --- a/netutils/netlib/Makefile +++ b/netutils/netlib/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/netlib/Makefile # +# 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/netutils/netlib/netlib_addipv6addr.c b/netutils/netlib/netlib_addipv6addr.c index 142e3e1e3b6..77c18a6f199 100644 --- a/netutils/netlib/netlib_addipv6addr.c +++ b/netutils/netlib/netlib_addipv6addr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_addipv6addr.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/netutils/netlib/netlib_autoconfig.c b/netutils/netlib/netlib_autoconfig.c index 56f169de756..92bde61a63c 100644 --- a/netutils/netlib/netlib_autoconfig.c +++ b/netutils/netlib/netlib_autoconfig.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_autoconfig.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/netutils/netlib/netlib_conntrack.c b/netutils/netlib/netlib_conntrack.c index fda39476ab9..b6312dd5cc1 100644 --- a/netutils/netlib/netlib_conntrack.c +++ b/netutils/netlib/netlib_conntrack.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_conntrack.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/netutils/netlib/netlib_delarp.c b/netutils/netlib/netlib_delarp.c index 77778ad4295..7a263211c33 100644 --- a/netutils/netlib/netlib_delarp.c +++ b/netutils/netlib/netlib_delarp.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_delarp.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/netutils/netlib/netlib_delipv6addr.c b/netutils/netlib/netlib_delipv6addr.c index d83ffa8077b..bea37aace52 100644 --- a/netutils/netlib/netlib_delipv6addr.c +++ b/netutils/netlib/netlib_delipv6addr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_delipv6addr.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/netutils/netlib/netlib_eaddrconv.c b/netutils/netlib/netlib_eaddrconv.c index 2f97e05f94b..9039e10b5bf 100644 --- a/netutils/netlib/netlib_eaddrconv.c +++ b/netutils/netlib/netlib_eaddrconv.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_eaddrconv.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/netutils/netlib/netlib_ethaddrconv.c b/netutils/netlib/netlib_ethaddrconv.c index 5f42547d9f8..f83bc779d02 100644 --- a/netutils/netlib/netlib_ethaddrconv.c +++ b/netutils/netlib/netlib_ethaddrconv.c @@ -1,16 +1,12 @@ /**************************************************************************** * apps/netutils/netlib/netlib_ethaddrconv.c - * Various uIP library functions. * - * Copyright (C) 2007, 2009, 2011, 2016 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Based on uIP which also has a BSD style license: - * - * Author: Adam Dunkels - * Copyright (c) 2004, Adam Dunkels and the Swedish Institute of - * Computer Science. - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2007, 2009, 2011, 2016 Gregory Nutt. + * SPDX-FileCopyrightText: 2004 Adam Dunkels. + * SPDX-FileCopyrightText: 2004 Swedish Institute of Computer Science. + * SPDX-FileContributor: Gregory Nutt + * SPDX-FileContributor: Adam Dunkels * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/netlib/netlib_getarp.c b/netutils/netlib/netlib_getarp.c index 63ec03b0c78..d023bce300d 100644 --- a/netutils/netlib/netlib_getarp.c +++ b/netutils/netlib/netlib_getarp.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getarp.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/netutils/netlib/netlib_getarptab.c b/netutils/netlib/netlib_getarptab.c index f38b9a89dd2..8efb5e89196 100644 --- a/netutils/netlib/netlib_getarptab.c +++ b/netutils/netlib/netlib_getarptab.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getarptab.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/netutils/netlib/netlib_getdevs.c b/netutils/netlib/netlib_getdevs.c index 64260e4a034..0e56fe5c564 100644 --- a/netutils/netlib/netlib_getdevs.c +++ b/netutils/netlib/netlib_getdevs.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getdevs.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/netutils/netlib/netlib_getdripv4addr.c b/netutils/netlib/netlib_getdripv4addr.c index 32398baa921..b6415124e17 100644 --- a/netutils/netlib/netlib_getdripv4addr.c +++ b/netutils/netlib/netlib_getdripv4addr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getdripv4addr.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/netutils/netlib/netlib_getessid.c b/netutils/netlib/netlib_getessid.c index 6204c174549..0eb2702c504 100644 --- a/netutils/netlib/netlib_getessid.c +++ b/netutils/netlib/netlib_getessid.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getessid.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/netutils/netlib/netlib_getifstatistics.c b/netutils/netlib/netlib_getifstatistics.c index a6ac33e6c4d..b838d556dc9 100644 --- a/netutils/netlib/netlib_getifstatistics.c +++ b/netutils/netlib/netlib_getifstatistics.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getifstatistics.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/netutils/netlib/netlib_getifstatus.c b/netutils/netlib/netlib_getifstatus.c index 378a0bec14b..753e869c337 100644 --- a/netutils/netlib/netlib_getifstatus.c +++ b/netutils/netlib/netlib_getifstatus.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getifstatus.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/netutils/netlib/netlib_getipv4addr.c b/netutils/netlib/netlib_getipv4addr.c index 56a61853a89..ec9736b958e 100644 --- a/netutils/netlib/netlib_getipv4addr.c +++ b/netutils/netlib/netlib_getipv4addr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getipv4addr.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/netutils/netlib/netlib_getipv4netmask.c b/netutils/netlib/netlib_getipv4netmask.c index a341774b196..d1a0d037663 100644 --- a/netutils/netlib/netlib_getipv4netmask.c +++ b/netutils/netlib/netlib_getipv4netmask.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getipv4netmask.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/netutils/netlib/netlib_getipv6addr.c b/netutils/netlib/netlib_getipv6addr.c index 1260e1f09df..15697d5e2e7 100644 --- a/netutils/netlib/netlib_getipv6addr.c +++ b/netutils/netlib/netlib_getipv6addr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getipv6addr.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/netutils/netlib/netlib_getmacaddr.c b/netutils/netlib/netlib_getmacaddr.c index 4a0b7bce73e..1bce3098d97 100644 --- a/netutils/netlib/netlib_getmacaddr.c +++ b/netutils/netlib/netlib_getmacaddr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getmacaddr.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/netutils/netlib/netlib_getnbtab.c b/netutils/netlib/netlib_getnbtab.c index 519f89fbd8e..521746f211b 100644 --- a/netutils/netlib/netlib_getnbtab.c +++ b/netutils/netlib/netlib_getnbtab.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getnbtab.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/netutils/netlib/netlib_getnodeaddr.c b/netutils/netlib/netlib_getnodeaddr.c index 19724456b30..d35d29eba08 100644 --- a/netutils/netlib/netlib_getnodeaddr.c +++ b/netutils/netlib/netlib_getnodeaddr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getnodeaddr.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/netutils/netlib/netlib_getpanid.c b/netutils/netlib/netlib_getpanid.c index ca63db1b34e..c6b236559fd 100644 --- a/netutils/netlib/netlib_getpanid.c +++ b/netutils/netlib/netlib_getpanid.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getpanid.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/netutils/netlib/netlib_getproperties.c b/netutils/netlib/netlib_getproperties.c index d0f2c4cf2c0..9ffbc66bfb8 100644 --- a/netutils/netlib/netlib_getproperties.c +++ b/netutils/netlib/netlib_getproperties.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getproperties.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/netutils/netlib/netlib_getroute.c b/netutils/netlib/netlib_getroute.c index 07db740704a..ff7c318bc74 100644 --- a/netutils/netlib/netlib_getroute.c +++ b/netutils/netlib/netlib_getroute.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_getroute.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/netutils/netlib/netlib_ip6tables.c b/netutils/netlib/netlib_ip6tables.c index 59915077bc7..d966e432d2a 100644 --- a/netutils/netlib/netlib_ip6tables.c +++ b/netutils/netlib/netlib_ip6tables.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_ip6tables.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/netutils/netlib/netlib_ipmsfilter.c b/netutils/netlib/netlib_ipmsfilter.c index 29af7746dcd..d7f9b0ff16d 100644 --- a/netutils/netlib/netlib_ipmsfilter.c +++ b/netutils/netlib/netlib_ipmsfilter.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_ipmsfilter.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/netutils/netlib/netlib_iptables.c b/netutils/netlib/netlib_iptables.c index adfb442d853..e27576a33a2 100644 --- a/netutils/netlib/netlib_iptables.c +++ b/netutils/netlib/netlib_iptables.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_iptables.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/netutils/netlib/netlib_ipv4adaptor.c b/netutils/netlib/netlib_ipv4adaptor.c index c38bd0df10f..92cd73c9433 100644 --- a/netutils/netlib/netlib_ipv4adaptor.c +++ b/netutils/netlib/netlib_ipv4adaptor.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_ipv4adaptor.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/netutils/netlib/netlib_ipv4addrconv.c b/netutils/netlib/netlib_ipv4addrconv.c index 1341eab76fd..27325ca0a18 100644 --- a/netutils/netlib/netlib_ipv4addrconv.c +++ b/netutils/netlib/netlib_ipv4addrconv.c @@ -1,15 +1,12 @@ /**************************************************************************** * apps/netutils/netlib/netlib_ipv4addrconv.c * - * Copyright (C) 2007, 2009, 2011, 2016 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Based on uIP which also has a BSD style license: - * - * Author: Adam Dunkels - * Copyright (c) 2004, Adam Dunkels and the Swedish Institute of - * Computer Science. - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2007, 2009, 2011, 2016 Gregory Nutt. + * SPDX-FileCopyrightText: 2004 Adam Dunkels. + * SPDX-FileCopyrightText: 2004 Swedish Institute of Computer Science. + * SPDX-FileContributor: Gregory Nutt + * SPDX-FileContributor: Adam Dunkels * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/netlib/netlib_ipv4route.c b/netutils/netlib/netlib_ipv4route.c index f5343801cac..225b68c0b2f 100644 --- a/netutils/netlib/netlib_ipv4route.c +++ b/netutils/netlib/netlib_ipv4route.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_ipv4route.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/netutils/netlib/netlib_ipv4router.c b/netutils/netlib/netlib_ipv4router.c index 73f672daf55..f1877fbc062 100644 --- a/netutils/netlib/netlib_ipv4router.c +++ b/netutils/netlib/netlib_ipv4router.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_ipv4router.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/netutils/netlib/netlib_ipv6adaptor.c b/netutils/netlib/netlib_ipv6adaptor.c index 7cfdd3308ee..cb979cc02c8 100644 --- a/netutils/netlib/netlib_ipv6adaptor.c +++ b/netutils/netlib/netlib_ipv6adaptor.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_ipv6adaptor.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/netutils/netlib/netlib_ipv6netmask2prefix.c b/netutils/netlib/netlib_ipv6netmask2prefix.c index a3ce602bf26..b2fb5d1bfb4 100644 --- a/netutils/netlib/netlib_ipv6netmask2prefix.c +++ b/netutils/netlib/netlib_ipv6netmask2prefix.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_ipv6netmask2prefix.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/netutils/netlib/netlib_ipv6route.c b/netutils/netlib/netlib_ipv6route.c index c35e26f4ac5..a0e10fa7c77 100644 --- a/netutils/netlib/netlib_ipv6route.c +++ b/netutils/netlib/netlib_ipv6route.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_ipv6route.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/netutils/netlib/netlib_ipv6router.c b/netutils/netlib/netlib_ipv6router.c index bb7ff3dbe07..ce041373f5b 100644 --- a/netutils/netlib/netlib_ipv6router.c +++ b/netutils/netlib/netlib_ipv6router.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_ipv6router.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/netutils/netlib/netlib_listenon.c b/netutils/netlib/netlib_listenon.c index 13482541155..608937ff755 100644 --- a/netutils/netlib/netlib_listenon.c +++ b/netutils/netlib/netlib_listenon.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_listenon.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/netutils/netlib/netlib_nodeaddrconv.c b/netutils/netlib/netlib_nodeaddrconv.c index 76816725f2e..67c6ee2f75e 100644 --- a/netutils/netlib/netlib_nodeaddrconv.c +++ b/netutils/netlib/netlib_nodeaddrconv.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_nodeaddrconv.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/netutils/netlib/netlib_obtainipv4addr.c b/netutils/netlib/netlib_obtainipv4addr.c index 53e8ea7251d..6156445f627 100644 --- a/netutils/netlib/netlib_obtainipv4addr.c +++ b/netutils/netlib/netlib_obtainipv4addr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_obtainipv4addr.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/netutils/netlib/netlib_obtainipv6addr.c b/netutils/netlib/netlib_obtainipv6addr.c index f5054c3e053..f556677051f 100644 --- a/netutils/netlib/netlib_obtainipv6addr.c +++ b/netutils/netlib/netlib_obtainipv6addr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_obtainipv6addr.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/netutils/netlib/netlib_parsehttpurl.c b/netutils/netlib/netlib_parsehttpurl.c index 0cba03d0bb1..d56a800567e 100644 --- a/netutils/netlib/netlib_parsehttpurl.c +++ b/netutils/netlib/netlib_parsehttpurl.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_parsehttpurl.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/netutils/netlib/netlib_parseurl.c b/netutils/netlib/netlib_parseurl.c index a806129667b..b6bfda64396 100644 --- a/netutils/netlib/netlib_parseurl.c +++ b/netutils/netlib/netlib_parseurl.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_parseurl.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/netutils/netlib/netlib_prefix2ipv6netmask.c b/netutils/netlib/netlib_prefix2ipv6netmask.c index c8f7a71d983..b82bbbcb46e 100644 --- a/netutils/netlib/netlib_prefix2ipv6netmask.c +++ b/netutils/netlib/netlib_prefix2ipv6netmask.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_prefix2ipv6netmask.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/netutils/netlib/netlib_saddrconv.c b/netutils/netlib/netlib_saddrconv.c index 069ba11eb81..d3dda010fce 100644 --- a/netutils/netlib/netlib_saddrconv.c +++ b/netutils/netlib/netlib_saddrconv.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_saddrconv.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/netutils/netlib/netlib_server.c b/netutils/netlib/netlib_server.c index 3c9bdf69cef..98ff5e907fb 100644 --- a/netutils/netlib/netlib_server.c +++ b/netutils/netlib/netlib_server.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_server.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/netutils/netlib/netlib_setarp.c b/netutils/netlib/netlib_setarp.c index edb566089c1..88dbba81044 100644 --- a/netutils/netlib/netlib_setarp.c +++ b/netutils/netlib/netlib_setarp.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_setarp.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/netutils/netlib/netlib_setdripv4addr.c b/netutils/netlib/netlib_setdripv4addr.c index 019c50b0310..1b5ad5052e7 100644 --- a/netutils/netlib/netlib_setdripv4addr.c +++ b/netutils/netlib/netlib_setdripv4addr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_setdripv4addr.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/netutils/netlib/netlib_setdripv6addr.c b/netutils/netlib/netlib_setdripv6addr.c index 4da663e6c5c..2f1a1b7e09a 100644 --- a/netutils/netlib/netlib_setdripv6addr.c +++ b/netutils/netlib/netlib_setdripv6addr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_setdripv6addr.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/netutils/netlib/netlib_seteaddr.c b/netutils/netlib/netlib_seteaddr.c index 6008fc3aa87..fdabc726906 100644 --- a/netutils/netlib/netlib_seteaddr.c +++ b/netutils/netlib/netlib_seteaddr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_seteaddr.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/netutils/netlib/netlib_setessid.c b/netutils/netlib/netlib_setessid.c index ab91d09bf8a..0a45e42fa98 100644 --- a/netutils/netlib/netlib_setessid.c +++ b/netutils/netlib/netlib_setessid.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_setessid.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/netutils/netlib/netlib_setifstatus.c b/netutils/netlib/netlib_setifstatus.c index 6a36eaa9025..8a3f58db111 100644 --- a/netutils/netlib/netlib_setifstatus.c +++ b/netutils/netlib/netlib_setifstatus.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_setifstatus.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/netutils/netlib/netlib_setipv4addr.c b/netutils/netlib/netlib_setipv4addr.c index 8ada0e48a53..db03ddb6114 100644 --- a/netutils/netlib/netlib_setipv4addr.c +++ b/netutils/netlib/netlib_setipv4addr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_setipv4addr.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/netutils/netlib/netlib_setipv4dnsaddr.c b/netutils/netlib/netlib_setipv4dnsaddr.c index f95af1c9d0d..ae155eabee9 100644 --- a/netutils/netlib/netlib_setipv4dnsaddr.c +++ b/netutils/netlib/netlib_setipv4dnsaddr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_setipv4dnsaddr.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/netutils/netlib/netlib_setipv4netmask.c b/netutils/netlib/netlib_setipv4netmask.c index c34b017f6a9..9abd0aaa665 100644 --- a/netutils/netlib/netlib_setipv4netmask.c +++ b/netutils/netlib/netlib_setipv4netmask.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_setipv4netmask.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/netutils/netlib/netlib_setipv6addr.c b/netutils/netlib/netlib_setipv6addr.c index 79cad9bd06b..6c2ee0b3d3f 100644 --- a/netutils/netlib/netlib_setipv6addr.c +++ b/netutils/netlib/netlib_setipv6addr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_setipv6addr.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/netutils/netlib/netlib_setipv6dnsaddr.c b/netutils/netlib/netlib_setipv6dnsaddr.c index ee7b5afe0e6..123951c47a4 100644 --- a/netutils/netlib/netlib_setipv6dnsaddr.c +++ b/netutils/netlib/netlib_setipv6dnsaddr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_setipv6dnsaddr.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/netutils/netlib/netlib_setipv6netmask.c b/netutils/netlib/netlib_setipv6netmask.c index 985d55ed749..443adcafe08 100644 --- a/netutils/netlib/netlib_setipv6netmask.c +++ b/netutils/netlib/netlib_setipv6netmask.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_setipv6netmask.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/netutils/netlib/netlib_setmacaddr.c b/netutils/netlib/netlib_setmacaddr.c index 07c3263cea1..d794ec45e01 100644 --- a/netutils/netlib/netlib_setmacaddr.c +++ b/netutils/netlib/netlib_setmacaddr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_setmacaddr.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/netutils/netlib/netlib_setmtu.c b/netutils/netlib/netlib_setmtu.c index 8c36b2c277e..18b81809cb7 100644 --- a/netutils/netlib/netlib_setmtu.c +++ b/netutils/netlib/netlib_setmtu.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_setmtu.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/netutils/netlib/netlib_setnodeaddr.c b/netutils/netlib/netlib_setnodeaddr.c index 7e41e59c6e8..7bc58cafc8a 100644 --- a/netutils/netlib/netlib_setnodeaddr.c +++ b/netutils/netlib/netlib_setnodeaddr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/netlib/netlib_setnodeaddr.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/netutils/nng/Make.defs b/netutils/nng/Make.defs index 0eea850157f..e0e9193372d 100644 --- a/netutils/nng/Make.defs +++ b/netutils/nng/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/nng/Make.defs # +# 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/netutils/nng/Makefile b/netutils/nng/Makefile index 8d45e2130ce..e3e1a0f8981 100644 --- a/netutils/nng/Makefile +++ b/netutils/nng/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/nng/Makefile # +# 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/netutils/ntpclient/CMakeLists.txt b/netutils/ntpclient/CMakeLists.txt index df273e02e94..3a6a47d5e00 100644 --- a/netutils/ntpclient/CMakeLists.txt +++ b/netutils/ntpclient/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/ntpclient/CMakeLists.txt # +# 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 diff --git a/netutils/ntpclient/Make.defs b/netutils/ntpclient/Make.defs index 691ddfe4b34..d97f3db49a1 100644 --- a/netutils/ntpclient/Make.defs +++ b/netutils/ntpclient/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/ntpclient/Make.defs # +# 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/netutils/ntpclient/Makefile b/netutils/ntpclient/Makefile index 27233557646..d528591dae3 100644 --- a/netutils/ntpclient/Makefile +++ b/netutils/ntpclient/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/ntpclient/Makefile # +# 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/netutils/ntpclient/ntpclient.c b/netutils/ntpclient/ntpclient.c index ac48a3e091d..66aaacb4aaa 100644 --- a/netutils/ntpclient/ntpclient.c +++ b/netutils/ntpclient/ntpclient.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ntpclient/ntpclient.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/netutils/ntpclient/ntpv3.h b/netutils/ntpclient/ntpv3.h index 0f439a32ee3..837722697eb 100644 --- a/netutils/ntpclient/ntpv3.h +++ b/netutils/ntpclient/ntpv3.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ntpclient/ntpv3.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 diff --git a/netutils/ping/CMakeLists.txt b/netutils/ping/CMakeLists.txt index e250aaa97de..9f362a5ba4a 100644 --- a/netutils/ping/CMakeLists.txt +++ b/netutils/ping/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/ping/CMakeLists.txt # +# 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 diff --git a/netutils/ping/Make.defs b/netutils/ping/Make.defs index 753819bf283..70680487ffd 100644 --- a/netutils/ping/Make.defs +++ b/netutils/ping/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/ping/Make.defs # +# 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/netutils/ping/Makefile b/netutils/ping/Makefile index 847950a80f8..f65b1744596 100644 --- a/netutils/ping/Makefile +++ b/netutils/ping/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/ping/Makefile # +# 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/netutils/ping/icmp_ping.c b/netutils/ping/icmp_ping.c index 024bbeb2dac..efbc8a61a78 100644 --- a/netutils/ping/icmp_ping.c +++ b/netutils/ping/icmp_ping.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ping/icmp_ping.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/netutils/ping/icmpv6_ping.c b/netutils/ping/icmpv6_ping.c index 96bdae10ded..74cd59ee975 100644 --- a/netutils/ping/icmpv6_ping.c +++ b/netutils/ping/icmpv6_ping.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ping/icmpv6_ping.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/netutils/pppd/CMakeLists.txt b/netutils/pppd/CMakeLists.txt index 5d160b28951..0c35f1cbb7f 100644 --- a/netutils/pppd/CMakeLists.txt +++ b/netutils/pppd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/pppd/CMakeLists.txt # +# 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 diff --git a/netutils/pppd/Make.defs b/netutils/pppd/Make.defs index 7d0412ec4ee..cad4791fcf3 100644 --- a/netutils/pppd/Make.defs +++ b/netutils/pppd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/pppd/Make.defs # +# 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/netutils/pppd/Makefile b/netutils/pppd/Makefile index ca97e72bb17..b5a8c98e853 100644 --- a/netutils/pppd/Makefile +++ b/netutils/pppd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/pppd/Makefile # +# 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/netutils/ptpd/Make.defs b/netutils/ptpd/Make.defs index c3f5f60ffb0..5034710eca0 100644 --- a/netutils/ptpd/Make.defs +++ b/netutils/ptpd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/ptpd/Make.defs # +# 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/netutils/ptpd/Makefile b/netutils/ptpd/Makefile index 3f3e98a361b..95b19a640e5 100644 --- a/netutils/ptpd/Makefile +++ b/netutils/ptpd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/ptpd/Makefile # +# 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/netutils/ptpd/ptpd.c b/netutils/ptpd/ptpd.c index 080e7b2cafc..309f78a07f1 100644 --- a/netutils/ptpd/ptpd.c +++ b/netutils/ptpd/ptpd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ptpd/ptpd.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/netutils/ptpd/ptpv2.h b/netutils/ptpd/ptpv2.h index 93bc667f2d0..8b031567b74 100644 --- a/netutils/ptpd/ptpv2.h +++ b/netutils/ptpd/ptpv2.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/ptpd/ptpv2.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 diff --git a/netutils/rexec/CMakeLists.txt b/netutils/rexec/CMakeLists.txt index ee95badb9e2..1c6d63d6ba4 100644 --- a/netutils/rexec/CMakeLists.txt +++ b/netutils/rexec/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/rexec/CMakeLists.txt # +# 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 diff --git a/netutils/rexec/Make.defs b/netutils/rexec/Make.defs index bcc9bbd6589..deb3b2de6df 100644 --- a/netutils/rexec/Make.defs +++ b/netutils/rexec/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/rexec/Make.defs # +# 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/netutils/rexec/Makefile b/netutils/rexec/Makefile index 98d7f5e33f6..c033850779f 100644 --- a/netutils/rexec/Makefile +++ b/netutils/rexec/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/rexec/Makefile # +# 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/netutils/rexec/rexec.c b/netutils/rexec/rexec.c index 69346d87235..3276ac56a43 100644 --- a/netutils/rexec/rexec.c +++ b/netutils/rexec/rexec.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/rexec/rexec.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/netutils/rexecd/CMakeLists.txt b/netutils/rexecd/CMakeLists.txt index 1e37e9acebd..0da40f5bd63 100644 --- a/netutils/rexecd/CMakeLists.txt +++ b/netutils/rexecd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/rexecd/CMakeLists.txt # +# 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 diff --git a/netutils/rexecd/Make.defs b/netutils/rexecd/Make.defs index 4bb13e4538c..9f0533f291e 100644 --- a/netutils/rexecd/Make.defs +++ b/netutils/rexecd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/rexecd/Make.defs # +# 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/netutils/rexecd/Makefile b/netutils/rexecd/Makefile index c39d9ca65cf..ea332bea600 100644 --- a/netutils/rexecd/Makefile +++ b/netutils/rexecd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/rexecd/Makefile # +# 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/netutils/rexecd/rexecd.c b/netutils/rexecd/rexecd.c index 431ea26c48f..5c301c62a99 100644 --- a/netutils/rexecd/rexecd.c +++ b/netutils/rexecd/rexecd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/rexecd/rexecd.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/netutils/rtptools/CMakeLists.txt b/netutils/rtptools/CMakeLists.txt index 6627bef78c2..76c8a0ab47c 100644 --- a/netutils/rtptools/CMakeLists.txt +++ b/netutils/rtptools/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/rtptools/CMakeLists.txt # +# 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 diff --git a/netutils/rtptools/Make.defs b/netutils/rtptools/Make.defs index 0c4cf384026..be02f518f33 100644 --- a/netutils/rtptools/Make.defs +++ b/netutils/rtptools/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/rtptools/Make.defs # +# 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/netutils/rtptools/Makefile b/netutils/rtptools/Makefile index b6b3a970424..91080291b68 100644 --- a/netutils/rtptools/Makefile +++ b/netutils/rtptools/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/rtptools/Makefile # +# 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/netutils/rtptools/config.h b/netutils/rtptools/config.h index dd077ee99e0..975e6a00537 100644 --- a/netutils/rtptools/config.h +++ b/netutils/rtptools/config.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/rtptools/config.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 diff --git a/netutils/smtp/CMakeLists.txt b/netutils/smtp/CMakeLists.txt index 680d8336f89..29402455a6f 100644 --- a/netutils/smtp/CMakeLists.txt +++ b/netutils/smtp/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/smtp/CMakeLists.txt # +# 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 diff --git a/netutils/smtp/Make.defs b/netutils/smtp/Make.defs index 8a2184741ac..9736ebb534d 100644 --- a/netutils/smtp/Make.defs +++ b/netutils/smtp/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/smtp/Make.defs # +# 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/netutils/smtp/Makefile b/netutils/smtp/Makefile index 55878ae13d4..d0866399d6a 100644 --- a/netutils/smtp/Makefile +++ b/netutils/smtp/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/smtp/Makefile # +# 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/netutils/smtp/smtp.c b/netutils/smtp/smtp.c index 83081361dda..2a8d2334600 100644 --- a/netutils/smtp/smtp.c +++ b/netutils/smtp/smtp.c @@ -1,22 +1,12 @@ /**************************************************************************** * apps/netutils/smtp/smtp.c - * smtp SMTP E-mail sender * - * Copyright (C) 2007, 2009, 2011, 2015, 2020 Gregory Nutt. All rights - * reserved. - * Author: Gregory Nutt - * - * Heavily leveraged from uIP 1.0 which also has a BSD-like license: - * - * The Simple Mail Transfer Protocol (SMTP) as defined by RFC821 is - * the standard way of sending and transferring e-mail on the - * Internet. This simple example implementation is intended as an - * example of how to implement protocols in uIP, and is able to send - * out e-mail but has not been extensively tested. - * - * Author: Adam Dunkels - * Copyright (c) 2004, Adam Dunkels. - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2015, 2020 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2007, 2009, 2011, Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2004, Adam Dunkels. All rights reserved. + * SPDX-FileContributor: Gregory Nutt + * SPDX-FileContributor: Adam Dunkels * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/telnetc/CMakeLists.txt b/netutils/telnetc/CMakeLists.txt index 1f24a3b05c7..ec92b08b36a 100644 --- a/netutils/telnetc/CMakeLists.txt +++ b/netutils/telnetc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/telnetc/CMakeLists.txt # +# 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 diff --git a/netutils/telnetc/Make.defs b/netutils/telnetc/Make.defs index a9da1ef00b9..7e989f656c9 100644 --- a/netutils/telnetc/Make.defs +++ b/netutils/telnetc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/telnetc/Make.defs # +# 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/netutils/telnetc/Makefile b/netutils/telnetc/Makefile index e0361e70de5..4d0a7291718 100644 --- a/netutils/telnetc/Makefile +++ b/netutils/telnetc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/telnetc/Makefile # +# 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/netutils/telnetc/telnetc.c b/netutils/telnetc/telnetc.c index 73d5f422be0..24f63c206d1 100644 --- a/netutils/telnetc/telnetc.c +++ b/netutils/telnetc/telnetc.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/telnetc/telnetc.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/netutils/telnetd/CMakeLists.txt b/netutils/telnetd/CMakeLists.txt index e46969021d1..322868ae094 100644 --- a/netutils/telnetd/CMakeLists.txt +++ b/netutils/telnetd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/telnetd/CMakeLists.txt # +# 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 diff --git a/netutils/telnetd/Make.defs b/netutils/telnetd/Make.defs index d2903dae047..7dcdc877628 100644 --- a/netutils/telnetd/Make.defs +++ b/netutils/telnetd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/telnetd/Make.defs # +# 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/netutils/telnetd/Makefile b/netutils/telnetd/Makefile index 9eab6856e59..d53bcacf415 100644 --- a/netutils/telnetd/Makefile +++ b/netutils/telnetd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/telnetd/Makefile # +# 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/netutils/telnetd/telnetd_daemon.c b/netutils/telnetd/telnetd_daemon.c index b78e9f5db17..ed02b156909 100644 --- a/netutils/telnetd/telnetd_daemon.c +++ b/netutils/telnetd/telnetd_daemon.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/telnetd/telnetd_daemon.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/netutils/tftpc/CMakeLists.txt b/netutils/tftpc/CMakeLists.txt index f0eaee92aab..bb808b15f66 100644 --- a/netutils/tftpc/CMakeLists.txt +++ b/netutils/tftpc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/tftpc/CMakeLists.txt # +# 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 diff --git a/netutils/tftpc/Make.defs b/netutils/tftpc/Make.defs index aeb33fe947a..f6abbc18c54 100644 --- a/netutils/tftpc/Make.defs +++ b/netutils/tftpc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/tftpc/Make.defs # +# 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/netutils/tftpc/Makefile b/netutils/tftpc/Makefile index b2594517d91..3fe7a411943 100644 --- a/netutils/tftpc/Makefile +++ b/netutils/tftpc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/tftpc/Makefile # +# 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/netutils/tftpc/tftpc_get.c b/netutils/tftpc/tftpc_get.c index 4432e1e960f..36227e29a6a 100644 --- a/netutils/tftpc/tftpc_get.c +++ b/netutils/tftpc/tftpc_get.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/tftpc/tftpc_get.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/netutils/tftpc/tftpc_internal.h b/netutils/tftpc/tftpc_internal.h index 83443b85416..337bbeb6822 100644 --- a/netutils/tftpc/tftpc_internal.h +++ b/netutils/tftpc/tftpc_internal.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/tftpc/tftpc_internal.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 diff --git a/netutils/tftpc/tftpc_packets.c b/netutils/tftpc/tftpc_packets.c index 4c981a43efd..05d56083ca3 100644 --- a/netutils/tftpc/tftpc_packets.c +++ b/netutils/tftpc/tftpc_packets.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/tftpc/tftpc_packets.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/netutils/tftpc/tftpc_put.c b/netutils/tftpc/tftpc_put.c index a30e3579871..3f3a9c849ce 100644 --- a/netutils/tftpc/tftpc_put.c +++ b/netutils/tftpc/tftpc_put.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/tftpc/tftpc_put.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/netutils/thttpd/CMakeLists.txt b/netutils/thttpd/CMakeLists.txt index d7da13a19e3..232cfc71045 100644 --- a/netutils/thttpd/CMakeLists.txt +++ b/netutils/thttpd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/thttpd/CMakeLists.txt # +# 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 diff --git a/netutils/thttpd/Make.defs b/netutils/thttpd/Make.defs index abd53b55bd8..7847dbf24ac 100644 --- a/netutils/thttpd/Make.defs +++ b/netutils/thttpd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/thttpd/Make.defs # +# 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/netutils/thttpd/Makefile b/netutils/thttpd/Makefile index 65a5f42e8dc..78d39ce7bde 100644 --- a/netutils/thttpd/Makefile +++ b/netutils/thttpd/Makefile @@ -1,6 +1,8 @@ ############################################################################# # apps/netutils/thttpd/Makefile # +# 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/netutils/thttpd/cgi-src/Makefile b/netutils/thttpd/cgi-src/Makefile index 4be27bb696a..dfe18f95425 100644 --- a/netutils/thttpd/cgi-src/Makefile +++ b/netutils/thttpd/cgi-src/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/thttpd/cgi-src/Makefile # +# 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/netutils/thttpd/cgi-src/phf.c b/netutils/thttpd/cgi-src/phf.c index 9e065df91c5..4155ae98e86 100644 --- a/netutils/thttpd/cgi-src/phf.c +++ b/netutils/thttpd/cgi-src/phf.c @@ -1,14 +1,10 @@ /**************************************************************************** * apps/netutils/thttpd/cgi-src/phf.c - * Cracker trap * - * Copyright (C) 2009, 2015 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file of the same name in the original THTTPD package: - * - * Copyright © 1996 by Jef Poskanzer . - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2009, 2015 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 1996 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/cgi-src/redirect.c b/netutils/thttpd/cgi-src/redirect.c index 87811af241e..3b24bb11160 100644 --- a/netutils/thttpd/cgi-src/redirect.c +++ b/netutils/thttpd/cgi-src/redirect.c @@ -1,14 +1,10 @@ /**************************************************************************** * apps/netutils/thttpd/cgi-src/redirect.c - * Simple redirection CGI program * - * Copyright (C) 2009, 2015 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file of the same name in the original THTTPD package: - * - * Copyright © 1995 by Jef Poskanzer . - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2009, 2015 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 1995 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/cgi-src/ssi.c b/netutils/thttpd/cgi-src/ssi.c index 6608ba77f76..9c7f4681700 100644 --- a/netutils/thttpd/cgi-src/ssi.c +++ b/netutils/thttpd/cgi-src/ssi.c @@ -1,14 +1,10 @@ /**************************************************************************** * apps/netutils/thttpd/cgi-src/ssi.c - * Server-side-includes CGI program * - * Copyright (C) 2009, 2015 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file of the same name in the original THTTPD package: - * - * Copyright 1995 by Jef Poskanzer . - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2009, 2015 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 1995 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/config.h b/netutils/thttpd/config.h index acbbef4a605..dee2eb54245 100644 --- a/netutils/thttpd/config.h +++ b/netutils/thttpd/config.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/thttpd/config.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 diff --git a/netutils/thttpd/fdwatch.c b/netutils/thttpd/fdwatch.c index a58b012b601..320cf1a8571 100644 --- a/netutils/thttpd/fdwatch.c +++ b/netutils/thttpd/fdwatch.c @@ -1,14 +1,10 @@ /**************************************************************************** * apps/netutils/thttpd/fdwatch.c - * FD watcher routines for poll() * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file of the same name in the original THTTPD package: - * - * Copyright (C) 1999,2000 by Jef Poskanzer . - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 1999,2000 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/fdwatch.h b/netutils/thttpd/fdwatch.h index 4cb67aaa418..b985e17f9e2 100644 --- a/netutils/thttpd/fdwatch.h +++ b/netutils/thttpd/fdwatch.h @@ -1,13 +1,10 @@ /**************************************************************************** * apps/netutils/thttpd/fdwatch.h * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file of the same name in THTTPD: - * - * Copyright (C) 1999 by Jef Poskanzer . - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 1999 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/libhttpd.c b/netutils/thttpd/libhttpd.c index 697dd1d50cc..9bb8d20d7ef 100644 --- a/netutils/thttpd/libhttpd.c +++ b/netutils/thttpd/libhttpd.c @@ -1,14 +1,13 @@ /**************************************************************************** * apps/netutils/thttpd/libhttpd.c - * HTTP Protocol Library * - * Copyright (C) 2011, 2013, 2015-2016 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file of the same name in the original THTTPD package: - * - * Copyright 1995,1998,1999,2000,2001 by Jef Poskanzer . - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2015, 2016 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2011, 2013 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2000, 2001 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1998, 1999 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1995 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/libhttpd.h b/netutils/thttpd/libhttpd.h index e5c3486716d..310b9f625fd 100644 --- a/netutils/thttpd/libhttpd.h +++ b/netutils/thttpd/libhttpd.h @@ -1,15 +1,12 @@ /**************************************************************************** * apps/netutils/thttpd/libhttpd.h - * HTTP Protocol Library Definitions * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file of the same name in the original THTTPD package: - * - * Copyright (C) 1995,1998,1999,2000,2001 by Jef Poskanzer - * . - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2000, 2001 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1998, 1999 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1995 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/mime_types.h b/netutils/thttpd/mime_types.h index 8889cd3f735..4b0ba121eb1 100644 --- a/netutils/thttpd/mime_types.h +++ b/netutils/thttpd/mime_types.h @@ -1,39 +1,29 @@ /**************************************************************************** * apps/netutils/thttpd/mime_types.h - * Provides mappings between filename extensions, MIME types and encodings. * - * Based on mime_encodings.txt and mime_types.txt by Jef Poskanser which - * contained no copyright information. + * SPDX-License-Identifier: Apache-2.0 * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * 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 * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * http://www.apache.org/licenses/LICENSE-2.0 * - * 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 - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * 3. Neither the name NuttX nor the names of its contributors may be - * used to endorse or promote products derived from this software - * without specific prior written permission. + * 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. + * + ****************************************************************************/ + +/**************************************************************************** * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 OWNER 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. + * Based on mime_encodings.txt and mime_types.txt by Jef Poskanser which + * contained no copyright information. * ****************************************************************************/ diff --git a/netutils/thttpd/tdate_parse.c b/netutils/thttpd/tdate_parse.c index 3622ffe9725..113059223d0 100644 --- a/netutils/thttpd/tdate_parse.c +++ b/netutils/thttpd/tdate_parse.c @@ -1,14 +1,10 @@ /**************************************************************************** * apps/netutils/thttpd/tdate_parse.c - * Parse string dates into internal form, stripped-down version * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file of the same name in the original THTTPD package: - * - * Copyright © 1995 by Jef Poskanzer . - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 1995 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/tdate_parse.h b/netutils/thttpd/tdate_parse.h index 8b984301dd9..efec65900fc 100644 --- a/netutils/thttpd/tdate_parse.h +++ b/netutils/thttpd/tdate_parse.h @@ -1,13 +1,10 @@ /**************************************************************************** * apps/netutils/thttpd/tdate_parse.h * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file of the same name in THTTPD: - * - * Copyright (C) 1995 by Jef Poskanzer . - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 1995 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/thttpd.c b/netutils/thttpd/thttpd.c index 58c6a290b43..22338665b16 100644 --- a/netutils/thttpd/thttpd.c +++ b/netutils/thttpd/thttpd.c @@ -1,14 +1,12 @@ /**************************************************************************** * apps/netutils/thttpd/thttpd.c - * Tiny HTTP Server * - * Copyright (C) 2009, 2011 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file of the same name in the original THTTPD package: - * - * Copyright (C) 1995,1998,1999,2000,2001 by - * Jef Poskanzer . All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2009, 2011 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2000, 2001 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1998, 1999 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1995 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/thttpd_alloc.c b/netutils/thttpd/thttpd_alloc.c index 15640575fdc..7999f7823a7 100644 --- a/netutils/thttpd/thttpd_alloc.c +++ b/netutils/thttpd/thttpd_alloc.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/thttpd/thttpd_alloc.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/netutils/thttpd/thttpd_alloc.h b/netutils/thttpd/thttpd_alloc.h index 639e74dadf9..eab3208a1ea 100644 --- a/netutils/thttpd/thttpd_alloc.h +++ b/netutils/thttpd/thttpd_alloc.h @@ -1,35 +1,22 @@ /**************************************************************************** * apps/netutils/thttpd/thttpd_alloc.h * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * SPDX-License-Identifier: Apache-2.0 * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * 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 * - * 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 - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. - * 3. Neither the name NuttX nor the names of its contributors may be - * used to endorse or promote products derived from this software - * without specific prior written permission. + * http://www.apache.org/licenses/LICENSE-2.0 * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 OWNER 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. + * 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. * ****************************************************************************/ diff --git a/netutils/thttpd/thttpd_cgi.c b/netutils/thttpd/thttpd_cgi.c index 456350b42b9..5c891456005 100644 --- a/netutils/thttpd/thttpd_cgi.c +++ b/netutils/thttpd/thttpd_cgi.c @@ -1,14 +1,13 @@ /**************************************************************************** * apps/netutils/thttpd/thttpd_cgi.c - * CGI support * - * Copyright (C) 2009, 2011, 2016 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file libhttpd.c in the original THTTPD package: - * - * Copyright © 1995,1998,1999,2000,2001 by - * Jef Poskanzer . All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2011, 2016 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2000, 2001 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1998, 1999 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1995 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/thttpd_cgi.h b/netutils/thttpd/thttpd_cgi.h index 2d5c34bc198..2adcc676768 100644 --- a/netutils/thttpd/thttpd_cgi.h +++ b/netutils/thttpd/thttpd_cgi.h @@ -1,15 +1,12 @@ /**************************************************************************** * apps/netutils/thttpd/thttpd_cgi.h - * CGI support * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file libhttpd.c in the original THTTPD package: - * - * Copyright (C) 1995,1998,1999,2000,2001 by Jef Poskanzer - * . - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2000, 2001 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1998, 1999 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1995 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/thttpd_strings.c b/netutils/thttpd/thttpd_strings.c index d541b7dcd0e..60f78e14dc4 100644 --- a/netutils/thttpd/thttpd_strings.c +++ b/netutils/thttpd/thttpd_strings.c @@ -1,14 +1,12 @@ /**************************************************************************** * apps/netutils/thttpd/thttpd_strings.c - * HTTP strings * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file of the same name in the original THTTPD package: - * - * Copyright © 1995,1998,1999,2000,2001 by Jef Poskanzer - * . All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2000, 2001 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1998, 1999 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1995 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/thttpd_strings.h b/netutils/thttpd/thttpd_strings.h index 9b8d64d5a8c..ae063f63acf 100644 --- a/netutils/thttpd/thttpd_strings.h +++ b/netutils/thttpd/thttpd_strings.h @@ -1,14 +1,12 @@ /**************************************************************************** * apps/netutils/thttpd/thttpd_strings.h - * HTTP strings * - * Copyright (C) 2009, 2015 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file of the same name in the original THTTPD package: - * - * Copyright (C) 1995,1998,1999,2000,2001 by Jef Poskanzer - * . All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2009, 2015 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2000, 2001 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1998, 1999 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1995 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/timers.c b/netutils/thttpd/timers.c index 828756d607a..a3bd898310c 100644 --- a/netutils/thttpd/timers.c +++ b/netutils/thttpd/timers.c @@ -1,14 +1,11 @@ /**************************************************************************** * apps/netutils/thttpd/timers.c - * Simple Timer Routines * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file of the same name in the original THTTPD package: - * - * Copyright © 1995,1998,2000 by Jef Poskanzer . - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 1998, 2000 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1995 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/thttpd/timers.h b/netutils/thttpd/timers.h index 4975a980918..dab16e29726 100644 --- a/netutils/thttpd/timers.h +++ b/netutils/thttpd/timers.h @@ -1,14 +1,12 @@ /**************************************************************************** * apps/netutils/thttpd/timers.h - * Header file for THTTPD timers package * - * Copyright (C) 2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Derived from the file of the same name in THTTPD: - * - * Copyright (C) 1995,1998,1999,2000 by Jef Poskanzer . - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2000 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1998, 1999 by Jef Poskanzer . + * SPDX-FileCopyrightText: 1995 by Jef Poskanzer . + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/wakaama/CMakeLists.txt b/netutils/wakaama/CMakeLists.txt index 4f56ebb135e..97a6823c28e 100644 --- a/netutils/wakaama/CMakeLists.txt +++ b/netutils/wakaama/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/wakaama/CMakeLists.txt # +# 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 diff --git a/netutils/wakaama/examples.cmake b/netutils/wakaama/examples.cmake index bfce0ffb068..3c4e6257f97 100644 --- a/netutils/wakaama/examples.cmake +++ b/netutils/wakaama/examples.cmake @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/wakaama/examples.cmake # +# 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 diff --git a/netutils/wakeonlan/CMakeLists.txt b/netutils/wakeonlan/CMakeLists.txt index b773dd3ef58..c881d7c7792 100644 --- a/netutils/wakeonlan/CMakeLists.txt +++ b/netutils/wakeonlan/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/wakeonlan/CMakeLists.txt # +# 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 diff --git a/netutils/wakeonlan/Make.defs b/netutils/wakeonlan/Make.defs index e673d0be0d0..b36aab16713 100644 --- a/netutils/wakeonlan/Make.defs +++ b/netutils/wakeonlan/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/wakeonlan/Make.defs # +# 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/netutils/wakeonlan/Makefile b/netutils/wakeonlan/Makefile index dc767528ed9..1e1cfc2b2ad 100644 --- a/netutils/wakeonlan/Makefile +++ b/netutils/wakeonlan/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/wakeonlan/Makefile # +# 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/netutils/wakeonlan/wol_main.c b/netutils/wakeonlan/wol_main.c index e756e178004..9c289bf1687 100644 --- a/netutils/wakeonlan/wol_main.c +++ b/netutils/wakeonlan/wol_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/wakeonlan/wol_main.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/netutils/webclient/CMakeLists.txt b/netutils/webclient/CMakeLists.txt index 2c09042174d..b3dfaf22d2d 100644 --- a/netutils/webclient/CMakeLists.txt +++ b/netutils/webclient/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/webclient/CMakeLists.txt # +# 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 diff --git a/netutils/webclient/Make.defs b/netutils/webclient/Make.defs index b0277210a70..4f775bfc16e 100644 --- a/netutils/webclient/Make.defs +++ b/netutils/webclient/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/webclient/Make.defs # +# 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/netutils/webclient/Makefile b/netutils/webclient/Makefile index 22b347f8b97..6446c8f8076 100644 --- a/netutils/webclient/Makefile +++ b/netutils/webclient/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/webclient/Makefile # +# 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/netutils/webclient/webclient.c b/netutils/webclient/webclient.c index d16db2f0720..8784b68b562 100644 --- a/netutils/webclient/webclient.c +++ b/netutils/webclient/webclient.c @@ -1,16 +1,13 @@ /**************************************************************************** * apps/netutils/webclient/webclient.c - * Implementation of the HTTP client. * - * Copyright (C) 2007, 2009, 2011-2012, 2014, 2020 Gregory Nutt. - * All rights reserved. - * Author: Gregory Nutt - * - * Based on uIP which also has a BSD style license: - * - * Author: Adam Dunkels - * Copyright (c) 2002, Adam Dunkels. - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2014, 2020 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2011-2012 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2007, 2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2002 Adam Dunkels. All rights reserved. + * SPDX-FileContributor: Gregory Nutt + * SPDX-FileContributor: Adam Dunkels * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/webserver/CMakeLists.txt b/netutils/webserver/CMakeLists.txt index 1d76e6592f5..fa7e37dd8d2 100644 --- a/netutils/webserver/CMakeLists.txt +++ b/netutils/webserver/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/webserver/CMakeLists.txt # +# 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 diff --git a/netutils/webserver/Make.defs b/netutils/webserver/Make.defs index f61c832a0eb..c80c3d703a1 100644 --- a/netutils/webserver/Make.defs +++ b/netutils/webserver/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/webserver/Make.defs # +# 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/netutils/webserver/Makefile b/netutils/webserver/Makefile index 2e46ff02511..32406ccdc5a 100644 --- a/netutils/webserver/Makefile +++ b/netutils/webserver/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/webserver/Makefile # +# 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/netutils/webserver/httpd.c b/netutils/webserver/httpd.c index 5916cbc63cd..23f69a94956 100644 --- a/netutils/webserver/httpd.c +++ b/netutils/webserver/httpd.c @@ -1,19 +1,12 @@ /**************************************************************************** * apps/netutils/webserver/httpd.c - * httpd Web server * - * Copyright (C) 2007-2009, 2011-2012 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * This is a leverage of similar logic from uIP: - * - * Author: Adam Dunkels - * Copyright (c) 2004, Adam Dunkels. - * All rights reserved. - * - * The uIP web server is a very simplistic implementation of an HTTP - * server. It can serve web pages and files from a read-only ROM - * filesystem, and provides a very small scripting language. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2011-2012 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2007-2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2004 Adam Dunkels. All rights reserved. + * SPDX-FileContributor: Gregory Nutt + * SPDX-FileContributor: Adam Dunkels * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/webserver/httpd.h b/netutils/webserver/httpd.h index 0a28fce1259..253adfcf1da 100644 --- a/netutils/webserver/httpd.h +++ b/netutils/webserver/httpd.h @@ -1,14 +1,12 @@ /**************************************************************************** * apps/netutils/webserver/httpd.h * - * Copyright (C) 2007, 2009, 2012 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Based on uIP which also has a BSD style license: - * - * Author: Adam Dunkels - * Copyright (c) 2001-2005, Adam Dunkels. - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2012 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2007,2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2001-2005 Adam Dunkels. All rights reserved. + * SPDX-FileContributor: Gregory Nutt + * SPDX-FileContributor: Adam Dunkels * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/webserver/httpd_cgi.c b/netutils/webserver/httpd_cgi.c index f917ebd16a9..aed510d54bb 100644 --- a/netutils/webserver/httpd_cgi.c +++ b/netutils/webserver/httpd_cgi.c @@ -1,10 +1,9 @@ /**************************************************************************** * apps/netutils/webserver/httpd_cgi.c - * Web server script interface - * Author: Adam Dunkels * - * Copyright (c) 2001-2006, Adam Dunkels. - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2001-2006 Adam Dunkels. All rights reserved. + * SPDX-FileContributor: Adam Dunkels * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/webserver/httpd_cgi.h b/netutils/webserver/httpd_cgi.h index 2a23664d645..b6f35aaed39 100644 --- a/netutils/webserver/httpd_cgi.h +++ b/netutils/webserver/httpd_cgi.h @@ -1,14 +1,12 @@ /**************************************************************************** * apps/netutils/webserver/httpd_cgi.h * - * Copyright (C) 2007, 2009, 2012 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Based on uIP which also has a BSD style license: - * - * Author: Adam Dunkels - * Copyright (c) 2001-2005, Adam Dunkels. - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2012 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2007, 2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2001-2005 Adam Dunkels. All rights reserved. + * SPDX-FileContributor: Gregory Nutt + * SPDX-FileContributor: Adam Dunkels * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/webserver/httpd_dirlist.c b/netutils/webserver/httpd_dirlist.c index cf2e0114aa1..bac1b2d77c2 100644 --- a/netutils/webserver/httpd_dirlist.c +++ b/netutils/webserver/httpd_dirlist.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/webserver/httpd_dirlist.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/netutils/webserver/httpd_fs.c b/netutils/webserver/httpd_fs.c index fb095c0636b..a32b7c4d490 100644 --- a/netutils/webserver/httpd_fs.c +++ b/netutils/webserver/httpd_fs.c @@ -1,14 +1,12 @@ /**************************************************************************** * apps/netutils/webserver/httpd_fs.c * - * Copyright (C) 2007-2009, 2011-2012 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Based on uIP which also has a BSD style license: - * - * Author: Adam Dunkels - * Copyright (c) 2001, Swedish Institute of Computer Science. - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2011-2012 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2007-2009 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2001, Swedish Institute of Computer Science. + * SPDX-FileContributor: Gregory Nutt + * SPDX-FileContributor: Adam Dunkels * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/netutils/webserver/httpd_mmap.c b/netutils/webserver/httpd_mmap.c index 10686c40ccb..a4f47427dee 100644 --- a/netutils/webserver/httpd_mmap.c +++ b/netutils/webserver/httpd_mmap.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/webserver/httpd_mmap.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/netutils/webserver/httpd_sendfile.c b/netutils/webserver/httpd_sendfile.c index 58847fd7da3..7ff8a5ccd7f 100644 --- a/netutils/webserver/httpd_sendfile.c +++ b/netutils/webserver/httpd_sendfile.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/netutils/webserver/httpd_sendfile.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/netutils/xmlrpc/CMakeLists.txt b/netutils/xmlrpc/CMakeLists.txt index f17396c0747..e03521be796 100644 --- a/netutils/xmlrpc/CMakeLists.txt +++ b/netutils/xmlrpc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/netutils/xmlrpc/CMakeLists.txt # +# 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 diff --git a/netutils/xmlrpc/Make.defs b/netutils/xmlrpc/Make.defs index 1758a6c8405..287e261ee78 100644 --- a/netutils/xmlrpc/Make.defs +++ b/netutils/xmlrpc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/xmlrpc/Make.defs # +# 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/netutils/xmlrpc/Makefile b/netutils/xmlrpc/Makefile index ccd7ec72979..b01f2eee061 100644 --- a/netutils/xmlrpc/Makefile +++ b/netutils/xmlrpc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/netutils/xmlrpc/Makefile # +# 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/netutils/xmlrpc/response.c b/netutils/xmlrpc/response.c index 54577be7422..c9eef6b737d 100644 --- a/netutils/xmlrpc/response.c +++ b/netutils/xmlrpc/response.c @@ -1,14 +1,10 @@ /**************************************************************************** * apps/netutils/xmlrpc/response.c * - * Copyright (C) 2012 Max Holtzberg. All rights reserved. - * Author: Max Holtzberg - * - * Based on the embeddable lightweight XML-RPC server code discussed - * in the article at: http://www.drdobbs.com/web-development/\ - * an-embeddable-lightweight-xml-rpc-server/184405364 - * - * Copyright (c) 2002 Cogito LLC. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2012 Max Holtzberg. All rights reserved. + * SPDX-FileCopyrightText: 2002 Cogito LLC. All rights reserved. + * SPDX-FileContributor: Max Holtzberg * * Redistribution and use in source and binary forms, with or * without modification, is hereby granted without fee provided @@ -40,6 +36,12 @@ * POSSIBILITY OF SUCH DAMAGE. ****************************************************************************/ +/**************************************************************************** + * Based on the embeddable lightweight XML-RPC server code discussed + * in the article at: http://www.drdobbs.com/web-development/\ + * an-embeddable-lightweight-xml-rpc-server/184405364 + ****************************************************************************/ + /* Lightweight Embedded XML-RPC Server Response Generator * * mtj@cogitollc.com diff --git a/netutils/xmlrpc/xmlparser.c b/netutils/xmlrpc/xmlparser.c index a7276e734da..4c0203a67ac 100644 --- a/netutils/xmlrpc/xmlparser.c +++ b/netutils/xmlrpc/xmlparser.c @@ -1,14 +1,10 @@ /**************************************************************************** * apps/netutils/xmlrpc/xmlparser.c * - * Copyright (C) 2012 Max Holtzberg. All rights reserved. - * Author: Max Holtzberg - * - * Based on the embeddable lightweight XML-RPC server code discussed - * in the article at: http://www.drdobbs.com/web-development/\ - * an-embeddable-lightweight-xml-rpc-server/184405364 - * - * Copyright (c) 2002 Cogito LLC. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2012 Max Holtzberg. All rights reserved. + * SPDX-FileCopyrightText: 2002 Cogito LLC. All rights reserved. + * SPDX-FileContributor: Max Holtzberg * * Redistribution and use in source and binary forms, with or * without modification, is hereby granted without fee provided @@ -40,6 +36,12 @@ * POSSIBILITY OF SUCH DAMAGE. ****************************************************************************/ +/**************************************************************************** + * Based on the embeddable lightweight XML-RPC server code discussed + * in the article at: http://www.drdobbs.com/web-development/\ + * an-embeddable-lightweight-xml-rpc-server/184405364 + ****************************************************************************/ + /* Lightweight Embedded XML-RPC Server XML Parser * * mtj@cogitollc.com From f0bf34445e8efcbde6d0718668521e4cdddc76a8 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sun, 29 Dec 2024 15:22:46 +0900 Subject: [PATCH 15/38] toywasm: bump to v65.0.0 --- interpreters/toywasm/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interpreters/toywasm/Makefile b/interpreters/toywasm/Makefile index 6a012b808be..9de01ccc968 100644 --- a/interpreters/toywasm/Makefile +++ b/interpreters/toywasm/Makefile @@ -64,6 +64,7 @@ CSRCS += options.c CSRCS += report.c CSRCS += restart.c CSRCS += shared_memory.c +CSRCS += slist.c CSRCS += timeutil.c CSRCS += toywasm_config.c CSRCS += type.c @@ -145,7 +146,7 @@ CFLAGS += ${INCDIR_PREFIX}$(APPDIR)/interpreters/toywasm/toywasm/libdyld CFLAGS += -Wno-unknown-warning-option -Wno-unused-but-set-variable -Wno-unused-variable -Wno-return-type -TOYWASM_VERSION = d7bb4aaef08be2d7821891f17bd9ef82ac1ba358 +TOYWASM_VERSION = e972e94fa427c3371fb21ad4bb9f238a1cca7795 TOYWASM_UNPACK = toywasm TOYWASM_TARBALL = $(TOYWASM_VERSION).zip TOYWASM_URL_BASE = https://github.com/yamt/toywasm/archive/ From 054739c1f9ae72fd1da12a773ccc95bdc6e5b215 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sun, 29 Dec 2024 15:27:01 +0900 Subject: [PATCH 16/38] toywasm/tmpl: Revert "interpreters: migrate to SPDX identifier" Note that these files are templates used by regen.sh script. --- interpreters/toywasm/tmpl/c-sections.in | 20 -------------------- interpreters/toywasm/tmpl/license.in | 2 +- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/interpreters/toywasm/tmpl/c-sections.in b/interpreters/toywasm/tmpl/c-sections.in index 723a3f7b4a6..46a3315126d 100644 --- a/interpreters/toywasm/tmpl/c-sections.in +++ b/interpreters/toywasm/tmpl/c-sections.in @@ -1,23 +1,3 @@ -/**************************************************************************** - * apps/interpreters/toywasm/tmpl/c-sections.in - * - * 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. - * - ****************************************************************************/ - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/interpreters/toywasm/tmpl/license.in b/interpreters/toywasm/tmpl/license.in index 97d002a8452..90da07e105a 100644 --- a/interpreters/toywasm/tmpl/license.in +++ b/interpreters/toywasm/tmpl/license.in @@ -1,5 +1,5 @@ /**************************************************************************** - * apps/interpreters/toywasm/tmpl/license.in + * apps/interpreters/toywasm/FILENAME * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with From 1dd99d057186f3090728a7864abc9f82e99f12b0 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sun, 29 Dec 2024 15:29:28 +0900 Subject: [PATCH 17/38] interpreters/toywasm/tmpl/license.in: Add SPDX identifier --- interpreters/toywasm/tmpl/license.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interpreters/toywasm/tmpl/license.in b/interpreters/toywasm/tmpl/license.in index 90da07e105a..2f7e88877ba 100644 --- a/interpreters/toywasm/tmpl/license.in +++ b/interpreters/toywasm/tmpl/license.in @@ -1,6 +1,8 @@ /**************************************************************************** * apps/interpreters/toywasm/FILENAME * + * 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 From 7145e8c2bae216d147757d83a23bdf1fdeee547c Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sun, 29 Dec 2024 15:31:04 +0900 Subject: [PATCH 18/38] toywasm: regen ``` REF=e972e94fa427c3371fb21ad4bb9f238a1cca7795 ./regen.sh ``` --- interpreters/toywasm/include/toywasm_version.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreters/toywasm/include/toywasm_version.h b/interpreters/toywasm/include/toywasm_version.h index 903f6778fe4..c069030f507 100644 --- a/interpreters/toywasm/include/toywasm_version.h +++ b/interpreters/toywasm/include/toywasm_version.h @@ -23,6 +23,6 @@ #if !defined(_TOYWASM_VERSION_H) #define _TOYWASM_VERSION_H -#define TOYWASM_VERSION "v63.0.0" +#define TOYWASM_VERSION "v65.0.0" #endif /* !defined(_TOYWASM_VERSION_H) */ From 39464d6e5ed9a7eee06c2f966083b396e3c6bc68 Mon Sep 17 00:00:00 2001 From: Eren Terzioglu Date: Tue, 17 Dec 2024 13:35:00 +0100 Subject: [PATCH 19/38] tools: Add debug_info target to diagnostic system --- tools/parse_sysinfo.py | 135 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 tools/parse_sysinfo.py diff --git a/tools/parse_sysinfo.py b/tools/parse_sysinfo.py new file mode 100644 index 00000000000..428c1ac095e --- /dev/null +++ b/tools/parse_sysinfo.py @@ -0,0 +1,135 @@ +#!/usr/bin/env python3 + +import argparse +import os +import re +import sys + + +def parse_information_from_header(file_path): + """ + Parses the file that contains information about the host system + and NuttX configuration(sysinfo.h). + + Args: + file_path (str): Path of the file to parse. + + Returns: + dict: The contents parsed from file_path (sysinfo.h) header file. + """ + + VARIABLE_NAMES_REGEX = r"static\s+const\s+char\s+\**([A-Za-z0-9_]+)\s*" + VARIABLE_VALUES_REGEX = r'"([^"]*)"|{([^}]+)};' + result = {} + var_name_to_print_dict = { + "NUTTX_CFLAGS": "NuttX CFLAGS", + "NUTTX_CXXFLAGS": "NuttX CXXFLAGS", + "NUTTX_LDFLAGS": "NuttX LDFLAGS", + "NUTTX_CONFIG": "NuttX configuration options", + "SYSTEM_PATH": "Host system PATH", + "OS_VERSION": "Host system OS", + "INSTALLED_PACKAGES": "Host system installed packages", + "PYTHON_MODULES": "Host system installed python modules", + "ESPRESSIF_BOOTLOADER": "Espressif specific information:\n\nToolchain version", + "ESPRESSIF_TOOLCHAIN": "Toolchain version", + "ESPRESSIF_ESPTOOL": "Esptool version", + "ESPRESSIF_HAL": "HAL version", + "ESPRESSIF_CHIP_ID": "CHIP ID", + "ESPRESSIF_FLASH_ID": "Flash ID", + "ESPRESSIF_SECURITY_INFO": "Security information", + "ESPRESSIF_FLASH_STAT": "Flash status", + "ESPRESSIF_MAC_ADDR": "MAC address", + } + + # Regular expression pattern to match array definition + + keys_pattern = re.compile(VARIABLE_NAMES_REGEX, re.DOTALL) + values_pattern = re.compile(VARIABLE_VALUES_REGEX, re.DOTALL) + + with open(file_path, "r") as file: + content = file.read() + + # Match array definition using the regex + + keys_array = keys_pattern.findall(content) + values_array = values_pattern.findall(content) + + # Process values to print it prettier + + for i in range(len(values_array)): + tmp_list = [] + for y in range(len(values_array[i])): + tmp_str = values_array[i][y] + tmp_str = tmp_str.replace('"', "") + tmp_str = tmp_str.replace("\n ", "", 1) + tmp_str = tmp_str.replace(",", "") + + if tmp_str != "": + tmp_list.append(tmp_str) + + values_array[i] = tuple(tmp_list) + + keys_values_to_return = [var_name_to_print_dict[x] for x in keys_array] + result = dict(zip(keys_values_to_return, values_array)) + + return result + + +# Main # + + +if __name__ == "__main__": + """ + Main function for the script. This function is called when the script is + executed directly. It prints the output generated to stdout. + + Required arguments: + nuttx_path: The path to the NuttX source directory. + + Optional arguments: + The command line arguments. The available arguments are: + -h, --help: + Show the help message and exit. + -f, --file : + Provide the diagnostic file output(sysinfo.h). + """ + + # Generic arguments + + parser = argparse.ArgumentParser(add_help=False) + parser.add_argument("nuttx_path", help="NuttX source directory path.") + parser.add_argument( + "-h", + "--help", + action="help", + default=argparse.SUPPRESS, + help="Show this help message and exit.", + ) + parser.add_argument( + "-f", + "--file", + default="", + metavar=("SYSINFO_FILE"), + help="Provide the diagnostic file output(sysinfo.h).", + ) + # Parse arguments + + if len(sys.argv) == 1: + parser.print_help() + sys.exit(1) + + args = parser.parse_args() + os.chdir(args.nuttx_path) + + parsed_data = parse_information_from_header(args.file) + + # Print the extracted name and values + + if parsed_data: + for each_key in parsed_data.keys(): + print("{}:".format(each_key)) + for each_value in parsed_data[each_key]: + print(" {}".format(each_value)) + print("") + else: + print("No matching array found.") From c9c3d4fe2c8409c3827d49d0ff158218c531ae3e Mon Sep 17 00:00:00 2001 From: Eren Terzioglu Date: Thu, 19 Dec 2024 09:20:26 +0100 Subject: [PATCH 20/38] system/nxdiag: Make espressif specific option appear when espressif devices selected --- system/nxdiag/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/nxdiag/Kconfig b/system/nxdiag/Kconfig index ceec711f8dd..e5961ddf6bd 100644 --- a/system/nxdiag/Kconfig +++ b/system/nxdiag/Kconfig @@ -64,12 +64,14 @@ comment "Vendor specific information" config SYSTEM_NXDIAG_ESPRESSIF bool "Espressif" + depends on ARCH_CHIP_ESP32 || ARCH_CHIP_ESP32S2 || ARCH_CHIP_ESP32S3 || ARCH_CHIP_ESP32C3 || ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32H2 default n ---help--- Enable Espressif-specific information and checks. config SYSTEM_NXDIAG_ESPRESSIF_CHIP bool "Espressif Chip" + depends on ARCH_CHIP_ESP32 || ARCH_CHIP_ESP32S2 || ARCH_CHIP_ESP32S3 || ARCH_CHIP_ESP32C3 || ARCH_CHIP_ESP32C6 || ARCH_CHIP_ESP32H2 default n ---help--- Enable Espressif-specific information about chip. Chip must be connected during build process. From c7013aa9664bdc02d4b58dac48e490f21579c254 Mon Sep 17 00:00:00 2001 From: buxiasen Date: Wed, 4 Dec 2024 17:13:39 +0800 Subject: [PATCH 21/38] drivertest: add arm-m signal through isr case Signed-off-by: buxiasen --- testing/drivertest/CMakeLists.txt | 36 ++- testing/drivertest/Makefile | 2 + .../drivertest/drivertest_mps2_isr_signal.c | 219 ++++++++++++++++++ 3 files changed, 254 insertions(+), 3 deletions(-) create mode 100644 testing/drivertest/drivertest_mps2_isr_signal.c diff --git a/testing/drivertest/CMakeLists.txt b/testing/drivertest/CMakeLists.txt index 73ef14c0389..0f36f09320b 100644 --- a/testing/drivertest/CMakeLists.txt +++ b/testing/drivertest/CMakeLists.txt @@ -357,10 +357,40 @@ if(CONFIG_TESTING_DRIVER_TEST) drivertest_touchpanel.c) endif() - if(CONFIG_ARCH_CHIP_MPS2_AN500 AND CONFIG_ARCH_IRQPRIO) + if(CONFIG_ARCH_CHIP_MPS2_AN500) + if(CONFIG_ARCH_IRQPRIO) + nuttx_add_application( + NAME + cmocka_driver_mps2 + PRIORITY + ${CONFIG_TESTING_DRIVER_TEST_PRIORITY} + STACKSIZE + ${CONFIG_TESTING_DRIVER_TEST_STACKSIZE} + MODULE + ${CONFIG_TESTING_DRIVER_TEST} + DEPENDS + cmocka + SRCS + drivertest_mps2.c) + + nuttx_add_application( + NAME + cmocka_driver_mps2_zerointerrupt + PRIORITY + ${CONFIG_TESTING_DRIVER_TEST_PRIORITY} + STACKSIZE + ${CONFIG_TESTING_DRIVER_TEST_STACKSIZE} + MODULE + ${CONFIG_TESTING_DRIVER_TEST} + DEPENDS + cmocka + SRCS + drivertest_mps2_zerointerrupt.c) + endif() + nuttx_add_application( NAME - cmocka_driver_mps2 + cmocka_driver_mps2_isr_signal PRIORITY ${CONFIG_TESTING_DRIVER_TEST_PRIORITY} STACKSIZE @@ -370,7 +400,7 @@ if(CONFIG_TESTING_DRIVER_TEST) DEPENDS cmocka SRCS - drivertest_mps2.c) + drivertest_mps2_isr_signal.c) endif() if(CONFIG_PM) diff --git a/testing/drivertest/Makefile b/testing/drivertest/Makefile index 5bd0744af32..50a0a56131d 100644 --- a/testing/drivertest/Makefile +++ b/testing/drivertest/Makefile @@ -138,6 +138,8 @@ PROGNAME += cmocka_driver_mps2 MAINSRC += drivertest_mps2_zerointerrupt.c PROGNAME += cmocka_driver_mps2_zerointerrupt endif +MAINSRC += drivertest_mps2_isr_signal.c +PROGNAME += cmocka_driver_mps2_isr_signal endif ifeq ($(CONFIG_PM),y) diff --git a/testing/drivertest/drivertest_mps2_isr_signal.c b/testing/drivertest/drivertest_mps2_isr_signal.c new file mode 100644 index 00000000000..2c5785694c1 --- /dev/null +++ b/testing/drivertest/drivertest_mps2_isr_signal.c @@ -0,0 +1,219 @@ +/**************************************************************************** + * apps/testing/drivertest/drivertest_mps2_isr_signal.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#include + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#define CONFIG_TEST_ISR_SIGNAL_US 10000 + +#define MPS2_ADDR2REG_PTR(base, off) (uint32_t*)((uint32_t*)(base) + (off)) +#define MPS2_IRQ_FROMBASE(base, off) ((base) + (off)) + +/* https://developer.arm.com/documentation/101104/0200/programmers-model/ + * base-element/cmsdk-timer + */ + +#define MPS_TIMER_CTRL_OFFSET 0 +#define MPS_TIMER_VALUE_OFFSET 1 +#define MPS_TIMER_RELOAD_OFFSET 2 +#define MPS_TIMER_CLEAR_OFFSET 3 + +#define MPS_TIMER_CTRL_ENABLE (1<<0) +#define MPS_TIMER_CTRL_IE (1<<3) + +static_assert(NVIC_SYSH_PRIORITY_DEFAULT == 0x80, "prio"); + +/**************************************************************************** + * Private Types + ****************************************************************************/ + +typedef struct mps2_an500_timer_s +{ + volatile uint32_t *reload; + volatile uint32_t *ctrl; + volatile uint32_t *clear; + pid_t pid; + int irq; +} mps2_an500_timer_t; + +/**************************************************************************** + * Private Functions Prototypes + ****************************************************************************/ + +static int timer_irq_handle(int irq, void *context, void *arg); + +/**************************************************************************** + * Private Data + ****************************************************************************/ + +static int last_sig = 0; + +static mps2_an500_timer_t timer[2]; + +static const int armv7m_gpio_base = 16; + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +static void mps_timer_init(void) +{ + static const uint32_t timerbase[] = + { + 0x40000000, 0x40001000 + }; + + static const int timerirq[] = + { + 8, 9 + }; + +#ifdef CONFIG_ARCH_IRQPRIO + static const int timer_irq_prio[] = + { + 0x80, 0xa0 + }; +#endif + + for (int i = 0; i < 2; i++) + { + mps2_an500_timer_t *t = &timer[i]; + + t->reload = MPS2_ADDR2REG_PTR(timerbase[i], MPS_TIMER_RELOAD_OFFSET); + t->ctrl = MPS2_ADDR2REG_PTR(timerbase[i], MPS_TIMER_CTRL_OFFSET); + t->clear = MPS2_ADDR2REG_PTR(timerbase[i], MPS_TIMER_CLEAR_OFFSET); + t->irq = MPS2_IRQ_FROMBASE(armv7m_gpio_base, timerirq[i]); + + irq_attach(t->irq, timer_irq_handle, t); + up_enable_irq(t->irq); + +#ifdef CONFIG_ARCH_IRQPRIO + up_prioritize_irq(t->irq, timer_irq_prio[i]); +#endif + } +} + +static int timer_irq_handle(int irq, void *context, void *arg) +{ + mps2_an500_timer_t *t = arg; + *t->clear = 1; + *t->ctrl = 0; + + tgkill(t->pid, t->pid, SIGINT); + return 0; +} + +static void timer_begin_test(mps2_an500_timer_t *t, uint32_t reload_us) +{ + uint32_t reload = reload_us * 25; + *t->reload = reload; + + *t->ctrl = MPS_TIMER_CTRL_IE | MPS_TIMER_CTRL_ENABLE; +} + +static void timer_end_test(mps2_an500_timer_t *t) +{ + *t->ctrl = 0; + *t->clear = 1; +} + +static void test_sa_handler(int signo) +{ + last_sig = signo; +} + +static void test_irq_signal(void **argv) +{ + mps2_an500_timer_t *t = &timer[1]; + struct timespec ts; + + signal(SIGINT, test_sa_handler); + + clock_gettime(CLOCK_MONOTONIC, &ts); + + t->pid = getpid(); + timer_begin_test(t, CONFIG_TEST_ISR_SIGNAL_US); + + /* Runing thread interrupt by exception_direct causing signal miss */ + + while (true) + { + struct timespec now; + up_udelay(1000); + clock_gettime(CLOCK_MONOTONIC, &now); + if (now.tv_sec - ts.tv_sec > 1 || last_sig != 0) + { + break; + } + } + + assert_int_equal(last_sig, SIGINT); +} + +static int setup(void **argv) +{ + mps_timer_init(); + return 0; +} + +static int teardown(void **argv) +{ + timer_end_test(&timer[0]); + timer_end_test(&timer[1]); + return 0; +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +int main(int argc, char *argv[]) +{ + const struct CMUnitTest tests[] = { + cmocka_unit_test_prestate_setup_teardown( + test_irq_signal, setup, teardown, NULL), + }; + + return cmocka_run_group_tests(tests, NULL, NULL); +} From c1356b9179a68875dca2684721d818730a13ab31 Mon Sep 17 00:00:00 2001 From: buxiasen Date: Tue, 10 Dec 2024 23:46:56 +0800 Subject: [PATCH 22/38] drivertest: update comment in driver test Kconfig Signed-off-by: buxiasen --- testing/drivertest/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/drivertest/Kconfig b/testing/drivertest/Kconfig index e0d073d51bd..c0975e9b889 100644 --- a/testing/drivertest/Kconfig +++ b/testing/drivertest/Kconfig @@ -4,7 +4,7 @@ # config TESTING_DRIVER_TEST - tristate "vela cmocka driver test" + tristate "cmocka driver test" default n depends on TESTING_CMOCKA ---help--- From c1ff8ca5e51a80debef1eb0226ba4ebb2871d7c0 Mon Sep 17 00:00:00 2001 From: tengshuangshuang Date: Tue, 17 Dec 2024 11:15:40 +0800 Subject: [PATCH 23/38] test:add mutex socket syscall directory some test cases have been added that cover the functionality of fs, mutex, pthread, socket, and syscall Signed-off-by: tengshuangshuang --- testing/testsuites/Kconfig | 15 + testing/testsuites/Makefile | 24 + .../kernel/fs/cases/fs_append_test.c | 40 +- .../kernel/fs/cases/fs_creat_test.c | 29 +- .../testsuites/kernel/fs/cases/fs_dup2_test.c | 29 +- .../testsuites/kernel/fs/cases/fs_dup_test.c | 40 +- .../kernel/fs/cases/fs_eventfd_test.c | 38 +- .../kernel/fs/cases/fs_fcntl_test.c | 41 +- .../kernel/fs/cases/fs_fstat_test.c | 36 +- .../kernel/fs/cases/fs_fstatfs_test.c | 41 +- .../kernel/fs/cases/fs_fsync_test.c | 49 +- .../kernel/fs/cases/fs_getfilep_test.c | 34 +- .../kernel/fs/cases/fs_mkdir_test.c | 22 +- .../testsuites/kernel/fs/cases/fs_open_test.c | 62 +- .../kernel/fs/cases/fs_opendir_test.c | 22 +- .../testsuites/kernel/fs/cases/fs_poll_test.c | 23 +- .../kernel/fs/cases/fs_pread_test.c | 22 +- .../kernel/fs/cases/fs_pwrite_test.c | 22 +- .../testsuites/kernel/fs/cases/fs_read_test.c | 26 +- .../kernel/fs/cases/fs_readdir_test.c | 45 +- .../kernel/fs/cases/fs_readlink_test.c | 36 +- .../kernel/fs/cases/fs_rename_test.c | 30 +- .../kernel/fs/cases/fs_rewinddir_test.c | 44 +- .../kernel/fs/cases/fs_rmdir_test.c | 162 ++-- .../testsuites/kernel/fs/cases/fs_seek_test.c | 41 +- .../kernel/fs/cases/fs_sendfile_test.c | 41 +- .../testsuites/kernel/fs/cases/fs_stat_test.c | 29 +- .../kernel/fs/cases/fs_statfs_test.c | 32 +- .../kernel/fs/cases/fs_stream_test.c | 104 +-- .../kernel/fs/cases/fs_symlink_test.c | 43 +- .../kernel/fs/cases/fs_truncate_test.c | 22 +- .../kernel/fs/cases/fs_unlink_test.c | 25 +- .../kernel/fs/cases/fs_write_test.c | 22 +- testing/testsuites/kernel/fs/cmocka_fs_test.c | 218 ++--- .../kernel/fs/common/test_fs_common.c | 69 +- testing/testsuites/kernel/fs/include/fstest.h | 132 +-- .../testsuites/kernel/mm/cases/mm_test_001.c | 21 +- .../testsuites/kernel/mm/cases/mm_test_002.c | 23 +- .../testsuites/kernel/mm/cases/mm_test_003.c | 19 +- .../testsuites/kernel/mm/cases/mm_test_004.c | 19 +- .../testsuites/kernel/mm/cases/mm_test_005.c | 23 +- .../testsuites/kernel/mm/cases/mm_test_006.c | 22 +- .../testsuites/kernel/mm/cases/mm_test_007.c | 41 +- .../testsuites/kernel/mm/cases/mm_test_008.c | 61 +- testing/testsuites/kernel/mm/cmocka_mm_test.c | 66 +- .../kernel/mm/common/test_mm_common.c | 44 +- testing/testsuites/kernel/mm/include/MmTest.h | 58 +- .../kernel/mm/tool/mem_batch_opt_perf_test.c | 57 +- .../kernel/mm/tool/mem_cycle_opt_perf_test.c | 61 +- .../kernel/mutex/cases/posix_mutex_test_001.c | 56 ++ .../kernel/mutex/cases/posix_mutex_test_019.c | 276 +++++++ .../kernel/mutex/cases/posix_mutex_test_020.c | 89 ++ .../kernel/mutex/cmocka_mutex_test.c | 62 ++ .../kernel/mutex/include/MutexTest.h | 66 ++ .../pthread/cases/posix_pthread_test_003.c | 28 +- .../pthread/cases/posix_pthread_test_004.c | 41 +- .../pthread/cases/posix_pthread_test_005.c | 39 +- .../pthread/cases/posix_pthread_test_006.c | 25 +- .../pthread/cases/posix_pthread_test_009.c | 47 +- .../pthread/cases/posix_pthread_test_018.c | 85 +- .../pthread/cases/posix_pthread_test_019.c | 43 +- .../pthread/cases/posix_pthread_test_021.c | 31 +- .../kernel/pthread/cmocka_pthread_test.c | 49 +- .../pthread/common/test_pthread_common.c | 26 +- .../kernel/pthread/include/PthreadTest.h | 60 +- .../kernel/sched/cases/api_pthread_test_001.c | 23 +- .../kernel/sched/cases/api_pthread_test_002.c | 23 +- .../kernel/sched/cases/api_pthread_test_003.c | 25 +- .../kernel/sched/cases/api_pthread_test_004.c | 30 +- .../kernel/sched/cases/api_pthread_test_005.c | 23 +- .../kernel/sched/cases/api_pthread_test_006.c | 25 +- .../kernel/sched/cases/api_pthread_test_007.c | 39 +- .../kernel/sched/cases/api_pthread_test_008.c | 33 +- .../kernel/sched/cases/api_pthread_test_009.c | 36 +- .../kernel/sched/cases/api_task_test_001.c | 25 +- .../kernel/sched/cases/api_task_test_002.c | 25 +- .../kernel/sched/cases/api_task_test_003.c | 25 +- .../kernel/sched/cases/api_task_test_004.c | 26 +- .../kernel/sched/cases/api_task_test_005.c | 25 +- .../kernel/sched/cases/api_task_test_006.c | 25 +- .../kernel/sched/cases/api_task_test_007.c | 25 +- .../kernel/sched/cmocka_sched_test.c | 31 +- .../kernel/sched/common/test_sched_common.c | 25 +- .../kernel/sched/include/SchedTest.h | 79 +- .../kernel/socket/cases/net_socket_test_005.c | 81 ++ .../kernel/socket/cases/net_socket_test_006.c | 110 +++ .../kernel/socket/cases/net_socket_test_008.c | 339 ++++++++ .../kernel/socket/cases/net_socket_test_009.c | 337 ++++++++ .../kernel/socket/cases/net_socket_test_010.c | 259 ++++++ .../kernel/socket/cases/net_socket_test_011.c | 319 ++++++++ .../kernel/socket/cmocka_socket_test.c | 71 ++ .../kernel/socket/include/SocketTest.h | 80 ++ .../kernel/syscall/cases/Fstatfs_test.c | 104 +++ .../kernel/syscall/cases/accept_test.c | 154 ++++ .../kernel/syscall/cases/bind_test.c | 137 ++++ .../kernel/syscall/cases/chdir_test.c | 103 +++ .../kernel/syscall/cases/clock_gettime_test.c | 106 +++ .../syscall/cases/clock_nanosleep_test.c | 91 +++ .../kernel/syscall/cases/clock_settime_test.c | 67 ++ .../kernel/syscall/cases/close_test.c | 150 ++++ .../kernel/syscall/cases/connect_test.c | 372 +++++++++ .../kernel/syscall/cases/creat_test.c | 123 +++ .../kernel/syscall/cases/dup2_test.c | 157 ++++ .../kernel/syscall/cases/dup_test.c | 244 ++++++ .../kernel/syscall/cases/fcntl_test.c | 318 ++++++++ .../kernel/syscall/cases/fpathconf_test.c | 103 +++ .../kernel/syscall/cases/fsync_test.c | 253 ++++++ .../kernel/syscall/cases/ftruncate_test.c | 126 +++ .../kernel/syscall/cases/getTimeofday_test.c | 94 +++ .../kernel/syscall/cases/getcwd_test.c | 133 +++ .../kernel/syscall/cases/getegid_test.c | 73 ++ .../kernel/syscall/cases/geteuid_test.c | 74 ++ .../kernel/syscall/cases/getgid_test.c | 74 ++ .../kernel/syscall/cases/gethostname_test.c | 53 ++ .../kernel/syscall/cases/getitimer_test.c | 139 ++++ .../kernel/syscall/cases/getpeername_test.c | 197 +++++ .../kernel/syscall/cases/getpid_test.c | 56 ++ .../kernel/syscall/cases/getppid_test.c | 56 ++ .../kernel/syscall/cases/getsocketopt_test.c | 214 +++++ .../kernel/syscall/cases/getuid_test.c | 74 ++ .../kernel/syscall/cases/listen_test.c | 145 ++++ .../kernel/syscall/cases/lseek_test.c | 230 ++++++ .../kernel/syscall/cases/lstat_test.c | 80 ++ .../kernel/syscall/cases/memcmp_test.c | 130 +++ .../kernel/syscall/cases/memcpy_test.c | 135 +++ .../kernel/syscall/cases/memset_test.c | 108 +++ .../kernel/syscall/cases/mkdir_test.c | 198 +++++ .../kernel/syscall/cases/nansleep_test.c | 91 +++ .../kernel/syscall/cases/pathconf_test.c | 86 ++ .../kernel/syscall/cases/pipe_test.c | 98 +++ .../kernel/syscall/cases/pread_test.c | 377 +++++++++ .../kernel/syscall/cases/pwrite_test.c | 322 ++++++++ .../kernel/syscall/cases/read_test.c | 201 +++++ .../kernel/syscall/cases/readdir_test.c | 108 +++ .../kernel/syscall/cases/recvfrom_test.c | 448 ++++++++++ .../kernel/syscall/cases/rmdir_test.c | 121 +++ .../kernel/syscall/cases/sched_test.c | 204 +++++ .../syscall/cases/setsocketopt01_test.c | 162 ++++ .../kernel/syscall/cases/socket_test.c | 208 +++++ .../kernel/syscall/cases/socketpair_test.c | 230 ++++++ .../kernel/syscall/cases/symlink_test.c | 132 +++ .../kernel/syscall/cases/time_test.c | 84 ++ .../kernel/syscall/cases/timer_create_test.c | 62 ++ .../kernel/syscall/cases/timer_delete_test.c | 64 ++ .../kernel/syscall/cases/timer_gettime_test.c | 69 ++ .../kernel/syscall/cases/truncate_test.c | 150 ++++ .../kernel/syscall/cases/unlink_test.c | 78 ++ .../kernel/syscall/cases/write_test.c | 177 ++++ .../kernel/syscall/cmocka_syscall_test.c | 458 +++++++++++ .../syscall/common/test_syscall_common.c | 767 ++++++++++++++++++ .../kernel/syscall/include/SyscallTest.h | 457 +++++++++++ .../kernel/time/cases/clock_test_clock01.c | 38 +- .../kernel/time/cases/clock_test_clock02.c | 17 +- .../kernel/time/cases/clock_test_smoke.c | 86 +- .../kernel/time/cases/clock_test_timer01.c | 45 +- .../kernel/time/cases/clock_test_timer03.c | 58 +- .../kernel/time/cases/clock_test_timer04.c | 37 +- .../kernel/time/cases/clock_test_timer05.c | 72 +- .../testsuites/kernel/time/cmocka_time_test.c | 31 +- .../testsuites/kernel/time/include/TimeTest.h | 41 +- 160 files changed, 14163 insertions(+), 1699 deletions(-) create mode 100644 testing/testsuites/kernel/mutex/cases/posix_mutex_test_001.c create mode 100644 testing/testsuites/kernel/mutex/cases/posix_mutex_test_019.c create mode 100644 testing/testsuites/kernel/mutex/cases/posix_mutex_test_020.c create mode 100644 testing/testsuites/kernel/mutex/cmocka_mutex_test.c create mode 100644 testing/testsuites/kernel/mutex/include/MutexTest.h create mode 100644 testing/testsuites/kernel/socket/cases/net_socket_test_005.c create mode 100644 testing/testsuites/kernel/socket/cases/net_socket_test_006.c create mode 100644 testing/testsuites/kernel/socket/cases/net_socket_test_008.c create mode 100644 testing/testsuites/kernel/socket/cases/net_socket_test_009.c create mode 100644 testing/testsuites/kernel/socket/cases/net_socket_test_010.c create mode 100644 testing/testsuites/kernel/socket/cases/net_socket_test_011.c create mode 100644 testing/testsuites/kernel/socket/cmocka_socket_test.c create mode 100644 testing/testsuites/kernel/socket/include/SocketTest.h create mode 100644 testing/testsuites/kernel/syscall/cases/Fstatfs_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/accept_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/bind_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/chdir_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/clock_gettime_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/clock_nanosleep_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/clock_settime_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/close_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/connect_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/creat_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/dup2_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/dup_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/fcntl_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/fpathconf_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/fsync_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/ftruncate_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/getTimeofday_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/getcwd_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/getegid_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/geteuid_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/getgid_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/gethostname_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/getitimer_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/getpeername_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/getpid_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/getppid_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/getsocketopt_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/getuid_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/listen_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/lseek_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/lstat_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/memcmp_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/memcpy_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/memset_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/mkdir_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/nansleep_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/pathconf_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/pipe_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/pread_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/pwrite_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/read_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/readdir_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/recvfrom_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/rmdir_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/sched_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/setsocketopt01_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/socket_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/socketpair_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/symlink_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/time_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/timer_create_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/timer_delete_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/timer_gettime_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/truncate_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/unlink_test.c create mode 100644 testing/testsuites/kernel/syscall/cases/write_test.c create mode 100644 testing/testsuites/kernel/syscall/cmocka_syscall_test.c create mode 100644 testing/testsuites/kernel/syscall/common/test_syscall_common.c create mode 100644 testing/testsuites/kernel/syscall/include/SyscallTest.h diff --git a/testing/testsuites/Kconfig b/testing/testsuites/Kconfig index b3338d3c86e..1b9070fccbc 100644 --- a/testing/testsuites/Kconfig +++ b/testing/testsuites/Kconfig @@ -49,4 +49,19 @@ config CM_PTHREAD_TEST default n depends on TESTS_TESTSUITES +config CM_SOCKET_TEST + bool "enbale socket test" + default n + depends on TESTS_TESTSUITES + +config CM_SYSCALL_TEST + bool "enbale syscall test" + default n + depends on TESTS_TESTSUITES + +config CM_MUTEX_TEST + bool "enbale mutex test" + default n + depends on TESTS_TESTSUITES + endif # TESTS_TESTSUITES diff --git a/testing/testsuites/Makefile b/testing/testsuites/Makefile index 728b66d0bcf..1b896ef5bf1 100644 --- a/testing/testsuites/Makefile +++ b/testing/testsuites/Makefile @@ -69,4 +69,28 @@ PROGNAME += cmocka_pthread_test MAINSRC += $(CURDIR)/kernel/pthread/cmocka_pthread_test.c endif +ifneq ($(CONFIG_CM_MUTEX_TEST),) +CFLAGS += -I$(CURDIR)/kernel/mutex/include +CSRCS += $(wildcard kernel/mutex/cases/*.c) +CSRCS += $(wildcard kernel/mutex/common/*.c) +PROGNAME += cmocka_mutex_test +MAINSRC += $(CURDIR)/kernel/mutex/cmocka_mutex_test.c +endif + +ifneq ($(CONFIG_CM_SOCKET_TEST),) +CFLAGS += -I$(CURDIR)/kernel/socket/include +CSRCS += $(wildcard kernel/socket/cases/*.c) +PROGNAME += cmocka_socket_test +MAINSRC += $(CURDIR)/kernel/socket/cmocka_socket_test.c +endif + +ifneq ($(CONFIG_CM_SYSCALL_TEST),) +CFLAGS += -I$(CURDIR)/kernel/syscall/include +CFLAGS += -I$(APPDIR)/nshlib +CSRCS += $(wildcard kernel/syscall/cases/*.c) +CSRCS += $(wildcard kernel/syscall/common/*.c) +PROGNAME += cmocka_syscall_test +MAINSRC += $(CURDIR)/kernel/syscall/cmocka_syscall_test.c +endif + include $(APPDIR)/Application.mk diff --git a/testing/testsuites/kernel/fs/cases/fs_append_test.c b/testing/testsuites/kernel/fs/cases/fs_append_test.c index 4beaf284f8b..691109c4c26 100644 --- a/testing/testsuites/kernel/fs/cases/fs_append_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_append_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_append_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -38,20 +40,20 @@ #define TESTFILENAME "stream01Testfile" -/**************************************************************************** - * Public Functions - ****************************************************************************/ - /**************************************************************************** * Name: stream * Example description: - * 1. open a file with "a+". - * 2. Write some strings to the file. - * 3. Check if the file pointer is offset. + * 1. open a file with "a+". + * 2. Write some strings to the file. + * 3. Check if the file pointer is offset. * Test item: fopen() fseek() ftell() * Expect results: TEST PASSED ****************************************************************************/ +/**************************************************************************** + * Public Functions + ****************************************************************************/ + void test_nuttx_fs_append01(FAR void **state) { FILE *fd; @@ -61,8 +63,8 @@ void test_nuttx_fs_append01(FAR void **state) fd = fopen(TESTFILENAME, "a+"); if (fd == NULL) { - syslog(LOG_ERR, "Unable to open file %s, errno %d\n", - TESTFILENAME, errno); + syslog(LOG_ERR, "Unable to open file %s, errno %d\n", TESTFILENAME, + errno); assert_true(1 == 0); } diff --git a/testing/testsuites/kernel/fs/cases/fs_creat_test.c b/testing/testsuites/kernel/fs/cases/fs_creat_test.c index ce393bb9008..af88a4292dd 100644 --- a/testing/testsuites/kernel/fs/cases/fs_creat_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_creat_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_creat_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -53,9 +55,10 @@ void test_nuttx_fs_creat01(FAR void **state) { int fd; int ret; - char buf[20] = { - 0 - }; + char buf[20] = + { + 0 + }; struct fs_testsuites_state_s *test_state; diff --git a/testing/testsuites/kernel/fs/cases/fs_dup2_test.c b/testing/testsuites/kernel/fs/cases/fs_dup2_test.c index a1e7bab40a4..7e5faefe53b 100644 --- a/testing/testsuites/kernel/fs/cases/fs_dup2_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_dup2_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_dup2_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -50,9 +52,10 @@ void test_nuttx_fs_dup201(FAR void **state) { - char buf[16] = { - 0 - }; + char buf[16] = + { + 0 + }; off_t currpos; struct fs_testsuites_state_s *test_state; diff --git a/testing/testsuites/kernel/fs/cases/fs_dup_test.c b/testing/testsuites/kernel/fs/cases/fs_dup_test.c index 3a374fb7dce..7b57379ca64 100644 --- a/testing/testsuites/kernel/fs/cases/fs_dup_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_dup_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_dup_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -53,9 +55,9 @@ void test_nuttx_fs_dup01(FAR void **state) int fd; int newfd; int rval; - char buf_fd[5] = "hello"; - char buf_new_fd[8] = "littleFS"; - char read_buf[20] = ""; + char buffd[5] = "hello"; + char bufnewfd[8] = "littleFS"; + char readbuf[20] = ""; struct fs_testsuites_state_s *test_state; test_state = (struct fs_testsuites_state_s *)*state; @@ -68,7 +70,7 @@ void test_nuttx_fs_dup01(FAR void **state) /* do write */ - assert_int_in_range(write(fd, buf_fd, sizeof(buf_fd)), 1, sizeof(buf_fd)); + assert_int_in_range(write(fd, buffd, sizeof(buffd)), 1, sizeof(buffd)); /* refresh to storage */ @@ -88,8 +90,8 @@ void test_nuttx_fs_dup01(FAR void **state) /* write newfd after dup */ - rval = write(newfd, buf_new_fd, sizeof(buf_new_fd)); - assert_int_in_range(rval, 1, sizeof(buf_new_fd)); + rval = write(newfd, bufnewfd, sizeof(bufnewfd)); + assert_int_in_range(rval, 1, sizeof(bufnewfd)); /* refresh to storage */ @@ -102,10 +104,10 @@ void test_nuttx_fs_dup01(FAR void **state) /* do double check */ - rval = read(newfd, read_buf, 20); + rval = read(newfd, readbuf, 20); assert_int_in_range(rval, 1, 20); - /* check read_buf */ + /* check readbuf */ - assert_int_equal(strncmp(read_buf, "hellolittleFS", 13), 0); + assert_int_equal(strncmp(readbuf, "hellolittleFS", 13), 0); } diff --git a/testing/testsuites/kernel/fs/cases/fs_eventfd_test.c b/testing/testsuites/kernel/fs/cases/fs_eventfd_test.c index 583c8c21acc..805311eb5e8 100644 --- a/testing/testsuites/kernel/fs/cases/fs_eventfd_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_eventfd_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_eventfd_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -39,15 +41,17 @@ ****************************************************************************/ /**************************************************************************** - * Name: thread_func + * Name: threadfunc ****************************************************************************/ -__attribute__((unused)) static void *thread_func(void *args) +__attribute__((unused)) static void *threadfunc(void *args) { eventfd_t eventfd01_buffer; + int fd = *(int *)args; + for (int i = 1; i < 6; i++) { - read(*(int *)args, &eventfd01_buffer, sizeof(eventfd_t)); + read(fd, &eventfd01_buffer, sizeof(eventfd_t)); sleep(1); } @@ -75,13 +79,13 @@ void test_nuttx_fs_eventfd(FAR void **state) eventfd01_efd = eventfd(0, 0); assert_int_not_equal(eventfd01_efd, -1); test_state->fd1 = eventfd01_efd; - assert_true(pthread_create(&eventfd01_tid, NULL, - thread_func, &eventfd01_efd) >= 0); + assert_true(pthread_create(&eventfd01_tid, NULL, threadfunc, + &eventfd01_efd) >= 0); for (int i = 1; i < 5; i++) { - eventfd01_ret = write(eventfd01_efd, &eventfd01_buf, - sizeof(eventfd_t)); + eventfd01_ret = + write(eventfd01_efd, &eventfd01_buf, sizeof(eventfd_t)); assert_int_equal(eventfd01_ret, sizeof(eventfd_t)); eventfd01_buf++; sleep(1); diff --git a/testing/testsuites/kernel/fs/cases/fs_fcntl_test.c b/testing/testsuites/kernel/fs/cases/fs_fcntl_test.c index 3b20e0e2603..94007b22a72 100644 --- a/testing/testsuites/kernel/fs/cases/fs_fcntl_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_fcntl_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_fcntl_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -33,7 +35,6 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ - #define BUFSIZE 512 #define TEST_FILE_1 "fcntl01_testfile" @@ -109,7 +110,7 @@ void test_nuttx_fs_fcntl02(FAR void **state) /* open file */ fd = open(TEST_FILE_2, O_RDWR | O_CREAT, 0700); - assert_int_in_range(fd, 0, 255); + assert_true(fd > 0); /* do fcntl */ @@ -133,10 +134,10 @@ void test_nuttx_fs_fcntl02(FAR void **state) ****************************************************************************/ /**************************************************************************** - * Name: fs_fcntl_set_lile_status + * Name: fsfcntlsetlilestatus ****************************************************************************/ -static int fs_fcntl_set_lile_status(int mode, int fd) +static int fsfcntlsetlilestatus(int mode, int fd) { int flags; int ret; @@ -177,12 +178,14 @@ void test_nuttx_fs_fcntl03(FAR void **state) int ret; int size; int ret2; - char path[32] = { - 0 + char path[32] = + { + 0 }; - char buf[10] = { - 0 + char buf[10] = + { + 0 }; getcwd(path, sizeof(path)); @@ -214,7 +217,7 @@ void test_nuttx_fs_fcntl03(FAR void **state) /* F_SETFL */ - ret = fs_fcntl_set_lile_status(O_APPEND, fd); + ret = fsfcntlsetlilestatus(O_APPEND, fd); assert_int_equal(ret, 0); /* set memory */ diff --git a/testing/testsuites/kernel/fs/cases/fs_fstat_test.c b/testing/testsuites/kernel/fs/cases/fs_fstat_test.c index b79012c7ee3..e0eb6c8dee6 100644 --- a/testing/testsuites/kernel/fs/cases/fs_fstat_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_fstat_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_fstat_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -127,4 +129,18 @@ void test_nuttx_fs_fstat02(FAR void **state) /* close file */ assert_int_equal(close(fd), 0); + + /* #if defined(CONFIG_NET) + * // creat socket + * fd = socket(AF_INET, SOCK_STREAM, 0); + * assert_int_not_equal(fd, -1); + + * // get file size again + * ret = fstat(fd, &file_s); + * assert_int_equal(ret, 0); + + * assert_true(S_ISSOCK(file_s.st_mode)); + * assert_int_equal(close(fd), 0); + * #endif + */ } diff --git a/testing/testsuites/kernel/fs/cases/fs_fstatfs_test.c b/testing/testsuites/kernel/fs/cases/fs_fstatfs_test.c index cc9b64b3d1c..ab6653878dc 100644 --- a/testing/testsuites/kernel/fs/cases/fs_fstatfs_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_fstatfs_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_fstatfs_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -44,23 +46,26 @@ ****************************************************************************/ /**************************************************************************** - * Name: test_nuttx_fs_print_statfs + * Name: test_nuttx_fs_printstatfs ****************************************************************************/ -__attribute__((unused)) static void test_nuttx_fs_print_statfs - (struct statfs *buf) +__attribute__((unused)) static void +test_nuttx_fs_printstatfs(struct statfs *buf) { syslog(LOG_INFO, "statfs buffer:\n"); syslog(LOG_INFO, " f_type: %lu\n", (unsigned long)buf->f_type); syslog(LOG_INFO, " f_namelen: %lu\n", (unsigned long)buf->f_namelen); syslog(LOG_INFO, " f_bsize: %lu\n", (unsigned long)buf->f_bsize); syslog(LOG_INFO, " f_blocks: %llu\n", - (unsigned long long)buf->f_blocks); - syslog(LOG_INFO, " f_bfree: %llu\n", (unsigned long long)buf->f_bfree); + (unsigned long long)buf->f_blocks); + syslog(LOG_INFO, " f_bfree: %llu\n", + (unsigned long long)buf->f_bfree); syslog(LOG_INFO, " f_bavail: %llu\n", - (unsigned long long)buf->f_bavail); - syslog(LOG_INFO, " f_files: %llu\n", (unsigned long long)buf->f_files); - syslog(LOG_INFO, " f_ffree: %llu\n", (unsigned long long)buf->f_ffree); + (unsigned long long)buf->f_bavail); + syslog(LOG_INFO, " f_files: %llu\n", + (unsigned long long)buf->f_files); + syslog(LOG_INFO, " f_ffree: %llu\n", + (unsigned long long)buf->f_ffree); } /**************************************************************************** diff --git a/testing/testsuites/kernel/fs/cases/fs_fsync_test.c b/testing/testsuites/kernel/fs/cases/fs_fsync_test.c index e449ab808fe..2518da2b737 100644 --- a/testing/testsuites/kernel/fs/cases/fs_fsync_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_fsync_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_fsync_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -40,8 +42,10 @@ ****************************************************************************/ #define TESTFILE "FsyncTestFile" -#define BUF "testData123#$%*-=/ sdafasd37575sasdfasdf3563456345" \ - "63456ADSFASDFASDFQWREdf4as5df4as5dfsd ###" +#define BUF \ + "testData123#$%*-=/ " \ + "sdafasd37575sasdfasdf356345634563456ADSFASDFASDFQWREdf4as5df4as5dfs" \ + "d ###" /**************************************************************************** * Public Functions @@ -53,6 +57,8 @@ void test_nuttx_fs_fsync01(FAR void **state) { + /* clock_t start, finish; */ + int fd; int rval; int ret; @@ -97,7 +103,9 @@ void test_nuttx_fs_fsync02(FAR void **state) ssize_t writen = 0; struct statfs statfsbuf; struct fs_testsuites_state_s *test_state; + struct mallinfo mem_info; + memset(&mem_info, 0, sizeof(mem_info)); test_state = (struct fs_testsuites_state_s *)*state; /* delete test file */ @@ -114,10 +122,23 @@ void test_nuttx_fs_fsync02(FAR void **state) ret = fstatfs(fd, &statfsbuf); assert_int_equal(ret, 0); - +#ifdef CONFIG_ARCH_SIM bufsize = statfsbuf.f_bsize; +#else + get_mem_info(&mem_info); + if (mem_info.mxordblk < statfsbuf.f_bsize) + { + bufsize = mem_info.mxordblk - 16; + } + + else + { + bufsize = statfsbuf.f_bsize; + } - syslog(LOG_INFO, "the bsize = %" PRIdPTR "\n", statfsbuf.f_bsize); +#endif + syslog(LOG_INFO, "the fbsize = %"PRIu64",buffer size=%d\n", + statfsbuf.f_bsize, bufsize); /* malloc memory */ diff --git a/testing/testsuites/kernel/fs/cases/fs_getfilep_test.c b/testing/testsuites/kernel/fs/cases/fs_getfilep_test.c index f894c17162a..41a19cbd782 100644 --- a/testing/testsuites/kernel/fs/cases/fs_getfilep_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_getfilep_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_getfilep_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -27,9 +29,6 @@ #include #include #include - -#include - #include "fstest.h" /**************************************************************************** @@ -97,6 +96,10 @@ void test_nuttx_fs_getfilep01(FAR void **state) fsync(fileno(fp)); + /* put filep */ + + fs_putfilep(filep); + /* get struct file again */ ret = fs_getfilep(fileno(fp), &filep); @@ -105,5 +108,10 @@ void test_nuttx_fs_getfilep01(FAR void **state) assert_int_equal(filep->f_pos, BUF_SIZE); test_state->fd2 = fileno(fp); + + /* put filep */ + + fs_putfilep(filep); + assert_int_equal(fclose(fp), 0); } diff --git a/testing/testsuites/kernel/fs/cases/fs_mkdir_test.c b/testing/testsuites/kernel/fs/cases/fs_mkdir_test.c index 12740b7a56f..a44eed1c795 100644 --- a/testing/testsuites/kernel/fs/cases/fs_mkdir_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_mkdir_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_mkdir_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include diff --git a/testing/testsuites/kernel/fs/cases/fs_open_test.c b/testing/testsuites/kernel/fs/cases/fs_open_test.c index 898e148f82a..cd45266cec7 100644 --- a/testing/testsuites/kernel/fs/cases/fs_open_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_open_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_open_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -38,6 +40,7 @@ ****************************************************************************/ #define TESTFILE "testOpenFile" +#define TESTDIR "testOpenDir" /**************************************************************************** * Public Functions @@ -52,9 +55,10 @@ void test_nuttx_fs_open01(FAR void **state) int fd; int ret; char s[] = "test data!"; - char buffer[50] = { - 0 - }; + char buffer[50] = + { + 0 + }; struct fs_testsuites_state_s *test_state; @@ -82,3 +86,35 @@ void test_nuttx_fs_open01(FAR void **state) ret = read(fd, buffer, sizeof(buffer)); assert_true(ret > 0); } + +/**************************************************************************** + * Name: test_nuttx_fs_open02 + ****************************************************************************/ + +void test_nuttx_fs_open02(FAR void **state) +{ + int fd = -1; + int ret = 0; + + /* create a dir for test */ + + ret = mkdir(TESTDIR, 0777); + assert_int_equal(ret, 0); + + /* open file with RDONLY:fatfs will fail,so skip currently 2024-9-25 + */ + +#if 0 + fd = open(TESTDIR, O_RDONLY); + assert_true(fd > 0); + close(fd); +#endif + /* open file with RDWR */ + + fd = open(TESTDIR, O_RDWR); + assert_true(fd < 0); + + /* do rmdir */ + + assert_int_equal(rmdir(TESTDIR), 0); +} diff --git a/testing/testsuites/kernel/fs/cases/fs_opendir_test.c b/testing/testsuites/kernel/fs/cases/fs_opendir_test.c index 01a900f6ecd..83864b49dd0 100644 --- a/testing/testsuites/kernel/fs/cases/fs_opendir_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_opendir_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_opendir_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include diff --git a/testing/testsuites/kernel/fs/cases/fs_poll_test.c b/testing/testsuites/kernel/fs/cases/fs_poll_test.c index 63ecef44a40..896ea7b9d7c 100644 --- a/testing/testsuites/kernel/fs/cases/fs_poll_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_poll_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_poll_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -40,7 +42,6 @@ #define I_FILE1 "poll_test1" #define I_FILE2 "poll_test2" - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_pread_test.c b/testing/testsuites/kernel/fs/cases/fs_pread_test.c index 3993a7bf12e..8af428459f5 100644 --- a/testing/testsuites/kernel/fs/cases/fs_pread_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_pread_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_pread_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include diff --git a/testing/testsuites/kernel/fs/cases/fs_pwrite_test.c b/testing/testsuites/kernel/fs/cases/fs_pwrite_test.c index c224ad487df..9c8fadd1bbd 100644 --- a/testing/testsuites/kernel/fs/cases/fs_pwrite_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_pwrite_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_pwrite_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include diff --git a/testing/testsuites/kernel/fs/cases/fs_read_test.c b/testing/testsuites/kernel/fs/cases/fs_read_test.c index 13512e9af0d..f0164894a56 100644 --- a/testing/testsuites/kernel/fs/cases/fs_read_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_read_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_read_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -60,7 +62,7 @@ void test_nuttx_fs_read01(FAR void **state) test_state = (struct fs_testsuites_state_s *)*state; fd = open(TESTFILE, O_WRONLY | O_CREAT, 0777); - assert_int_in_range(fd, 0, 255); + assert_true(fd > 0); test_state->fd1 = fd; size = write(fd, s, sizeof(s)); @@ -68,7 +70,7 @@ void test_nuttx_fs_read01(FAR void **state) close(fd); fd = open(TESTFILE, O_RDONLY, 0777); - assert_int_in_range(fd, 0, 255); + assert_true(fd > 0); test_state->fd1 = fd; size = read(fd, buffer, sizeof(buffer)); assert_int_equal(size, sizeof(s)); diff --git a/testing/testsuites/kernel/fs/cases/fs_readdir_test.c b/testing/testsuites/kernel/fs/cases/fs_readdir_test.c index b2cabbe6471..c7b9b0e5cdb 100644 --- a/testing/testsuites/kernel/fs/cases/fs_readdir_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_readdir_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_readdir_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -48,19 +50,16 @@ void test_nuttx_fs_readdir01(FAR void **state) { int fd; int ret; - char buf[20] = { - 0 - }; - - char *filename[] = { - "testFile1", - "testFile2", - "testFile3", - "testFile4", - "testFile5", - "testFile6", - "testFile7" - }; + char buf[20] = + { + 0 + }; + + char *filename[] = + { + "testfile1", "testfile2", "testfile3", "testfile4", + "testfile5", "testfile6", "testfile7" + }; DIR *test_dir; struct dirent *dptr; diff --git a/testing/testsuites/kernel/fs/cases/fs_readlink_test.c b/testing/testsuites/kernel/fs/cases/fs_readlink_test.c index 09511681adf..b01da9607c3 100644 --- a/testing/testsuites/kernel/fs/cases/fs_readlink_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_readlink_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_readlink_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -58,13 +60,15 @@ void test_nuttx_fs_readlink01(FAR void **state) /* test symlink */ - char path[PATH_MAX_SIZE] = { - 0 - }; + char path[PATH_MAX_SIZE] = + { + 0 + }; - char buf[PATH_MAX_SIZE] = { - 0 - }; + char buf[PATH_MAX_SIZE] = + { + 0 + }; struct fs_testsuites_state_s *test_state; diff --git a/testing/testsuites/kernel/fs/cases/fs_rename_test.c b/testing/testsuites/kernel/fs/cases/fs_rename_test.c index 9005e2a6622..656d575d1d0 100644 --- a/testing/testsuites/kernel/fs/cases/fs_rename_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_rename_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_rename_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -48,15 +50,11 @@ void test_nuttx_fs_rename01(FAR void **state) int ret; char buffer[50]; char filename1[] = "testRenameFile1"; - struct fs_testsuites_state_s *test_state; - - test_state = (struct fs_testsuites_state_s *)*state; /* open file */ fd = open(filename1, O_WRONLY | O_CREAT, 0700); assert_true(fd > 0); - test_state->fd1 = fd; /* set memory */ @@ -67,6 +65,10 @@ void test_nuttx_fs_rename01(FAR void **state) ret = write(fd, buffer, 50); assert_int_in_range(ret, 1, 50); + /* close file befor rename */ + + close(fd); + /* do rename */ status = rename(filename1, "newNameFile1"); diff --git a/testing/testsuites/kernel/fs/cases/fs_rewinddir_test.c b/testing/testsuites/kernel/fs/cases/fs_rewinddir_test.c index f1f5e97c6f2..f88645e14fb 100644 --- a/testing/testsuites/kernel/fs/cases/fs_rewinddir_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_rewinddir_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_rewinddir_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -58,15 +60,16 @@ ****************************************************************************/ /**************************************************************************** - * Name: test_nuttx_fs_cteat_file + * Name: test_nuttx_fs_cteatfile ****************************************************************************/ -static void test_nuttx_fs_cteat_file(char *filename, size_t write_size) +static void test_nuttx_fs_cteatfile(char *filename, size_t write_size) { int fd; - char w_buffer[WRITE_BUF_SIZE] = { - 0 - }; + char w_buffer[WRITE_BUF_SIZE] = + { + 0 + }; ssize_t size = 0; @@ -126,13 +129,16 @@ void test_nuttx_fs_rewinddir01(FAR void **state) fail_msg("Failed to obtain partition information !\n"); } - /* Stop the test if the available space of the partition is less than 50K */ + /* Stop the test if the available space of the partition is less than + * 50K + */ if (size < 51200) { syslog(LOG_WARNING, "Partitioned free space not enough !\n"); syslog(LOG_WARNING, "Test case (%s) exits early !\n", __func__); } + else { /* make directory */ @@ -146,9 +152,9 @@ void test_nuttx_fs_rewinddir01(FAR void **state) /* create */ - test_nuttx_fs_cteat_file(TEST_CHILD_FILE1, 10); - test_nuttx_fs_cteat_file(TEST_CHILD_FILE2, 10); - test_nuttx_fs_cteat_file(TEST_CHILD_FILE3, 10); + test_nuttx_fs_cteatfile(TEST_CHILD_FILE1, 10); + test_nuttx_fs_cteatfile(TEST_CHILD_FILE2, 10); + test_nuttx_fs_cteatfile(TEST_CHILD_FILE3, 10); /* open directory */ diff --git a/testing/testsuites/kernel/fs/cases/fs_rmdir_test.c b/testing/testsuites/kernel/fs/cases/fs_rmdir_test.c index 6b848bc48ab..57e84ca2f43 100644 --- a/testing/testsuites/kernel/fs/cases/fs_rmdir_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_rmdir_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_rmdir_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -46,31 +48,36 @@ ****************************************************************************/ /**************************************************************************** - * Name: test_nuttx_fs_fmdir01 + * Name: test_nuttx_fs_rmdir01 ****************************************************************************/ -void test_nuttx_fs_fmdir01(FAR void **state) +void test_nuttx_fs_rmdir01(FAR void **state) { int status; int fd; char str[5]; - char test_file_name[20] = { + char testfilename[20] = + { 0 }; - char test_dir_name[20] = { + char testdirname[20] = + { 0 }; - char absolute_directory[100] = { + char absolutedirectory[100] = + { 0 }; - char current_path[100] = { + char currentpath[100] = + { 0 }; - char parent_directory[PATH_MAX] = { + char parentdirectory[PATH_MAX] = + { 0 }; @@ -81,8 +88,8 @@ void test_nuttx_fs_fmdir01(FAR void **state) fail_msg("Failed to obtain partition information !\n"); } - /* Stop the test if the available space of - * the partition is less than 160K + /* Stop the test if the available space of the partition is less than + * 160K */ if (size < 163840) @@ -99,19 +106,19 @@ void test_nuttx_fs_fmdir01(FAR void **state) /* get test path */ - getcwd(current_path, sizeof(current_path)); + getcwd(currentpath, sizeof(currentpath)); - strcpy(absolute_directory, current_path); - strcat(current_path, "/"); - strcat(current_path, PARENTDIR1); + strcpy(absolutedirectory, currentpath); + strcat(currentpath, "/"); + strcat(currentpath, PARENTDIR1); - strcpy(parent_directory, current_path); + strcpy(parentdirectory, currentpath); - chdir(current_path); + chdir(currentpath); /* get test path */ - getcwd(current_path, sizeof(current_path)); + getcwd(currentpath, sizeof(currentpath)); /* create 10 2-level subfolders */ @@ -128,13 +135,13 @@ void test_nuttx_fs_fmdir01(FAR void **state) /* enter sub-directory */ - strcat(current_path, "/"); - strcat(current_path, str); - chdir(current_path); + strcat(currentpath, "/"); + strcat(currentpath, str); + chdir(currentpath); /* get test path */ - getcwd(current_path, sizeof(current_path)); + getcwd(currentpath, sizeof(currentpath)); /* make directory */ @@ -152,29 +159,29 @@ void test_nuttx_fs_fmdir01(FAR void **state) /* enter sub-directory */ - memset(current_path, 0, sizeof(current_path)); - strcpy(current_path, parent_directory); - strcat(current_path, "/"); - strcat(current_path, str); - chdir(current_path); + memset(currentpath, 0, sizeof(currentpath)); + strcpy(currentpath, parentdirectory); + strcat(currentpath, "/"); + strcat(currentpath, str); + chdir(currentpath); /* get test path */ - getcwd(current_path, sizeof(current_path)); + getcwd(currentpath, sizeof(currentpath)); for (int j = 1; j <= 10; j++) { - sprintf(test_file_name, "test_3_file_%d", j); + sprintf(testfilename, "test_3_file_%d", j); /* creat a test file */ - fd = creat(test_file_name, 0700); + fd = creat(testfilename, 0700); assert_true(fd > 0); close(fd); /* set memory */ - memset(test_file_name, 0, sizeof(test_file_name)); + memset(testfilename, 0, sizeof(testfilename)); } /* switch to directory 2 */ @@ -183,45 +190,45 @@ void test_nuttx_fs_fmdir01(FAR void **state) /* enter sub-directory */ - memset(current_path, 0, sizeof(current_path)); - strcpy(current_path, parent_directory); - strcat(current_path, "/"); - strcat(current_path, str); - chdir(current_path); + memset(currentpath, 0, sizeof(currentpath)); + strcpy(currentpath, parentdirectory); + strcat(currentpath, "/"); + strcat(currentpath, str); + chdir(currentpath); /* get test path */ - getcwd(current_path, sizeof(current_path)); + getcwd(currentpath, sizeof(currentpath)); for (int k = 1; k <= 5; k++) { - sprintf(test_file_name, "test_3_file_%d", k); - sprintf(test_dir_name, "test_3_dir_%d", k); + sprintf(testfilename, "test_3_file_%d", k); + sprintf(testdirname, "test_3_dir_%d", k); /* create a test file */ - fd = creat(test_file_name, 0700); + fd = creat(testfilename, 0700); assert_true(fd > 0); close(fd); /* make directory */ - status = mkdir(test_dir_name, 0700); + status = mkdir(testdirname, 0700); assert_int_equal(status, 0); /* set memory */ - memset(test_file_name, 0, sizeof(test_file_name)); - memset(test_dir_name, 0, sizeof(test_dir_name)); + memset(testfilename, 0, sizeof(testfilename)); + memset(testdirname, 0, sizeof(testdirname)); } /* wwitch to the test absolute directory */ - chdir(absolute_directory); + chdir(absolutedirectory); /* call the recursive delete interface */ - cm_unlink_recursive(parent_directory); + cm_unlink_recursive(parentdirectory); } } @@ -243,19 +250,23 @@ void test_nuttx_fs_rmdir02(FAR void **state) { int status; int ret; - char str[20] = { + char str[20] = + { 0 }; - char absolute_directory[20] = { + char absolutedirectory[20] = + { 0 }; - char parent_directory[PATH_MAX] = { + char parentdirectory[PATH_MAX] = + { 0 }; - char temporary_path[300] = { + char temporarypath[300] = + { 0 }; @@ -267,7 +278,9 @@ void test_nuttx_fs_rmdir02(FAR void **state) fail_msg("Failed to obtain partition information !\n"); } - /* Stop the test if the available space of the partition is less than 98K */ + /* Stop the test if the available space of the partition is less than + * 98K + */ if (size < 98304) { @@ -276,20 +289,20 @@ void test_nuttx_fs_rmdir02(FAR void **state) } else { - getcwd(absolute_directory, sizeof(absolute_directory)); + getcwd(absolutedirectory, sizeof(absolutedirectory)); /* create directory */ status = mkdir(PARENTDIR2, 0700); assert_int_equal(status, 0); - strcpy(parent_directory, absolute_directory); - strcat(parent_directory, "/"); - strcat(parent_directory, PARENTDIR2); + strcpy(parentdirectory, absolutedirectory); + strcat(parentdirectory, "/"); + strcat(parentdirectory, PARENTDIR2); /* switch to test PARENTDIR */ - chdir(parent_directory); + chdir(parentdirectory); /* create a 6-level directory in a loop */ @@ -297,36 +310,36 @@ void test_nuttx_fs_rmdir02(FAR void **state) { /* get current path */ - getcwd(temporary_path, sizeof(temporary_path)); - strcat(temporary_path, "/"); + getcwd(temporarypath, sizeof(temporarypath)); + strcat(temporarypath, "/"); /* do snprintf */ ret = snprintf(str, 20, "test_dir_%d", i); assert_true(ret > 0); - strcat(temporary_path, str); + strcat(temporarypath, str); /* make directory */ - status = mkdir(temporary_path, 0700); + status = mkdir(temporarypath, 0700); assert_int_equal(status, 0); - chdir(temporary_path); + chdir(temporarypath); /* set memory */ - memset(temporary_path, 0, sizeof(temporary_path)); + memset(temporarypath, 0, sizeof(temporarypath)); memset(str, 0, sizeof(str)); } /* wwitch to the test absolute directory */ - chdir(absolute_directory); + chdir(absolutedirectory); /* call the recursive delete interface */ - cm_unlink_recursive(parent_directory); + cm_unlink_recursive(parentdirectory); } } @@ -343,7 +356,8 @@ void test_nuttx_fs_rmdir03(FAR void **state) int status; DIR *dir = NULL; char str[5]; - char buf[20] = { + char buf[20] = + { 0 }; @@ -356,7 +370,9 @@ void test_nuttx_fs_rmdir03(FAR void **state) fail_msg("Failed to obtain partition information !\n"); } - /* Stop the test if the available space of the partition is less than 80K */ + /* Stop the test if the available space of the partition is less than + * 80K + */ if (size < 81920) { diff --git a/testing/testsuites/kernel/fs/cases/fs_seek_test.c b/testing/testsuites/kernel/fs/cases/fs_seek_test.c index e5c4d8677da..da49382eadf 100644 --- a/testing/testsuites/kernel/fs/cases/fs_seek_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_seek_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_seek_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -148,10 +150,10 @@ tcases[] = ****************************************************************************/ /**************************************************************************** - * Name: test_nuttx_fs_verify_lseek + * Name: test_nuttx_fs_verifylseek ****************************************************************************/ -static int test_nuttx_fs_verify_lseek(unsigned int n) +static int test_nuttx_fs_verifylseek(unsigned int n) { char read_buf[64]; struct tcase *tc = &tcases[n]; @@ -182,7 +184,8 @@ static int test_nuttx_fs_verify_lseek(unsigned int n) if (ret != tc->exp_off) { syslog(LOG_ERR, "lseek(%s, %lld, %s) returned %d, expected %lld\n", - TFILE, (long long)tc->off, tc->wname, ret, (long long)tc->exp_off); + TFILE, (long long)tc->off, tc->wname, ret, + (long long)tc->exp_off); return -1; } @@ -196,8 +199,8 @@ static int test_nuttx_fs_verify_lseek(unsigned int n) if (tc->exp_data && strcmp(read_buf, tc->exp_data)) { - syslog(LOG_ERR, "lseek(%s, %lld, %s) read incorrect data\n", - TFILE, (long long)tc->off, tc->wname); + syslog(LOG_ERR, "lseek(%s, %lld, %s) read incorrect data\n", TFILE, + (long long)tc->off, tc->wname); return -1; } else @@ -254,22 +257,22 @@ void test_nuttx_fs_seek02(FAR void **state) /* do verify lseek */ - ret = test_nuttx_fs_verify_lseek(0); + ret = test_nuttx_fs_verifylseek(0); assert_int_equal(ret, 0); /* do verify lseek */ - ret = test_nuttx_fs_verify_lseek(1); + ret = test_nuttx_fs_verifylseek(1); assert_int_equal(ret, 0); /* do verify lseek */ - ret = test_nuttx_fs_verify_lseek(2); + ret = test_nuttx_fs_verifylseek(2); assert_int_equal(ret, 0); /* do verify lseek */ - ret = test_nuttx_fs_verify_lseek(3); + ret = test_nuttx_fs_verifylseek(3); assert_int_equal(ret, 0); /* do clean */ diff --git a/testing/testsuites/kernel/fs/cases/fs_sendfile_test.c b/testing/testsuites/kernel/fs/cases/fs_sendfile_test.c index 7ce21ac19f5..eb6dec014f1 100644 --- a/testing/testsuites/kernel/fs/cases/fs_sendfile_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_sendfile_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_sendfile_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -41,28 +43,20 @@ #define I_FILE1 "inputFile1" #define I_FILE2 "inputFile2" -/**************************************************************************** - * Private Functions - ****************************************************************************/ - static void set_test(void) { int fd; fd = open(O_FILE, O_CREAT | O_RDWR, 0777); if (fd == -1) { - syslog(LOG_ERR, "Unable to open file %s, errno %d\n", O_FILE, errno); + syslog(LOG_ERR, "Unable to open file %s, errno %d\n", O_FILE, + errno); assert_true(1 == 0); } - write(fd, "ABCDEFGHIJ", 10); close(fd); } -/**************************************************************************** - * Public Functions - ****************************************************************************/ - /**************************************************************************** * Name: sendfile * Example description: @@ -70,6 +64,10 @@ static void set_test(void) * Expect results: TEST PASSED ****************************************************************************/ +/**************************************************************************** + * Public Functions + ****************************************************************************/ + void test_nuttx_fs_sendfile01(FAR void **state) { int ret; @@ -195,7 +193,8 @@ void test_nuttx_fs_sendfile02(FAR void **state) close(fd_o); close(fd_i); - /* Checks whether the file pointer is offset to the specified position */ + /* Checks whether the file pointer is offset to the specified position + */ assert_int_equal(offset, f_stat.st_size); } diff --git a/testing/testsuites/kernel/fs/cases/fs_stat_test.c b/testing/testsuites/kernel/fs/cases/fs_stat_test.c index b90b11f5122..3420b30731c 100644 --- a/testing/testsuites/kernel/fs/cases/fs_stat_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_stat_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_stat_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -51,10 +53,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: test_nuttx_fs_print_time + * Name: test_nuttx_fs_printtime ****************************************************************************/ -__attribute__((unused)) static void test_nuttx_fs_print_time(struct tm *TM) +__attribute__((unused)) static void test_nuttx_fs_printtime(struct tm *TM) { syslog(LOG_INFO, " tm_year: %d\n", TM->tm_year + 1900); syslog(LOG_INFO, " tm_mon: %d\n", TM->tm_mon); @@ -78,7 +80,8 @@ void test_nuttx_fs_stat01(FAR void **state) int ret; int ret2; struct stat file_s; - char buf[BUF_SIZE] = { + char buf[BUF_SIZE] = + { 0 }; diff --git a/testing/testsuites/kernel/fs/cases/fs_statfs_test.c b/testing/testsuites/kernel/fs/cases/fs_statfs_test.c index d5b0e297c51..8fa30b8e3cb 100644 --- a/testing/testsuites/kernel/fs/cases/fs_statfs_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_statfs_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_statfs_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -48,11 +50,11 @@ ****************************************************************************/ /**************************************************************************** - * Name: test_nuttx_fs_print_statfs + * Name: test_nuttx_fs_printstatfs ****************************************************************************/ -__attribute__((unused)) static void test_nuttx_fs_print_statfs - (struct statfs *buf) +__attribute__((unused)) static void +test_nuttx_fs_printstatfs(struct statfs *buf) { syslog(LOG_INFO, "statfs buffer:\n"); syslog(LOG_INFO, " f_type: %u \n", (unsigned)buf->f_type); @@ -80,12 +82,12 @@ __attribute__((unused)) static void test_nuttx_fs_print_statfs void test_nuttx_fs_statfs01(FAR void **state) { - struct statfs disk_info; + struct statfs diskinfo; /* call statfs() */ char *buf = getcwd(NULL, 0); - int ret = statfs(buf, &disk_info); + int ret = statfs(buf, &diskinfo); free(buf); assert_int_equal(ret, 0); } diff --git a/testing/testsuites/kernel/fs/cases/fs_stream_test.c b/testing/testsuites/kernel/fs/cases/fs_stream_test.c index 27d43ef852e..6074a7b6f89 100644 --- a/testing/testsuites/kernel/fs/cases/fs_stream_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_stream_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_stream_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -37,10 +39,6 @@ #include "fstest.h" #define TESTFILENAME "streamTestfile" -/**************************************************************************** - * Public Functions - ****************************************************************************/ - /**************************************************************************** * Name: stream * Example description: @@ -52,6 +50,10 @@ * Expect results: TEST PASSED ****************************************************************************/ +/**************************************************************************** + * Public Functions + ****************************************************************************/ + void test_nuttx_fs_stream01(FAR void **state) { FILE *stream; @@ -100,9 +102,9 @@ void test_nuttx_fs_stream01(FAR void **state) * Name: stream * Example description: * 1. open a file with "a+". - * 2. Write the file multiple times. - * 3. Check that the file pointer is in the correct - * position after each write. + * 2. Write the file multiple times. + * 3. Check that the file pointer is in the correct position after + *each write. * 4. Reset the file pointer position. Repeat step 2-3 * 4. Check the returned results. * Test item: fopen() fwrite() rewind() ftell() fseek() fgets() @@ -127,7 +129,8 @@ void test_nuttx_fs_stream02(FAR void **state) pos = ftell(stream); if (pos != 0) { - syslog(LOG_ERR, "file pointer descrepancy 1, errno %d\n", errno); + syslog(LOG_ERR, "file pointer descrepancy 1, errno %d\n", + errno); fclose(stream); assert_true(1 == 0); } @@ -142,13 +145,15 @@ void test_nuttx_fs_stream02(FAR void **state) pos = ftell(stream); if (pos != strlen(junk)) { - syslog(LOG_ERR, - "strlen(junk)=%zi: file pointer descrepancy 2 (pos=%li)", - strlen(junk), pos); + syslog( + LOG_ERR, + "strlen(junk)=%zi: file pointer descrepancy 2 (pos=%li)", + strlen(junk), pos); fclose(stream); assert_true(1 == 0); } + usleep(1000); rewind(stream); pos = ftell(stream); if (pos != 0) @@ -171,9 +176,10 @@ void test_nuttx_fs_stream02(FAR void **state) if (pos != strlen(junk)) { fclose(stream); - syslog(LOG_ERR, - "strlen(junk)=%zi: file pointer descrepancy 4 (pos=%li)", - strlen(junk), pos); + syslog( + LOG_ERR, + "strlen(junk)=%zi: file pointer descrepancy 4 (pos=%li)", + strlen(junk), pos); assert_true(1 == 0); } @@ -188,9 +194,10 @@ void test_nuttx_fs_stream02(FAR void **state) if (pos != strlen(junk)) { fclose(stream); - syslog(LOG_ERR, - "strlen(junk)=%zi: file pointer descrepancy 5 (pos=%li)", - strlen(junk), pos); + syslog( + LOG_ERR, + "strlen(junk)=%zi: file pointer descrepancy 5 (pos=%li)", + strlen(junk), pos); assert_true(1 == 0); } @@ -206,7 +213,8 @@ void test_nuttx_fs_stream02(FAR void **state) { fclose(stream); syslog(LOG_ERR, - "file pointer descrepancy 6 (pos=%li, wanted pos=0)", pos); + "file pointer descrepancy 6 (pos=%li, wanted pos=0)", + pos); assert_true(1 == 0); } @@ -215,28 +223,30 @@ void test_nuttx_fs_stream02(FAR void **state) pos = ftell(stream); if (pos != strlen(junk)) { - syslog(LOG_ERR, - "strlen(junk)=%zi: file pointer descrepancy 7 (pos=%li)", - strlen(junk), pos); + syslog( + LOG_ERR, + "strlen(junk)=%zi: file pointer descrepancy 7 (pos=%li)", + strlen(junk), pos); assert_true(1 == 0); } fclose(stream); unlink(TESTFILENAME); + usleep(40000); } } /**************************************************************************** * Name: stream * Example description: - * 1. open a file with "a+". - * 2. Write the file multiple times. - * 3. close the file. - * 4. open the file again with "r+" - * 5. Request a piece of memory and read the contents of the file. - * 6. Check that the read file class is correct. - * 7. repeat step 2-3-4-5-6 for 10 times. - * 8. Check that the test returns results. + * 1. open a file with "a+". + * 2. Write the file multiple times. + * 3. close the file. + * 4. open the file again with "r+" + * 5. Request a piece of memory and read the contents of the file. + * 6. Check that the read file class is correct. + * 7. repeat step 2-3-4-5-6 for 10 times. + * 8. Check that the test returns results. * Test item: fopen() fwrite() fread() malloc() * Expect results: TEST PASSED ****************************************************************************/ @@ -266,8 +276,7 @@ void test_nuttx_fs_stream03(FAR void **state) if ((size_t)ret != len) { - syslog(LOG_ERR, - "len = %zi != return value from fwrite = %i", + syslog(LOG_ERR, "len = %zu != return value from fwrite = %d", len, ret); fclose(stream); assert_true(1 == 0); @@ -299,8 +308,7 @@ void test_nuttx_fs_stream03(FAR void **state) if ((size_t)ret != len) { - syslog(LOG_ERR, - "len = %zi != return value from fread = %i", + syslog(LOG_ERR, "len = %zu != return value from fread = %d", len, ret); free(inbuf); fclose(stream); @@ -351,8 +359,7 @@ void test_nuttx_fs_stream04(FAR void **state) if (ferror(stream) != 0) { - syslog(LOG_ERR, - "ferror did not return zero, return %d\n", + syslog(LOG_ERR, "ferror did not return zero, return %d\n", ferror(stream)); fclose(stream); assert_true(1 == 0); @@ -386,14 +393,15 @@ void test_nuttx_fs_stream04(FAR void **state) if ((stream = fopen(TESTFILENAME, "r+")) == NULL) { - syslog(LOG_ERR, - "fopen(%s) r+ failed, errno %d\n", TESTFILENAME, errno); + syslog(LOG_ERR, "fopen(%s) r+ failed, errno %d\n", + TESTFILENAME, errno); assert_true(1 == 0); } if (feof(stream) != 0) { - syslog(LOG_ERR, "feof returned non-zero when it should not \n"); + syslog(LOG_ERR, + "feof returned non-zero when it should not \n"); fclose(stream); assert_true(1 == 0); } diff --git a/testing/testsuites/kernel/fs/cases/fs_symlink_test.c b/testing/testsuites/kernel/fs/cases/fs_symlink_test.c index e8c8dcaf32d..05f6a908e16 100644 --- a/testing/testsuites/kernel/fs/cases/fs_symlink_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_symlink_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_symlink_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -54,28 +56,34 @@ static char *path; ****************************************************************************/ /**************************************************************************** - * Name: test_nuttx_fs_run_test + * Name: test_nuttx_fs_runtest ****************************************************************************/ -static int test_nuttx_fs_run_test(void) +static int test_nuttx_fs_runtest(void) { int ret; /* test symlink */ - char buf[64] = { + char buf[64] = + { 0 }; ret = symlink(path, "/file_link"); + + /* syslog(LOG_INFO, "the symlink return : %d\n", ret); */ + if (ret != 0) { return ERROR; } - else { ret = readlink("/file_link", buf, PATH_MAX_SIZE); + + /* syslog(LOG_INFO, "buf = %s\n", buf); */ + unlink("/file_link"); } @@ -116,11 +124,14 @@ void test_nuttx_fs_symlink01(FAR void **state) fd = open(path, O_WRONLY | O_CREAT, 0700); assert_true(fd > 0); - test_state->fd1 = fd; /* do run test */ - ret = test_nuttx_fs_run_test(); + ret = test_nuttx_fs_runtest(); + + /* close file */ + + close(fd); /* do remove */ diff --git a/testing/testsuites/kernel/fs/cases/fs_truncate_test.c b/testing/testsuites/kernel/fs/cases/fs_truncate_test.c index f2151d6bf96..32afc989c21 100644 --- a/testing/testsuites/kernel/fs/cases/fs_truncate_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_truncate_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_truncate_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include diff --git a/testing/testsuites/kernel/fs/cases/fs_unlink_test.c b/testing/testsuites/kernel/fs/cases/fs_unlink_test.c index e610ab32022..7097bc114e8 100644 --- a/testing/testsuites/kernel/fs/cases/fs_unlink_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_unlink_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_unlink_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -64,7 +66,8 @@ void test_nuttx_fs_unlink01(FAR void **state) assert_true(fd > 0); test_state->fd1 = fd; - char buf[MAXSIZE] = { + char buf[MAXSIZE] = + { 0 }; diff --git a/testing/testsuites/kernel/fs/cases/fs_write_test.c b/testing/testsuites/kernel/fs/cases/fs_write_test.c index 064eac34bab..954704ed213 100644 --- a/testing/testsuites/kernel/fs/cases/fs_write_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_write_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_write_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include diff --git a/testing/testsuites/kernel/fs/cmocka_fs_test.c b/testing/testsuites/kernel/fs/cmocka_fs_test.c index 17aa48abcfe..f4b581f816e 100644 --- a/testing/testsuites/kernel/fs/cmocka_fs_test.c +++ b/testing/testsuites/kernel/fs/cmocka_fs_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cmocka_fs_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -29,161 +31,169 @@ #include "fstest.h" /**************************************************************************** - * Public Functions + * Name: cmocka_fs_test_main ****************************************************************************/ /**************************************************************************** - * Name: cmocka_fs_test_main + * Public Functions ****************************************************************************/ int main(int argc, char *argv[]) { /* Add Test Cases */ - const struct CMUnitTest nuttx_fs_test_suites[] = { + const struct CMUnitTest nuttx_fs_test_suites[] = + { cmocka_unit_test_setup_teardown(test_nuttx_fs_creat01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_dup01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), + /* cmocka_unit_test_setup_teardown(test_nuttx_fs_dup201, + * test_nuttx_fs_test_group_setup, test_nuttx_fs_test_group_teardown), + */ + cmocka_unit_test_setup_teardown(test_nuttx_fs_fcntl01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), #ifndef CONFIG_ARCH_SIM cmocka_unit_test_setup_teardown(test_nuttx_fs_fcntl02, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_fcntl03, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), #endif cmocka_unit_test_setup_teardown(test_nuttx_fs_fstat01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), #ifndef CONFIG_ARCH_SIM cmocka_unit_test_setup_teardown(test_nuttx_fs_fstat02, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), #endif cmocka_unit_test_setup_teardown(test_nuttx_fs_fstatfs01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_fsync01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_fsync02, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_getfilep01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_mkdir01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_open01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), + cmocka_unit_test_setup_teardown(test_nuttx_fs_open02, + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_opendir01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_opendir02, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_pread01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_pwrite01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), #ifndef CONFIG_ARCH_SIM cmocka_unit_test_setup_teardown(test_nuttx_fs_read01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), #endif cmocka_unit_test_setup_teardown(test_nuttx_fs_readdir01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_readlink01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_rename01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_rename02, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_rewinddir01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), - cmocka_unit_test_setup_teardown(test_nuttx_fs_fmdir01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), + cmocka_unit_test_setup_teardown(test_nuttx_fs_rmdir01, + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_rmdir02, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_rmdir03, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_seek01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_seek02, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), #ifndef CONFIG_ARCH_SIM cmocka_unit_test_setup_teardown(test_nuttx_fs_stat01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), #endif cmocka_unit_test_setup_teardown(test_nuttx_fs_statfs01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_symlink01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_truncate01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_unlink01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_write01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_write02, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_write03, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_append01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_sendfile01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_sendfile02, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_stream01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_stream02, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_stream03, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_stream04, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_eventfd, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), cmocka_unit_test_setup_teardown(test_nuttx_fs_poll01, - test_nuttx_fs_fest_group_set_up, - test_nuttx_fs_test_group_tear_down), + test_nuttx_fs_test_group_setup, + test_nuttx_fs_test_group_teardown), }; /* Run Test cases */ diff --git a/testing/testsuites/kernel/fs/common/test_fs_common.c b/testing/testsuites/kernel/fs/common/test_fs_common.c index 868e42d2340..3761f8fac37 100644 --- a/testing/testsuites/kernel/fs/common/test_fs_common.c +++ b/testing/testsuites/kernel/fs/common/test_fs_common.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/common/test_fs_common.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -46,15 +48,15 @@ unsigned long long cm_get_partition_available_size(void) { unsigned long long size = 0; int ret; - struct statfs stat_info; + struct statfs statinfo; /* call statfs() */ - ret = statfs(MOUNT_DIR, &stat_info); + ret = statfs(MOUNT_DIR, &statinfo); if (ret == 0) { - size = (unsigned long long)stat_info.f_bsize - * (unsigned long long)stat_info.f_bfree; + size = (unsigned long long)statinfo.f_bsize * + (unsigned long long)statinfo.f_bfree; } else { @@ -63,6 +65,12 @@ unsigned long long cm_get_partition_available_size(void) return size; } +int get_mem_info(struct mallinfo *mem_info) +{ + *mem_info = mallinfo(); + return 0; +} + int cm_unlink_recursive(FAR char *path) { struct dirent *d; @@ -112,10 +120,10 @@ int cm_unlink_recursive(FAR char *path) ret = closedir(dp); if (ret >= 0) - { - path[len] = '\0'; - ret = rmdir(path); - } + { + path[len] = '\0'; + ret = rmdir(path); + } return ret; } @@ -125,10 +133,10 @@ int cm_unlink_recursive(FAR char *path) ****************************************************************************/ /**************************************************************************** - * Name: test_nuttx_fs_fest_group_set_up + * Name: test_nuttx_fs_test_group_setup ****************************************************************************/ -int test_nuttx_fs_fest_group_set_up(void **state) +int test_nuttx_fs_test_group_setup(void **state) { int res; struct stat buf; @@ -148,9 +156,10 @@ int test_nuttx_fs_fest_group_set_up(void **state) } else { - char testdir[PATH_MAX] = { - 0 - }; + char testdir[PATH_MAX] = + { + 0 + }; sprintf(testdir, "%s/%s", MOUNT_DIR, CM_FSTESTDIR); @@ -160,7 +169,8 @@ int test_nuttx_fs_fest_group_set_up(void **state) res = mkdir(CM_FSTESTDIR, 0777); if (res != 0) { - syslog(LOG_INFO, "ERROR: Failed to creat the test directory\n"); + syslog(LOG_INFO, + "ERROR: Failed to creat the test directory\n"); exit(1); } @@ -178,15 +188,16 @@ int test_nuttx_fs_fest_group_set_up(void **state) } /**************************************************************************** - * Name: test_nuttx_fs_test_group_tear_down + * Name: test_nuttx_fs_testgroupteardown ****************************************************************************/ -int test_nuttx_fs_test_group_tear_down(void **state) +int test_nuttx_fs_test_group_teardown(void **state) { int res; - char testdir[PATH_MAX] = { - 0 - }; + char testdir[PATH_MAX] = + { + 0 + }; struct fs_testsuites_state_s *test_state; diff --git a/testing/testsuites/kernel/fs/include/fstest.h b/testing/testsuites/kernel/fs/include/fstest.h index 4a0ec5f1253..f16677fb6ff 100644 --- a/testing/testsuites/kernel/fs/include/fstest.h +++ b/testing/testsuites/kernel/fs/include/fstest.h @@ -1,27 +1,29 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/include/fstest.h - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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 + *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. + * ****************************************************************************/ #ifndef __TEST_H #define __TEST_H +/**************************************************************************** + * Included Files + ****************************************************************************/ #include #include #include @@ -36,14 +38,13 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ - #define TEST_PASS 0 #define TEST_FAIL -1 #define MAX_PATH 300 -/* The test files generated during the 'fs-test' - * are stored in this directory +/* The test files generated during the 'fs-test' are stored in this + * directory */ #define FS_TEST_DIR "fs_test_dir" @@ -65,145 +66,178 @@ struct fs_testsuites_state_s unsigned long long cm_get_partition_available_size(void); int cm_unlink_recursive(FAR char *path); -int test_nuttx_fs_fest_group_set_up(FAR void **state); -int test_nuttx_fs_test_group_tear_down(FAR void **state); +int test_nuttx_fs_test_group_setup(FAR void **state); +int test_nuttx_fs_test_group_teardown(FAR void **state); +int get_mem_info(struct mallinfo *mem_info); -/* cases/fs_creat_test.c ****************************************************/ +/* cases/fs_creat_test.c + * ************************************************/ void test_nuttx_fs_creat01(FAR void **state); -/* cases/fs_dup_test.c ******************************************************/ +/* cases/fs_dup_test.c + * ************************************************/ void test_nuttx_fs_dup01(FAR void **state); -/* cases/fs_dup2_test.c *****************************************************/ +/* cases/fs_dup2_test.c + * ************************************************/ void test_nuttx_fs_dup201(FAR void **state); -/* cases/fs_fcntl_test.c ****************************************************/ +/* cases/fs_fcntl_test.c + * ************************************************/ void test_nuttx_fs_fcntl01(FAR void **state); void test_nuttx_fs_fcntl02(FAR void **state); void test_nuttx_fs_fcntl03(FAR void **state); -/* cases/fs_fstat_test.c ****************************************************/ +/* cases/fs_fstat_test.c + * ************************************************/ void test_nuttx_fs_fstat01(FAR void **state); void test_nuttx_fs_fstat02(FAR void **state); -/* cases/fs_fstatfs_test.c **************************************************/ +/* cases/fs_fstatfs_test.c + * ************************************************/ void test_nuttx_fs_fstatfs01(FAR void **state); -/* cases/fs_fsync_test.c ****************************************************/ +/* cases/fs_fsync_test.c + * ************************************************/ void test_nuttx_fs_fsync01(FAR void **state); void test_nuttx_fs_fsync02(FAR void **state); -/* cases/fs_getfilep_test.c *************************************************/ +/* cases/fs_getfilep_test.c + * ************************************************/ void test_nuttx_fs_getfilep01(FAR void **state); -/* cases/fs_mkdir_test.c ****************************************************/ +/* cases/fs_mkdir_test.c + * ************************************************/ void test_nuttx_fs_mkdir01(FAR void **state); -/* cases/fs_open_test.c *****************************************************/ +/* cases/fs_open_test.c + * ************************************************/ void test_nuttx_fs_open01(FAR void **state); +void test_nuttx_fs_open02(FAR void **state); -/* cases/fs_opendir_test.c **************************************************/ +/* cases/fs_opendir_test.c + * ************************************************/ void test_nuttx_fs_opendir01(FAR void **state); void test_nuttx_fs_opendir02(FAR void **state); -/* cases/fs_pread_test.c ****************************************************/ +/* cases/fs_pread_test.c + * ************************************************/ void test_nuttx_fs_pread01(FAR void **state); -/* cases/fs_pwrite_test.c ***************************************************/ +/* cases/fs_pwrite_test.c + * ************************************************/ void test_nuttx_fs_pwrite01(FAR void **state); -/* cases/fs_read_test.c *****************************************************/ +/* cases/fs_read_test.c + * ************************************************/ void test_nuttx_fs_read01(FAR void **state); -/* cases/fs_readdir_test.c **************************************************/ +/* cases/fs_readdir_test.c + * ************************************************/ void test_nuttx_fs_readdir01(FAR void **state); -/* cases/fs_readlink_test.c *************************************************/ +/* cases/fs_readlink_test.c + * ************************************************/ void test_nuttx_fs_readlink01(FAR void **state); -/* cases/fs_rename_test.c ***************************************************/ +/* cases/fs_rename_test.c + * ************************************************/ void test_nuttx_fs_rename01(FAR void **state); void test_nuttx_fs_rename02(FAR void **state); -/* cases/fs_rewinddir_test.c ************************************************/ +/* cases/fs_rewinddir_test.c + * ************************************************/ void test_nuttx_fs_rewinddir01(FAR void **state); -/* cases/fs_rmdir_test.c ****************************************************/ +/* cases/fs_rmdir_test.c + * ************************************************/ -void test_nuttx_fs_fmdir01(FAR void **state); +void test_nuttx_fs_rmdir01(FAR void **state); void test_nuttx_fs_rmdir02(FAR void **state); void test_nuttx_fs_rmdir03(FAR void **state); -/* cases/fs_seek_test.c *****************************************************/ +/* cases/fs_seek_test.c + * ************************************************/ void test_nuttx_fs_seek01(FAR void **state); void test_nuttx_fs_seek02(FAR void **state); -/* cases/fs_stat_test.c *****************************************************/ +/* cases/fs_stat_test.c + * ************************************************/ void test_nuttx_fs_stat01(FAR void **state); -/* cases/fs_statfs_test.c ***************************************************/ +/* cases/fs_statfs_test.c + * ************************************************/ void test_nuttx_fs_statfs01(FAR void **state); -/* cases/fs_symlink_test.c **************************************************/ +/* cases/fs_symlink_test.c + * ************************************************/ void test_nuttx_fs_symlink01(FAR void **state); -/* cases/fs_truncate_test.c *************************************************/ +/* cases/fs_truncate_test.c + * ************************************************/ void test_nuttx_fs_truncate01(FAR void **state); -/* cases/fs_unlink_test.c ***************************************************/ +/* cases/fs_unlink_test.c + * ************************************************/ void test_nuttx_fs_unlink01(FAR void **state); -/* cases/fs_write_test.c ****************************************************/ +/* cases/fs_write_test.c + * ************************************************/ void test_nuttx_fs_write01(FAR void **state); void test_nuttx_fs_write02(FAR void **state); void test_nuttx_fs_write03(FAR void **state); -/* cases/fs_append_test.c ***************************************************/ +/* cases/fs_append_test.c + * ************************************************/ void test_nuttx_fs_append01(FAR void **state); -/* cases/fs_sendfile_test.c *************************************************/ +/* cases/fs_sendfile_test.c + * ************************************************/ void test_nuttx_fs_sendfile01(FAR void **state); void test_nuttx_fs_sendfile02(FAR void **state); -/* cases/fs_stream_test.c ***************************************************/ +/* cases/fs_stream_test.c + * ************************************************/ void test_nuttx_fs_stream01(FAR void **state); void test_nuttx_fs_stream02(FAR void **state); void test_nuttx_fs_stream03(FAR void **state); void test_nuttx_fs_stream04(FAR void **state); -/* cases/fs_eventfd_test.c **************************************************/ +/* cases/fs_eventfd_test.c + * ************************************************/ void test_nuttx_fs_eventfd(FAR void **state); -/* fs_poll_test.c ***********************************************************/ +/* fs_poll_test.c + * ************************************************/ void test_nuttx_fs_poll01(FAR void **state); diff --git a/testing/testsuites/kernel/mm/cases/mm_test_001.c b/testing/testsuites/kernel/mm/cases/mm_test_001.c index aecee6970fe..7eb27c541bc 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_001.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_001.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -38,12 +37,12 @@ ****************************************************************************/ /**************************************************************************** - * Name: TestNuttxMm01 + * Name: test_nuttx_mm01 ****************************************************************************/ void test_nuttx_mm01(FAR void **state) { - int i = 0; + int i; int flag = 0; char *pm1; char *pm2; diff --git a/testing/testsuites/kernel/mm/cases/mm_test_002.c b/testing/testsuites/kernel/mm/cases/mm_test_002.c index bad38c4ca8f..e749b84eeb2 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_002.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_002.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -38,12 +37,12 @@ ****************************************************************************/ /**************************************************************************** - * Name: TestNuttxMm02 + * Name: test_nuttx_mm02 ****************************************************************************/ void test_nuttx_mm02(FAR void **state) { - int i = 0; + int i; int flag = 0; char *pm1; char *pm2; @@ -63,7 +62,7 @@ void test_nuttx_mm02(FAR void **state) pm2 = pm1; for (i = 0; i < memsize; i++) - *pm2++ = 'X'; + *pm2++ = 'X'; pm2 = pm1; for (i = 0; i < memsize; i++) { diff --git a/testing/testsuites/kernel/mm/cases/mm_test_003.c b/testing/testsuites/kernel/mm/cases/mm_test_003.c index 09553c465cf..cfa9935cf9f 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_003.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_003.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -38,7 +37,7 @@ ****************************************************************************/ /**************************************************************************** - * Name: TestNuttxMm03 + * Name: test_nuttx_mm03 ****************************************************************************/ void test_nuttx_mm03(FAR void **state) diff --git a/testing/testsuites/kernel/mm/cases/mm_test_004.c b/testing/testsuites/kernel/mm/cases/mm_test_004.c index 59960fd1b89..2dafc6f2320 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_004.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_004.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -39,7 +38,7 @@ ****************************************************************************/ /**************************************************************************** - * Name: TestNuttxMm04 + * Name: test_nuttx_mm04 ****************************************************************************/ void test_nuttx_mm04(FAR void **state) diff --git a/testing/testsuites/kernel/mm/cases/mm_test_005.c b/testing/testsuites/kernel/mm/cases/mm_test_005.c index 12739151518..6329c73464a 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_005.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_005.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -43,14 +42,14 @@ ****************************************************************************/ /**************************************************************************** - * Name: TestNuttxMm05 + * Name: test_nuttx_mm05 ****************************************************************************/ void test_nuttx_mm05(FAR void **state) { - int i = 0; + int i; int flag = 0; - char *ptr = NULL; + char *ptr; char *temp_ptr = NULL; ptr = temp_ptr = zalloc(1024 * sizeof(char)); diff --git a/testing/testsuites/kernel/mm/cases/mm_test_006.c b/testing/testsuites/kernel/mm/cases/mm_test_006.c index 8525b954357..98a19c1f260 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_006.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_006.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -52,7 +51,7 @@ ****************************************************************************/ /**************************************************************************** - * Name: TestNuttxMm06 + * Name: test_nuttx_mm06 ****************************************************************************/ void test_nuttx_mm06(FAR void **state) @@ -68,7 +67,8 @@ void test_nuttx_mm06(FAR void **state) /* Produces a random size */ - malloc_size = mmtest_get_rand_size(MALLOC_MIN_SIZE, MALLOC_MAX_SIZE); + malloc_size = + mmtest_get_rand_size(MALLOC_MIN_SIZE, MALLOC_MAX_SIZE); address_ptr = (char *)malloc(malloc_size * sizeof(char)); assert_non_null(address_ptr); memset(address_ptr, check_character, malloc_size); diff --git a/testing/testsuites/kernel/mm/cases/mm_test_007.c b/testing/testsuites/kernel/mm/cases/mm_test_007.c index a131200b24a..efe33221ce2 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_007.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_007.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -55,7 +54,7 @@ ****************************************************************************/ /**************************************************************************** - * Name: TestNuttxMm07 + * Name: test_nuttx_mm07 ****************************************************************************/ void test_nuttx_mm07(FAR void **state) @@ -69,7 +68,8 @@ void test_nuttx_mm07(FAR void **state) struct mallinfo test_befor_info; struct mallinfo test_during_info; struct mallinfo test_after_info; - + struct mallinfo mem_info; + memset(&mem_info, 0, sizeof(mem_info)); for (int i = 0; i < MEMORY_LIST_LENGTH; i++) { mem_list[i] = NULL; @@ -79,13 +79,30 @@ void test_nuttx_mm07(FAR void **state) /* get a random size */ - malloc_size = mmtest_get_rand_size(MALLOC_MIN_SIZE, MALLOC_MAX_SIZE); for (int k = 0; k < MEMORY_LIST_LENGTH; k++) { + get_mem_info(&mem_info); + malloc_size = + mmtest_get_rand_size(MALLOC_MIN_SIZE, MALLOC_MAX_SIZE); + if (mem_info.mxordblk - 16 < 0) + { + syslog(LOG_INFO, + "TEST END because of the mem_info.mxordblk is:%d", + mem_info.mxordblk); + break; + } + + if (malloc_size > mem_info.mxordblk - 16) + { + syslog(LOG_INFO, "SET memsize to:%d", mem_info.mxordblk - 16); + malloc_size = mem_info.mxordblk - 16; + } + if (malloc_size > 0) { tmp_str = (char *)malloc(malloc_size * sizeof(char)); } + else { malloc_size = 512; diff --git a/testing/testsuites/kernel/mm/cases/mm_test_008.c b/testing/testsuites/kernel/mm/cases/mm_test_008.c index 892de5bff40..99aab0c67b3 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_008.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_008.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -39,9 +38,6 @@ #include #include #include - -#include - #include "MmTest.h" /**************************************************************************** @@ -55,11 +51,7 @@ #define MALLOC_MIN_SIZE 32 #define MALLOC_MAX_SIZE 2048 -/**************************************************************************** - * Private Functions - ****************************************************************************/ - -static int test_nuttx08_routine_1(int argc, char *argv[]) +static int test_nuttx_08_routine_1(int argc, char *argv[]) { char *ptr = NULL; char *tmp_ptr = NULL; @@ -94,7 +86,7 @@ static int test_nuttx08_routine_1(int argc, char *argv[]) return 0; } -static int test_nuttx08_routine_2(int argc, char *argv[]) +static int test_nuttx_08_routine_2(int argc, char *argv[]) { char *temp_ptr = NULL; int flag = 0; @@ -118,15 +110,32 @@ static int test_nuttx08_routine_2(int argc, char *argv[]) return 0; } -static int test_nuttx08_routine_3(int argc, char *argv[]) +static int test_nuttx_08_routine_3(int argc, char *argv[]) { char *pm; unsigned long memsize; + struct mallinfo mem_info; + memset(&mem_info, 0, sizeof(mem_info)); for (int i = 0; i < 500; i++) { /* Apply for as much memory as a system allows */ + get_mem_info(&mem_info); memsize = mmtest_get_rand_size(1024, 2048); + if (mem_info.mxordblk - 16 < 0) + { + syslog(LOG_INFO, + "TEST END because of the mem_info.mxordblk is:%d", + mem_info.mxordblk); + break; + } + + if (memsize > mem_info.mxordblk - 16) + { + syslog(LOG_INFO, "SET memsize to:%d", mem_info.mxordblk - 16); + memsize = mem_info.mxordblk - 16; + } + pm = malloc(memsize); assert_non_null(pm); free(pm); @@ -140,7 +149,7 @@ static int test_nuttx08_routine_3(int argc, char *argv[]) ****************************************************************************/ /**************************************************************************** - * Name: TestNuttxMm08 + * Name: test_nuttx_mm08 ****************************************************************************/ void test_nuttx_mm08(FAR void **state) @@ -148,14 +157,14 @@ void test_nuttx_mm08(FAR void **state) pid_t pid; int status; - pid = task_create("TestNuttx08_routine_1", - TASK_PRIORITY, DEFAULT_STACKSIZE, test_nuttx08_routine_1, NULL); + pid = task_create("test_nuttx_08_routine_1", TASK_PRIORITY, + DEFAULT_STACKSIZE, test_nuttx_08_routine_1, NULL); assert_true(pid > 0); - pid = task_create("TestNuttx08_routine_2", - TASK_PRIORITY, DEFAULT_STACKSIZE, test_nuttx08_routine_2, NULL); + pid = task_create("test_nuttx_08_routine_2", TASK_PRIORITY, + DEFAULT_STACKSIZE, test_nuttx_08_routine_2, NULL); assert_true(pid > 0); - pid = task_create("TestNuttx08_routine_3", - TASK_PRIORITY, DEFAULT_STACKSIZE, test_nuttx08_routine_3, NULL); + pid = task_create("test_nuttx_08_routine_3", TASK_PRIORITY, + DEFAULT_STACKSIZE, test_nuttx_08_routine_3, NULL); assert_true(pid > 0); waitpid(pid, &status, 0); } diff --git a/testing/testsuites/kernel/mm/cmocka_mm_test.c b/testing/testsuites/kernel/mm/cmocka_mm_test.c index 3b6ea07fe11..27341a84ab8 100644 --- a/testing/testsuites/kernel/mm/cmocka_mm_test.c +++ b/testing/testsuites/kernel/mm/cmocka_mm_test.c @@ -1,19 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/cmocka_mm_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 @@ -31,7 +34,7 @@ #include /**************************************************************************** - * Public Functions + * Private Functions ****************************************************************************/ /**************************************************************************** @@ -42,31 +45,24 @@ int main(int argc, char *argv[]) { /* Add Test Cases */ - const struct CMUnitTest nuttx_mm_test_suites[] = { - cmocka_unit_test_setup_teardown(test_nuttx_mm01, - test_nuttx_mmsetup, - test_nuttx_mmteardown), - cmocka_unit_test_setup_teardown(test_nuttx_mm02, - test_nuttx_mmsetup, - test_nuttx_mmteardown), - cmocka_unit_test_setup_teardown(test_nuttx_mm03, - test_nuttx_mmsetup, - test_nuttx_mmteardown), - cmocka_unit_test_setup_teardown(test_nuttx_mm04, - test_nuttx_mmsetup, - test_nuttx_mmteardown), - cmocka_unit_test_setup_teardown(test_nuttx_mm05, - test_nuttx_mmsetup, - test_nuttx_mmteardown), - cmocka_unit_test_setup_teardown(test_nuttx_mm06, - test_nuttx_mmsetup, - test_nuttx_mmteardown), - cmocka_unit_test_setup_teardown(test_nuttx_mm07, - test_nuttx_mmsetup, - test_nuttx_mmteardown), - cmocka_unit_test_setup_teardown(test_nuttx_mm08, - test_nuttx_mmsetup, - test_nuttx_mmteardown), + const struct CMUnitTest nuttx_mm_test_suites[] = + { + cmocka_unit_test_setup_teardown(test_nuttx_mm01, test_nuttx_mm_setup, + test_nuttx_mm_teardown), + cmocka_unit_test_setup_teardown(test_nuttx_mm02, test_nuttx_mm_setup, + test_nuttx_mm_teardown), + cmocka_unit_test_setup_teardown(test_nuttx_mm03, test_nuttx_mm_setup, + test_nuttx_mm_teardown), + cmocka_unit_test_setup_teardown(test_nuttx_mm04, test_nuttx_mm_setup, + test_nuttx_mm_teardown), + cmocka_unit_test_setup_teardown(test_nuttx_mm05, test_nuttx_mm_setup, + test_nuttx_mm_teardown), + cmocka_unit_test_setup_teardown(test_nuttx_mm06, test_nuttx_mm_setup, + test_nuttx_mm_teardown), + cmocka_unit_test_setup_teardown(test_nuttx_mm07, test_nuttx_mm_setup, + test_nuttx_mm_teardown), + cmocka_unit_test_setup_teardown(test_nuttx_mm08, test_nuttx_mm_setup, + test_nuttx_mm_teardown), }; /* Run Test cases */ diff --git a/testing/testsuites/kernel/mm/common/test_mm_common.c b/testing/testsuites/kernel/mm/common/test_mm_common.c index a5f2ba2b2eb..07157579128 100644 --- a/testing/testsuites/kernel/mm/common/test_mm_common.c +++ b/testing/testsuites/kernel/mm/common/test_mm_common.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/common/test_mm_common.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -45,7 +47,7 @@ int mmtest_get_rand_size(int min, int max) int rval = 1; if (min > 0 && max > 0 && (max - min) > 0) { - rval = rand() % (max - min) + min; + rval = rand() % (max - min) + min; } return rval; @@ -61,15 +63,15 @@ void mmtest_showmallinfo(void) alloc_info = mallinfo(); syslog(LOG_INFO, " mallinfo:\n"); syslog(LOG_INFO, " Total space allocated from system = %lu\n", - (unsigned long)alloc_info.arena); + (unsigned long)alloc_info.arena); syslog(LOG_INFO, " Number of non-inuse chunks = %lu\n", - (unsigned long)alloc_info.ordblks); + (unsigned long)alloc_info.ordblks); syslog(LOG_INFO, " Largest non-inuse chunk = %lu\n", - (unsigned long)alloc_info.mxordblk); + (unsigned long)alloc_info.mxordblk); syslog(LOG_INFO, " Total allocated space = %lu\n", - (unsigned long)alloc_info.uordblks); + (unsigned long)alloc_info.uordblks); syslog(LOG_INFO, " Total non-inuse space = %lu\n", - (unsigned long)alloc_info.fordblks); + (unsigned long)alloc_info.fordblks); } /**************************************************************************** @@ -93,7 +95,7 @@ unsigned long mmtest_get_memsize(void) if (memsize > 1024 * 1024 * 2) { - memsize = 1024 * 1024 * 2; + memsize = 1024 * 1024 * 2; } return memsize; @@ -105,19 +107,19 @@ unsigned long mmtest_get_memsize(void) ****************************************************************************/ /**************************************************************************** - * Name: TestNuttxMmsetup + * Name: test_nuttx_mm_setup ****************************************************************************/ -int test_nuttx_mmsetup(void **state) +int test_nuttx_mm_setup(void **state) { return 0; } /**************************************************************************** - * Name: TestNuttxMmteardown + * Name: test_nuttx_mm_teardown ****************************************************************************/ -int test_nuttx_mmteardown(void **state) +int test_nuttx_mm_teardown(void **state) { return 0; } diff --git a/testing/testsuites/kernel/mm/include/MmTest.h b/testing/testsuites/kernel/mm/include/MmTest.h index 3f8509250c4..6d1812d9aff 100644 --- a/testing/testsuites/kernel/mm/include/MmTest.h +++ b/testing/testsuites/kernel/mm/include/MmTest.h @@ -1,19 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/include/MmTest.h - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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. + * + ****************************************************************************/ #ifndef __SYSCALLTEST_H #define __SYSCALLTEST_H @@ -21,15 +24,14 @@ /**************************************************************************** * Included Files ****************************************************************************/ - #include #include #include +#include /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ - #define PTHREAD_STACK_SIZE CONFIG_DEFAULT_TASK_STACKSIZE #define DEFAULT_STACKSIZE CONFIG_DEFAULT_TASK_STACKSIZE #define TASK_PRIORITY SCHED_PRIORITY_DEFAULT @@ -41,41 +43,55 @@ int mmtest_get_rand_size(int min, int max); void mmtest_showmallinfo(void); unsigned long mmtest_get_memsize(void); +static int __attribute__((unused)) +get_mem_info(struct mallinfo *mem_info) +{ + *mem_info = mallinfo(); + return 0; +} -int test_nuttx_mmsetup(void **state); -int test_nuttx_mmteardown(void **state); +int test_nuttx_mm_setup(void **state); +int test_nuttx_mm_teardown(void **state); /* test case function */ -/* cases/mm_test_001.c ******************************************************/ +/* cases/mm_test_001.c + * *****************************************************/ void test_nuttx_mm01(FAR void **state); -/* cases/mm_test_002.c ******************************************************/ +/* cases/mm_test_002.c + * *****************************************************/ void test_nuttx_mm02(FAR void **state); -/* cases/mm_test_003.c ******************************************************/ +/* cases/mm_test_003.c + * *****************************************************/ void test_nuttx_mm03(FAR void **state); -/* cases/mm_test_004.c ******************************************************/ +/* cases/mm_test_004.c + * *****************************************************/ void test_nuttx_mm04(FAR void **state); -/* cases/mm_test_005.c ******************************************************/ +/* cases/mm_test_005.c + * *****************************************************/ void test_nuttx_mm05(FAR void **state); -/* cases/mm_test_006.c ******************************************************/ +/* cases/mm_test_006.c + * *****************************************************/ void test_nuttx_mm06(FAR void **state); -/* cases/mm_test_007.c ******************************************************/ +/* cases/mm_test_007.c + * *****************************************************/ void test_nuttx_mm07(FAR void **state); -/* cases/mm_test_008.c ******************************************************/ +/* cases/mm_test_008.c + * *****************************************************/ void test_nuttx_mm08(FAR void **state); diff --git a/testing/testsuites/kernel/mm/tool/mem_batch_opt_perf_test.c b/testing/testsuites/kernel/mm/tool/mem_batch_opt_perf_test.c index 780779cbd90..740aa343584 100644 --- a/testing/testsuites/kernel/mm/tool/mem_batch_opt_perf_test.c +++ b/testing/testsuites/kernel/mm/tool/mem_batch_opt_perf_test.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -42,8 +41,9 @@ static void show_usage(void) { - printf("\nUsage: mm_stress_test \ - \n"); + printf( + "\nUsage: mm_stress_test " + "\n"); printf("\nWhere:\n"); printf(" Minimum number of memory requests.\n"); printf(" Maximum number of memory requests.\n"); @@ -51,10 +51,6 @@ static void show_usage(void) printf(" Number of tests.\n"); } -/**************************************************************************** - * Public Functions - ****************************************************************************/ - /**************************************************************************** * Name: main ****************************************************************************/ @@ -62,8 +58,10 @@ static void show_usage(void) int main(int argc, FAR char *argv[]) { int malloc_size = 0; - int mallc_min_size; /* The minimum memory length requested in the test */ - int mallc_max_size; /* The maximum memory length requested in the test */ + int mallc_min_size; /* The minimum memory length requested in the test + */ + int mallc_max_size; /* The maximum memory length requested in the test + */ int list_length; int test_num = 1; struct timespec t_start; @@ -96,29 +94,32 @@ int main(int argc, FAR char *argv[]) for (int i = 0; i < list_length; i++) { srand(i + gettid()); - malloc_size = mmtest_get_rand_size(mallc_min_size, mallc_max_size); + malloc_size = + mmtest_get_rand_size(mallc_min_size, mallc_max_size); clock_gettime(CLOCK_MONOTONIC, &t_start); address_ptr = (char *)malloc(malloc_size * sizeof(char)); clock_gettime(CLOCK_MONOTONIC, &t_end); - timedif = 1000000 * (t_end.tv_sec - t_start.tv_sec) - + (t_end.tv_nsec - t_start.tv_nsec) / 1000; + timedif = 1000000 * (t_end.tv_sec - t_start.tv_sec) + + (t_end.tv_nsec - t_start.tv_nsec) / 1000; if (address_ptr != NULL) { syslog(LOG_INFO, - "[Test %d Round] Allocate success -> mem_list[%d]" - " (address:%p size:%d) takes:%ld microseconds\n", - n, i, address_ptr, malloc_size, timedif); + "[Test %d Round] Allocate success -> mem_list[%d] " + "(address:%p size:%d) takes:%ld microseconds\n", + n, i, address_ptr, malloc_size, timedif); memset(address_ptr, 0x67, malloc_size); /* Add to list */ mem_list[i] = address_ptr; } + else { syslog(LOG_ERR, - "Malloc failed ! The remaining memory may be insufficient\n"); + "Malloc failed ! The remaining memory may be " + "insufficient\n"); syslog(LOG_ERR, "Continue to test !!\n"); /* Memory allocation failure */ @@ -136,11 +137,11 @@ int main(int argc, FAR char *argv[]) clock_gettime(CLOCK_MONOTONIC, &t_start); free(address_ptr); clock_gettime(CLOCK_MONOTONIC, &t_end); - timedif = 1000000 * (t_end.tv_sec - t_start.tv_sec) - + (t_end.tv_nsec - t_start.tv_nsec) / 1000; + timedif = 1000000 * (t_end.tv_sec - t_start.tv_sec) + + (t_end.tv_nsec - t_start.tv_nsec) / 1000; syslog(LOG_INFO, - "[Test %d Round] Free -> mem_list[%d] (size:%d)" - " takes:%ld microseconds\n", + "[Test %d Round] Free -> mem_list[%d] (size:%d) " + "takes:%ld microseconds\n", n, k, malloc_size, timedif); mem_list[k] = NULL; } diff --git a/testing/testsuites/kernel/mm/tool/mem_cycle_opt_perf_test.c b/testing/testsuites/kernel/mm/tool/mem_cycle_opt_perf_test.c index d4890a7b441..858f7abb516 100644 --- a/testing/testsuites/kernel/mm/tool/mem_cycle_opt_perf_test.c +++ b/testing/testsuites/kernel/mm/tool/mem_cycle_opt_perf_test.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -42,8 +41,9 @@ static void show_usage(void) { - printf("\nUsage: mm_stress_test \ - \n"); + printf( + "\nUsage: mm_stress_test " + "\n"); printf("\nWhere:\n"); printf(" Minimum number of memory requests.\n"); printf(" Maximum number of memory requests.\n"); @@ -51,10 +51,6 @@ static void show_usage(void) printf(" Malloc delay time, Unit: microseconds.\n"); } -/**************************************************************************** - * Public Functions - ****************************************************************************/ - /**************************************************************************** * Name: main ****************************************************************************/ @@ -62,11 +58,16 @@ static void show_usage(void) int main(int argc, FAR char *argv[]) { int malloc_size; - int mallc_min_size; /* The minimum memory length requested in the test */ - int mallc_max_size; /* The maximum memory length requested in the test */ + int mallc_min_size; /* The minimum memory length requested in the test + */ + int mallc_max_size; /* The maximum memory length requested in the test + */ int test_num; int application_delay_time = 1; /* Delay in test */ - char check_character; /* Memory write content check character */ + + /* Memory write content check character */ + + char check_character; char *address_ptr = NULL; struct timespec t_start; struct timespec t_end; @@ -92,19 +93,22 @@ int main(int argc, FAR char *argv[]) clock_gettime(CLOCK_MONOTONIC, &t_start); address_ptr = (char *)malloc(malloc_size * sizeof(char)); clock_gettime(CLOCK_MONOTONIC, &t_end); - timedif = 1000000 * (t_end.tv_sec - t_start.tv_sec) - + (t_end.tv_nsec - t_start.tv_nsec) / 1000; + timedif = 1000000 * (t_end.tv_sec - t_start.tv_sec) + + (t_end.tv_nsec - t_start.tv_nsec) / 1000; if (address_ptr != NULL) { syslog(LOG_INFO, - "[Test malloc] (address:%p size:%d) takes:%ld microseconds\n", - address_ptr, malloc_size, timedif); + "[Test malloc] (address:%p size:%d) takes:%ld " + "microseconds\n", + address_ptr, malloc_size, timedif); memset(address_ptr, check_character, malloc_size); } + else { syslog(LOG_ERR, - "Malloc failed ! The remaining memory may be insufficient\n"); + "Malloc failed ! The remaining memory may be " + "insufficient\n"); syslog(LOG_ERR, "Continue to test !!\n"); continue; } @@ -126,11 +130,12 @@ int main(int argc, FAR char *argv[]) /* Free test memory */ clock_gettime(CLOCK_MONOTONIC, &t_end); - timedif = 1000000 * (t_end.tv_sec - t_start.tv_sec) - + (t_end.tv_nsec - t_start.tv_nsec) / 1000; - syslog(LOG_INFO, - "[Test free] (address:%p size:%d) takes:%ld microseconds\n\n", - address_ptr, malloc_size, timedif); + timedif = 1000000 * (t_end.tv_sec - t_start.tv_sec) + + (t_end.tv_nsec - t_start.tv_nsec) / 1000; + syslog( + LOG_INFO, + "[Test free] (address:%p size:%d) takes:%ld microseconds\n\n", + address_ptr, malloc_size, timedif); free(address_ptr); usleep(application_delay_time); } diff --git a/testing/testsuites/kernel/mutex/cases/posix_mutex_test_001.c b/testing/testsuites/kernel/mutex/cases/posix_mutex_test_001.c new file mode 100644 index 00000000000..de3c521d7d8 --- /dev/null +++ b/testing/testsuites/kernel/mutex/cases/posix_mutex_test_001.c @@ -0,0 +1,56 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/mutex/cases/posix_mutex_test_001.c + * + * 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 +#include +#include +#include +#include "MutexTest.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_mutex_test01 + ****************************************************************************/ + +void test_nuttx_mutex_test01(FAR void **state) +{ + pthread_mutexattr_t mta; + int rc; + + /* Initialize a mutex attributes object */ + + rc = pthread_mutexattr_init(&mta); + syslog(LOG_INFO, "rc : %d\n", rc); + assert_int_equal(rc, 0); + + rc = pthread_mutexattr_destroy(&mta); + syslog(LOG_INFO, "rc : %d\n", rc); + assert_int_equal(rc, 0); +} diff --git a/testing/testsuites/kernel/mutex/cases/posix_mutex_test_019.c b/testing/testsuites/kernel/mutex/cases/posix_mutex_test_019.c new file mode 100644 index 00000000000..ed4326e53ec --- /dev/null +++ b/testing/testsuites/kernel/mutex/cases/posix_mutex_test_019.c @@ -0,0 +1,276 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/mutex/cases/posix_mutex_test_019.c + * + * 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 +#include +#include +#include +#include "MutexTest.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +static pthread_mutex_t *g_mtx; +static sem_t g_sema; +static sem_t g_semb; +static pthread_mutex_t g_mtxnull; +static pthread_mutex_t g_mtxdef; +static int g_testmutexretval; +static UINT32 g_testmutexcount; + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +static void *taskf01(void *arg) +{ + int ret; + + /* testbusytaskdelay(20); */ + + usleep(50000); + g_testmutexcount++; + + if ((ret = pthread_mutex_lock(g_mtx))) + { + syslog(LOG_INFO, "ret: %d \n", ret); + goto EXIT; + } + + if ((ret = sem_post(&g_sema))) + { + syslog(LOG_INFO, "ret: %d \n", ret); + goto EXIT; + } + + if ((ret = sem_wait(&g_semb))) + { + syslog(LOG_INFO, "ret: %d \n", ret); + goto EXIT; + } + + if (g_testmutexretval != 0) + { + /* parent thread failed to unlock the mutex) */ + + if ((ret = pthread_mutex_unlock(g_mtx))) + { + syslog(LOG_INFO, "ret: %d \n", ret); + goto EXIT; + } + } + + g_testmutexcount++; + return NULL; + +EXIT: + assert_int_equal(1, 0); + return NULL; +} + +/**************************************************************************** + * Name: test_nuttx_mutex_test19 + ****************************************************************************/ + +void test_nuttx_mutex_test19(FAR void **state) +{ + pthread_mutexattr_t mattr; + pthread_t thr; + + pthread_mutex_t *tabmutex[2]; + int tabres[2][3] = + { + { + 0, 0, 0 + }, + { + 0, 0, 0 + } + }; + + int ret; + void *thret = NULL; + int i; + g_testmutexretval = 0; + g_testmutexcount = 0; + + /* We first initialize the two mutexes. */ + + if ((ret = pthread_mutex_init(&g_mtxnull, NULL))) + { + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_equal(1, 0); + } + + if ((ret = pthread_mutexattr_init(&mattr))) + { + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_equal(1, 0); + } + + if ((ret = pthread_mutex_init(&g_mtxdef, &mattr))) + { + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_equal(1, 0); + } + + if ((ret = pthread_mutexattr_destroy(&mattr))) + { + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_equal(1, 0); + } + + tabmutex[0] = &g_mtxnull; + tabmutex[1] = &g_mtxdef; + + if ((ret = sem_init(&g_sema, 0, 0))) + { + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_equal(1, 0); + } + + if ((ret = sem_init(&g_semb, 0, 0))) + { + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_equal(1, 0); + } + + /* OK let's go for the first part of the test : abnormals unlocking */ + + /* We first check if unlocking an unlocked mutex returns an uwErr. */ + + ret = pthread_mutex_unlock(tabmutex[0]); + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_not_equal(ret, ENOERR); + + ret = pthread_mutex_unlock(tabmutex[1]); + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_not_equal(ret, ENOERR); + + /* Now we focus on unlocking a mutex lock by another thread */ + + for (i = 0; i < 2; i++) + { + /* 2, Set the timeout of runtime */ + + g_mtx = tabmutex[i]; + tabres[i][0] = 0; + tabres[i][1] = 0; + tabres[i][2] = 0; /* 2, buffer index. */ + + if ((ret = pthread_create(&thr, NULL, taskf01, NULL))) + { + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_equal(1, 0); + } + + if (i == 0) + { + syslog(LOG_INFO, "g_testmutexcount: %d \n", g_testmutexcount); + assert_int_equal(g_testmutexcount, 0); + } + + if (i == 1) + { + syslog(LOG_INFO, "g_testmutexcount: %d \n", g_testmutexcount); + assert_int_equal(g_testmutexcount, + 2); /* 2, Here, assert the g_testmutexcount. */ + } + + if ((ret = sem_wait(&g_sema))) + { + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_equal(1, 0); + } + + g_testmutexretval = pthread_mutex_unlock(g_mtx); + syslog(LOG_INFO, "g_testmutexretval: %d \n", g_testmutexretval); + assert_int_equal(g_testmutexretval, EPERM); + + if (i == 0) + { + syslog(LOG_INFO, "g_testmutexcount: %d \n", g_testmutexcount); + assert_int_equal(g_testmutexcount, 1); + } + + if (i == 1) + { + syslog(LOG_INFO, "g_testmutexcount: %d \n", g_testmutexcount); + assert_int_equal(g_testmutexcount, + 3); /* 3, Here, assert the g_testmutexcount. */ + } + + if ((ret = sem_post(&g_semb))) + { + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_equal(1, 0); + } + + if ((ret = pthread_join(thr, &thret))) + { + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_equal(1, 0); + } + + if (i == 0) + { + syslog(LOG_INFO, "g_testmutexcount: %d \n", g_testmutexcount); + assert_int_equal(g_testmutexcount, + 2); /* 2, Here, assert the g_testmutexcount. */ + } + + if (i == 1) + { + syslog(LOG_INFO, "g_testmutexcount: %d \n", g_testmutexcount); + assert_int_equal(g_testmutexcount, + 4); /* 4, Here, assert the g_testmutexcount. */ + } + + tabres[i][0] = g_testmutexretval; + } + + if (tabres[0][0] != tabres[1][0]) + { + assert_int_equal(1, 0); + } + + /* We start with testing the NULL mutex features */ + + (void)pthread_mutexattr_destroy(&mattr); + ret = pthread_mutex_destroy(&g_mtxnull); + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_equal(ret, 0); + + ret = pthread_mutex_destroy(&g_mtxdef); + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_equal(ret, 0); + + ret = sem_destroy(&g_sema); + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_equal(ret, 0); + + ret = sem_destroy(&g_semb); + syslog(LOG_INFO, "ret: %d \n", ret); + assert_int_equal(ret, 0); +} diff --git a/testing/testsuites/kernel/mutex/cases/posix_mutex_test_020.c b/testing/testsuites/kernel/mutex/cases/posix_mutex_test_020.c new file mode 100644 index 00000000000..c4c795ff0ff --- /dev/null +++ b/testing/testsuites/kernel/mutex/cases/posix_mutex_test_020.c @@ -0,0 +1,89 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/mutex/cases/posix_mutex_test_020.c + * + * 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 +#include +#include +#include +#include "MutexTest.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_mutex_test20 + ****************************************************************************/ + +void test_nuttx_mutex_test20(FAR void **state) +{ + pthread_mutex_t mutex; + int rc; + + /* Initialize a mutex object */ + + rc = pthread_mutex_init(&mutex, NULL); + syslog(LOG_INFO, "rc : %d\n", rc); + assert_int_equal(rc, ENOERR); + + /* Acquire the mutex object using pthread_mutex_lock */ + + if ((rc = pthread_mutex_lock(&mutex))) + { + syslog(LOG_INFO, "rc: %d \n", rc); + goto EXIT1; + } + + sleep(1); + + /* Release the mutex object using pthread_mutex_unlock */ + + if ((rc = pthread_mutex_unlock(&mutex))) + { + syslog(LOG_INFO, "rc: %d \n", rc); + goto EXIT2; + } + + /* Destroy the mutex object */ + + if ((rc = pthread_mutex_destroy(&mutex))) + { + syslog(LOG_INFO, "rc: %d \n", rc); + goto EXIT1; + } + + return; + +EXIT2: + pthread_mutex_unlock(&mutex); + assert_int_equal(1, 0); + +EXIT1: + pthread_mutex_destroy(&mutex); + assert_int_equal(1, 0); + return; +} diff --git a/testing/testsuites/kernel/mutex/cmocka_mutex_test.c b/testing/testsuites/kernel/mutex/cmocka_mutex_test.c new file mode 100644 index 00000000000..8ac241bec3f --- /dev/null +++ b/testing/testsuites/kernel/mutex/cmocka_mutex_test.c @@ -0,0 +1,62 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/mutex/cmocka_mutex_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include "MutexTest.h" +#include + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: cmocka_sched_test_main + ****************************************************************************/ + +int main(int argc, char *argv[]) +{ + /* Add Test Cases */ + + const struct CMUnitTest nuttx_mutex_test_suites[] = + { + cmocka_unit_test_setup_teardown(test_nuttx_mutex_test01, NULL, NULL), +#ifdef CONFIG_PTHREAD_MUTEX_ROBUST + cmocka_unit_test_setup_teardown(test_nuttx_mutex_test19, NULL, NULL), +#endif + cmocka_unit_test_setup_teardown(test_nuttx_mutex_test20, NULL, NULL), + }; + + /* Run Test cases */ + + cmocka_run_group_tests(nuttx_mutex_test_suites, NULL, NULL); + + return 0; +} diff --git a/testing/testsuites/kernel/mutex/include/MutexTest.h b/testing/testsuites/kernel/mutex/include/MutexTest.h new file mode 100644 index 00000000000..f99a775de3b --- /dev/null +++ b/testing/testsuites/kernel/mutex/include/MutexTest.h @@ -0,0 +1,66 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/mutex/include/MutexTest.h + * + * 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. + * + ****************************************************************************/ +#ifndef PTHREAD_TEST_H +#define PTHREAD_TEST_H + +/**************************************************************************** + * Included Files + ****************************************************************************/ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "sched.h" +#include "semaphore.h" +#include "unistd.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ +#define MUTEX_TEST_NUM 100 +#define ENOERR 0 +typedef unsigned int UINT32; + +/**************************************************************************** + * Public Function Prototypes + ****************************************************************************/ + +/* test case function */ + +/* cases/posix_mutex_test_001.c + * ************************************************/ + +void test_nuttx_mutex_test01(FAR void **state); + +/* cases/posix_mutex_test_019.c + * ************************************************/ + +void test_nuttx_mutex_test19(FAR void **state); + +/* cases/posix_mutex_test_020.c + * ************************************************/ + +void test_nuttx_mutex_test20(FAR void **state); +#endif diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_003.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_003.c index 30aaea94ac4..1fe33deff09 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_003.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_003.c @@ -3,30 +3,28 @@ * * 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 + * 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. + * 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 #include #include #include - #include "PthreadTest.h" /**************************************************************************** @@ -37,19 +35,19 @@ * Public Functions ****************************************************************************/ -static void *thread_f01(void *arg) +static void *threadf01(void *arg) { pthread_exit(NULL); return NULL; } /**************************************************************************** - * Name: TestNuttxPthreadTest03 + * Name: test_nuttx_pthread_test03 ****************************************************************************/ void test_nuttx_pthread_test03(FAR void **state) { - pthread_t a_thread; + pthread_t athread; pthread_t ptid; pthread_t a = 0; pthread_t b = 0; @@ -65,7 +63,7 @@ void test_nuttx_pthread_test03(FAR void **state) ptid = pthread_self(); syslog(LOG_INFO, "ptid: %d \n", ptid); assert_int_not_equal(ptid, 0); - pthread_create(&a_thread, NULL, thread_f01, NULL); + pthread_create(&athread, NULL, threadf01, NULL); tmp = pthread_equal(a, b); syslog(LOG_INFO, "ret: %d\n", tmp); @@ -83,7 +81,7 @@ void test_nuttx_pthread_test03(FAR void **state) pthread_attr_destroy(&aa); - ret = pthread_join(a_thread, NULL); + ret = pthread_join(athread, NULL); syslog(LOG_INFO, "ret of pthread_join: %d\n", ret); assert_int_equal(ret, 0); } diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_004.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_004.c index 3a6b98186b5..bd968c5769f 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_004.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_004.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -37,24 +36,24 @@ * Public Functions ****************************************************************************/ -static void *thread_f01(void *arg) +static void *threadf01(void *arg) { pthread_exit((void *)2); /* 2, here set value of the exit status. */ return NULL; } /**************************************************************************** - * Name: TestNuttxPthreadTest04 + * Name: test_nuttx_pthread_test04 ****************************************************************************/ void test_nuttx_pthread_test04(FAR void **state) { - pthread_t main_th; - pthread_t new_th; + pthread_t mainth; + pthread_t newth; UINT32 ret; UINTPTR temp; - if (pthread_create(&new_th, NULL, thread_f01, NULL) != 0) + if (pthread_create(&newth, NULL, threadf01, NULL) != 0) { printf("Error creating thread\n"); assert_int_equal(1, 0); @@ -62,17 +61,17 @@ void test_nuttx_pthread_test04(FAR void **state) usleep(1000); - /* LOS_TaskDelay(1); - * Obtain the thread ID of this main function - */ + /* los_taskdelay(1); */ + + /* Obtain the thread ID of this main function */ - main_th = test_pthread_self(); + mainth = testpthreadself(); /* Compare the thread ID of the new thread to the main thread. * They should be different. If not, the test fails. */ - if (pthread_equal(new_th, main_th) != 0) + if (pthread_equal(newth, mainth) != 0) { printf("Test FAILED: A new thread wasn't created\n"); assert_int_equal(1, 0); @@ -80,9 +79,9 @@ void test_nuttx_pthread_test04(FAR void **state) usleep(1000); - /* TestExtraTaskDelay(1); */ + /* testextrataskdelay(1); */ - ret = pthread_join(new_th, (void *)&temp); + ret = pthread_join(newth, (void *)&temp); syslog(LOG_INFO, "ret: %d \n", ret); syslog(LOG_INFO, "temp: %ld \n", temp); assert_int_equal(ret, 0); diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_005.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_005.c index 7c3e9210440..32ec5f8c5ce 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_005.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_005.c @@ -3,30 +3,29 @@ * * 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 + * 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. + * 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 #include #include #include -#include +#include #include "PthreadTest.h" /**************************************************************************** @@ -37,7 +36,7 @@ * Public Functions ****************************************************************************/ -static void *thread_f01(void *arg) +static void *threadf01(void *arg) { sleep(500); @@ -50,20 +49,19 @@ static void *thread_f01(void *arg) } /**************************************************************************** - * Name: TestNuttxPthreadTest05 + * Name: test_nuttx_pthread_test05 ****************************************************************************/ void test_nuttx_pthread_test05(FAR void **state) { - pthread_t new_th; + pthread_t newth; UINT32 ret; UINTPTR temp; - clock_t start; - clock_t finish; + clock_t start, finish; double duration; start = clock(); - if (pthread_create(&new_th, NULL, thread_f01, NULL) < 0) + if (pthread_create(&newth, NULL, threadf01, NULL) < 0) { syslog(LOG_INFO, "Error creating thread\n"); assert_int_equal(1, 0); @@ -71,18 +69,19 @@ void test_nuttx_pthread_test05(FAR void **state) usleep(1000); - /* LOS_TaskDelay(1); - * Try to cancel the newly created thread. If an error is returned, + /* los_taskdelay(1); */ + + /* Try to cancel the newly created thread. If an error is returned, * then the thread wasn't created successfully. */ - if (pthread_cancel(new_th) != 0) + if (pthread_cancel(newth) != 0) { syslog(LOG_INFO, "Test FAILED: A new thread wasn't created\n"); assert_int_equal(1, 0); } - ret = pthread_join(new_th, (void *)&temp); + ret = pthread_join(newth, (void *)&temp); finish = clock(); duration = (double)(finish - start) / CLOCKS_PER_SEC * 1000; syslog(LOG_INFO, "duration: %f \n", duration); diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_006.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_006.c index bf23bcb32c3..64c3266992b 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_006.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_006.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -37,7 +36,7 @@ * Public Functions ****************************************************************************/ -static void *thread_f01(void *arg) +static void *threadf01(void *arg) { pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); @@ -48,7 +47,7 @@ static void *thread_f01(void *arg) } /**************************************************************************** - * Name: TestNuttxPthreadTest06 + * Name: test_nuttx_pthread_test06 ****************************************************************************/ void test_nuttx_pthread_test06(FAR void **state) @@ -61,7 +60,7 @@ void test_nuttx_pthread_test06(FAR void **state) /* Create a new thread. */ - if (pthread_create(&a, NULL, thread_f01, NULL) != 0) + if (pthread_create(&a, NULL, threadf01, NULL) != 0) { printf("Error creating thread\n"); assert_int_equal(1, 0); @@ -69,7 +68,7 @@ void test_nuttx_pthread_test06(FAR void **state) usleep(1000); - /* LOS_TaskDelay(1); */ + /* los_taskdelay(1); */ pthread_cancel(a); diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_009.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_009.c index 4d14b0e2a98..731c097f9dd 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_009.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_009.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -37,9 +36,9 @@ * Public Functions ****************************************************************************/ -static void *pthread_f01(void *arg) +static void *pthreadf01(void *arg) { - g_test_pthread_count++; + g_testpthreadcount++; pthread_exit(NULL); @@ -47,31 +46,31 @@ static void *pthread_f01(void *arg) } /**************************************************************************** - * Name: TestNuttxPthreadTest09 + * Name: test_nuttx_pthread_test09 ****************************************************************************/ void test_nuttx_pthread_test09(FAR void **state) { - pthread_t new_th; + pthread_t newth; UINT32 ret; UINTPTR temp = 1; /* _pthread_data *joinee = NULL; */ - g_test_pthread_count = 0; - g_test_pthread_task_max_num = 128; + g_testpthreadcount = 0; + g_testpthreadtaskmaxnum = 128; - ret = pthread_create(&new_th, NULL, pthread_f01, NULL); + ret = pthread_create(&newth, NULL, pthreadf01, NULL); syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, 0); usleep(1000); - /* LOS_TaskDelay(1); */ + /* los_taskdelay(1); */ - syslog(LOG_INFO, "g_testPthreadCount: %d \n", g_test_pthread_count); - assert_int_equal(g_test_pthread_count, 1); + syslog(LOG_INFO, "g_testpthreadcount: %d \n", g_testpthreadcount); + assert_int_equal(g_testpthreadcount, 1); - ret = pthread_join(g_test_pthread_task_max_num, (void *)&temp); + ret = pthread_join(g_testpthreadtaskmaxnum, (void *)&temp); syslog(LOG_INFO, "ret: %d \n", ret); syslog(LOG_INFO, "temp: %ld \n", temp); assert_int_equal(ret, ESRCH); @@ -83,20 +82,20 @@ void test_nuttx_pthread_test09(FAR void **state) syslog(LOG_INFO, "temp: %ld \n", temp); assert_int_equal(temp, 1); - ret = pthread_detach(g_test_pthread_task_max_num); + ret = pthread_detach(g_testpthreadtaskmaxnum); syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, ESRCH); - ret = pthread_join(new_th, NULL); + ret = pthread_join(newth, NULL); syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, 0); sleep(1); - ret = pthread_detach(new_th); + ret = pthread_detach(newth); syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, ESRCH); - ret = pthread_join(new_th, NULL); + ret = pthread_join(newth, NULL); syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, ESRCH); } diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_018.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_018.c index 1753538e73b..b4ca6b9eeb2 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_018.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_018.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -33,40 +32,40 @@ * Pre-processor Definitions ****************************************************************************/ -static sem_t re_pthread_f01; +static sem_t re_pthreadf01; /**************************************************************************** * Public Functions ****************************************************************************/ -static void *pthread_f01(void *argument) +static void *pthreadf01(void *argument) { - g_test_pthread_count++; - sem_wait(&re_pthread_f01); + g_testpthreadcount++; + sem_wait(&re_pthreadf01); return argument; } /**************************************************************************** - * Name: TestNuttxPthreadTest18 + * Name: test_nuttx_pthread_test18 ****************************************************************************/ void test_nuttx_pthread_test18(FAR void **state) { pthread_attr_t attr; - pthread_t new_th; + pthread_t newth; UINT32 ret; UINTPTR temp; int policy; struct sched_param param; struct sched_param param2 = - { - 2 - }; /* 2, init */ + { + 2 + }; /* 2, init */ - g_test_pthread_count = 0; + g_testpthreadcount = 0; - ret = sem_init(&re_pthread_f01, 0, 0); + ret = sem_init(&re_pthreadf01, 0, 0); syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, 0); @@ -74,65 +73,73 @@ void test_nuttx_pthread_test18(FAR void **state) syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, 0); - ret = pthread_create(&new_th, NULL, pthread_f01, (void *)9); /* 9, test param of the function. */ + ret = pthread_create(&newth, NULL, pthreadf01, + (void *)9); /* 9, test param of the function. */ syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, 0); usleep(1000); - /* LOS_TaskDelay(1); */ + /* los_taskdelay(1); */ - syslog(LOG_INFO, "g_testPthreadCount: %d \n", g_test_pthread_count); - assert_int_equal(g_test_pthread_count, 1); + syslog(LOG_INFO, "g_testpthreadcount: %d \n", g_testpthreadcount); + assert_int_equal(g_testpthreadcount, 1); - ret = pthread_setschedparam(new_th, -1, ¶m); + ret = pthread_setschedparam(newth, -1, ¶m); syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, EINVAL); - ret = pthread_setschedparam(new_th, 100, ¶m); /* 4, test for invalid param. */ + ret = pthread_setschedparam(newth, 100, + ¶m); /* 4, test for invalid param. */ syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, EINVAL); #if CONFIG_RR_INTERVAL > 0 param.sched_priority = 31; /* 31, init */ - ret = pthread_setschedparam(new_th, SCHED_RR, ¶m); + ret = pthread_setschedparam(newth, SCHED_RR, ¶m); syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, 0); #endif - ret = pthread_getschedparam(new_th, NULL, ¶m2); + ret = pthread_getschedparam(newth, NULL, ¶m2); syslog(LOG_INFO, "ret: %d \n", ret); - syslog(LOG_INFO, "param2.sched_priority: %d \n", param2.sched_priority); + syslog(LOG_INFO, "param2.sched_priority: %d \n", + param2.sched_priority); assert_int_equal(ret, EINVAL); - assert_int_equal(param2.sched_priority, 2); /* 2, here assert the result. */ + assert_int_equal(param2.sched_priority, + 2); /* 2, here assert the result. */ - ret = pthread_getschedparam(new_th, &policy, NULL); + ret = pthread_getschedparam(newth, &policy, NULL); syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, EINVAL); - ret = pthread_getschedparam(new_th, &policy, ¶m2); + ret = pthread_getschedparam(newth, &policy, ¶m2); syslog(LOG_INFO, "ret: %d \n", ret); - syslog(LOG_INFO, "param2.sched_priority: %d \n", param2.sched_priority); + syslog(LOG_INFO, "param2.sched_priority: %d \n", + param2.sched_priority); assert_int_equal(ret, 0); #if CONFIG_RR_INTERVAL > 0 - assert_int_equal(param2.sched_priority, 31); /* 31, here assert the result. */ + assert_int_equal(param2.sched_priority, + 31); /* 31, here assert the result. */ #endif - ret = sem_post(&re_pthread_f01); + ret = sem_post(&re_pthreadf01); syslog(LOG_INFO, "ret of sem_post: %d \n", ret); assert_int_equal(ret, 0); - ret = pthread_join(new_th, (void *)&temp); + ret = pthread_join(newth, (void *)&temp); syslog(LOG_INFO, "ret: %d \n", ret); syslog(LOG_INFO, "temp: %ld \n", temp); assert_int_equal(ret, 0); assert_int_equal(temp, 9); /* 9, here assert the result. */ #if CONFIG_RR_INTERVAL > 0 - ret = pthread_setschedparam(new_th + 9, SCHED_RR, ¶m); /* 9, test for invalid param. */ + ret = pthread_setschedparam(newth + 9, SCHED_RR, + ¶m); /* 9, test for invalid param. */ syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, ESRCH); #endif - ret = pthread_getschedparam(new_th + 8, &policy, ¶m2); /* 8, test for invalid param. */ + ret = pthread_getschedparam(newth + 8, &policy, + ¶m2); /* 8, test for invalid param. */ syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, ESRCH); @@ -140,7 +147,7 @@ void test_nuttx_pthread_test18(FAR void **state) syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, 0); - ret = sem_destroy(&re_pthread_f01); + ret = sem_destroy(&re_pthreadf01); syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, 0); } diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_019.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_019.c index 875c43bc8aa..58134db0529 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_019.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_019.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -37,39 +36,39 @@ * Public Functions ****************************************************************************/ -static void pthread_once_f01(void) +static void pthreadoncef01(void) { - g_test_pthread_count++; + g_testpthreadcount++; } /**************************************************************************** - * Name: TestNuttxPthreadTest19 + * Name: test_nuttx_pthread_test19 ****************************************************************************/ void test_nuttx_pthread_test19(FAR void **state) { UINT32 ret; - pthread_once_t once_block = PTHREAD_ONCE_INIT; + pthread_once_t onceblock = PTHREAD_ONCE_INIT; - g_test_pthread_count = 0; + g_testpthreadcount = 0; - ret = pthread_once(NULL, pthread_once_f01); + ret = pthread_once(NULL, pthreadoncef01); syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, EINVAL); - ret = pthread_once(&once_block, NULL); + ret = pthread_once(&onceblock, NULL); syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, EINVAL); - ret = pthread_once(&once_block, pthread_once_f01); + ret = pthread_once(&onceblock, pthreadoncef01); syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, 0); - syslog(LOG_INFO, "g_testPthreadCount: %d \n", g_test_pthread_count); - assert_int_equal(g_test_pthread_count, 1); + syslog(LOG_INFO, "g_testpthreadcount: %d \n", g_testpthreadcount); + assert_int_equal(g_testpthreadcount, 1); - ret = pthread_once(&once_block, pthread_once_f01); + ret = pthread_once(&onceblock, pthreadoncef01); syslog(LOG_INFO, "ret: %d \n", ret); - syslog(LOG_INFO, "g_testPthreadCount: %d \n", g_test_pthread_count); + syslog(LOG_INFO, "g_testpthreadcount: %d \n", g_testpthreadcount); assert_int_equal(ret, 0); - assert_int_equal(g_test_pthread_count, 1); + assert_int_equal(g_testpthreadcount, 1); } diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_021.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_021.c index cc81e71bbb7..93a833a028a 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_021.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_021.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -38,7 +37,7 @@ ****************************************************************************/ /**************************************************************************** - * Name: TestNuttxPthreadTest21 + * Name: test_nuttx_pthread_test21 ****************************************************************************/ void test_nuttx_pthread_test21(FAR void **state) @@ -47,11 +46,13 @@ void test_nuttx_pthread_test21(FAR void **state) int oldstate; int oldstype; - ret = pthread_setcancelstate(2, &oldstate); /* 2, test for invalid param. */ + ret = + pthread_setcancelstate(2, &oldstate); /* 2, test for invalid param. */ syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, EINVAL); - ret = pthread_setcancelstate(3, &oldstate); /* 3, test for invalid param. */ + ret = + pthread_setcancelstate(3, &oldstate); /* 3, test for invalid param. */ syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, EINVAL); @@ -65,11 +66,13 @@ void test_nuttx_pthread_test21(FAR void **state) syslog(LOG_INFO, "oldstate: %d \n", oldstate); assert_int_equal(oldstate, PTHREAD_CANCEL_ENABLE); - ret = pthread_setcanceltype(2, &oldstype); /* 2, test for invalid param. */ + ret = + pthread_setcanceltype(2, &oldstype); /* 2, test for invalid param. */ syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, EINVAL); - ret = pthread_setcanceltype(3, &oldstype); /* 3, test for invalid param. */ + ret = + pthread_setcanceltype(3, &oldstype); /* 3, test for invalid param. */ syslog(LOG_INFO, "ret: %d \n", ret); assert_int_equal(ret, EINVAL); diff --git a/testing/testsuites/kernel/pthread/cmocka_pthread_test.c b/testing/testsuites/kernel/pthread/cmocka_pthread_test.c index 364b57d0d4a..1045ff6fea6 100644 --- a/testing/testsuites/kernel/pthread/cmocka_pthread_test.c +++ b/testing/testsuites/kernel/pthread/cmocka_pthread_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/pthread/cmocka_pthread_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -43,15 +45,24 @@ int main(int argc, char *argv[]) { /* Add Test Cases */ - const struct CMUnitTest nuttx_pthread_test_suites[] = { - cmocka_unit_test_setup_teardown(test_nuttx_pthread_test03, NULL, NULL), - cmocka_unit_test_setup_teardown(test_nuttx_pthread_test04, NULL, NULL), - cmocka_unit_test_setup_teardown(test_nuttx_pthread_test05, NULL, NULL), - cmocka_unit_test_setup_teardown(test_nuttx_pthread_test06, NULL, NULL), - cmocka_unit_test_setup_teardown(test_nuttx_pthread_test09, NULL, NULL), - cmocka_unit_test_setup_teardown(test_nuttx_pthread_test18, NULL, NULL), - cmocka_unit_test_setup_teardown(test_nuttx_pthread_test19, NULL, NULL), - cmocka_unit_test_setup_teardown(test_nuttx_pthread_test21, NULL, NULL), + const struct CMUnitTest nuttx_pthread_test_suites[] = + { + cmocka_unit_test_setup_teardown(test_nuttx_pthread_test03, NULL, + NULL), + cmocka_unit_test_setup_teardown(test_nuttx_pthread_test04, NULL, + NULL), + cmocka_unit_test_setup_teardown(test_nuttx_pthread_test05, NULL, + NULL), + cmocka_unit_test_setup_teardown(test_nuttx_pthread_test06, NULL, + NULL), + cmocka_unit_test_setup_teardown(test_nuttx_pthread_test09, NULL, + NULL), + cmocka_unit_test_setup_teardown(test_nuttx_pthread_test18, NULL, + NULL), + cmocka_unit_test_setup_teardown(test_nuttx_pthread_test19, NULL, + NULL), + cmocka_unit_test_setup_teardown(test_nuttx_pthread_test21, NULL, + NULL), }; /* Run Test cases */ diff --git a/testing/testsuites/kernel/pthread/common/test_pthread_common.c b/testing/testsuites/kernel/pthread/common/test_pthread_common.c index f0c2ce6e4de..0c395f5b474 100644 --- a/testing/testsuites/kernel/pthread/common/test_pthread_common.c +++ b/testing/testsuites/kernel/pthread/common/test_pthread_common.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -38,9 +37,8 @@ #include #include "PthreadTest.h" -UINT32 g_test_pthread_count; -UINT32 g_test_pthread_task_max_num = 128; - +UINT32 g_testpthreadcount; +UINT32 g_testpthreadtaskmaxnum = 128; /**************************************************************************** * Private Functions ****************************************************************************/ @@ -50,10 +48,10 @@ UINT32 g_test_pthread_task_max_num = 128; ****************************************************************************/ /**************************************************************************** - * Name: TestPthreadSelf + * Name: testpthreadself ****************************************************************************/ -pthread_t test_pthread_self(void) +pthread_t testpthreadself(void) { pthread_t tid = pthread_self(); return tid; diff --git a/testing/testsuites/kernel/pthread/include/PthreadTest.h b/testing/testsuites/kernel/pthread/include/PthreadTest.h index 9dc03c7ae3f..8a0c8655f8e 100644 --- a/testing/testsuites/kernel/pthread/include/PthreadTest.h +++ b/testing/testsuites/kernel/pthread/include/PthreadTest.h @@ -3,28 +3,26 @@ * * 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 + * 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. + * 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. * ****************************************************************************/ +#ifndef PTHREAD_TEST_H +#define PTHREAD_TEST_H /**************************************************************************** * Included Files ****************************************************************************/ - -#ifndef PTHREAD_TEST_H -#define PTHREAD_TEST_H - #include #include #include @@ -59,7 +57,10 @@ typedef unsigned long UINTPTR; #define THREAD_NUM 3 #define PTHREAD_TIMEOUT (THREAD_NUM * 2) #define PTHREAD_INTHREAD_TEST 0 /* Control going to or is already for Thread */ -#define PTHREAD_INMAIN_TEST 1 /* Control going to or is already for Main */ + +/* Control going to or is already for Main */ + +#define PTHREAD_INMAIN_TEST 1 #define INVALID_PSHARED_VALUE (-100) #define NUM_OF_CONDATTR 10 #define RUNTIME 5 @@ -75,52 +76,63 @@ typedef unsigned long UINTPTR; /* We are testing conformance to IEEE Std 1003.1, 2003 Edition */ +#ifndef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200112L +#endif + #define PRIORITY_OTHER (-1) #define PRIORITY_FIFO 20 #define PRIORITY_RR 20 #define LOSCFG_BASE_CORE_TSK_CONFIG 1024 -extern UINT32 g_test_pthread_count; -extern UINT32 g_test_pthread_task_max_num; +extern UINT32 g_testpthreadcount; +extern UINT32 g_testpthreadtaskmaxnum; /**************************************************************************** * Public Function Prototypes ****************************************************************************/ -pthread_t test_pthread_self(void); +pthread_t testpthreadself(void); /* test case function */ -/* cases/posix_pthread_test_003.c *******************************************/ +/* cases/posix_pthread_test_003.c + * ************************************************/ void test_nuttx_pthread_test03(FAR void **state); -/* cases/posix_pthread_test_004.c *******************************************/ +/* cases/posix_pthread_test_004.c + * ************************************************/ void test_nuttx_pthread_test04(FAR void **state); -/* cases/posix_pthread_test_005.c *******************************************/ +/* cases/posix_pthread_test_005.c + * ************************************************/ void test_nuttx_pthread_test05(FAR void **state); -/* cases/posix_pthread_test_006.c *******************************************/ +/* cases/posix_pthread_test_006.c + * ************************************************/ void test_nuttx_pthread_test06(FAR void **state); -/* cases/posix_pthread_test_009.c *******************************************/ +/* cases/posix_pthread_test_009.c + * ************************************************/ void test_nuttx_pthread_test09(FAR void **state); -/* cases/posix_pthread_test_018.c *******************************************/ +/* cases/posix_pthread_test_018.c + * ************************************************/ void test_nuttx_pthread_test18(FAR void **state); -/* cases/posix_pthread_test_019.c *******************************************/ +/* cases/posix_pthread_test_019.c + * ************************************************/ void test_nuttx_pthread_test19(FAR void **state); -/* cases/posix_pthread_test_021.c *******************************************/ +/* cases/posix_pthread_test_021.c + * ************************************************/ void test_nuttx_pthread_test21(FAR void **state); #endif diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_001.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_001.c index 84b17c3a23f..f7e3dd367a7 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_001.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_001.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -44,10 +43,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: sched_pthread01_threadroutine + * Name: schedpthread01threadroutine ****************************************************************************/ -static void *sched_pthread01_threadroutine(void *arg) +static void *schedpthread01threadroutine(void *arg) { int flag; flag = 1; @@ -70,7 +69,7 @@ void test_nuttx_sched_pthread01(FAR void **state) /* create thread */ - pthread_create(&p_t, NULL, sched_pthread01_threadroutine, &run_flag); + pthread_create(&p_t, NULL, schedpthread01threadroutine, &run_flag); /* pthread_join Wait for the thread to end */ diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_002.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_002.c index 5da762dad83..bc70ca80945 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_002.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_002.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -44,10 +43,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: sched_pthread02_threadroutine + * Name: schedpthread02threadroutine ****************************************************************************/ -static void *sched_pthread02_threadroutine(void *arg) +static void *schedpthread02threadroutine(void *arg) { return NULL; } @@ -87,7 +86,7 @@ void test_nuttx_sched_pthread02(FAR void **state) /* create thread */ - pthread_create(&p_t, &attr, sched_pthread02_threadroutine, NULL); + pthread_create(&p_t, &attr, schedpthread02threadroutine, NULL); /* Wait for the child thread finish */ diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_003.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_003.c index 609c6bdafcd..2d4998043d3 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_003.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_003.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -44,10 +43,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: sched_pthread03_threadroutine + * Name: schedpthread03threadroutine ****************************************************************************/ -static void *sched_pthread03_threadroutine(void *arg) +static void *schedpthread03threadroutine(void *arg) { int i = 0; for (i = 0; i <= 5; i++) @@ -80,8 +79,8 @@ void test_nuttx_sched_pthread03(FAR void **state) /* create test thread */ - ret = pthread_create(&pid_1, NULL, - (void *)sched_pthread03_threadroutine, &run_flag); + ret = pthread_create(&pid_1, NULL, (void *)schedpthread03threadroutine, + &run_flag); assert_int_equal(ret, 0); pthread_join(pid_1, NULL); diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_004.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_004.c index 5d276beaf99..5c37ac9b3a6 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_004.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_004.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -44,10 +43,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: sched_pthread04_threadroutine + * Name: schedpthread04threadroutine ****************************************************************************/ -static void *sched_pthread04_threadroutine(void *arg) +static void *schedpthread04threadroutine(void *arg) { /* set enable */ @@ -82,13 +81,12 @@ void test_nuttx_sched_pthread04(FAR void **state) /* int flag */ - int sched_pthread_test04_run_flag = 0; + int schedpthreadtest04_run_flag = 0; /* create thread_1 */ - res = pthread_create(&p_t_1, NULL, - sched_pthread04_threadroutine, - &sched_pthread_test04_run_flag); + res = pthread_create(&p_t_1, NULL, schedpthread04threadroutine, + &schedpthreadtest04_run_flag); assert_int_equal(res, OK); res = pthread_cancel(p_t_1); @@ -97,5 +95,5 @@ void test_nuttx_sched_pthread04(FAR void **state) /* join thread_1 */ pthread_join(p_t_1, NULL); - assert_int_equal(sched_pthread_test04_run_flag, 0); + assert_int_equal(schedpthreadtest04_run_flag, 0); } diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_005.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_005.c index cffbfaacb8b..5dc47df2f7d 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_005.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_005.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -44,10 +43,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: sched_pthread05_threadroutine + * Name: schedpthread05threadroutine ****************************************************************************/ -static void *sched_pthread05_threadroutine(void *arg) +static void *schedpthread05threadroutine(void *arg) { int i; for (i = 0; i <= 5; i++) @@ -76,7 +75,7 @@ void test_nuttx_sched_pthread05(FAR void **state) /* create thread */ - res = pthread_create(&p_t, NULL, sched_pthread05_threadroutine, NULL); + res = pthread_create(&p_t, NULL, schedpthread05threadroutine, NULL); assert_int_equal(res, 0); diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_006.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_006.c index 7a52f2ecf95..9a962f5fe0b 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_006.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_006.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -44,10 +43,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: sched_pthread06_threadroutine + * Name: schedpthread06threadroutine ****************************************************************************/ -static void *sched_pthread06_threadroutine(void *arg) +static void *schedpthread06threadroutine(void *arg) { int pid; @@ -59,6 +58,7 @@ static void *sched_pthread06_threadroutine(void *arg) { *((int *)arg) = 0; } + else { *((int *)arg) = 1; @@ -83,7 +83,8 @@ void test_nuttx_sched_pthread06(FAR void **state) /* create thread */ - res = pthread_create(&p_t, NULL, sched_pthread06_threadroutine, &run_flag); + res = + pthread_create(&p_t, NULL, schedpthread06threadroutine, &run_flag); assert_int_equal(res, OK); pthread_join(p_t, NULL); diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_007.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_007.c index 82bc5948989..f26d3e1795a 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_007.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_007.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -44,18 +43,18 @@ ****************************************************************************/ /**************************************************************************** - * Name: sched_pthread07_threadroutine + * Name: schedpthread07threadroutine ****************************************************************************/ -static void *sched_pthread07_threadroutine(void *arg) +static void *schedpthread07threadroutine(void *arg) { int i; - pthread_mutex_t sched_pthread_test07_mutex = PTHREAD_MUTEX_INITIALIZER; + pthread_mutex_t schedpthreadtest07_mutex = PTHREAD_MUTEX_INITIALIZER; for (i = 0; i < 100; i++) { - pthread_mutex_lock(&sched_pthread_test07_mutex); + pthread_mutex_lock(&schedpthreadtest07_mutex); (*((int *)arg))++; - pthread_mutex_unlock(&sched_pthread_test07_mutex); + pthread_mutex_unlock(&schedpthreadtest07_mutex); } return NULL; @@ -75,14 +74,14 @@ void test_nuttx_sched_pthread07(FAR void **state) pthread_t pt_1, pt_2, pt_3; int run_flag = 0; - res = pthread_create(&pt_1, NULL, - (void *)sched_pthread07_threadroutine, &run_flag); + res = pthread_create(&pt_1, NULL, (void *)schedpthread07threadroutine, + &run_flag); assert_int_equal(res, OK); - res = pthread_create(&pt_2, NULL, - (void *)sched_pthread07_threadroutine, &run_flag); + res = pthread_create(&pt_2, NULL, (void *)schedpthread07threadroutine, + &run_flag); assert_int_equal(res, OK); - res = pthread_create(&pt_3, NULL, - (void *)sched_pthread07_threadroutine, &run_flag); + res = pthread_create(&pt_3, NULL, (void *)schedpthread07threadroutine, + &run_flag); assert_int_equal(res, OK); pthread_join(pt_1, NULL); diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_008.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_008.c index a2d25a52238..e180fc8d0bc 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_008.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_008.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -43,22 +42,22 @@ * Private Data ****************************************************************************/ -static sem_t sched_task08_sem; +static sem_t schedtask08_sem; /**************************************************************************** * Private Functions ****************************************************************************/ /**************************************************************************** - * Name: sched_pthread08_threadroutine + * Name: schedpthread08threadroutine ****************************************************************************/ -static void *sched_pthread08_threadroutine(void *arg) +static void *schedpthread08threadroutine(void *arg) { int i; for (i = 0; i < 5; i++) { - sem_wait(&sched_task08_sem); + sem_wait(&schedtask08_sem); (*((int *)arg))++; } @@ -79,25 +78,25 @@ void test_nuttx_sched_pthread08(FAR void **state) pthread_t pthread_id; int run_flag = 0; - res = sem_init(&sched_task08_sem, 0, 0); + res = sem_init(&schedtask08_sem, 0, 0); assert_int_equal(res, OK); /* create pthread */ res = pthread_create(&pthread_id, NULL, - (void *)sched_pthread08_threadroutine, &run_flag); + (void *)schedpthread08threadroutine, &run_flag); assert_int_equal(res, OK); while (1) { sleep(2); - res = sem_post(&sched_task08_sem); + res = sem_post(&schedtask08_sem); assert_int_equal(res, OK); if (run_flag == 5) break; } - res = sem_destroy(&sched_task08_sem); + res = sem_destroy(&schedtask08_sem); assert_int_equal(res, OK); assert_int_equal(run_flag, 5); } diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_009.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_009.c index 2e884011104..1885d5dc312 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_009.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_009.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -43,26 +42,26 @@ * Private Data ****************************************************************************/ -static sem_t sched_task09_sem; +static sem_t schedtask09_sem; /**************************************************************************** * Private Functions ****************************************************************************/ /**************************************************************************** - * Name: sched_pthread09_threadroutine + * Name: schedpthread09threadroutine ****************************************************************************/ -static void *sched_pthread09_threadroutine(void *arg) +static void *schedpthread09threadroutine(void *arg) { int i; int res; for (i = 0; i < 10; i++) { - res = sem_wait(&sched_task09_sem); + res = sem_wait(&schedtask09_sem); assert_int_equal(res, OK); (*((int *)arg))++; - res = sem_post(&sched_task09_sem); + res = sem_post(&schedtask09_sem); assert_int_equal(res, OK); } @@ -83,14 +82,15 @@ void test_nuttx_sched_pthread09(FAR void **state) pthread_t pthread_id[10]; int run_flag = 0; - res = sem_init(&sched_task09_sem, 0, 1); + res = sem_init(&schedtask09_sem, 0, 1); assert_int_equal(res, OK); int i; for (i = 0; i < 10; i++) { - res = pthread_create(&pthread_id[i], NULL, - (void *)sched_pthread09_threadroutine, &run_flag); + res = + pthread_create(&pthread_id[i], NULL, + (void *)schedpthread09threadroutine, &run_flag); assert_int_equal(res, OK); } @@ -98,7 +98,7 @@ void test_nuttx_sched_pthread09(FAR void **state) for (j = 0; j < 10; j++) pthread_join(pthread_id[j], NULL); - res = sem_destroy(&sched_task09_sem); + res = sem_destroy(&schedtask09_sem); assert_int_equal(res, OK); assert_int_equal(run_flag, 100); diff --git a/testing/testsuites/kernel/sched/cases/api_task_test_001.c b/testing/testsuites/kernel/sched/cases/api_task_test_001.c index a5b2ebf408d..d2ebc9d1250 100644 --- a/testing/testsuites/kernel/sched/cases/api_task_test_001.c +++ b/testing/testsuites/kernel/sched/cases/api_task_test_001.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -47,10 +46,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: sched_task01_routine + * Name: schedtask01routine ****************************************************************************/ -static int sched_task01_routine(int argc, char *argv[]) +static int schedtask01routine(int argc, char *argv[]) { char *str = NULL; str = (char *)malloc(sizeof(char) * 1024); @@ -73,8 +72,8 @@ void test_nuttx_sched_task01(FAR void **state) pid_t pid; int status; - pid = task_create("sched_task01_routine", TASK_PRIORITY, - DEFAULT_STACKSIZE, sched_task01_routine, NULL); + pid = task_create("schedtask01routine", TASK_PRIORITY, + DEFAULT_STACKSIZE, schedtask01routine, NULL); assert_true(pid > 0); waitpid(pid, &status, 0); } diff --git a/testing/testsuites/kernel/sched/cases/api_task_test_002.c b/testing/testsuites/kernel/sched/cases/api_task_test_002.c index 9b7a1dfa6aa..13242e962c5 100644 --- a/testing/testsuites/kernel/sched/cases/api_task_test_002.c +++ b/testing/testsuites/kernel/sched/cases/api_task_test_002.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -47,10 +46,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: sched_task02_routine + * Name: schedtask02routine ****************************************************************************/ -static int sched_task02_routine(int argc, char *argv[]) +static int schedtask02routine(int argc, char *argv[]) { int i; for (i = 0; i < 10; i++) @@ -75,8 +74,8 @@ void test_nuttx_sched_task02(FAR void **state) int status; int res; - pid = task_create("sched_task02_routine", TASK_PRIORITY, - DEFAULT_STACKSIZE, sched_task02_routine, NULL); + pid = task_create("schedtask02routine", TASK_PRIORITY, + DEFAULT_STACKSIZE, schedtask02routine, NULL); assert_true(pid > 0); for (int i = 0; i < 2; i++) { diff --git a/testing/testsuites/kernel/sched/cases/api_task_test_003.c b/testing/testsuites/kernel/sched/cases/api_task_test_003.c index e26c289c604..b2dd239bf92 100644 --- a/testing/testsuites/kernel/sched/cases/api_task_test_003.c +++ b/testing/testsuites/kernel/sched/cases/api_task_test_003.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -47,10 +46,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: sched_task03_routine + * Name: schedtask03routine ****************************************************************************/ -static int sched_task03_routine(int argc, char *argv[]) +static int schedtask03routine(int argc, char *argv[]) { int i; for (i = 0; i < 100; ++i) @@ -75,8 +74,8 @@ void test_nuttx_sched_task03(FAR void **state) { pid_t pid; int res; - pid = task_create("sched_task03_routine", TASK_PRIORITY, - DEFAULT_STACKSIZE, sched_task03_routine, NULL); + pid = task_create("schedtask03routine", TASK_PRIORITY, + DEFAULT_STACKSIZE, schedtask03routine, NULL); assert_true(pid > 0); int i; diff --git a/testing/testsuites/kernel/sched/cases/api_task_test_004.c b/testing/testsuites/kernel/sched/cases/api_task_test_004.c index 05dea32fdb7..915c31477d5 100644 --- a/testing/testsuites/kernel/sched/cases/api_task_test_004.c +++ b/testing/testsuites/kernel/sched/cases/api_task_test_004.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -47,10 +46,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: sched_task04_routine + * Name: schedtask04routine ****************************************************************************/ -static int sched_task04_routine(int argc, char *argv[]) +static int schedtask04routine(int argc, char *argv[]) { for (int i = 0; i < 5; i++) { @@ -75,13 +74,12 @@ void test_nuttx_sched_task04(FAR void **state) pid_t pid; int status; int ret; - struct sched_param task_entry_param; /* create a test task */ - pid = task_create("sched_task04_routine", TASK_PRIORITY, - DEFAULT_STACKSIZE, sched_task04_routine, NULL); + pid = task_create("schedtask04routine", TASK_PRIORITY, + DEFAULT_STACKSIZE, schedtask04routine, NULL); assert_true(pid > 0); ret = sched_getparam(pid, &task_entry_param); assert_int_equal(ret, 0); diff --git a/testing/testsuites/kernel/sched/cases/api_task_test_005.c b/testing/testsuites/kernel/sched/cases/api_task_test_005.c index 7e6d2fa960e..2d46a75ade0 100644 --- a/testing/testsuites/kernel/sched/cases/api_task_test_005.c +++ b/testing/testsuites/kernel/sched/cases/api_task_test_005.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -47,10 +46,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: sched_task05_routine + * Name: schedtask05routine ****************************************************************************/ -static int sched_task05_routine(int argc, char *argv[]) +static int schedtask05routine(int argc, char *argv[]) { int ret; int i; @@ -79,8 +78,8 @@ void test_nuttx_sched_task05(FAR void **state) pid_t pid; int status; - pid = task_create("sched_task05_routine", TASK_PRIORITY, - DEFAULT_STACKSIZE, sched_task05_routine, NULL); + pid = task_create("schedtask05routine", TASK_PRIORITY, + DEFAULT_STACKSIZE, schedtask05routine, NULL); assert_true(pid > 0); waitpid(pid, &status, 0); } diff --git a/testing/testsuites/kernel/sched/cases/api_task_test_006.c b/testing/testsuites/kernel/sched/cases/api_task_test_006.c index 04e5ac995e4..c0031409c56 100644 --- a/testing/testsuites/kernel/sched/cases/api_task_test_006.c +++ b/testing/testsuites/kernel/sched/cases/api_task_test_006.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -48,10 +47,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: sched_task06_routine + * Name: schedtask06routine ****************************************************************************/ -static int sched_task06_routine(int argc, char *argv[]) +static int schedtask06routine(int argc, char *argv[]) { return 0; } @@ -73,8 +72,8 @@ void test_nuttx_sched_task06(FAR void **state) /* struct sched_param task_entry_param */ - pid = task_create("sched_task06_routine", TASK_PRIORITY, - DEFAULT_STACKSIZE, sched_task06_routine, NULL); + pid = task_create("schedtask06routine", TASK_PRIORITY, + DEFAULT_STACKSIZE, schedtask06routine, NULL); assert_true(pid > 0); priority_max = sched_get_priority_max(SCHED_FIFO); priority_min = sched_get_priority_min(SCHED_FIFO); diff --git a/testing/testsuites/kernel/sched/cases/api_task_test_007.c b/testing/testsuites/kernel/sched/cases/api_task_test_007.c index 7c29dcbb208..de279236b12 100644 --- a/testing/testsuites/kernel/sched/cases/api_task_test_007.c +++ b/testing/testsuites/kernel/sched/cases/api_task_test_007.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -48,10 +47,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: sched_task07_routine + * Name: schedtask07routine ****************************************************************************/ -static int sched_task07_routine(int argc, char *argv[]) +static int schedtask07routine(int argc, char *argv[]) { /* lock */ @@ -89,8 +88,8 @@ void test_nuttx_sched_task07(FAR void **state) pid_t pid; int status; - pid = task_create("sched_task07_routine", TASK_PRIORITY, - DEFAULT_STACKSIZE, sched_task07_routine, NULL); + pid = task_create("schedtask07routine", TASK_PRIORITY, + DEFAULT_STACKSIZE, schedtask07routine, NULL); assert_true(pid > 0); waitpid(pid, &status, 0); diff --git a/testing/testsuites/kernel/sched/cmocka_sched_test.c b/testing/testsuites/kernel/sched/cmocka_sched_test.c index c962a5e790a..c71569a47bb 100644 --- a/testing/testsuites/kernel/sched/cmocka_sched_test.c +++ b/testing/testsuites/kernel/sched/cmocka_sched_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cmocka_sched_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -40,7 +42,8 @@ int main(int argc, char *argv[]) { /* Add Test Cases */ - const struct CMUnitTest nuttx_sched_testsuites[] = { + const struct CMUnitTest nuttx_sched_test_suites[] = + { cmocka_unit_test(test_nuttx_sched_pthread01), cmocka_unit_test(test_nuttx_sched_pthread02), cmocka_unit_test(test_nuttx_sched_pthread03), @@ -61,8 +64,8 @@ int main(int argc, char *argv[]) /* Run Test cases */ - cmocka_run_group_tests(nuttx_sched_testsuites, - test_nuttx_schedtest_group_setup, - test_nuttx_schedtest_group_teardown); + cmocka_run_group_tests(nuttx_sched_test_suites, + test_nuttx_sched_test_group_setup, + test_nuttx_sched_test_group_teardown); return 0; } diff --git a/testing/testsuites/kernel/sched/common/test_sched_common.c b/testing/testsuites/kernel/sched/common/test_sched_common.c index f83c4416b74..4495a2a2a76 100644 --- a/testing/testsuites/kernel/sched/common/test_sched_common.c +++ b/testing/testsuites/kernel/sched/common/test_sched_common.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -37,10 +36,10 @@ ****************************************************************************/ /**************************************************************************** - * Name: test_nuttx_schedtest_group_setup + * Name: test_nuttx_sched_test_group_setup ****************************************************************************/ -int test_nuttx_schedtest_group_setup(void **state) +int test_nuttx_sched_test_group_setup(void **state) { /* syslog(LOG_INFO, "This is goup setup !\n"); */ @@ -48,10 +47,10 @@ int test_nuttx_schedtest_group_setup(void **state) } /**************************************************************************** - * Name: test_nuttx_schedtest_group_teardown + * Name: test_nuttx_sched_test_group_teardown ****************************************************************************/ -int test_nuttx_schedtest_group_teardown(void **state) +int test_nuttx_sched_test_group_teardown(void **state) { /* syslog(LOG_INFO, "This is goup tearDown !\n"); */ diff --git a/testing/testsuites/kernel/sched/include/SchedTest.h b/testing/testsuites/kernel/sched/include/SchedTest.h index 19312d68803..a1070fdabbc 100644 --- a/testing/testsuites/kernel/sched/include/SchedTest.h +++ b/testing/testsuites/kernel/sched/include/SchedTest.h @@ -1,19 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/include/SchedTest.h - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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. + * + ****************************************************************************/ #ifndef __SCHEDTEST_H #define __SCHEDTEST_H @@ -21,15 +24,12 @@ /**************************************************************************** * Included Files ****************************************************************************/ - #include #include #include - /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ - #define PTHREAD_STACK_SIZE CONFIG_DEFAULT_TASK_STACKSIZE #define DEFAULT_STACKSIZE CONFIG_DEFAULT_TASK_STACKSIZE #define TASK_PRIORITY SCHED_PRIORITY_DEFAULT @@ -38,74 +38,91 @@ * Public Function Prototypes ****************************************************************************/ -/* common/common_test.c *****************************************************/ +/* common/common_test.c + * *****************************************************/ -int test_nuttx_schedtest_group_setup(void **state); -int test_nuttx_schedtest_group_teardown(void **state); +int test_nuttx_sched_test_group_setup(void **state); +int test_nuttx_sched_test_group_teardown(void **state); /* testcase function */ -/* cases/api_pthread_test_001.c *********************************************/ +/* cases/api_pthread_test_001.c + * *********************************************/ void test_nuttx_sched_pthread01(FAR void **state); -/* cases/api_pthread_test_002.c *********************************************/ +/* cases/api_pthread_test_002.c + * *********************************************/ void test_nuttx_sched_pthread02(FAR void **state); -/* cases/api_pthread_test_003.c *********************************************/ +/* cases/api_pthread_test_003.c + * *********************************************/ void test_nuttx_sched_pthread03(FAR void **state); -/* cases/api_pthread_test_004.c *********************************************/ +/* cases/api_pthread_test_004.c + * *********************************************/ void test_nuttx_sched_pthread04(FAR void **state); -/* cases/api_pthread_test_005.c *********************************************/ +/* cases/api_pthread_test_005.c + * *********************************************/ void test_nuttx_sched_pthread05(FAR void **state); -/* cases/api_pthread_test_006.c *********************************************/ +/* cases/api_pthread_test_006.c + * *********************************************/ void test_nuttx_sched_pthread06(FAR void **state); -/* cases/api_pthread_test_007.c *********************************************/ +/* cases/api_pthread_test_007.c + * *********************************************/ void test_nuttx_sched_pthread07(FAR void **state); -/* cases/api_pthread_test_008.c *********************************************/ +/* cases/api_pthread_test_008.c + * *********************************************/ void test_nuttx_sched_pthread08(FAR void **state); -/* cases/api_pthread_test_009.c *********************************************/ +/* cases/api_pthread_test_009.c + * *********************************************/ void test_nuttx_sched_pthread09(FAR void **state); -/* cases/api_task_test_001.c ************************************************/ +/* cases/api_task_test_001.c + * ************************************************/ void test_nuttx_sched_task01(FAR void **state); -/* cases/api_task_test_002.c ************************************************/ +/* cases/api_task_test_002.c + * ************************************************/ void test_nuttx_sched_task02(FAR void **state); -/* cases/api_task_test_003.c ************************************************/ +/* cases/api_task_test_003.c + * ************************************************/ void test_nuttx_sched_task03(FAR void **state); -/* cases/api_task_test_004.c ************************************************/ +/* cases/api_task_test_004.c + * ************************************************/ void test_nuttx_sched_task04(FAR void **state); -/* cases/api_task_test_005.c ************************************************/ +/* cases/api_task_test_005.c + * ************************************************/ void test_nuttx_sched_task05(FAR void **state); -/* cases/api_task_test_006.c ************************************************/ +/* cases/api_task_test_006.c + * ************************************************/ void test_nuttx_sched_task06(FAR void **state); -/* cases/api_task_test_007.c ************************************************/ +/* cases/api_task_test_007.c + * ************************************************/ void test_nuttx_sched_task07(FAR void **state); diff --git a/testing/testsuites/kernel/socket/cases/net_socket_test_005.c b/testing/testsuites/kernel/socket/cases/net_socket_test_005.c new file mode 100644 index 00000000000..7b9853d05c2 --- /dev/null +++ b/testing/testsuites/kernel/socket/cases/net_socket_test_005.c @@ -0,0 +1,81 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/socket/cases/net_socket_test_005.c + * + * 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 +#include +#include +#include +#include +#include +#include + +#include "SocketTest.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_net_socket_test05 + ****************************************************************************/ + +void test_nuttx_net_socket_test05(FAR void **state) +{ +#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ + uint32_t hl = ntohl(0x12345678); + syslog(LOG_INFO, "hl %#" PRIx32, hl); + assert_int_equal(hl, 0x78563412); + + uint32_t nl = htonl(0x12345678); + syslog(LOG_INFO, "nl %#" PRIx32, nl); + assert_int_equal(nl, 0x78563412); + + uint16_t hs = ntohs(0x1234); + syslog(LOG_INFO, "hs %#" PRIx16, hs); + assert_int_equal(hs, 0x3412); + + uint16_t ns = htons(0x1234); + syslog(LOG_INFO, "ns %#" PRIx16, ns); + assert_int_equal(ns, 0x3412); +#else + uint32_t hl = ntohl(0x12345678); + syslog(LOG_INFO, "hl %#" PRIx32, hl); + assert_int_equal(hl, 0x12345678); + + uint32_t nl = htonl(0x12345678); + syslog(LOG_INFO, "nl %#" PRIx32, nl); + assert_int_equal(nl, 0x12345678); + + uint16_t hs = ntohs(0x1234); + syslog(LOG_INFO, "hs %#" PRIx16, hs); + assert_int_equal(hs, 0x1234); + + uint16_t ns = htons(0x1234); + syslog(LOG_INFO, "ns %#" PRIx16, ns); + assert_int_equal(ns, 0x1234); +#endif +} diff --git a/testing/testsuites/kernel/socket/cases/net_socket_test_006.c b/testing/testsuites/kernel/socket/cases/net_socket_test_006.c new file mode 100644 index 00000000000..c959e75cd2e --- /dev/null +++ b/testing/testsuites/kernel/socket/cases/net_socket_test_006.c @@ -0,0 +1,110 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/socket/cases/net_socket_test_006.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include + +#include "SocketTest.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_net_socket_test06 + ****************************************************************************/ + +void test_nuttx_net_socket_test06(FAR void **state) +{ + struct in_addr in; + int ret = inet_pton(AF_INET, "300.10.10.10", &in); + syslog(LOG_INFO, "ret: %d", ret); + assert_int_equal(ret, 0); + + ret = inet_pton(AF_INET, "10.11.12.13", &in); + syslog(LOG_INFO, "ret: %d", ret); + assert_int_equal(ret, 1); +#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ + syslog(LOG_INFO, "in.s_addr: %#" PRIx32, in.s_addr); + assert_int_equal(in.s_addr, 0x0d0c0b0a); +#else + syslog(LOG_INFO, "in.s_addr: %#" PRIx32, in.s_addr); + assert_int_equal(in.s_addr, 0x0a0b0c0d); +#endif + /* Currently nuttx does not support the following interfaces inet_lnaof, + * inet_netof, inet_makeaddr + */ + + /* host order */ + + /* in_addr_t lna = inet_lnaof(in); + * syslog(LOG_INFO, "lna: %#"PRIx32, lna); + * assert_int_equal(lna, 0x000b0c0d); + */ + + /* host order */ + + /* in_addr_t net = inet_netof(in); + * syslog(LOG_INFO, "net: %#"PRIx32, net); + * assert_int_equal(net, 0x0000000a); + + * in = inet_makeaddr(net, lna); + * #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ + * syslog(LOG_INFO, "in.s_addr: %#"PRIx32, in.s_addr); + * assert_int_equal(in.s_addr, 0x0d0c0b0a); + * #else + * syslog(LOG_INFO, "in.s_addr: %#"PRIx32, in.s_addr); + * assert_int_equal(in.s_addr, 0x0a0b0c0d); + * #endif + */ + + in_addr_t net = inet_network("300.10.10.10"); + syslog(LOG_INFO, "net: %#" PRIx32, net); + assert_int_equal((int32_t)net, -1); + + /* host order */ + + net = inet_network("10.11.12.13"); + syslog(LOG_INFO, "host order net: %#" PRIx32, net); + assert_int_equal(net, 0x0a0b0c0d); + + const char *p = inet_ntoa(in); + syslog(LOG_INFO, "inet_ntoa p: %s", p); + assert_int_equal(strcmp(p, "10.11.12.13"), 0); + + char buf[32]; + p = inet_ntop(AF_INET, &in, buf, sizeof(buf)); + syslog(LOG_INFO, "inet_ntop p: %s", p); + assert_string_equal(p, buf); + assert_int_equal(strcmp(p, "10.11.12.13"), 0); +} diff --git a/testing/testsuites/kernel/socket/cases/net_socket_test_008.c b/testing/testsuites/kernel/socket/cases/net_socket_test_008.c new file mode 100644 index 00000000000..c3268f78b68 --- /dev/null +++ b/testing/testsuites/kernel/socket/cases/net_socket_test_008.c @@ -0,0 +1,339 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/socket/cases/net_socket_test_008.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include + +#include "SocketTest.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#define SERVER_PORT 9001 // +#define INVALID_SOCKET -1 // +#define BACKLOG CLIENT_NUM + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +static int gfds[FD_SETSIZE]; +static int gbye; + +static void initfds(void) +{ + for (int i = 0; i < FD_SETSIZE; ++i) + { + gfds[i] = INVALID_SOCKET; + } +} + +static void getreadfds(fd_set *fds, int *nfd) +{ + for (int i = 0; i < FD_SETSIZE; i++) + { + if (gfds[i] == INVALID_SOCKET) + { + continue; + } + + FD_SET(gfds[i], fds); + if (*nfd < gfds[i]) + { + *nfd = gfds[i]; + } + } +} + +static int addfd(int fd) +{ + for (int i = 0; i < FD_SETSIZE; ++i) + { + if (gfds[i] == INVALID_SOCKET) + { + gfds[i] = fd; + return 0; + } + } + + return -1; +} + +static void delfd(int fd) +{ + for (int i = 0; i < FD_SETSIZE; ++i) + { + if (gfds[i] == fd) + { + gfds[i] = INVALID_SOCKET; + } + } + + (void)close(fd); +} + +static int closeallfd(void) +{ + for (int i = 0; i < FD_SETSIZE; ++i) + { + if (gfds[i] != INVALID_SOCKET) + { + (void)close(gfds[i]); + gfds[i] = INVALID_SOCKET; + } + } + + return 0; +} + +static int handlerecv(int fd) +{ + char buf[256]; + int ret = recv(fd, buf, sizeof(buf) - 1, 0); + if (ret < 0) + { + syslog(LOG_INFO, "[%d]Error: %s", fd, strerror(errno)); + delfd(fd); + } + + else if (ret == 0) + { + syslog(LOG_INFO, "[%d]Closed", fd); + delfd(fd); + } + + else + { + buf[ret] = 0; + syslog(LOG_INFO, "[%d]Received: %s", fd, buf); + if (strstr(buf, "Bye") != NULL) + { + delfd(fd); + gbye++; + } + } + + return -(ret < 0); +} + +static int handleaccept(int lsfd) +{ + struct sockaddr_in sa; + socklen_t salen = sizeof(sa); + int fd = accept(lsfd, (struct sockaddr *)&sa, &salen); + if (fd == INVALID_SOCKET) + { + perror("accept"); + return -1; + } + + if (addfd(fd) == -1) + { + syslog(LOG_INFO, "Too many clients, refuse %s:%d", + inet_ntoa(sa.sin_addr), ntohs(sa.sin_port)); + close(fd); + return -1; + } + + syslog(LOG_INFO, "New client %d: %s:%d", fd, inet_ntoa(sa.sin_addr), + ntohs(sa.sin_port)); + return 0; +} + +static int handlereadfds(fd_set *fds, int lsfd) +{ + int ret = 0; + for (int i = 0; i < FD_SETSIZE; ++i) + { + if (gfds[i] == INVALID_SOCKET || !FD_ISSET(gfds[i], fds)) + { + continue; + } + + if (gfds[i] == lsfd) + { + ret += handleaccept(lsfd); + } + + else + { + ret += handlerecv(gfds[i]); + } + } + + return ret; +} + +static void *clientsthread(void *param) +{ + int fd; + int thrno = (int)(intptr_t)param; + + syslog(LOG_INFO, "<%d>socket client thread started", thrno); + fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); + if (fd == INVALID_SOCKET) + { + perror("socket"); + return NULL; + } + + struct sockaddr_in sa; + sa.sin_family = AF_INET; + sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK); + sa.sin_port = htons(SERVER_PORT); + if (connect(fd, (struct sockaddr *)(&sa), sizeof(sa)) == -1) + { + perror("connect"); + return NULL; + } + + syslog(LOG_INFO, "[%d]<%d>connected to %s:%d successful", fd, thrno, + inet_ntoa(sa.sin_addr), SERVER_PORT); + + const char *msg[] = + { + "hello, ", "ohos, ", + "my name is net_socket_test_008, ", + "see u next time, ", "Bye!" + }; + + for (int i = 0; i < sizeof(msg) / sizeof(msg[0]); ++i) + { + if (send(fd, msg[i], strlen(msg[i]), 0) < 0) + { + syslog(LOG_INFO, "[%d]<%d>send msg [%s] fail", fd, thrno, + msg[i]); + } + } + + (void)shutdown(fd, SHUT_RDWR); + (void)close(fd); + return param; +} + +static int startclients(pthread_t *cli, int clinum) +{ + int ret; + pthread_attr_t attr; + + for (int i = 0; i < clinum; ++i) + { + ret = pthread_attr_init(&attr); + assert_int_equal(ret, 0); + + ret = pthread_create(&cli[i], &attr, clientsthread, + (void *)(intptr_t)i); + assert_int_equal(ret, 0); + + ret = pthread_attr_destroy(&attr); + assert_int_equal(ret, 0); + } + + return 0; +} + +/**************************************************************************** + * Name: test_nuttx_net_socket_test08 + ****************************************************************************/ + +void test_nuttx_net_socket_test08(FAR void **state) +{ + struct sockaddr_in sa = + { + 0 + }; + + int lsfd; + int ret; + + lsfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); + assert_int_not_equal(lsfd, -1); + + sa.sin_family = AF_INET; + sa.sin_addr.s_addr = htonl(INADDR_ANY); + sa.sin_port = htons(SERVER_PORT); + ret = bind(lsfd, (struct sockaddr *)(&sa), sizeof(sa)); + assert_int_not_equal(ret, -1); + + ret = listen(lsfd, BACKLOG); + assert_int_not_equal(ret, -1); + + initfds(); + addfd(lsfd); + syslog(LOG_INFO, "[%d]Waiting for client to connect on port %d", lsfd, + SERVER_PORT); + + pthread_t clients[CLIENT_NUM]; + + ret = startclients(clients, CLIENT_NUM); + assert_int_equal(ret, 0); + + for (; ; ) + { + int nfd; + fd_set readfds; + struct timeval timeout; + + timeout.tv_sec = 3; + timeout.tv_usec = 0; + + nfd = 0; + FD_ZERO(&readfds); + + getreadfds(&readfds, &nfd); + + ret = select(nfd + 1, &readfds, NULL, NULL, &timeout); + syslog(LOG_INFO, "select %d", ret); + if (ret == -1) + { + perror("select"); + break; /* error occurred */ + } + + else if (ret == 0) + { + break; /* timed out */ + } + + if (handlereadfds(&readfds, lsfd) < 0) + { + break; + } + } + + for (int i = 0; i < CLIENT_NUM; ++i) + { + ret = pthread_join(clients[i], NULL); + assert_int_equal(ret, 0); + } + + assert_int_equal(gbye, CLIENT_NUM); + (void)closeallfd(); +} diff --git a/testing/testsuites/kernel/socket/cases/net_socket_test_009.c b/testing/testsuites/kernel/socket/cases/net_socket_test_009.c new file mode 100644 index 00000000000..56ad3ced6a1 --- /dev/null +++ b/testing/testsuites/kernel/socket/cases/net_socket_test_009.c @@ -0,0 +1,337 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/socket/cases/net_socket_test_009.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "SocketTest.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#define SERVER_PORT 8888 +#define INVALID_SOCKET -1 +#define BACKLOG CLIENT_NUM + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +static int gfds[FD_SETSIZE]; +static int gbye; + +static void initfds(void) +{ + for (int i = 0; i < FD_SETSIZE; ++i) + { + gfds[i] = INVALID_SOCKET; + } +} + +static void getreadfds(struct pollfd *fds, int *nfd) +{ + for (int i = 0; i < FD_SETSIZE; i++) + { + if (gfds[i] == INVALID_SOCKET) + { + continue; + } + + fds[*nfd].fd = gfds[i]; + fds[*nfd].events = POLLIN; + (*nfd)++; + } +} + +static int addfd(int fd) +{ + for (int i = 0; i < FD_SETSIZE; ++i) + { + if (gfds[i] == INVALID_SOCKET) + { + gfds[i] = fd; + return 0; + } + } + + return -1; +} + +static void delfd(int fd) +{ + for (int i = 0; i < FD_SETSIZE; ++i) + { + if (gfds[i] == fd) + { + gfds[i] = INVALID_SOCKET; + } + } + + (void)close(fd); +} + +static int closeallfd(void) +{ + for (int i = 0; i < FD_SETSIZE; ++i) + { + if (gfds[i] != INVALID_SOCKET) + { + (void)close(gfds[i]); + gfds[i] = INVALID_SOCKET; + } + } + + return 0; +} + +static int handlerecv(int fd) +{ + char buf[256]; + int ret = recv(fd, buf, sizeof(buf) - 1, 0); + if (ret < 0) + { + syslog(LOG_INFO, "[%d]Error: %s", fd, strerror(errno)); + delfd(fd); + } + + else if (ret == 0) + { + syslog(LOG_INFO, "[%d]Closed", fd); + delfd(fd); + } + + else + { + buf[ret] = 0; + syslog(LOG_INFO, "[%d]Received: %s", fd, buf); + if (strstr(buf, "Bye") != NULL) + { + delfd(fd); + gbye++; + } + } + + return -(ret < 0); +} + +static int handleaccept(int lsfd) +{ + struct sockaddr_in sa; + int salen = sizeof(sa); + int fd = accept(lsfd, (struct sockaddr *)&sa, (socklen_t *)&salen); + if (fd == INVALID_SOCKET) + { + perror("accept"); + return -1; + } + + if (addfd(fd) == -1) + { + syslog(LOG_INFO, "Too many clients, refuse %s:%d", + inet_ntoa(sa.sin_addr), ntohs(sa.sin_port)); + close(fd); + return -1; + } + + syslog(LOG_INFO, "New client %d: %s:%d", fd, inet_ntoa(sa.sin_addr), + ntohs(sa.sin_port)); + return 0; +} + +static int handlereadfds(struct pollfd *fds, int nfds, int lsfd) +{ + int ret = 0; + for (int i = 0; i < nfds; ++i) + { + if (fds[i].revents == 0) + { + continue; + } + + syslog(LOG_INFO, "[%d]revents: %04" PRIx32, fds[i].fd, + fds[i].revents); + if (fds[i].fd == lsfd) + { + ret += handleaccept(lsfd); + } + + else + { + ret += handlerecv(fds[i].fd); + } + } + + return ret; +} + +static void *clientsthread(void *param) +{ + int fd; + int thrno = (int)(intptr_t)param; + + syslog(LOG_INFO, "<%d>socket client thread started", thrno); + fd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); + if (fd == INVALID_SOCKET) + { + perror("socket"); + return NULL; + } + + struct sockaddr_in sa; + sa.sin_family = AF_INET; + sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK); + sa.sin_port = htons(SERVER_PORT); + if (connect(fd, (struct sockaddr *)&sa, sizeof(sa)) == -1) + { + perror("connect"); + return NULL; + } + + syslog(LOG_INFO, "[%d]<%d>connected to %s:%d successful", fd, thrno, + inet_ntoa(sa.sin_addr), SERVER_PORT); + + const char *msg[] = + { + "hello, ", "ohos, ", + "my name is net_socket_test_009, ", + "see u next time, ", "Bye!" + }; + + for (int i = 0; i < sizeof(msg) / sizeof(msg[0]); ++i) + { + if (send(fd, msg[i], strlen(msg[i]), 0) < 0) + { + syslog(LOG_INFO, "[%d]<%d>send msg [%s] fail", fd, thrno, + msg[i]); + } + } + + (void)shutdown(fd, SHUT_RDWR); + (void)close(fd); + return param; +} + +static int startclients(pthread_t *cli, int clinum) +{ + int ret; + pthread_attr_t attr; + + for (int i = 0; i < clinum; ++i) + { + ret = pthread_attr_init(&attr); + assert_int_equal(ret, 0); + + ret = pthread_create(&cli[i], &attr, clientsthread, + (void *)(intptr_t)i); + assert_int_equal(ret, 0); + + ret = pthread_attr_destroy(&attr); + assert_int_equal(ret, 0); + } + + return 0; +} + +/**************************************************************************** + * Name: test_nuttx_net_socket_test09 + ****************************************************************************/ + +void test_nuttx_net_socket_test09(FAR void **state) +{ + struct sockaddr_in sa = + { + 0 + }; + + int lsfd; + int ret; + + lsfd = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); + assert_int_not_equal(lsfd, -1); + + sa.sin_family = AF_INET; + sa.sin_addr.s_addr = htonl(INADDR_ANY); + sa.sin_port = htons(SERVER_PORT); + ret = bind(lsfd, (struct sockaddr *)&sa, sizeof(sa)); + assert_int_not_equal(ret, -1); + + ret = listen(lsfd, BACKLOG); + assert_int_not_equal(ret, -1); + + initfds(); + addfd(lsfd); + syslog(LOG_INFO, "[%d]Waiting for client to connect on port %d", lsfd, + SERVER_PORT); + + pthread_t clients[CLIENT_NUM]; + + ret = startclients(clients, CLIENT_NUM); + assert_int_equal(ret, 0); + + for (; ; ) + { + int nfd; + struct pollfd readfds[FD_SETSIZE]; + int timeoutms; + + timeoutms = 3000; + nfd = 0; + getreadfds(readfds, &nfd); + + ret = poll(readfds, nfd, timeoutms); + syslog(LOG_INFO, "poll %d", ret); + if (ret == -1) + { + perror("poll"); + break; /* error occurred */ + } + + else if (ret == 0) + { + break; /* timed out */ + } + + if (handlereadfds(readfds, nfd, lsfd) < 0) + { + break; + } + } + + for (int i = 0; i < CLIENT_NUM; ++i) + { + ret = pthread_join(clients[i], NULL); + assert_int_equal(ret, 0); + } + + assert_int_equal(gbye, CLIENT_NUM); + (void)closeallfd(); +} diff --git a/testing/testsuites/kernel/socket/cases/net_socket_test_010.c b/testing/testsuites/kernel/socket/cases/net_socket_test_010.c new file mode 100644 index 00000000000..d344709ea90 --- /dev/null +++ b/testing/testsuites/kernel/socket/cases/net_socket_test_010.c @@ -0,0 +1,259 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/socket/cases/net_socket_test_010.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "SocketTest.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#define IFF_PROMISC 0x100 + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +static char gdefaultnetif[IFNAMSIZ] = "eth0"; + +static void initifreq(struct ifreq *ifr) +{ + *ifr = (struct ifreq) + { + { + 0 + } + }; + + /* (void)strncpy_s(ifr->ifr_name, sizeof(ifr->ifr_name) - 1, */ + + /* gdefaultnetif, sizeof(ifr->ifr_name) - 1); */ + + (void)strlcpy(ifr->ifr_name, gdefaultnetif, sizeof(ifr->ifr_name)); + ifr->ifr_name[sizeof(ifr->ifr_name) - 1] = '\0'; +} + +static char *ifindex2name(int fd, unsigned index, char *name) +{ +#ifdef CONFIG_NETDEV_IFINDEX + return if_indextoname(index, name); +#else + struct ifreq ifr; + int ret; + + ifr.ifr_ifindex = index; + ret = ioctl(fd, siocgifname, &ifr); + if (ret < 0) + { + return NULL; + } + + /* ret = strncpy_s(name, IF_NAMESIZE - 1, ifr.ifr_name, IF_NAMESIZE - + * 1); + */ + + strncpy(name, ifr.ifr_name, IF_NAMESIZE - 1); + name[IF_NAMESIZE - 1] = '\0'; + return name; +#endif +} + +static unsigned ifname2index(int fd, const char *name) +{ +#ifdef CONFIG_NETDEV_IFINDEX + return if_nametoindex(name); +#else + struct ifreq ifr; + int ret; + + /* (void)strncpy_s(ifr.ifr_name, sizeof(ifr.ifr_name) - 1, name, + * sizeof(ifr.ifr_name) - 1); + */ + + (void)strncpy(ifr.ifr_name, name, sizeof(ifr.ifr_name) - 1); + ifr.ifr_name[sizeof(ifr.ifr_name) - 1] = '\0'; + ret = ioctl(fd, SIOCGIFINDEX, &ifr); + return ret < 0 ? 0 : ifr.ifr_ifindex; +#endif +} + +/**************************************************************************** + * Name: test_nuttx_net_socket_test10 + ****************************************************************************/ + +static int ioctltestinternal(int sfd) +{ + struct ifreq ifr = + { + { + 0 + } + }; + + char ifname[IFNAMSIZ] = + { + 0 + }; + + char *p = NULL; + unsigned int loindex = 0; + unsigned int lanindex = 0; + char lanname[IFNAMSIZ]; + int maxindex = 256; + int ret; + char *ret_s = NULL; + + for (int i = 0; i < maxindex; ++i) + { + p = ifindex2name(sfd, i, ifname); + if (p) + { + if (strcmp(p, "lo") == 0) + { + loindex = i; + } + + else + { + lanindex = i; + strcpy(lanname, p); + syslog(LOG_INFO, "name of lan: %s", lanname); + } + } + } + + syslog(LOG_INFO, "ifindex of lo: %u, ifindex of lan: %u", loindex, + lanindex); + assert_int_not_equal(loindex, 0); + assert_int_not_equal(lanindex, 0); + + p = ifindex2name(sfd, loindex, ifname); + syslog(LOG_INFO, "ifindex %u: %s", loindex, p); + assert_non_null(p); + assert_string_equal(p, "lo"); + + p = ifindex2name(sfd, lanindex, ifname); + syslog(LOG_INFO, "ifindex %u: %s", lanindex, p); + assert_non_null(p); + assert_string_equal(p, lanname); + + /* ret = strncpy_s(gdefaultnetif, sizeof(gdefaultnetif) -1, p, + * sizeof(gdefaultnetif) - 1); + */ + + ret_s = strncpy(gdefaultnetif, p, sizeof(gdefaultnetif) - 1); + assert_non_null(ret_s); + gdefaultnetif[sizeof(gdefaultnetif) - 1] = '\0'; + + ret = (int)ifname2index(sfd, p); + syslog(LOG_INFO, "index of %s: %d", p, ret); + assert_int_not_equal(ret, 0); + assert_int_equal(ret, lanindex); + + ifr.ifr_ifindex = lanindex; + ret = ioctl(sfd, siocgifname, &ifr); + assert_int_equal(ret, 0); + syslog(LOG_INFO, "name of ifindex %u: %s", lanindex, ifr.ifr_name); + assert_string_equal(ifr.ifr_name, lanname); + + initifreq(&ifr); + ret = ioctl(sfd, SIOCGIFINDEX, &ifr); + assert_int_equal(ret, 0); + syslog(LOG_INFO, "index of ifname %s: %d", ifr.ifr_name, + ifr.ifr_ifindex); + assert_int_equal(ifr.ifr_ifindex, lanindex); + + initifreq(&ifr); + ret = ioctl(sfd, SIOCGIFHWADDR, &ifr); + assert_int_equal(ret, 0); + syslog(LOG_INFO, "hwaddr: %02hhX:%02hhX:%02hhX:XX:XX:XX", + ifr.ifr_hwaddr.sa_data[0], ifr.ifr_hwaddr.sa_data[1], + ifr.ifr_hwaddr.sa_data[2]); + + initifreq(&ifr); + ret = ioctl(sfd, SIOCGIFFLAGS, &ifr); + assert_int_equal(ret, 0); + syslog(LOG_INFO, "FLAGS of ifname %s: %#" PRIx32 ", IFF_PROMISC: %d", + ifr.ifr_name, ifr.ifr_flags, !!(ifr.ifr_flags & IFF_PROMISC)); + + if (ifr.ifr_flags & IFF_PROMISC) + { + ifr.ifr_flags &= ~(IFF_PROMISC); + } + + else + { + ifr.ifr_flags |= IFF_PROMISC; + } + + syslog(LOG_INFO, "SIOCSIFFLAGS FLAGS: %#" PRIx32, ifr.ifr_flags); + ret = ioctl(sfd, SIOCSIFFLAGS, &ifr); + if (ret == -1) + { + assert_int_equal(errno, EPERM); + } + + else + { + assert_int_equal(ret, 0); + } + + initifreq(&ifr); + ret = ioctl(sfd, SIOCGIFFLAGS, &ifr); + assert_int_equal(ret, 0); + syslog(LOG_INFO, "FLAGS of ifname %s: %#" PRIx32 ", IFF_PROMISC: %d", + ifr.ifr_name, ifr.ifr_flags, !!(ifr.ifr_flags & IFF_PROMISC)); + + ret = fcntl(sfd, F_GETFL, 0); + assert_int_equal(ret < 0, 0); + + ret = fcntl(sfd, F_SETFL, ret | O_NONBLOCK); + assert_int_equal(ret < 0, 0); + + return 0; +} + +void test_nuttx_net_socket_test10(FAR void **state) +{ + int sfd; + + sfd = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); + syslog(LOG_INFO, "socket(PF_INET, SOCK_STREAM, IPPROTO_TCP): %d", sfd); + assert_int_not_equal(sfd, -1); + + (void)ioctltestinternal(sfd); + + (void)close(sfd); +} diff --git a/testing/testsuites/kernel/socket/cases/net_socket_test_011.c b/testing/testsuites/kernel/socket/cases/net_socket_test_011.c new file mode 100644 index 00000000000..f10c04aaa66 --- /dev/null +++ b/testing/testsuites/kernel/socket/cases/net_socket_test_011.c @@ -0,0 +1,319 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/socket/cases/net_socket_test_011.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include + +#include "SocketTest.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#define SERVER_PORT 7777 +#define INVALID_SOCKET -1 + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +static int gfds[FD_SETSIZE]; +static int gbye; + +static void initfds(void) +{ + for (int i = 0; i < FD_SETSIZE; ++i) + { + gfds[i] = INVALID_SOCKET; + } +} + +static void getreadfds(fd_set *fds, int *nfd) +{ + for (int i = 0; i < FD_SETSIZE; i++) + { + if (gfds[i] == INVALID_SOCKET) + { + continue; + } + + FD_SET(gfds[i], fds); + if (*nfd < gfds[i]) + { + *nfd = gfds[i]; + } + } +} + +static int addfd(int fd) +{ + for (int i = 0; i < FD_SETSIZE; ++i) + { + if (gfds[i] == INVALID_SOCKET) + { + gfds[i] = fd; + return 0; + } + } + + return -1; +} + +static void delfd(int fd) +{ + for (int i = 0; i < FD_SETSIZE; ++i) + { + if (gfds[i] == fd) + { + gfds[i] = INVALID_SOCKET; + } + } + + (void)close(fd); +} + +static int closeallfd(void) +{ + for (int i = 0; i < FD_SETSIZE; ++i) + { + if (gfds[i] != INVALID_SOCKET) + { + (void)close(gfds[i]); + gfds[i] = INVALID_SOCKET; + } + } + + return 0; +} + +static int handlerecv(int fd) +{ + char buf[128]; + int ret = recv(fd, buf, sizeof(buf) - 1, 0); + if (ret < 0) + { + syslog(LOG_INFO, "[%d]Error: %s", fd, strerror(errno)); + delfd(fd); + } + + else if (ret == 0) + { + syslog(LOG_INFO, "[%d]Closed", fd); + delfd(fd); + } + + else + { + buf[ret] = 0; + syslog(LOG_INFO, "[%d]Received: %s", fd, buf); + if (strstr(buf, "Bye") != NULL) + { + gbye++; + } + } + + return -(ret < 0); +} + +static int handlereadfds(fd_set *fds, int lsfd) +{ + int ret = 0; + for (int i = 0; i < FD_SETSIZE; ++i) + { + if (gfds[i] == INVALID_SOCKET || !FD_ISSET(gfds[i], fds)) + { + continue; + } + + ret += handlerecv(gfds[i]); + } + + return ret; +} + +static void *clientsthread(void *param) +{ + int fd; + int thrno = (int)(intptr_t)param; + + syslog(LOG_INFO, "<%d>socket client thread started", thrno); + fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); + if (fd == INVALID_SOCKET) + { + perror("socket"); + return NULL; + } + + struct sockaddr_in sa; + sa.sin_family = AF_INET; + sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK); + sa.sin_port = htons(SERVER_PORT); + if (connect(fd, (struct sockaddr *)(&sa), sizeof(sa)) == -1) + { + perror("connect"); + return NULL; + } + + syslog(LOG_INFO, "[%d]<%d>connected to udp://%s:%d successful", fd, + thrno, inet_ntoa(sa.sin_addr), SERVER_PORT); + + const char *msg[] = + { + "ohos, ", + "hello, ", + "my name is net_socket_test_011, ", + "see u next time, ", + "Bye!", + }; + + for (int i = 0; i < sizeof(msg) / sizeof(msg[0]); ++i) + { + if (send(fd, msg[i], strlen(msg[i]), 0) < 0) + { + syslog(LOG_INFO, "[%d]<%d>send msg [%s] fail", fd, thrno, + msg[i]); + } + } + + (void)shutdown(fd, SHUT_RDWR); + (void)close(fd); + return param; +} + +static int startclients(pthread_t *cli, int clinum) +{ + int ret; + pthread_attr_t attr = + { + 0 + }; + + struct sched_param param = + { + 0 + }; + + int policy; + ret = pthread_getschedparam(pthread_self(), &policy, ¶m); + assert_int_equal(ret, 0); + + for (int i = 0; i < clinum; ++i) + { + ret = pthread_attr_init(&attr); + param.sched_priority = param.sched_priority + 1; + pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED); + pthread_attr_setschedparam(&attr, ¶m); + + ret = pthread_create(&cli[i], &attr, clientsthread, + (void *)(intptr_t)i); + assert_int_equal(ret, 0); + ret = pthread_attr_destroy(&attr); + assert_int_equal(ret, 0); + } + + return 0; +} + +/**************************************************************************** + * Name: test_nuttx_net_socket_test11 + ****************************************************************************/ + +void test_nuttx_net_socket_test11(FAR void **state) +{ + struct sockaddr_in sa = + { + 0 + }; + + int lsfd; + int ret; + + lsfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); + assert_int_not_equal(lsfd, -1); + + sa.sin_family = AF_INET; + sa.sin_addr.s_addr = htonl(INADDR_ANY); + sa.sin_port = htons(SERVER_PORT); + ret = bind(lsfd, (struct sockaddr *)(&sa), sizeof(sa)); + assert_int_not_equal(ret, -1); + + initfds(); + addfd(lsfd); + syslog(LOG_INFO, "[%d]Waiting for client to connect on UDP port %d", + lsfd, SERVER_PORT); + + pthread_t clients[CLIENT_NUM]; + + ret = startclients(clients, CLIENT_NUM); + assert_int_equal(ret, 0); + + for (; ; ) + { + int nfd; + fd_set readfds; + struct timeval timeout; + + timeout.tv_sec = 3; + timeout.tv_usec = 0; + + nfd = 0; + FD_ZERO(&readfds); + + getreadfds(&readfds, &nfd); + + ret = select(nfd + 1, &readfds, NULL, NULL, &timeout); + syslog(LOG_INFO, "select %d", ret); + if (ret == -1) + { + perror("select"); + break; /* error occurred */ + } + + else if (ret == 0) + { + break; /* timed out */ + } + + if (handlereadfds(&readfds, lsfd) < 0) + { + break; + } + } + + for (int i = 0; i < CLIENT_NUM; ++i) + { + ret = pthread_join(clients[i], NULL); + assert_int_equal(ret, 0); + } + +#ifdef CONFIG_NET_UDP_NOTIFIER + assert_int_equal(gbye, CLIENT_NUM); +#endif + (void)closeallfd(); +} diff --git a/testing/testsuites/kernel/socket/cmocka_socket_test.c b/testing/testsuites/kernel/socket/cmocka_socket_test.c new file mode 100644 index 00000000000..5f694031c91 --- /dev/null +++ b/testing/testsuites/kernel/socket/cmocka_socket_test.c @@ -0,0 +1,71 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/socket/cmocka_socket_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include "SocketTest.h" +#include + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: cmocka_sched_test_main + ****************************************************************************/ + +int main(int argc, char *argv[]) +{ + /* Add Test Cases */ + + const struct CMUnitTest nuttx_socket_test_suites[] = + { + cmocka_unit_test_setup_teardown(test_nuttx_net_socket_test05, NULL, + NULL), + cmocka_unit_test_setup_teardown(test_nuttx_net_socket_test06, NULL, + NULL), +#if defined(CONFIG_NET_LOOPBACK) || defined(CONFIG_NET_USRSOCK) + cmocka_unit_test_setup_teardown(test_nuttx_net_socket_test08, NULL, + NULL), + cmocka_unit_test_setup_teardown(test_nuttx_net_socket_test09, NULL, + NULL), + cmocka_unit_test_setup_teardown(test_nuttx_net_socket_test10, NULL, + NULL), + cmocka_unit_test_setup_teardown(test_nuttx_net_socket_test11, NULL, + NULL), +#endif + }; + + /* Run Test cases */ + + cmocka_run_group_tests(nuttx_socket_test_suites, NULL, NULL); + + return 0; +} diff --git a/testing/testsuites/kernel/socket/include/SocketTest.h b/testing/testsuites/kernel/socket/include/SocketTest.h new file mode 100644 index 00000000000..56440c3fcfa --- /dev/null +++ b/testing/testsuites/kernel/socket/include/SocketTest.h @@ -0,0 +1,80 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/socket/include/SocketTest.h + * + * 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. + * + ****************************************************************************/ + +#ifndef __TEST_H +#define __TEST_H + +/**************************************************************************** + * Included Files + ****************************************************************************/ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ +#define CLIENT_NUM 8 + +/**************************************************************************** + * Public Function Prototypes + ****************************************************************************/ + +/* test case function */ + +/* cases/net_socket_test_005.c + * ***********************************************/ + +void test_nuttx_net_socket_test05(FAR void **state); + +/* cases/net_socket_test_006.c + * ************************************************/ + +void test_nuttx_net_socket_test06(FAR void **state); + +/* cases/net_socket_test_008.c + * ************************************************/ + +void test_nuttx_net_socket_test08(FAR void **state); + +/* cases/net_socket_test_009.c + * ************************************************/ + +void test_nuttx_net_socket_test09(FAR void **state); + +/* cases/net_socket_test_010.c + * ************************************************/ + +void test_nuttx_net_socket_test10(FAR void **state); + +/* cases/net_socket_test_011.c + * ************************************************/ + +void test_nuttx_net_socket_test11(FAR void **state); + +#endif diff --git a/testing/testsuites/kernel/syscall/cases/Fstatfs_test.c b/testing/testsuites/kernel/syscall/cases/Fstatfs_test.c new file mode 100644 index 00000000000..d08113ebea4 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/Fstatfs_test.c @@ -0,0 +1,104 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/Fstatfs_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_fstatfs01 + ****************************************************************************/ + +void test_nuttx_syscall_fstatfs01(FAR void **state) +{ + int file_fd; + int pipe_fd; + int lc; + int i; + int ret; + int p[2]; + struct statfs stats; + char fname[256] = ""; + + struct tcase + { + int *fd; + const char *msg; + } + + tcases[2] = + { + { + NULL, "fstatfs() on a file" + }, + + { + NULL, "fstatfs() on a pipe" + }, + }; + + tcases[0].fd = &file_fd; + tcases[1].fd = &pipe_fd; + + sprintf(fname, "Fstatfs01_%d", gettid()); + + file_fd = open(fname, O_RDWR | O_CREAT, 0700); + assert_true(file_fd > 0); + + assert_int_equal(pipe(p), 0); + pipe_fd = p[0]; + assert_int_equal(close(p[1]), 0); + + for (lc = 0; lc < 2; lc++) + { + for (i = 0; i < 1; i++) + { + ret = fstatfs(*(tcases[i].fd), &stats); + assert_int_equal(ret, 0); + } + } + + if (file_fd > 0) + assert_int_equal(close(file_fd), 0); + + if (pipe_fd > 0) + assert_int_equal(close(pipe_fd), 0); + + assert_int_equal(unlink(fname), 0); +} diff --git a/testing/testsuites/kernel/syscall/cases/accept_test.c b/testing/testsuites/kernel/syscall/cases/accept_test.c new file mode 100644 index 00000000000..2954a906835 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/accept_test.c @@ -0,0 +1,154 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/accept_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_verityaccept01 + ****************************************************************************/ + +__attribute__((unused)) void test_nuttx_syscall_verityaccept01( + int testno, int domain, int type, int proto, int fd, + struct sockaddr *sockaddr, unsigned int *salen, int experrno) +{ +#ifdef CONFIG_NET_TCP + int ret; + errno = 0; + ret = accept(fd, sockaddr, salen); + close(fd); + assert_int_equal(ret, -1); + + /* syslog(LOG_INFO, "ret=%d errnor=%d\n experrno=%d", ret, + * errno,experrno); + */ + +#endif +} + +/**************************************************************************** + * Name: test_nuttx_syscall_accept01 + ****************************************************************************/ + +void test_nuttx_syscall_accept01(FAR void **state) +{ +#ifdef CONFIG_NET_TCP + struct sockaddr_in sin0; + struct sockaddr_in sin1; + struct sockaddr_in fsin1; + int invalid_socketfd = -400; + int devnull_fd; + int socket_fd; + int udp_fd; + + sin0.sin_family = AF_INET; + sin0.sin_port = 0; + sin0.sin_addr.s_addr = INADDR_ANY; + + devnull_fd = open("/dev/null", O_WRONLY); + + socket_fd = socket(PF_INET, SOCK_STREAM, 0); + assert_int_not_equal(socket_fd, -1); + bind(socket_fd, (struct sockaddr *)&sin0, sizeof(sin0)); + + sin1.sin_family = AF_INET; + sin1.sin_port = 0; + sin1.sin_addr.s_addr = INADDR_ANY; + udp_fd = socket(PF_INET, SOCK_DGRAM, 0); + assert_int_not_equal(udp_fd, -1); + bind(udp_fd, (struct sockaddr *)&sin1, sizeof(sin1)); + + struct test_case + { + int domain; + int type; + int proto; + int *fd; + struct sockaddr *sockaddr; + socklen_t salen; + int experrno; + } + + tcases[] = + { + { + PF_INET, SOCK_STREAM, 0, &invalid_socketfd, + (struct sockaddr *)&fsin1, sizeof(fsin1), EBADF + }, + + { + PF_INET, SOCK_STREAM, 0, &devnull_fd, (struct sockaddr *)&fsin1, + sizeof(fsin1), ENOTSOCK + }, + + { + PF_INET, SOCK_STREAM, 0, &socket_fd, (struct sockaddr *)3, + sizeof(fsin1), EINVAL + }, + + { + PF_INET, SOCK_STREAM, 0, &socket_fd, (struct sockaddr *)&fsin1, 1, + EINVAL + }, + + { + PF_INET, SOCK_STREAM, 0, &socket_fd, (struct sockaddr *)&fsin1, + sizeof(fsin1), EINVAL + }, + + { + PF_INET, SOCK_STREAM, 0, &udp_fd, (struct sockaddr *)&fsin1, + sizeof(fsin1), EOPNOTSUPP + }, + }; + + for (int i = 0; i < 6; i++) + { + test_nuttx_syscall_verityaccept01( + i, tcases[i].domain, tcases[i].type, tcases[i].proto, + *tcases[i].fd, tcases[i].sockaddr, &tcases[i].salen, + tcases[i].experrno); + } +#endif +} diff --git a/testing/testsuites/kernel/syscall/cases/bind_test.c b/testing/testsuites/kernel/syscall/cases/bind_test.c new file mode 100644 index 00000000000..e035bf8a1f6 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/bind_test.c @@ -0,0 +1,137 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/bind_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_bind01 + ****************************************************************************/ + +void test_nuttx_syscall_bind01(FAR void **state) +{ + int inet_socket; + int dev_null; + + struct sockaddr_in sin1; + struct sockaddr_in sin2; + struct sockaddr_un sun; + struct test_case + { + int *socket_fd; + struct sockaddr *sockaddr; + socklen_t salen; + int retval; + int experrno; + char *desc; + } + + tcases[] = + { + { + &inet_socket, (struct sockaddr *)&sin1, 3, -1, EINVAL, + "invalid salen" + }, + + { + &dev_null, (struct sockaddr *)&sin1, sizeof(sin1), -1, ENOTSOCK, + "invalid socket" + }, + + { + &inet_socket, (struct sockaddr *)&sin2, sizeof(sin2), 0, 0, + "INADDR_ANYPORT" + }, + + { + &inet_socket, (struct sockaddr *)&sun, sizeof(sun), -1, + EAFNOSUPPORT, "UNIX-domain of current directory" + }, + }; + + /* initialize sockaddr's */ + + sin1.sin_family = AF_INET; + sin1.sin_port = 25197; + sin1.sin_addr.s_addr = INADDR_ANY; + sin2.sin_family = AF_INET; + sin2.sin_port = 0; + sin2.sin_addr.s_addr = INADDR_ANY; + + sun.sun_family = AF_UNIX; + strncpy(sun.sun_path, ".", sizeof(sun.sun_path)); + inet_socket = socket(PF_INET, SOCK_STREAM, 0); + dev_null = open("/dev/null", O_WRONLY); + + int test_ret; + int test_err; + int i; + for (i = 0; i < 4; i++) + { + inet_socket = socket(PF_INET, SOCK_STREAM, 0); + dev_null = open("/dev/null", O_WRONLY); + if (tcases[i].experrno) + { + test_ret = bind(*tcases[i].socket_fd, tcases[i].sockaddr, + tcases[i].salen); + test_err = errno; + close(inet_socket); + close(dev_null); + assert_int_not_equal(test_ret, 0); + assert_int_equal(test_ret, -1); + assert_int_equal(test_err, tcases[i].experrno); + } + + else + { + test_ret = bind(*tcases[i].socket_fd, tcases[i].sockaddr, + tcases[i].salen); + close(inet_socket); + close(dev_null); + assert_int_not_equal(test_ret, -1); + assert_int_equal(test_ret, 0); + } + } +} diff --git a/testing/testsuites/kernel/syscall/cases/chdir_test.c b/testing/testsuites/kernel/syscall/cases/chdir_test.c new file mode 100644 index 00000000000..73c8d750c36 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/chdir_test.c @@ -0,0 +1,103 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/chdir_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_chdir01 + ****************************************************************************/ + +void test_nuttx_syscall_chdir01(FAR void **state) +{ + char testdir[64] = + { + 0 + }; + + int ret; + + sprintf(testdir, "%s_dir", __func__); + rmdir(testdir); + assert_int_equal(mkdir(testdir, S_IRWXU), 0); + + ret = chdir(testdir); + assert_int_equal(ret, 0); + rmdir(testdir); +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_chdir02 + ****************************************************************************/ + +void test_nuttx_syscall_chdir02(FAR void **state) +{ + int ret; + char dirs[64] = + { + 0 + }; + + getcwd(dirs, sizeof(dirs)); + + /* Switch the directory 100 times */ + + for (int lc = 0; lc < 100; lc++) + { + if (lc % 2 == 0) + { + ret = chdir("/"); + assert_int_equal(ret, 0); + } + + else + { + ret = chdir(dirs); + assert_int_equal(ret, 0); + } + } +} diff --git a/testing/testsuites/kernel/syscall/cases/clock_gettime_test.c b/testing/testsuites/kernel/syscall/cases/clock_gettime_test.c new file mode 100644 index 00000000000..60495c72b6b --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/clock_gettime_test.c @@ -0,0 +1,106 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/clock_gettime_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_clockgettime01 + ****************************************************************************/ + +void test_nuttx_syscall_clockgettime01(FAR void **state) +{ + int ret; + clockid_t type; + struct test_case + { + clockid_t clktype; + int allow_inval; + } + + tc[] = + { + { + CLOCK_REALTIME, + }, + + { + CLOCK_MONOTONIC, + }, + + { + CLOCK_BOOTTIME, 1 + }, + }; + + struct timespec spec; + + for (int i = 0; i < 3; i++) + { + type = tc[i].clktype; + switch (type) + { + case CLOCK_REALTIME: + + /* syslog(LOG_INFO, "clock_gettime test CLOCK_REALTIME\n"); */ + + break; + case CLOCK_MONOTONIC: + + /* syslog(LOG_INFO, "clock_gettime test CLOCK_MONOTONIC\n"); */ + + break; + case CLOCK_BOOTTIME: + + /* syslog(LOG_INFO, "clock_gettime test CLOCK_BOOTTIME\n"); */ + + break; + default: + break; + } + + ret = clock_gettime(type, &spec); + assert_int_equal(ret, 0); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/clock_nanosleep_test.c b/testing/testsuites/kernel/syscall/cases/clock_nanosleep_test.c new file mode 100644 index 00000000000..f0a45ff6118 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/clock_nanosleep_test.c @@ -0,0 +1,91 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/clock_nanosleep_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_clocknanosleep01 + ****************************************************************************/ + +void test_nuttx_syscall_clocknanosleep01(FAR void **state) +{ + int ret; + clockid_t type = CLOCK_REALTIME; + struct timespec t; + clock_t start_time, end_time; + t.tv_sec = 2; + t.tv_nsec = 0; + start_time = clock(); + ret = clock_nanosleep(type, 0, &t, NULL); + assert_int_equal(ret, 0); + end_time = clock(); + assert_int_equal((time_t)(end_time - start_time) / CLOCKS_PER_SEC, + t.tv_sec); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_clocknanosleep02 + ****************************************************************************/ + +void test_nuttx_syscall_clocknanosleep02(FAR void **state) +{ + int ret; + struct timespec ts; + clockid_t tcase[] = + { + CLOCK_MONOTONIC, + CLOCK_REALTIME, + }; + + ret = clock_gettime(tcase[0], &ts); + assert_int_equal(ret, 0); + + ts.tv_sec = 4; + ts.tv_nsec = 1000; + + ret = clock_nanosleep(tcase[0], TIMER_ABSTIME, &ts, NULL); + assert_int_equal(ret, 0); + + ret = clock_gettime(tcase[1], &ts); + assert_int_equal(ret, 0); + + ts.tv_sec = 4; + ts.tv_nsec = 1000; + + ret = clock_nanosleep(tcase[1], TIMER_ABSTIME, &ts, NULL); + assert_int_equal(ret, 0); +} diff --git a/testing/testsuites/kernel/syscall/cases/clock_settime_test.c b/testing/testsuites/kernel/syscall/cases/clock_settime_test.c new file mode 100644 index 00000000000..b819508a852 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/clock_settime_test.c @@ -0,0 +1,67 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/clock_settime_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_clocksettime01 + ****************************************************************************/ + +void test_nuttx_syscall_clocksettime01(FAR void **state) +{ + int ret; + struct timespec ts; + time_t begin_time; + time_t end_time; + + /* do clock_gettime */ + + ret = clock_gettime(CLOCK_REALTIME, &ts); + assert_int_equal(ret, 0); + + begin_time = ts.tv_sec; + ts.tv_sec = ts.tv_sec + 10; + ret = clock_settime(CLOCK_REALTIME, &ts); + assert_int_equal(ret, 0); + + ret = clock_gettime(CLOCK_REALTIME, &ts); + assert_int_equal(ret, 0); + + end_time = ts.tv_sec; + assert_true((end_time - begin_time) >= 10); +} diff --git a/testing/testsuites/kernel/syscall/cases/close_test.c b/testing/testsuites/kernel/syscall/cases/close_test.c new file mode 100644 index 00000000000..1893d0d681e --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/close_test.c @@ -0,0 +1,150 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/close_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_close01 + ****************************************************************************/ + +void test_nuttx_syscall_close01(FAR void **state) +{ + int fd; + int newfd; + int pipefd[2] = + { + 0 + }; + + char filename[128] = + { + 0 + }; + + int ret; + + sprintf(filename, "%s_dir", __func__); + + fd = creat(filename, 0777); + + newfd = dup(fd); + + ret = pipe(pipefd); + assert_int_equal(ret, 0); + + for (int i = 0; i < 2; i++) + { + if (pipefd[i] > 0) + { + ret = close(pipefd[i]); + assert_int_equal(ret, 0); + } + } + + if (fd > 0) + close(fd); + if (newfd > 0) + close(newfd); + remove(filename); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_close02 + ****************************************************************************/ + +void test_nuttx_syscall_close02(FAR void **state) +{ +#ifndef CONFIG_FDSAN + int ret; + int badfd1 = -1; + int badfd2 = 99999999; + + ret = close(badfd1); + assert_int_equal(ret, ERROR); + + /* Check that an invalid file descriptor returns EBADF + */ + + assert_int_equal(errno, EBADF); + + ret = close(badfd2); + assert_int_equal(ret, ERROR); + + /* Check that an invalid file descriptor returns EBADF + */ + + assert_int_equal(errno, EBADF); +#endif +} + +/**************************************************************************** + * Name: test_nuttx_syscall_close03 + ****************************************************************************/ + +void test_nuttx_syscall_close03(FAR void **state) +{ + char filename[128] = + { + 0 + }; + + int fd; + int ret; + + for (int i = 0; i < 100; i++) + { + memset(filename, 0, sizeof(filename)); + sprintf(filename, "%s_dir%d", __func__, i + 1); + + fd = open(filename, O_RDWR | O_CREAT, 0700); + if (fd < 0) + { + fail_msg("open test file fail !\n"); + } + + ret = close(fd); + assert_int_equal(ret, 0); + + unlink(filename); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/connect_test.c b/testing/testsuites/kernel/syscall/cases/connect_test.c new file mode 100644 index 00000000000..9e252b47026 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/connect_test.c @@ -0,0 +1,372 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/connect_test.c + * + * 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 + ****************************************************************************/ +#ifndef UCLINUX +#define UCLINUX +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#ifdef CONFIG_FDCHECK +#include +#endif +#include "SyscallTest.h" + +__attribute__((unused)) static int s; /* socket descriptor */ +__attribute__((unused)) static int testno; +__attribute__((unused)) static struct sockaddr_in sin1, sin2, sin4; +__attribute__((unused)) static pthread_t thread; +__attribute__((unused)) static int + sfd; /* shared between start_server and do_child */ +__attribute__((unused)) static int setup(void), setup0(void), + setup1(void), setup2(void), cleanup(void), cleanup0(void), + cleanup1(void); +__attribute__((unused)) static void do_child(void); + +__attribute__((unused)) static void *start_server(void *); + +__attribute__((unused)) static struct test_case_t +{ + int domain; /* PF_INET, PF_UNIX, ... */ + int type; /* SOCK_STREAM, SOCK_DGRAM ... */ + int proto; /* protocol number (usually 0 = default) */ + struct sockaddr *sockaddr; /* socket address buffer */ + int salen; /* connect's 3rd argument */ + int retval; /* syscall return value */ + int experrno; /* expected errno */ + int (*setup)(void); + int (*cleanup)(void); + char *desc; +} + +tdat[] = + { + { + PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, + sizeof(struct sockaddr_in), -1, EBADF, setup0, cleanup0, + "bad file descriptor" + }, + #ifndef UCLINUX + + /* Skip since uClinux does not implement memory protection */ + + { + PF_INET, SOCK_STREAM, 0, (struct sockaddr *)-1, + sizeof(struct sockaddr_in), -1, EFAULT, setup1, cleanup1, + "invalid socket buffer" + }, + + #endif + { + PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, 3, -1, EINVAL, + setup1, cleanup1, "invalid salen" + }, + + { + 0, 0, 0, (struct sockaddr *)&sin1, sizeof(sin1), -1, ENOTSOCK, + setup0, cleanup0, "invalid socket" + }, + + { + PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin1, + sizeof(sin1), -1, EISCONN, setup2, cleanup1, + "already connected" + }, + + { + PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin2, + sizeof(sin2), -1, ECONNREFUSED, setup1, cleanup1, + "connection refused" + }, + + /* if CONFIG_DEBUG_ASSERTIONS is set, + * the connect operation will be crash + */ + + #ifndef CONFIG_DEBUG_ASSERTIONS + { + PF_INET, SOCK_STREAM, 0, (struct sockaddr *)&sin4, + sizeof(sin4), -1, EAFNOSUPPORT, setup1, cleanup1, + "invalid address family" + }, + #endif + }; + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_connect01 + ****************************************************************************/ + +void test_nuttx_syscall_connect01(FAR void **state) +{ +#ifdef CONFIG_NET_TCP + int ret; + int flag = 1; + setup(); + + for (testno = 0; testno < sizeof(tdat) / sizeof((tdat)[0]); ++testno) + { + usleep(100000); + if (tdat[testno].setup() < 0) + { + tdat[testno].cleanup(); + continue; + } + + ret = connect(s, tdat[testno].sockaddr, tdat[testno].salen); + + if (ret != tdat[testno].retval || + (ret < 0 && errno != tdat[testno].experrno)) + { + syslog(LOG_ERR, + "test connect %s failed; " + "returned %d (expected %d), errno %d " + "(expected %d)\n", + tdat[testno].desc, ret, tdat[testno].retval, errno, + tdat[testno].experrno); + + /* fail_msg("test fail !"); */ + + flag = 1; + } + + tdat[testno].cleanup(); + } + + cleanup(); + assert_true(flag); +#endif +} + +__attribute__((unused)) static int setup(void) +{ + int r = pthread_create(&thread, NULL, start_server, (void *)&sin1); + if (r < 0) + return -1; + + sin2.sin_family = AF_INET; + + /* this port must be unused! */ + + sin2.sin_port = get_unused_port(NULL, AF_INET, SOCK_STREAM); + if (sin2.sin_port < 0) + return -1; + sin2.sin_addr.s_addr = INADDR_ANY; + + sin4.sin_family = 47; /* bogus address family */ + sin4.sin_port = 0; + sin4.sin_addr.s_addr = htonl(0x0afffefd); + return 0; +} + +__attribute__((unused)) static int cleanup(void) +{ + assert_true(pthread_cancel(thread) == 0); + assert_true(pthread_join(thread, NULL) == 0); + return 0; +} + +__attribute__((unused)) static int setup0(void) +{ + if (tdat[testno].experrno == EBADF) + s = -400; /* anything not an open file */ + else if ((s = open("/dev/null", O_WRONLY)) == -1) + { + syslog(LOG_ERR, "open /dev/null fail, errno %d\n", errno); + fail_msg("test fail !"); + return -1; + } + + return 0; +} + +__attribute__((unused)) static int cleanup0(void) +{ + close(s); + s = -1; + return 0; +} + +__attribute__((unused)) static int setup1(void) +{ + s = safe_socket(tdat[testno].domain, tdat[testno].type, + tdat[testno].proto); + return s; +} + +__attribute__((unused)) static int cleanup1(void) +{ + (void)close(s); + s = -1; + return 0; +} + +__attribute__((unused)) static int setup2(void) +{ + if (setup1() < 0) /* get a socket in s */ + return -1; + return safe_connect(s, (const struct sockaddr *)&sin1, sizeof(sin1)); +} + +__attribute__((unused)) static void *start_server(void *arg) +{ + /* 设置取消状态为启用 */ + + pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); + + /* 设置取消类型为异步取消 */ + + pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL); + + struct sockaddr_in *sin0 = (struct sockaddr_in *)arg; + socklen_t slen = sizeof(*sin0); + + sin0->sin_family = AF_INET; + sin0->sin_port = 0; /* pick random free port */ + sin0->sin_addr.s_addr = INADDR_ANY; + + sfd = socket(PF_INET, SOCK_STREAM, 0); + if (sfd < 0) + { + syslog(LOG_ERR, "server socket failed\n"); + fail_msg("test fail !"); + return NULL; + } + + if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) + { + syslog(LOG_ERR, "server bind failed\n"); + close(sfd); + fail_msg("test fail !"); + return NULL; + } + + if (listen(sfd, 10) < 0) + { + syslog(LOG_ERR, "server listen failed\n"); + close(sfd); + fail_msg("test fail !"); + return NULL; + } + + safe_getsockname(sfd, (struct sockaddr *)sin0, &slen); + do_child(); + return NULL; +} + +__attribute__((unused)) static void do_child(void) +{ + struct sockaddr_in fsin; + fd_set afds; + fd_set rfds; + int nfds; + int cc; + int fd; +#ifdef CONFIG_FDCHECK + int fd_tmp = 0; +#endif + char c; + + FD_ZERO(&afds); + FD_SET(sfd, &afds); + + nfds = sfd + 1; + + /* accept connections until killed */ + + while (1) + { + socklen_t fromlen; + + memcpy(&rfds, &afds, sizeof(rfds)); + + if (select(nfds, &rfds, NULL, NULL, NULL) < 0) + if (errno != EINTR) + { + syslog(LOG_ERR, "select exit fail\n"); + fail_msg("test fail !"); + return; + } + + if (FD_ISSET(sfd, &rfds)) + { + int newfd; + + fromlen = sizeof(fsin); + newfd = accept(sfd, (struct sockaddr *)&fsin, &fromlen); + if (newfd >= 0) + { + FD_SET(newfd, &afds); + nfds = (nfds > newfd + 1) ? (nfds) : (newfd + 1); + } + } + +#ifdef CONFIG_FDCHECK + for (fd = 0; fd < fdcheck_restore(nfds - 1) + 1; ++fd) + { + fd_tmp = fdcheck_protect(fd); + if (fd_tmp != sfd && FD_ISSET(fd_tmp, &rfds)) + { + if ((cc = read(fd_tmp, &c, 1)) == 0) + { + (void)close(fd_tmp); + FD_CLR(fd_tmp, &afds); + } + } + } + +#else + for (fd = 0; fd < nfds; ++fd) + if (fd != sfd && FD_ISSET(fd, &rfds)) + { + if ((cc = read(fd, &c, 1)) == 0) + { + (void)close(fd); + FD_CLR(fd, &afds); + } + } + +#endif + pthread_testcancel(); + } +} + +#undef UCLINUX +#endif diff --git a/testing/testsuites/kernel/syscall/cases/creat_test.c b/testing/testsuites/kernel/syscall/cases/creat_test.c new file mode 100644 index 00000000000..ccf0239c0ca --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/creat_test.c @@ -0,0 +1,123 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/creat_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_creat01 + ****************************************************************************/ + +void test_nuttx_syscall_creat01(FAR void **state) +{ + char filename[50] = ""; + int fd; + int res; + struct tcase + { + int mode; + } + + tcases[] = + { + { + 0644 + }, + + { + 0444 + }, + }; + + sprintf(filename, "Creat01%d", gettid()); + + struct stat buf; + char c; + char w_buf[2] = "A"; + + for (int i = 0; i < 2; i++) + { + fd = creat(filename, tcases[0].mode); + if (fd > 0) + { + res = stat(filename, &buf); + assert_int_equal(res, 0); + assert_int_equal(buf.st_size, 0); + assert_int_equal(write(fd, w_buf, 1), 1); + assert_int_equal(read(fd, &c, 1), -1); + close(fd); + } + } + + res = unlink(filename); + assert_int_equal(res, 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_creat02 + ****************************************************************************/ + +void test_nuttx_syscall_creat02(FAR void **state) +{ + char filename[50] = ""; + int fd; + int res; + struct stat statbuf; + + sprintf(filename, "Creat02%d", gettid()); + + fd = creat(filename, 444); + if (fd > 0) + { + res = fstat(fd, &statbuf); + assert_int_equal(res, 0); + assert_int_equal((statbuf.st_mode & S_ISVTX), 0); + + close(fd); + res = unlink(filename); + assert_int_equal(res, 0); + } + else + { + fail_msg("open test file fail !\n"); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/dup2_test.c b/testing/testsuites/kernel/syscall/cases/dup2_test.c new file mode 100644 index 00000000000..7d6a605f80d --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/dup2_test.c @@ -0,0 +1,157 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/dup2_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_dup201 + ****************************************************************************/ + +void test_nuttx_syscall_dup201(FAR void **state) +{ +#ifndef CONFIG_FDSAN + int ret; + int goodfd = 5; + int badfd = -1; + int mystdout = 0; + + struct test_case_t + { + int *ofd; + int *nfd; + int error; + } + + TC[] = + { + /* First fd argument is less than 0 - EBADF */ + + { + NULL, NULL, EBADF + }, + + /* Second fd argument is less than 0 - EBADF */ + + { + NULL, NULL, EBADF + }, + }; + + TC[0].ofd = &badfd; + TC[0].nfd = &goodfd; + + TC[1].ofd = &mystdout; + TC[1].nfd = &badfd; + + for (int i = 0; i < 2; i++) + { + ret = dup2(*TC[i].ofd, *TC[i].nfd); + assert_int_equal(ret, -1); + assert_int_equal(errno, TC[i].error); + } + +#endif +} + +/**************************************************************************** + * Name: test_nuttx_syscall_dup202 + ****************************************************************************/ + +void test_nuttx_syscall_dup202(FAR void **state) +{ + char testfile[64] = ""; + int ret; + int i; + int ofd; + int duprdo = 10; + int dupwro = 20; + int duprdwr = 30; + struct stat oldbuf; + struct stat newbuf; + + struct test_case_t + { + int *nfd; + mode_t mode; + } + + TC[] = + { + { + NULL, (S_IRUSR | S_IRGRP | S_IROTH) + }, + + { + NULL, (S_IWUSR | S_IWGRP | S_IWOTH) + }, + + { + NULL, (S_IRUSR | S_IRGRP | S_IROTH | S_IWUSR | S_IWGRP | S_IWOTH) + }, + }; + + TC[0].nfd = &duprdo; + TC[1].nfd = &dupwro; + TC[2].nfd = &duprdwr; + + sprintf(testfile, "%s_file", __func__); + + for (i = 0; i < 3; i++) + { + ofd = creat(testfile, TC[i].mode); + assert_true(ofd > 0); + + ret = dup2(ofd, *TC[i].nfd); + assert_int_not_equal(ret, -1); + if (ret == -1) + { + continue; + } + + assert_int_equal(fstat(ofd, &oldbuf), 0); + assert_int_equal(fstat(*(TC[i].nfd), &newbuf), 0); + assert_int_equal(oldbuf.st_mode, newbuf.st_mode); + + close(*TC[i].nfd); + close(ofd); + close(ret); + + assert_int_equal(unlink(testfile), 0); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/dup_test.c b/testing/testsuites/kernel/syscall/cases/dup_test.c new file mode 100644 index 00000000000..03fec26e0d4 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/dup_test.c @@ -0,0 +1,244 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/dup_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_dup01 + ****************************************************************************/ + +void test_nuttx_syscall_dup01(FAR void **state) +{ + char filename[64]; + int fd = -1; + int ret; + + sprintf(filename, "%s_file", __func__); + + fd = open(filename, O_RDWR | O_CREAT, 0700); + if (fd < 0) + { + fail_msg("open test file fail !\n"); + } + + ret = dup(fd); + + assert_true(ret > 0); + if (fd > 0) + { + close(fd); + } + + if (ret > 0) + close(ret); + + assert_int_equal(unlink(filename), 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_dup02 + ****************************************************************************/ + +void test_nuttx_syscall_dup02(FAR void **state) +{ +#ifndef CONFIG_FDSAN + int fds[] = + { + -1, 1500 + }; + + int ret; + int nfds; + int ind; + + nfds = sizeof(fds) / sizeof(int); + + for (ind = 0; ind < nfds; ind++) + { + ret = dup(fds[ind]); + assert_int_equal(ret, -1); + if (ret == -1) + { + assert_int_equal(errno, EBADF); + } + } +#endif +} + +/**************************************************************************** + * Name: test_nuttx_syscall_dup03 + ****************************************************************************/ + +void test_nuttx_syscall_dup03(FAR void **state) +{ + int fd[2]; + int ret; + + fd[0] = -1; + pipe(fd); + + ret = dup(fd[0]); + assert_true(ret > 0); + if (ret > 0) + close(ret); + + ret = dup(fd[1]); + assert_true(ret > 0); + if (ret > 0) + close(ret); + + if (fd[0] > 0) + close(fd[0]); + if (fd[1] > 0) + close(fd[1]); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_dup04 + ****************************************************************************/ + +void test_nuttx_syscall_dup04(FAR void **state) +{ + char fname[64]; + int fd = -1; + int ret; + + sprintf(fname, "%s_file", __func__); + + fd = open(fname, O_RDWR | O_CREAT, 0700); + assert_true(fd > 0); + + ret = dup(fd); + assert_true(ret > 0); + + if (fd > 0) + { + close(fd); + } + + if (ret > 0) + close(ret); + + assert_int_equal(unlink(fname), 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_dup05 + ****************************************************************************/ + +void test_nuttx_syscall_dup05(FAR void **state) +{ + struct stat retbuf; + struct stat dupbuf; + int rdoret; + int wroret; + int rdwret; + int duprdo; + int dupwro; + int duprdwr; + char testfile[64] = ""; + + sprintf(testfile, "%s_file", __func__); + + rdoret = creat(testfile, 0444); + if (rdoret > 0) + { + duprdo = dup(rdoret); + if (duprdo > 0) + { + assert_int_equal(fstat(rdoret, &retbuf), 0); + assert_int_equal(fstat(duprdo, &dupbuf), 0); + assert_int_equal(retbuf.st_mode, dupbuf.st_mode); + + assert_int_equal(close(duprdo), 0); + assert_int_equal(close(rdoret), 0); + } + } + + else + { + fail_msg("create test fail fail !\n"); + } + + assert_int_equal(unlink(testfile), 0); + + wroret = creat(testfile, 0222); + if (wroret > 0) + { + dupwro = dup(wroret); + if (dupwro) + { + assert_int_equal(fstat(wroret, &retbuf), 0); + assert_int_equal(fstat(dupwro, &dupbuf), 0); + assert_int_equal(retbuf.st_mode, dupbuf.st_mode); + + assert_int_equal(close(dupwro), 0); + assert_int_equal(close(wroret), 0); + } + } + + else + { + fail_msg("create test fail fail !\n"); + } + + assert_int_equal(unlink(testfile), 0); + + rdwret = creat(testfile, 0666); + if (rdwret > 0) + { + duprdwr = dup(rdwret); + if (duprdwr > 0) + { + assert_int_equal(fstat(rdwret, &retbuf), 0); + assert_int_equal(fstat(duprdwr, &dupbuf), 0); + assert_int_equal(retbuf.st_mode, dupbuf.st_mode); + + assert_int_equal(close(duprdwr), 0); + assert_int_equal(close(rdwret), 0); + } + } + + else + { + fail_msg("create test fail fail !\n"); + } + + assert_int_equal(unlink(testfile), 0); +} diff --git a/testing/testsuites/kernel/syscall/cases/fcntl_test.c b/testing/testsuites/kernel/syscall/cases/fcntl_test.c new file mode 100644 index 00000000000..a2b97c489f9 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/fcntl_test.c @@ -0,0 +1,318 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/fcntl_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_fcntl01 + ****************************************************************************/ + +void test_nuttx_syscall_fcntl01(FAR void **state) +{ + int flags; + int is_pass = 0; + int ret; + char fname[40] = ""; + int fd[10]; + int fd2[10]; + + for (int i = 0; i < 8; i++) + { + sprintf(fname, "Fcntl01%d-%d", gettid(), i); + fd[i] = open(fname, O_WRONLY | O_CREAT, 0666); + if (fd[i] < 0) + { + syslog(LOG_ERR, "open test file fail !\n"); + is_pass = -1; + break; + } + + fd2[i] = fd[i]; + } + + assert_int_equal(is_pass, 0); + close(fd[2]); + close(fd[3]); + close(fd[4]); + close(fd[5]); + + assert_false((fd[2] = fcntl(fd[1], F_DUPFD, 1)) == -1); + + assert_false(fd[2] < fd2[2]); + + assert_false((fd[4] = fcntl(fd[1], F_DUPFD, fd2[3])) < 0); + + assert_false(fd[4] < fd2[3]); + + assert_false((fd[8] = fcntl(fd[1], F_DUPFD, fd2[5])) < 0); + + assert_false(fd[8] != fd2[5]); + + /* //block1: */ + + flags = fcntl(fd[2], F_GETFL, 0); + assert_false((flags & O_WRONLY) == 0); + + /* Check setting of no_delay flag */ + + assert_false(fcntl(fd[2], F_SETFL, O_NDELAY) == -1); + + flags = fcntl(fd[2], F_GETFL, 0); + assert_false((flags & (O_NDELAY | O_WRONLY)) == 0); + + /* Check of setting append flag */ + + assert_false(fcntl(fd[2], F_SETFL, O_APPEND) == -1); + + flags = fcntl(fd[2], F_GETFL, 0); + assert_false((flags & (O_APPEND | O_WRONLY)) == 0); + + /* Check setting flags together */ + + assert_false(fcntl(fd[2], F_SETFL, O_NDELAY | O_APPEND) < 0); + + flags = fcntl(fd[2], F_GETFL, 0); + assert_false((flags & (O_NDELAY | O_APPEND | O_WRONLY)) == 0); + + /* Check that flags are not cummulative */ + + assert_false(fcntl(fd[2], F_SETFL, 0) == -1); + + flags = fcntl(fd[2], F_GETFL, 0); + assert_false((flags & O_WRONLY) == 0); + assert_false((flags = fcntl(fd[2], F_GETFD, 0)) < 0); + assert_false(flags != 0); + assert_false((flags = fcntl(fd[2], F_SETFD, 1)) == -1); + assert_false((flags = fcntl(fd[2], F_GETFD, 0)) == -1); + assert_false(flags != 1); + + for (int j = 0; j < 10; j++) + close(fd[j]); + for (int k = 0; k < 8; k++) + { + sprintf(fname, "Fcntl01%d-%d", gettid(), k); + ret = unlink(fname); + if (ret != 0) + { + syslog(LOG_ERR, "unlink test file(%s) fail !\n", fname); + is_pass = -1; + } + } + + assert_int_equal(is_pass, 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_fcntl02 + ****************************************************************************/ + +void test_nuttx_syscall_fcntl02(FAR void **state) +{ + char fname[256] = ""; + int fd; + int min_fd; + int ret = 0; + int min_fds[] = + { + 0, 1, 2, 3, 10, 100 + }; + + sprintf(fname, "Fcntl02_%d", gettid()); + fd = open(fname, O_RDWR | O_CREAT, 0700); + assert_true(fd > 0); + + if (fd > 0) + { + min_fd = min_fds[0]; + ret = fcntl(fd, F_DUPFD, min_fd); + assert_true(ret > min_fd); + } + + if (ret > 0) + close(ret); + if (fd > 0) + close(fd); + ret = unlink(fname); + assert_int_equal(ret, 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_fcntl03 + ****************************************************************************/ + +void test_nuttx_syscall_fcntl03(FAR void **state) +{ + int fd; + int ret; + char fname[256] = ""; + sprintf(fname, "fcntl03_%d", gettid()); + fd = open(fname, O_RDWR | O_CREAT, 0700); + assert_true(fd > 0); + + ret = fcntl(fd, F_GETFD, 0); + assert_true(ret != -1); + + close(fd); + ret = unlink(fname); + assert_int_equal(ret, 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_fcntl04 + ****************************************************************************/ + +void test_nuttx_syscall_fcntl04(FAR void **state) +{ + int fd; + int ret; + char fname[256] = ""; + sprintf(fname, "fcntl04_%d", gettid()); + + fd = open(fname, O_RDWR | O_CREAT, 0700); + assert_true(fd > 0); + + ret = fcntl(fd, F_GETFL, 0); + assert_int_equal(ret & O_ACCMODE, O_RDWR); + + close(fd); + ret = unlink(fname); + assert_int_equal(ret, 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_fcntl05 + ****************************************************************************/ + +void test_nuttx_syscall_fcntl05(FAR void **state) +{ + int file_fd; + int fifo_fd; + int lc; + int ret; + int pipe_fds[2]; + char fname[256] = ""; + struct tcase + { + int *fd; + const char *msg; + } + + tcases[] = + { + { + NULL, "regular file" + }, + + { + NULL, "pipe (write end)" + }, + + { + NULL, "pipe (read end)" + }, + + { + NULL, "fifo" + }, + }; + + sprintf(fname, "fcntl05_%d", gettid()); + + file_fd = open(fname, O_CREAT | O_RDWR, 0666); + assert_true(file_fd > 0); + assert_int_equal(pipe(pipe_fds), 0); + unlink("/fcntl05_fifo"); + assert_int_equal(mkfifo("/fcntl05_fifo", 0777), 0); + + fifo_fd = open("/fcntl05_fifo", O_RDWR); + assert_true(fifo_fd > 0); + + tcases[0].fd = &file_fd; + tcases[1].fd = pipe_fds; + tcases[2].fd = pipe_fds + 1; + tcases[3].fd = &fifo_fd; + + for (lc = 0; lc < 1; lc++) + { + for (int i = 0; i < 4; i++) + { + ret = fcntl(*((tcases + i)->fd), F_SETFD, FD_CLOEXEC); + assert_int_equal(ret, 0); + } + } + + if (file_fd > 0) + assert_int_equal(close(file_fd), 0); + if (pipe_fds[0] > 0) + assert_int_equal(close(pipe_fds[0]), 0); + if (pipe_fds[1] > 0) + assert_int_equal(close(pipe_fds[1]), 0); + if (fifo_fd > 0) + assert_int_equal(close(fifo_fd), 0); + + assert_int_equal(unlink(fname), 0); + assert_int_equal(unlink("/fcntl05_fifo"), 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_fcntl06 + ****************************************************************************/ + +void test_nuttx_syscall_fcntl06(FAR void **state) +{ + int fd; + int ret; + int lc; + char fname[256] = ""; + + sprintf(fname, "fcntl06_%d", gettid()); + + fd = open(fname, O_RDWR | O_CREAT); + assert_true(fd > 0); + + for (lc = 0; lc < 10; lc++) + { + ret = fcntl(fd, F_SETFL, O_NDELAY | O_APPEND | O_NONBLOCK); + assert_true(ret != -1); + } + + assert_int_equal(close(fd), 0); + assert_int_equal(unlink(fname), 0); +} diff --git a/testing/testsuites/kernel/syscall/cases/fpathconf_test.c b/testing/testsuites/kernel/syscall/cases/fpathconf_test.c new file mode 100644 index 00000000000..03ea5b0a17d --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/fpathconf_test.c @@ -0,0 +1,103 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/fpathconf_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_fpathconf01 + ****************************************************************************/ + +void test_nuttx_syscall_fpathconf01(FAR void **state) +{ + int fd; + int i; + int ret; + char filename[64] = ""; + + struct pathconf_args + { + char name[16]; + int value; + } + + test_cases[] = + { + { + "_PC_MAX_CANON", _PC_MAX_CANON + }, + + { + "_PC_MAX_INPUT", _PC_MAX_INPUT + }, + + { + "_PC_LINK_MAX", _PC_LINK_MAX + }, + + { + "_PC_NAME_MAX", _PC_NAME_MAX + }, + + { + "_PC_PATH_MAX", _PC_PATH_MAX + }, + + { + "_PC_PIPE_BUF", _PC_PIPE_BUF + }, + }; + + /* setup */ + + sprintf(filename, "%s_file", __func__); + fd = open(filename, O_RDWR | O_CREAT, 0700); + assert_true(fd > 0); + + for (i = 0; i < 6; i++) + { + ret = fpathconf(fd, test_cases[i].value); + assert_int_not_equal(ret, -1); + } + + if (fd > 0) + { + assert_int_equal(close(fd), 0); + } + + assert_int_equal(unlink(filename), 0); +} diff --git a/testing/testsuites/kernel/syscall/cases/fsync_test.c b/testing/testsuites/kernel/syscall/cases/fsync_test.c new file mode 100644 index 00000000000..1d8cf4fa2ae --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/fsync_test.c @@ -0,0 +1,253 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/fsync_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_fsync01 + ****************************************************************************/ + +void test_nuttx_syscall_fsync01(FAR void **state) +{ + char fname[255]; + char buf[8] = "davef"; + int fd; + int ret; + ssize_t w_size; + + sprintf(fname, "Fsync01_%d", gettid()); + + /* creat a test file */ + + fd = open(fname, O_RDWR | O_CREAT, 0700); + assert_true(fd > 0); + + for (int i = 0; i < 10; i++) + { + /* write file */ + + w_size = write(fd, buf, sizeof(buf)); + assert_true(w_size != -1); + + /* do sync */ + + ret = fsync(fd); + assert_int_equal(ret, 0); + } + + assert_int_equal(close(fd), 0); + assert_int_equal(unlink(fname), 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_fsync02 + ****************************************************************************/ + +void test_nuttx_syscall_fsync02(FAR void **state) +{ + int fifo_rfd; + int fifo_wfd; + int pipe_fd[2]; +#ifndef CONFIG_FDSAN + int bad_fd = -1; +#endif + int ret; + int test_flag = 0; + + struct tcase + { + int *fd; + int error; + } + + tcases[] = + { + /* EINVAL - fsync() on pipe should not succeed. */ + + { + &pipe_fd[1], EINVAL + }, + + /* EBADF - fd is closed */ + + { + &pipe_fd[0], EBADF + }, + + /* EBADF - fd is invalid (-1) */ + + #ifndef CONFIG_FDSAN + { + &bad_fd, EBADF + }, + #endif + + /* EINVAL - fsync() on fifo should not succeed. */ + + { + &fifo_wfd, EINVAL + }, + }; + + ret = mkfifo("/var/Test_Fifo_SyscallFsync02", 0666); + assert_int_equal(ret, 0); + + ret = pipe(pipe_fd); + assert_int_not_equal(ret, -1); + + fifo_rfd = + open("/var/Test_Fifo_SyscallFsync02", O_RDONLY | O_NONBLOCK); + fifo_wfd = open("/var/Test_Fifo_SyscallFsync02", O_WRONLY); + + close(pipe_fd[0]); + + for (int i = 0; i < sizeof(tcases) / sizeof(tcases[0]); i++) + { + ret = fsync(*(tcases[i].fd)); + if (ret != -1) + { + syslog(LOG_ERR, "fsync() returned unexpected value %d", ret); + test_flag = -1; + } + else if (errno != tcases[i].error) + { + syslog(LOG_ERR, "fsync(): unexpected error. exp=%d errno=%d", + tcases[i].error, errno); + } + else + { + /* test PASS */ + + test_flag = 0; + } + } + + close(fifo_wfd); + close(fifo_rfd); + close(pipe_fd[1]); + unlink("/var/Test_Fifo_SyscallFsync02"); + + assert_int_equal(test_flag, 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_fsync03 + ****************************************************************************/ + +void test_nuttx_syscall_fsync03(FAR void **state) +{ + int fd; + int BLOCKSIZE = 8192; + unsigned long MAXBLKS = 65536; + int TIME_LIMIT = 120; + int BUF_SIZE = 2048; + char fname[255]; + struct statvfs stat_buf; + unsigned long f_bavail; + char pbuf[2048]; + + off_t max_blks = 65536; + + sprintf(fname, "Fsync03_%d", getpid()); + fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0777); + + if (fstatvfs(fd, &stat_buf) != 0) + { + syslog(LOG_ERR, "FAIL, fstatvfs failed\n"); + } + + f_bavail = (stat_buf.f_bavail * stat_buf.f_bsize) / BLOCKSIZE; + if (f_bavail && (f_bavail < MAXBLKS)) + { + max_blks = f_bavail; + } + + off_t offset; + int i; + int ret; + int max_block = 0; + int data_blocks = 0; + time_t time_start; + time_t time_end; + double time_delta; + long int random_number; + + random_number = rand(); + max_block = random_number % max_blks + 1; + data_blocks = random_number % max_block; + + for (i = 1; i <= data_blocks; i++) + { + offset = i * ((BLOCKSIZE * max_block) / data_blocks); + offset -= BUF_SIZE; + lseek(fd, offset, SEEK_SET); + write(fd, pbuf, BUF_SIZE); + } + + time_start = time(0); + + ret = fsync(fd); + + time_end = time(0); + assert_true(time_end != (time_t)-1); + assert_int_not_equal(ret, -1); + assert_int_equal(ret, 0); + assert_false(time_end < time_start); + assert_false((time_delta = difftime(time_end, time_start)) > + TIME_LIMIT); + + /* SAFE_FTRUNCATE(fd, 0); */ + + ret = ftruncate(fd, 0); + assert_int_equal(ret, 0); + + close(fd); + unlink(fname); +} diff --git a/testing/testsuites/kernel/syscall/cases/ftruncate_test.c b/testing/testsuites/kernel/syscall/cases/ftruncate_test.c new file mode 100644 index 00000000000..a08799ebf9b --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/ftruncate_test.c @@ -0,0 +1,126 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/ftruncate_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: checkandreportftruncatetest + ****************************************************************************/ + +static int checkandreportftruncatetest(int fd, off_t offset, char data, + off_t trunc_len) +{ + int i; + int file_length; + int ret; + char buf[1024]; + struct stat stat_buf; + off_t ret_offset; + ssize_t rval; + + memset(buf, '*', sizeof(buf)); + ret = fstat(fd, &stat_buf); + assert_int_equal(ret, 0); + file_length = stat_buf.st_size; + if (file_length != trunc_len) + { + syslog(LOG_ERR, "FAIL, ftruncate() got incorrected size: %d\n", + file_length); + return -1; + } + + ret_offset = lseek(fd, offset, SEEK_SET); + assert_int_in_range(ret_offset, 0, offset); + rval = read(fd, buf, sizeof(buf)); + assert_int_in_range(rval, 0, 1024); + + for (i = 0; i < 256; i++) + { + if (buf[i] != data) + { + syslog( + LOG_ERR, + "FAIL, ftruncate() got incorrect data %d, expected %d\n", + buf[i], data); + return -1; + } + } + + return 0; +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_ftruncate01 + ****************************************************************************/ + +void test_nuttx_syscall_ftruncate01(FAR void **state) +{ + int fd; + int ret; + char fname[256] = ""; + + sprintf(fname, "Ftruncate01_%d", gettid()); + + assert_int_equal(cmtestfillfile(fname, 'a', 1024, 1), 0); + + fd = open(fname, O_RDWR); + + /* ftruncate to 256 */ + + ret = ftruncate(fd, 256); + assert_int_equal(ret, 0); + + ret = checkandreportftruncatetest(fd, 0, 'a', 256); + assert_int_equal(ret, 0); + + ret = ftruncate(fd, 512); + assert_int_equal(ret, 0); + + ret = checkandreportftruncatetest(fd, 256, 0, 512); + assert_int_equal(ret, 0); + + assert_int_equal(close(fd), 0); + assert_int_equal(unlink(fname), 0); +} diff --git a/testing/testsuites/kernel/syscall/cases/getTimeofday_test.c b/testing/testsuites/kernel/syscall/cases/getTimeofday_test.c new file mode 100644 index 00000000000..992edeba097 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/getTimeofday_test.c @@ -0,0 +1,94 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/getTimeofday_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Private Data + ****************************************************************************/ + +static int done; + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: breakout + ****************************************************************************/ + +static void breakout(int sig) +{ + done = sig; +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_gettimeofday01 + ****************************************************************************/ + +void test_nuttx_syscall_gettimeofday01(FAR void **state) +{ + int rtime = 3; + struct timeval tv1; + struct timeval tv2; + unsigned long long cnt = 0; + + signal(SIGALRM, breakout); + + done = 0; + + alarm(rtime); + + if (gettimeofday(&tv1, NULL)) + fail_msg("FAIL, gettimeofday() failed\n"); + + while (!done) + { + if (gettimeofday(&tv2, NULL)) + fail_msg("FAIL, gettimeofday() failed\n"); + + if (tv2.tv_sec < tv1.tv_sec || + (tv2.tv_sec == tv1.tv_sec && tv2.tv_usec < tv1.tv_usec)) + { + fail_msg("test fail !"); + } + + sleep(1); + tv1 = tv2; + cnt++; + } +} diff --git a/testing/testsuites/kernel/syscall/cases/getcwd_test.c b/testing/testsuites/kernel/syscall/cases/getcwd_test.c new file mode 100644 index 00000000000..49153b45e36 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/getcwd_test.c @@ -0,0 +1,133 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/getcwd_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_getcwd01 + ****************************************************************************/ + +void test_nuttx_syscall_getcwd01(FAR void **state) +{ + char buffer[5] = "/"; + char *res; + int ret; + struct t_case + { + char *buf; + size_t size; + int exp_err; + } + + tcases[] = + { + { + buffer, 0, EINVAL + }, + + { + buffer, 1, ERANGE + }, + + { + NULL, 1, ERANGE + }, + }; + + for (int i = 0; i < 3; i++) + { + errno = 0; + res = getcwd(tcases[i].buf, tcases[i].size); + assert_null(res); + ret = errno; + assert_int_equal(ret, tcases[i].exp_err); + } +} + +/**************************************************************************** + * Name: test_nuttx_syscall_getcwd02 + ****************************************************************************/ + +void test_nuttx_syscall_getcwd02(FAR void **state) +{ + char *datadir = MOUNT_DIR; + char exp_buf[PATH_MAX] = ""; + char buffer[PATH_MAX] = ""; + char *res = NULL; + + struct t_case + { + char *buf; + size_t size; + } + + tcases[] = + { + { + NULL, 0 + }, + + { + NULL, 0 + }, + + { + NULL, PATH_MAX + }, + }; + + tcases[0].buf = buffer; + tcases[0].size = sizeof(buffer); + + assert_int_equal(chdir(datadir), 0); + assert_non_null(realpath(datadir, exp_buf)); + + for (int i = 0; i < 3; i++) + { + errno = 0; + res = getcwd(tcases[i].buf, tcases[i].size); + + assert_non_null(res); + assert_string_equal(exp_buf, res); + + if (!tcases[i].buf) + free(res); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/getegid_test.c b/testing/testsuites/kernel/syscall/cases/getegid_test.c new file mode 100644 index 00000000000..f8f1edb2fc8 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/getegid_test.c @@ -0,0 +1,73 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/getegid_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_getegid01 + ****************************************************************************/ + +void test_nuttx_syscall_getegid01(FAR void **state) +{ + int ret; + for (int lc = 0; lc < 5; lc++) + { + ret = getegid(); + assert_int_not_equal(ret, -1); + } +} + +/**************************************************************************** + * Name: test_nuttx_syscall_getegid02 + ****************************************************************************/ + +void test_nuttx_syscall_getegid02(FAR void **state) +{ + int lc; + int ret; + uid_t euid; + struct passwd *pwent; + + for (lc = 0; lc < 5; lc++) + { + ret = getegid(); + euid = geteuid(); + pwent = getpwuid(euid); + assert_non_null(pwent); + assert_int_equal(pwent->pw_gid, ret); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/geteuid_test.c b/testing/testsuites/kernel/syscall/cases/geteuid_test.c new file mode 100644 index 00000000000..4a561db34ac --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/geteuid_test.c @@ -0,0 +1,74 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/geteuid_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_geteuid01 + ****************************************************************************/ + +void test_nuttx_syscall_geteuid01(FAR void **state) +{ + int ret; + for (int lc = 0; lc < 5; lc++) + { + ret = geteuid(); + assert_int_not_equal(ret, -1); + } +} + +/**************************************************************************** + * Name: test_nuttx_syscall_geteuid02 + ****************************************************************************/ + +void test_nuttx_syscall_geteuid02(FAR void **state) +{ + int lc; + int ret; + uid_t euid; + struct passwd *pwent; + + for (lc = 0; lc < 5; lc++) + { + ret = getegid(); + assert_true(ret > 0); + euid = geteuid(); + pwent = getpwuid(euid); + assert_non_null(pwent); + assert_int_equal(pwent->pw_gid, ret); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/getgid_test.c b/testing/testsuites/kernel/syscall/cases/getgid_test.c new file mode 100644 index 00000000000..7fafa385495 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/getgid_test.c @@ -0,0 +1,74 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/getgid_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_getgid01 + ****************************************************************************/ + +void test_nuttx_syscall_getgid01(FAR void **state) +{ + int lc; + int ret; + for (lc = 0; lc < 5; lc++) + { + ret = getgid(); + assert_int_not_equal(ret, -1); + } +} + +/**************************************************************************** + * Name: test_nuttx_syscall_getgid02 + ****************************************************************************/ + +void test_nuttx_syscall_getgid02(FAR void **state) +{ + int lc; + int ret; + uid_t uid; + struct passwd *pwent; + + for (lc = 0; lc < 5; lc++) + { + ret = getgid(); + uid = getuid(); + pwent = getpwuid(uid); + assert_non_null(pwent); + assert_int_equal(pwent->pw_gid, ret); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/gethostname_test.c b/testing/testsuites/kernel/syscall/cases/gethostname_test.c new file mode 100644 index 00000000000..4b729c629b1 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/gethostname_test.c @@ -0,0 +1,53 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/gethostname_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_gethostname01 + ****************************************************************************/ + +void test_nuttx_syscall_gethostname01(FAR void **state) +{ + int lc; + int ret; + char hname[100]; /* host name */ + + for (lc = 0; lc < 10; lc++) + { + ret = gethostname(hname, sizeof(hname)); + assert_int_equal(ret, 0); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/getitimer_test.c b/testing/testsuites/kernel/syscall/cases/getitimer_test.c new file mode 100644 index 00000000000..1b43cbcfc5d --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/getitimer_test.c @@ -0,0 +1,139 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/getitimer_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +#define ITIMER_REAL 0 +#define ITIMER_VIRTUAL 1 +#define ITIMER_PROF 2 +#define CLOCK_MONOTONIC_COARSE 6 +#define SEC 100 +#define USEC 10000 +struct timeval tv; +struct itimerval value; +struct timespec time_res; +long jiffy; + +/**************************************************************************** + * Name: TestNuttxAccept01 + ****************************************************************************/ + +void set_settitimer_value(int sec, int usec) +{ + value.it_value.tv_sec = sec; + value.it_value.tv_usec = usec; + value.it_interval.tv_sec = sec; + value.it_interval.tv_usec = usec; +} + +void test_nuttx_syscall_veritygetitimer(int which, char *dec) +{ + if (which == ITIMER_REAL) + { + assert_int_not_equal(gettimeofday(&tv, NULL), -1); + } + + int ret = getitimer(which, &value); + assert_int_equal(ret, 0); + assert_int_equal(value.it_value.tv_sec, 0); + assert_int_equal(value.it_value.tv_usec, 0); + assert_int_equal(value.it_interval.tv_sec, 0); + assert_int_equal(value.it_interval.tv_usec, 0); + set_settitimer_value(SEC, USEC); + int ret2 = setitimer(which, &value, NULL); + assert_int_equal(ret2, 0); + set_settitimer_value(0, 0); + int ret3 = getitimer(which, &value); + assert_int_equal(ret3, 0); + + assert_int_equal(value.it_interval.tv_sec, SEC); + assert_int_equal(value.it_interval.tv_usec, USEC); + + /* syslog(LOG_INFO,"value.it_value.tv_sec=%lld, + * value.it_value.tv_usec=%ld", value.it_value.tv_sec, + * value.it_value.tv_usec); + */ + + long margin = (which == ITIMER_REAL) ? (2 * USEC_PER_TICK) : jiffy; + if (value.it_value.tv_sec == SEC) + { + assert_in_range(value.it_value.tv_usec, 0, USEC + margin); + } + + else + { + assert_in_range(value.it_value.tv_sec, 0, SEC); + } + + /* syslog(LOG_INFO,"timer value is within the expected range"); */ + + if (which == ITIMER_REAL) + { + assert_int_not_equal(gettimeofday(&tv, NULL), -1); + } + + set_settitimer_value(0, 0); + int ret4 = setitimer(which, &value, NULL); + assert_int_equal(ret4, 0); +} + +void test_nuttx_syscall_getitimer01(FAR void **state) +{ + struct tcase + { + int which; + char *des; + } + + tcases[] = + { + { + ITIMER_REAL, "ITIMER_REAL" + }, + + /* {ITIMER_VIRTUAL, "ITIMER_VIRTUAL"}, + * {ITIMER_PROF, "ITIMER_PROF"}, + */ + }; + + clock_getres(CLOCK_MONOTONIC_COARSE, &time_res); + jiffy = (time_res.tv_nsec + 999) / 1000; + + test_nuttx_syscall_veritygetitimer(tcases[0].which, tcases[0].des); +} diff --git a/testing/testsuites/kernel/syscall/cases/getpeername_test.c b/testing/testsuites/kernel/syscall/cases/getpeername_test.c new file mode 100644 index 00000000000..be725e13854 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/getpeername_test.c @@ -0,0 +1,197 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/getpeername_test.c + * + * 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 + ****************************************************************************/ +#ifndef UCLINUX +#define UCLINUX + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +__attribute__((unused)) static struct sockaddr_in server_addr; +__attribute__((unused)) static struct sockaddr_in fsin1; +__attribute__((unused)) static socklen_t sinlen; + +/* static socklen_t invalid_sinlen = -1; */ + +__attribute__((unused)) static void setup(void); +__attribute__((unused)) static void setup2(int); +__attribute__((unused)) static void setup3(int); + +/* static void setup4(int); */ + +__attribute__((unused)) static void cleanup2(int); + +/* static void cleanup4(int); */ + +__attribute__((unused)) static struct test_case_t +{ + int sockfd; + struct sockaddr *sockaddr; + socklen_t *addrlen; + int expretval; + int experrno; + void (*setup)(int); + void (*cleanup)(int); + char *name; +} + +test_cases[] = +{ + { + -1, (struct sockaddr *)&fsin1, &sinlen, -1, EBADF, NULL, NULL, + "EBADF" + }, + + { + -1, (struct sockaddr *)&fsin1, &sinlen, -1, ENOTSOCK, setup2, + cleanup2, "ENOTSOCK" + }, + + { + -1, (struct sockaddr *)&fsin1, &sinlen, -1, ENOTCONN, setup3, + cleanup2, "ENOTCONN" + }, + + /* { + * -1, (struct sockaddr *)&fsin1, &invalid_sinlen, -1, EINVAL, setup4, + * cleanup4, "EINVAL" + * }, + */ +#if 0 +#ifndef UCLINUX + { + -1, (struct sockaddr *)-1, &sinlen, -1, EFAULT, setup4, cleanup4, + "EFAULT" + }, + + { + -1, (struct sockaddr *)&fsin1, NULL, -1, EFAULT, setup4, + cleanup4, "EFAULT" + }, + + { + -1, (struct sockaddr *)&fsin1, (socklen_t *)1, -1, EFAULT, setup4, + cleanup4, "EFAULT" + }, +#endif +#endif +}; + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_getpeername01 + ****************************************************************************/ + +void test_nuttx_syscall_getpeername01(FAR void **state) +{ +#ifdef CONFIG_NET_TCP + int total = sizeof(test_cases) / sizeof(test_cases[0]); + int ret; + setup(); + for (int i = 0; i < total; ++i) + { + if (test_cases[i].setup != NULL) + test_cases[i].setup(i); + + assert_false(test_cases[i].setup != NULL && + test_cases[i].sockfd <= 0); + ret = getpeername(test_cases[i].sockfd, test_cases[i].sockaddr, + test_cases[i].addrlen); + + assert_false(ret != test_cases[i].expretval || + errno != test_cases[i].experrno); + if (test_cases[i].cleanup != NULL) + test_cases[i].cleanup(i); + } +#endif +} + +__attribute__((unused)) static void setup(void) +{ + server_addr.sin_family = AF_INET; + server_addr.sin_port = 0; + server_addr.sin_addr.s_addr = INADDR_ANY; + sinlen = sizeof(fsin1); +} + +__attribute__((unused)) static void setup2(int i) +{ + int ret; + ret = open("/dev/null", O_WRONLY, 0666); + assert_true(ret >= 0); + test_cases[i].sockfd = ret; +} + +__attribute__((unused)) static void setup3(int i) +{ + test_cases[i].sockfd = socket(PF_INET, SOCK_STREAM, 0); + if (test_cases[i].sockfd < 0) + { + return; + } + + if (safe_bind(test_cases[i].sockfd, (struct sockaddr *)&server_addr, + sizeof(server_addr)) < 0) + { + fail_msg("test fail !"); + } +} + +/* static void setup4(int i) + * { + * if (socketpair(PF_UNIX, SOCK_STREAM, 0, sv) < 0) + * { + * syslog(LOG_ERR, "socketpair failed for getpeername test %d", + * i); faiL_msg("test fail !"); return; + * } + * test_cases[i].sockfd = sv[0]; + * } + */ + +__attribute__((unused)) static void cleanup2(int i) +{ + if (safe_close(test_cases[i].sockfd) < 0) + { + fail_msg("test fail !"); + } +} + +#undef UCLINUX +#endif diff --git a/testing/testsuites/kernel/syscall/cases/getpid_test.c b/testing/testsuites/kernel/syscall/cases/getpid_test.c new file mode 100644 index 00000000000..3dc5915c1de --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/getpid_test.c @@ -0,0 +1,56 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/getpid_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_getpid01 + ****************************************************************************/ + +void test_nuttx_syscall_getpid01(FAR void **state) +{ + int lc; + int ret; + + for (lc = 0; lc < 5; lc++) + { + ret = getpid(); + assert_true(ret > 0); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/getppid_test.c b/testing/testsuites/kernel/syscall/cases/getppid_test.c new file mode 100644 index 00000000000..1f8a91cdaa8 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/getppid_test.c @@ -0,0 +1,56 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/getppid_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_getppid01 + ****************************************************************************/ + +void test_nuttx_syscall_getppid01(FAR void **state) +{ + int lc; + int ret; + + for (lc = 0; lc < 5; lc++) + { + ret = getppid(); + assert_true(ret > 0); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/getsocketopt_test.c b/testing/testsuites/kernel/syscall/cases/getsocketopt_test.c new file mode 100644 index 00000000000..4674e61d3f4 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/getsocketopt_test.c @@ -0,0 +1,214 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/getsocketopt_test.c + * + * 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 + ****************************************************************************/ + +#ifndef UCLINUX +#define UCLINUX +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +__attribute__((unused)) static int testno; +__attribute__((unused)) static int s; /* socket descriptor */ +__attribute__((unused)) static struct sockaddr_in sin0, fsin1; +__attribute__((unused)) static int sinlen; +__attribute__((unused)) static int optval; +__attribute__((unused)) static socklen_t optlen; + +__attribute__((unused)) static void setup(void); +__attribute__((unused)) static void setup0(void); +__attribute__((unused)) static void setup1(void); +__attribute__((unused)) static void cleanup0(void); +__attribute__((unused)) static void cleanup1(void); + +__attribute__((unused)) static struct test_case_t +{ + int domain; /* PF_INET, PF_UNIX, ... */ + int type; /* SOCK_STREAM, SOCK_DGRAM ... */ + int proto; /* protocol number (usually 0 = default) */ + int level; /* IPPROTO_* */ + int optname; + void *optval; + socklen_t *optlen; + struct sockaddr *sin; + int salen; + int retval; /* syscall return value */ + int experrno; /* expected errno */ + void (*setup)(void); + void (*cleanup)(void); + char *desc; +} + +tdat[] = +{ + { + PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, &optlen, + (struct sockaddr *)&fsin1, sizeof(fsin1), -1, EBADF, setup0, + cleanup0, "bad file descriptor" + }, + + { + PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, &optlen, + (struct sockaddr *)&fsin1, sizeof(fsin1), -1, ENOTSOCK, setup0, + cleanup0, "bad file descriptor" + }, +#ifndef UCLINUX + { + PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, 0, &optlen, + (struct sockaddr *)&fsin1, sizeof(fsin1), -1, EFAULT, setup1, + cleanup1, "invalid option buffer" + }, + + { + PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 0, + (struct sockaddr *)&fsin1, sizeof(fsin1), -1, EFAULT, setup1, + cleanup1, "invalid optlen" + }, +#endif /* UCLINUX */ + /* {PF_INET, SOCK_STREAM, 0, 500, SO_OOBINLINE, &optval, &optlen, + * (struct sockaddr *)&fsin1, sizeof(fsin1), -1, + * EOPNOTSUPP, setup1, cleanup1, "invalid level"}, + * {PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval, + * &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1), + * -1, EOPNOTSUPP, setup1, cleanup1, "invalid option name"}, + * {PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval, + * &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1), + * -1, EOPNOTSUPP, setup1, cleanup1, + * "invalid option name (UDP)"}, + */ + + { + PF_INET, SOCK_STREAM, 0, IPPROTO_IP, -1, &optval, &optlen, + (struct sockaddr *)&fsin1, sizeof(fsin1), -1, ENOPROTOOPT, setup1, + cleanup1, "invalid option name (IP)" + }, + + { + PF_INET, SOCK_STREAM, 0, IPPROTO_TCP, -1, &optval, &optlen, + (struct sockaddr *)&fsin1, sizeof(fsin1), -1, ENOPROTOOPT, setup1, + cleanup1, "invalid option name (TCP)" + }, +}; + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_getsockopt01 + ****************************************************************************/ + +void test_nuttx_syscall_getsockopt01(FAR void **state) +{ +#if defined(CONFIG_NET) && defined(CONFIG_NET_SOCKOPTS) + int ret; + int flag = 1; + setup(); + for (testno = 0; testno < sizeof(tdat) / sizeof(tdat[0]); ++testno) + { + tdat[testno].setup(); + if (s < 0) + continue; + ret = getsockopt(s, tdat[testno].level, tdat[testno].optname, + tdat[testno].optval, tdat[testno].optlen); + if (ret != tdat[testno].retval || errno != tdat[testno].experrno) + { + syslog(LOG_ERR, + "%s ; returned" + " %d (expected %d), errno %d (expected" + " %d)\n", + tdat[testno].desc, ret, tdat[testno].retval, errno, + tdat[testno].experrno); + flag = 0; + } + + tdat[testno].cleanup(); + } + + assert_true(flag); +#endif +} + +__attribute__((unused)) static void setup(void) +{ + /* initialize local sockaddr */ + + sin0.sin_family = AF_INET; + sin0.sin_port = 0; + sin0.sin_addr.s_addr = INADDR_ANY; +} + +__attribute__((unused)) static void setup0(void) +{ + if (tdat[testno].experrno == EBADF) + s = -400; /* anything not an open file */ + else if ((s = open("/dev/null", O_WRONLY)) == -1) + { + syslog(LOG_ERR, + "error opening /dev/null - " + "errno: %s", + strerror(errno)); + fail_msg("test fail !"); + } +} + +__attribute__((unused)) static void cleanup0(void) +{ + if (tdat[testno].experrno != EBADF && s > 0) + (void)close(s); + s = -1; +} + +__attribute__((unused)) static void setup1(void) +{ + s = safe_socket(tdat[testno].domain, tdat[testno].type, + tdat[testno].proto); + if (s < 0) + fail_msg("setup1 fail"); + int ret = safe_bind(s, (struct sockaddr *)&sin0, sizeof(sin0)); + assert_int_not_equal(ret, -1); + sinlen = sizeof(fsin1); + optlen = sizeof(optval); +} + +__attribute__((unused)) static void cleanup1(void) +{ + (void)close(s); + s = -1; +} + +#undef UCLINUX +#endif diff --git a/testing/testsuites/kernel/syscall/cases/getuid_test.c b/testing/testsuites/kernel/syscall/cases/getuid_test.c new file mode 100644 index 00000000000..c2ffc1921a0 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/getuid_test.c @@ -0,0 +1,74 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/getuid_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_getuid01 + ****************************************************************************/ + +void test_nuttx_syscall_getuid01(FAR void **state) +{ + int ret; + for (int lc = 0; lc < 5; lc++) + { + ret = getuid(); + assert_int_not_equal(ret, -1); + } +} + +/**************************************************************************** + * Name: test_nuttx_syscall_getuid02 + ****************************************************************************/ + +void test_nuttx_syscall_getuid02(FAR void **state) +{ + int lc; + int ret; + uid_t uid; + struct passwd *pwent; + + for (lc = 0; lc < 5; lc++) + { + ret = getuid(); + assert_true(ret > 0); + uid = getuid(); + pwent = getpwuid(uid); + assert_non_null(pwent); + assert_int_equal(pwent->pw_uid, ret); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/listen_test.c b/testing/testsuites/kernel/syscall/cases/listen_test.c new file mode 100644 index 00000000000..a533b523ade --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/listen_test.c @@ -0,0 +1,145 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/listen_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_listen01 + ****************************************************************************/ + +void test_nuttx_syscall_listen01(FAR void **state) +{ +#ifdef CONFIG_NET_TCP + int testno; + int flag = 1; + int s; /* socket descriptor */ + struct test_case_t + { /* test case structure */ + int domain; /* PF_INET, PF_UNIX, ... */ + int type; /* SOCK_STREAM, SOCK_DGRAM ... */ + int proto; /* protocol number (usually 0 = default) */ + int backlog; /* connect's 3rd argument */ + int retval; /* syscall return value */ + int experrno; /* expected errno */ + const char setup[10]; + const char cleanup[10]; + char desc[20]; + } + + tdat[] = + { + { + 0, 0, 0, 0, -1, EBADF, "setup0", "cleanup0", + "bad file descriptor" + }, + + { + 0, 0, 0, 0, -1, ENOTSOCK, "setup0", "cleanup0", "not a socket" + }, + + { + PF_INET, SOCK_DGRAM, 0, 0, -1, EOPNOTSUPP, "setup1", "cleanup1", + "UDP listen" + }, + }; + + const char set[] = "setup0"; + const char clean[] = "cleanup0"; + + for (testno = 0; testno < sizeof(tdat) / sizeof(tdat[0]); ++testno) + { + /* setup0(void) */ + + if (!strcmp(tdat[testno].setup, set)) + { + if (tdat[testno].experrno == EBADF) + s = -400; /* anything not an open file */ + else if ((s = open("/dev/null", O_WRONLY)) == -1) + syslog(LOG_ERR, "error opening /dev/null - errno: %s\n", + strerror(errno)); + } + + else + { + /* setup1(void) */ + + s = safe_socket(tdat[testno].domain, tdat[testno].type, + tdat[testno].proto); + } + + int rec = safe_listen(s, tdat[testno].backlog); + + if (rec != tdat[testno].retval || + (rec < 0 && errno != tdat[testno].experrno)) + { + syslog(LOG_ERR, + "%s ; returned" + " %d (expected %d), errno %d (expected" + " %d)\n", + tdat[testno].desc, rec, tdat[testno].retval, errno, + tdat[testno].experrno); + flag = 0; + } + + else + { + syslog(LOG_INFO, "%s successful\n", tdat[testno].desc); + } + + if (!strcmp(tdat[testno].cleanup, clean)) + { + /* cleanup0(void) */ + + s = -1; + } + + else + { + /* cleanup1(void) */ + + (void)close(s); + s = -1; + } + } + + assert_true(flag); +#endif +} diff --git a/testing/testsuites/kernel/syscall/cases/lseek_test.c b/testing/testsuites/kernel/syscall/cases/lseek_test.c new file mode 100644 index 00000000000..5116d7126ca --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/lseek_test.c @@ -0,0 +1,230 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/lseek_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_lseek01 + ****************************************************************************/ + +void test_nuttx_syscall_lseek01(FAR void **state) +{ + int fd; + char filename[32] = + { + 0 + }; + + ssize_t rval; + char read_buf[64] = + { + 0 + }; + + off_t test_ret; + struct tcase + { + off_t off; + int whence; + char wname[64]; + off_t exp_off; + ssize_t exp_size; + char *exp_data; + } + + tcases[] = + { + { + 4, SEEK_SET, "SEEK_SET", 4, 3, "efg" + }, + + { + -2, SEEK_CUR, "SEEK_CUR", 5, 2, "fg" + }, + + { + -4, SEEK_END, "SEEK_END", 3, 4, "defg" + }, + + { + 0, SEEK_END, "SEEK_END", 7, 0, NULL + }, + }; + + snprintf(filename, sizeof(filename), "%s_file", __func__); + + fd = open(filename, O_RDWR | O_CREAT); + + if (fd > 0) + { + rval = write(fd, "abcdefg", 7); + assert_int_in_range(rval, 0, 7); + } + + else + { + fail_msg("creat test file fail !\n"); + } + + for (int i = 0; i < 4; i++) + { + /* reset the offset to end of file */ + + rval = read(fd, read_buf, sizeof(read_buf)); + assert_int_in_range(rval, 0, 64); + memset(read_buf, 0, sizeof(read_buf)); + test_ret = lseek(fd, tcases[i].off, tcases[i].whence); + if (test_ret == (off_t)-1) + { + syslog(LOG_ERR, "lseek() failed"); + fail_msg("test fail !\n"); + } + + if (test_ret != tcases[i].exp_off) + { + syslog(LOG_ERR, "lseek() returned not expected\n"); + fail_msg("test fail !\n"); + } + + rval = read(fd, read_buf, tcases[i].exp_size); + assert_int_in_range(rval, 0, 64); + + if (tcases[i].exp_data && strcmp(read_buf, tcases[i].exp_data)) + { + syslog(LOG_ERR, "lseek() read incorrect data\n"); + fail_msg("test fail !\n"); + } + } + + if (fd > 0) + { + close(fd); + } + + unlink(filename); +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_lseek07 + ****************************************************************************/ + +void test_nuttx_syscall_lseek07(FAR void **state) +{ + int fd1; + int fd2; + int flag = 1; + int ret; + char read_buf[64] = + { + 0 + }; + + struct tcase + { + int *fd; + char fname[32]; + off_t off; + off_t exp_off; + int exp_size; + char exp_data[16]; + } + + tcases[] = + { + { + NULL, "", 7, 7, 10, "abcdefgijk" + }, + + { + NULL, "", 2, 2, 7, "abijkfg" + }, + }; + + tcases[0].fd = &fd1; + tcases[1].fd = &fd2; + snprintf(tcases[0].fname, sizeof(tcases[0].fname), "%s_file", + __func__); + snprintf(tcases[1].fname, sizeof(tcases[1].fname), "%s_file", + __func__); + + fd1 = open(tcases[0].fname, O_RDWR | O_CREAT, 0644); + fd2 = open(tcases[1].fname, O_RDWR | O_CREAT, 0644); + + write(fd1, "abcdefg", sizeof("abcdefg") - 1); + write(fd2, "abcdefg", sizeof("abcdefg") - 1); + + for (int i = 0; i < 2; i++) + { + memset(read_buf, 0, sizeof(read_buf)); + + ret = lseek(*(tcases[i].fd), tcases[i].off, SEEK_SET); + if (ret == (off_t)-1) + flag = 0; + + if (ret != tcases[i].exp_off) + flag = 0; + + write(*(tcases[i].fd), "ijk", sizeof("ijk") - 1); + + close(*(tcases[i].fd)); + + *(tcases[i].fd) = open(tcases[i].fname, O_RDWR); + + read(*(tcases[i].fd), read_buf, tcases[i].exp_size); + + if (strcmp(read_buf, tcases[i].exp_data)) + { + flag = 0; + syslog(LOG_ERR, "FAIL, lseek() wrote incorrect data\n"); + } + } + + if (fd1 > 0) + close(fd1); + + if (fd2 > 0) + close(fd2); + unlink(tcases[0].fname); + unlink(tcases[1].fname); + assert_true(flag); +} diff --git a/testing/testsuites/kernel/syscall/cases/lstat_test.c b/testing/testsuites/kernel/syscall/cases/lstat_test.c new file mode 100644 index 00000000000..af25f6a0620 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/lstat_test.c @@ -0,0 +1,80 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/lstat_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_lstat01 + ****************************************************************************/ + +void test_nuttx_syscall_lstat01(FAR void **state) +{ + uid_t user_id; + gid_t group_id; + struct stat stat_buf; + int ret; + + char filename[64] = ""; + char symlink_path[64] = "/Lstat01_tst_syml"; + + sprintf(filename, "%s_file", __func__); + user_id = getuid(); + group_id = getgid(); + + ret = open(filename, O_CREAT | O_WRONLY, 0644); + assert_true(ret > 0); + + ret = close(ret); + assert_int_equal(ret, 0); + + ret = symlink(filename, symlink_path); + assert_int_equal(ret, 0); + + memset(&stat_buf, 0, sizeof(stat_buf)); + + ret = lstat(symlink_path, &stat_buf); + assert_int_equal(ret, 0); + + assert_true(stat_buf.st_gid == group_id); + assert_true(stat_buf.st_uid == user_id); + assert_true((stat_buf.st_mode & S_IFMT) == S_IFLNK); + assert_int_equal(unlink(symlink_path), 0); + assert_int_equal(unlink(filename), 0); +} diff --git a/testing/testsuites/kernel/syscall/cases/memcmp_test.c b/testing/testsuites/kernel/syscall/cases/memcmp_test.c new file mode 100644 index 00000000000..65394738be1 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/memcmp_test.c @@ -0,0 +1,130 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/memcmp_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ +#define BSIZE 4096 +#define LEN 100 + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: TestNuttxSyscallFill + ****************************************************************************/ + +static void test_nuttx_syscall_lfill(char *str, int len) +{ + int i; + for (i = 0; i < len; i++) + *str++ = 'a'; +} + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_setup + ****************************************************************************/ + +static void test_nuttx_syscall_setup(char *buf) +{ + int i; + for (i = 0; i < BSIZE; i++) + buf[i] = 0; + return; +} + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_verifymemcmp + ****************************************************************************/ + +static void test_nuttx_syscall_verifymemcmp(char *p, char *q, int len) +{ + test_nuttx_syscall_lfill(p, len); + test_nuttx_syscall_lfill(q, len); + + assert_int_equal(memcmp(p, q, len), 0); + + p[len - 1] = 0; + assert_true(memcmp(p, q, len) < 0); + + p[len - 1] = 'a'; + p[0] = 0; + assert_true(memcmp(p, q, len) < 0); + + p[0] = 'a'; + q[len - 1] = 0; + assert_true(memcmp(p, q, len) > 0); + + q[len - 1] = 'a'; + q[0] = 0; + assert_true(memcmp(p, q, len) > 0); + + q[0] = 'a'; + assert_int_equal(memcmp(p, q, len), 0); +} + +/**************************************************************************** + * Pubilc Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_memcmptest01 + ****************************************************************************/ + +void test_nuttx_syscall_memcmptest01(FAR void **state) +{ + char *buf = NULL; + buf = malloc(BSIZE); + assert_non_null(buf); + test_nuttx_syscall_setup(buf); + + test_nuttx_syscall_verifymemcmp(&buf[100], &buf[800], LEN); + test_nuttx_syscall_verifymemcmp(&buf[800], &buf[100], LEN); + + free(buf); +} diff --git a/testing/testsuites/kernel/syscall/cases/memcpy_test.c b/testing/testsuites/kernel/syscall/cases/memcpy_test.c new file mode 100644 index 00000000000..0628b4a0e6a --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/memcpy_test.c @@ -0,0 +1,135 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/memcpy_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ +#define BSIZE 4096 +#define LEN 100 + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_fill + ****************************************************************************/ + +static void test_nuttx_syscall_fill(char *str, int len) +{ + int i; + for (i = 0; i < len; i++) + *str++ = 'a'; +} + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_check + ****************************************************************************/ + +static int test_nuttx_syscall_check(char *str, int len) +{ + int i; + for (i = 0; i < len; i++) + if (*str++ != 'a') + return (-1); + + return 0; +} + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_setup + ****************************************************************************/ + +static void test_nuttx_syscall_setup(char *buf) +{ + int i; + for (i = 0; i < BSIZE; i++) + buf[i] = 0; +} + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_verifymemcpy + ****************************************************************************/ + +static void test_nuttx_syscall_verifymemcpy(char *p, char *q, int len) +{ + test_nuttx_syscall_fill(p, len); + memcpy(q, p, LEN); + + assert_int_equal(test_nuttx_syscall_check(q, len), 0); + + assert_true(*(p - 1) == '\0'); + assert_true(p[LEN] == '\0'); + + assert_true(*(q - 1) == '\0'); + assert_true(q[LEN] == '\0'); +} + +/**************************************************************************** + * Pubilc Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_memcpytest01 + ****************************************************************************/ + +void test_nuttx_syscall_memcpytest01(FAR void **state) +{ + char *buf = NULL; + buf = malloc(BSIZE); + assert_non_null(buf); + test_nuttx_syscall_setup(buf); + + test_nuttx_syscall_verifymemcpy(&buf[100], &buf[800], LEN); + test_nuttx_syscall_verifymemcpy(&buf[800], &buf[100], LEN); + free(buf); +} diff --git a/testing/testsuites/kernel/syscall/cases/memset_test.c b/testing/testsuites/kernel/syscall/cases/memset_test.c new file mode 100644 index 00000000000..9ec1bbf40e9 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/memset_test.c @@ -0,0 +1,108 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/memset_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ +#define BSIZE 4096 + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_fill + ****************************************************************************/ + +static void test_nuttx_syscall_fill(char *buf) +{ + int i; + for (i = 0; i < BSIZE; i++) + buf[i] = 'a'; +} + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_check + ****************************************************************************/ + +static int test_nuttx_syscall_check(char *str) +{ + int i = 0; + while (!*str++) + i++; + return i; +} + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_memsettest01 + ****************************************************************************/ + +void test_nuttx_syscall_memsettest01(FAR void **state) +{ + char *buf = NULL; + buf = malloc(BSIZE); + assert_non_null(buf); + test_nuttx_syscall_fill(buf); + + int i; + int j; + char *p = &buf[400]; + + for (i = 0; i < 200; i++) + { + test_nuttx_syscall_fill(buf); + memset(p, 0, i); + j = test_nuttx_syscall_check(p); + + assert_true(j == i); + assert_true(*(p - 1) && p[i]); + } + + assert_int_equal(i, 200); + free(buf); +} diff --git a/testing/testsuites/kernel/syscall/cases/mkdir_test.c b/testing/testsuites/kernel/syscall/cases/mkdir_test.c new file mode 100644 index 00000000000..c908e69a1e7 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/mkdir_test.c @@ -0,0 +1,198 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/mkdir_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_mkdir01 + ****************************************************************************/ + +void test_nuttx_syscall_mkdir01(FAR void **state) +{ + int ret; + int j; + int times = 100; + char tmpdir[40]; + + for (j = 0; j < 5; j += 3) + { + sprintf(tmpdir, "%s_%d_dir", __func__, j); + ret = mkdir(tmpdir, 0777); + if (ret < 0) + { + if (errno != EEXIST) + { + syslog(LOG_ERR, + "Error creating permanent directories, ERRNO = %d", + errno); + fail_msg("test fail !\n"); + goto out; + } + } + } + + while (times--) + { + for (j = 0; j < 5; j += 3) + { + sprintf(tmpdir, "%s_%d_dir", __func__, j); + ret = mkdir(tmpdir, 0777); + if (ret < 0) + { + if (errno != EEXIST) + { + syslog(LOG_ERR, + "MKDIR %s, errno = %d; Wrong error detected.", + tmpdir, errno); + fail_msg("test fail !\n"); + goto out; + } + } + else + { + syslog(LOG_ERR, + "MKDIR %s succeded when it shoud have failed.", + tmpdir); + fail_msg("test fail !\n"); + goto out; + } + } + } + +out: + for (j = 0; j < 5; j += 3) + { + sprintf(tmpdir, "%s_%d_dir", __func__, j); + assert_int_equal(rmdir(tmpdir), 0); + } +} + +/**************************************************************************** + * Name: test_nuttx_syscall_mkdir02 + ****************************************************************************/ + +void test_nuttx_syscall_mkdir02(FAR void **state) +{ + int ret; + int j; + int times = 1000; + char tmpdir[40]; + + while (times--) + { + for (j = 1; j < 5; j += 3) + { + sprintf(tmpdir, "%s_%d_dir", __func__, j); + ret = rmdir(tmpdir); + if (ret < 0) + { + if (errno != ENOENT) + { + syslog(LOG_ERR, + "RMDIR %s, errno = %d; Wrong error detected.", + tmpdir, errno); + fail_msg("test fail !\n"); + } + } + + else + { + syslog(LOG_ERR, + "RMDIR %s succeded when it should have failed.", + tmpdir); + fail_msg("test fail !\n"); + } + } + } +} + +/**************************************************************************** + * Name: test_nuttx_syscall_mkdir03 + ****************************************************************************/ + +void test_nuttx_syscall_mkdir03(FAR void **state) +{ + int ret; + int j; + int times = 1000; + char tmpdir[40]; + + while (times--) + { + for (j = 2; j < 5; j += 3) + { + sprintf(tmpdir, "%s_%d_dir", __func__, j); + ret = mkdir(tmpdir, 0777); + if (ret < 0) + { + syslog(LOG_ERR, + "MKDIR %s, errno = %d; Wrong error detected.", + tmpdir, errno); + goto out; + } + } + + for (j = 2; j < 5; j += 3) + { + sprintf(tmpdir, "%s_%d_dir", __func__, j); + ret = rmdir(tmpdir); + if (ret < 0) + { + syslog(LOG_ERR, + "RMDIR %s, errno = %d; Wrong error detected.", + tmpdir, errno); + goto out; + } + } + } + + goto testpass; + +out: + for (j = 2; j < 5; j += 3) + { + sprintf(tmpdir, "%s/test%d", __func__, j); + rmdir(tmpdir); + } + + assert_true(0); +testpass: + assert_true(1); +} diff --git a/testing/testsuites/kernel/syscall/cases/nansleep_test.c b/testing/testsuites/kernel/syscall/cases/nansleep_test.c new file mode 100644 index 00000000000..44c23403bee --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/nansleep_test.c @@ -0,0 +1,91 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/nansleep_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_nansleep01 + ****************************************************************************/ + +void test_nuttx_syscall_nansleep01(FAR void **state) +{ + time_t ret; + struct timespec t = + { + .tv_sec = 2, .tv_nsec = 9999 + }; + + ret = nanosleep(&t, NULL); + assert_int_equal(ret, 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_nansleep02 + ****************************************************************************/ + +void test_nuttx_syscall_nansleep02(FAR void **state) +{ + int ret; + struct timespec tcases[] = + { + {.tv_sec = 0, .tv_nsec = (long)1000000000}, + {.tv_sec = 1, .tv_nsec = (long)-100}, + }; + + int n = 0; + for (n = 0; n < 2; n++) + { + ret = nanosleep(&tcases[n], NULL); + if (ret != -1) + { + syslog(LOG_ERR, + "test no.%d, FAIL, nanosleep() returned %d, expected " + "-1\n", + n + 1, ret); + fail_msg("test fail !\n"); + } + + if (errno != EINVAL) + { + syslog(LOG_ERR, + "test no.%d, FAIL, nanosleep() failed,expected " + "EINVAL, got\n", + n + 1); + fail_msg("test fail !\n"); + } + } +} diff --git a/testing/testsuites/kernel/syscall/cases/pathconf_test.c b/testing/testsuites/kernel/syscall/cases/pathconf_test.c new file mode 100644 index 00000000000..3daa089676a --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/pathconf_test.c @@ -0,0 +1,86 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/pathconf_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_pathconf01 + ****************************************************************************/ + +void test_nuttx_syscall_pathconf01(FAR void **state) +{ + long ret; + char *path; + + struct pathconf_args + { + char define_tag[16]; + int value; + } + + args[] = + { + { + "_PC_LINK_MAX", _PC_LINK_MAX + }, + + { + "_PC_NAME_MAX", _PC_NAME_MAX + }, + + { + "_PC_PATH_MAX", _PC_PATH_MAX + }, + + { + "_PC_PIPE_BUF", _PC_PIPE_BUF + }, + }; + + path = strdup(MOUNT_DIR); + assert_non_null(path); + + for (int i = 0; i < 4; i++) + { + ret = pathconf(path, args[i].value); + assert_int_not_equal(ret, -1); + } + + free(path); +} diff --git a/testing/testsuites/kernel/syscall/cases/pipe_test.c b/testing/testsuites/kernel/syscall/cases/pipe_test.c new file mode 100644 index 00000000000..0edacef0b30 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/pipe_test.c @@ -0,0 +1,98 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/pipe_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_pipe01 + ****************************************************************************/ + +void test_nuttx_syscall_pipe01(FAR void **state) +{ + int fds[2]; + int ret; + int rd_size; + int wr_size; + char wrbuf[64] = "abcdefghijklmnopqrstuvwxyz"; + char rdbuf[128]; + + memset(rdbuf, 0, sizeof(rdbuf)); + + ret = pipe(fds); + assert_int_not_equal(ret, -1); + + /* write fds[1] */ + + wr_size = write(fds[1], wrbuf, sizeof(wrbuf)); + + /* read fds[0] */ + + rd_size = read(fds[0], rdbuf, sizeof(rdbuf)); + + assert_int_equal(rd_size, wr_size); + assert_int_equal(strncmp(rdbuf, wrbuf, wr_size), 0); + + assert_int_equal(close(fds[0]), 0); + assert_int_equal(close(fds[1]), 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_pipe02 + ****************************************************************************/ + +void test_nuttx_syscall_pipe02(FAR void **state) +{ + int fd[2]; + int ret; + char buf[2]; + + ret = pipe(fd); + assert_int_not_equal(ret, -1); + + ret = write(fd[0], "A", 1); + assert_int_equal(ret, -1); + assert_int_equal(errno, EACCES); + + ret = read(fd[1], buf, 1); + assert_int_equal(ret, -1); + assert_int_equal(errno, EACCES); + + assert_int_equal(close(fd[0]), 0); + assert_int_equal(close(fd[1]), 0); +} diff --git a/testing/testsuites/kernel/syscall/cases/pread_test.c b/testing/testsuites/kernel/syscall/cases/pread_test.c new file mode 100644 index 00000000000..dfa9bcd6ffc --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/pread_test.c @@ -0,0 +1,377 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/pread_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#define K1 32 +#define K2 (K1 * 2) +#define K3 (K1 * 3) +#define K4 (K1 * 4) +#define K5 (K1 * 5) + +/**************************************************************************** + * Private data Prototypes + ****************************************************************************/ + +char pread01_filename[64] = ""; +int pread01_fildes; /* file descriptor for tempfile */ +char *pread01_write_buf[4]; /* buffer to hold data to be written */ +char *pread01_read_buf[4]; /* buffer to hold data read from file */ + +/**************************************************************************** + * Private Function Prototypes + ****************************************************************************/ + +void pread01_setup(void); /* Main setup function of test */ +void pread01_cleanup(void); /* cleanup function for the test */ +void pread01_l_seek(int, off_t, int, + off_t); /* function to call lseek() */ +void pread01_init_buffers( + void); /* function to initialize/allocate buffers */ +int pread01_compare_bufers( + void); /* function to compare o/p of pread/pwrite */ + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: pread01_init_buffers + ****************************************************************************/ + +/* init_buffers - allocates both write_buf and read_buf arrays. + * Allocate the read and write buffers. + * Fill the write buffer with the following data like, + * write_buf[0] has 0's, write_buf[1] has 1's, write_buf[2] has 2's + * write_buf[3] has 3's. + */ + +void pread01_init_buffers(void) +{ + int count; /* counter variable for loop */ + + /* Allocate and Initialize read/write buffer */ + + for (count = 0; count < 4; count++) + { + pread01_write_buf[count] = (char *)malloc(K1); + pread01_read_buf[count] = (char *)malloc(K1); + + if ((pread01_write_buf[count] == NULL) || + (pread01_read_buf[count] == NULL)) + { + syslog(LOG_ERR, "malloc() failed on read/write buffers\n"); + } + + memset(pread01_write_buf[count], count, K1); + } +} + +/**************************************************************************** + * Name: pread01_setup + ****************************************************************************/ + +/* setup() - performs all ONE TIME setup for this test. + * + * Initialize/allocate read/write buffers. + * Create a temporary directory and a file under it and + * write know data at different offset positions. + */ + +void pread01_setup(void) +{ + int nwrite = 0; /* no. of bytes written by pwrite() */ + + /* Allocate/Initialize the read/write buffer with know data */ + + pread01_init_buffers(); + + sprintf(pread01_filename, "%s_tstfile", __func__); + + /* Creat a temporary file used for mapping */ + + if ((pread01_fildes = open(pread01_filename, O_RDWR | O_CREAT, 0666)) < + 0) + { + syslog(LOG_ERR, "FAIL, open() on %s failed, errno=%d : %s\n", + pread01_filename, errno, strerror(errno)); + } + + if (pread01_fildes > 0) + { + /* pwrite() K1 of data (0's) at offset 0 of temporary file */ + + if ((nwrite = pwrite(pread01_fildes, pread01_write_buf[0], K1, + 0)) != K1) + { + syslog(LOG_ERR, + "pwrite() failed to write on %s, " + "errno=%d : %s\n", + pread01_filename, errno, strerror(errno)); + } + + /* We should still be at offset 0. */ + + pread01_l_seek(pread01_fildes, 0, SEEK_CUR, 0); + + /* Now, lseek() to a non K boundary, just to be different. */ + + pread01_l_seek(pread01_fildes, K1 / 2, SEEK_SET, K1 / 2); + + /* Again, pwrite() K1 of data (2's) at offset K2 of temporary file + */ + + if ((nwrite = pwrite(pread01_fildes, pread01_write_buf[2], K1, + K2)) != K1) + { + syslog(LOG_ERR, + "FAIL, pwrite() failed to write at %d off. " + "on %s, errno=%d : %s\n", + K2, pread01_filename, errno, strerror(errno)); + } + + /* We should still be at our non K boundary. */ + + pread01_l_seek(pread01_fildes, 0, SEEK_CUR, K1 / 2); + + /* lseek() to an offset of K3. */ + + pread01_l_seek(pread01_fildes, K3, SEEK_SET, K3); + + /* Using write(), write of K1 of data (3's) which should take + * place at an offset of K3, moving the file pointer to K4. + */ + + if ((nwrite = write(pread01_fildes, pread01_write_buf[3], K1)) != + K1) + { + syslog(LOG_ERR, + "write() failed: nwrite=%d, errno=%d " + ": %s\n", + nwrite, errno, strerror(errno)); + } + + /* We should be at offset K4. */ + + pread01_l_seek(pread01_fildes, 0, SEEK_CUR, K4); + + /* Again, pwrite() K1 of data (1's) at offset K1. */ + + if ((nwrite = pwrite(pread01_fildes, pread01_write_buf[1], K1, + K1)) != K1) + { + syslog(LOG_ERR, + "pwrite() failed to write at %d off. " + "on %s, errno=%d : %s\n", + K1, pread01_filename, errno, strerror(errno)); + } + } +} + +/**************************************************************************** + * Name: pread01_l_seek + ****************************************************************************/ + +/* l_seek() - local front end to lseek(). + * + * "checkoff" is the offset at which we believe we should be at. + * Used to validate pread/pwrite don't move the offset. + */ + +void pread01_l_seek(int fdesc, off_t offset, int whence, off_t checkoff) +{ + off_t offloc; /* offset ret. from lseek() */ + + if ((offloc = lseek(fdesc, offset, whence)) != checkoff) + { + syslog(LOG_WARNING, + "return = %" PRId64 " , expected %" PRId64 "\n", + (int64_t)offloc, (int64_t)checkoff); + syslog(LOG_ERR, "lseek() on %s failed\n", pread01_filename); + } +} + +/**************************************************************************** + * Name: pread01_compare_bufers + ****************************************************************************/ + +/* compare_bufers() - Compare the contents of read buffer aganist the + * write buffer contents. + * + * The contents of the index of each buffer should be as follows: + * [0] has 0's, [1] has 1's, [2] has 2's, and [3] has 3's. + * + * This function does memcmp of read/write buffer and display message + * about the functionality of pread(). + */ + +int pread01_compare_bufers(void) +{ + int count; /* index for the loop */ + int err_flg = 0; /* flag to indicate error */ + + for (count = 0; count < 4; count++) + { + if (memcmp(pread01_write_buf[count], pread01_read_buf[count], + K1) != 0) + { + syslog(LOG_ERR, "FAIL, read/write buffer data mismatch\n"); + err_flg++; + } + } + + /* If no erros, Test successful */ + + if (!err_flg) + { + /* syslog(LOG_INFO, "PASS, Functionality of pread() is correct\n"); */ + + return 0; + } + + else + { + return -1; + } +} + +/**************************************************************************** + * Name: pread01_cleanup + ****************************************************************************/ + +void pread01_cleanup(void) +{ + int count; + + /* Free the memory allocated for the read/write buffer */ + + for (count = 0; count < 4; count++) + { + free(pread01_write_buf[count]); + free(pread01_read_buf[count]); + } + + /* Close the temporary file */ + + close(pread01_fildes); + + unlink(pread01_filename); +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_pread01 + ****************************************************************************/ + +void test_nuttx_syscall_pread01(FAR void **state) +{ + int lc; + int nread; /* no. of bytes read by pread() */ + + pread01_setup(); + + for (lc = 0; lc < 1; lc++) + { + /* Call pread() of K1 data (should be 2's) at offset K2. + */ + + nread = pread(pread01_fildes, pread01_read_buf[2], K1, K2); + + /* Check for the return value of pread() */ + + assert_int_equal(nread, K1); + + /* We should still be at offset K4, + * which we were at the end of block 0. + */ + + pread01_l_seek(pread01_fildes, 0, SEEK_CUR, K4); + + /* Now lseek() to offset 0. */ + + pread01_l_seek(pread01_fildes, 0, SEEK_SET, 0); + + /* pread() K1 of data (should be 3's) at offset K3. */ + + nread = pread(pread01_fildes, pread01_read_buf[3], K1, K3); + assert_int_equal(nread, K1); + + /* We should still be at offset 0. */ + + pread01_l_seek(pread01_fildes, 0, SEEK_CUR, 0); + + /* Do a normal read() of K1 data (should be 0's) + * which should take place at offset 0 and move the + * file pointer to an offset of K1. + */ + + nread = read(pread01_fildes, pread01_read_buf[0], K1); + assert_int_equal(nread, K1); + + /* We should now be at an offset of K1. */ + + pread01_l_seek(pread01_fildes, 0, SEEK_CUR, K1); + + /* pread() of K1 data (should be 1's) at offset K1. */ + + nread = pread(pread01_fildes, pread01_read_buf[1], K1, K1); + assert_int_equal(nread, K1); + + /* We should still be at offset K1. */ + + pread01_l_seek(pread01_fildes, 0, SEEK_CUR, K1); + + /* Compare the read buffer data read + * with the data written to write buffer + * in the setup. + */ + + assert_int_equal(pread01_compare_bufers(), 0); + + /* reset our location to offset K4 in case we are looping */ + + pread01_l_seek(pread01_fildes, K4, SEEK_SET, K4); + } + + pread01_cleanup(); +} diff --git a/testing/testsuites/kernel/syscall/cases/pwrite_test.c b/testing/testsuites/kernel/syscall/cases/pwrite_test.c new file mode 100644 index 00000000000..13d452c8905 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/pwrite_test.c @@ -0,0 +1,322 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/pwrite_test.c + * + * 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 + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#define K1 32 +#define K2 (K1 * 2) +#define K3 (K1 * 3) +#define K4 (K1 * 4) +#define K5 (K1 * 5) + +/**************************************************************************** + * Private data Prototypes + ****************************************************************************/ + +/**************************************************************************** + * Private Function Prototypes + ****************************************************************************/ + +int pwrite02_init_buffers(char *[]); +int pwrite02_l_seek(int, off_t, int, off_t); + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: pwrite02_init_buffers + ****************************************************************************/ + +int pwrite02_init_buffers(char *wbuf[]) +{ + int i; + + for (i = 0; i < 4; i++) + { + wbuf[i] = (char *)malloc(K1); + if (wbuf[i] == NULL) + { + syslog(LOG_ERR, "ib: malloc failed: errno=%d\n", errno); + return -1; + } + + memset(wbuf[i], i, K1); + } + + return 0; +} + +void pwrite02_free_buffers(char *wbuf[]) +{ + int i; + + for (i = 0; i < 4; i++) + { + if (wbuf[i] != NULL) + { + free(wbuf[i]); + } + } +} + +/**************************************************************************** + * Name: pwrite02_l_seek + ****************************************************************************/ + +/* l_seek() is a local front end to lseek(). + * "checkoff" is the offset at which we believe we should be at. + * Used to validate pwrite doesn't move the offset. + */ + +int pwrite02_l_seek(int fdesc, off_t offset, int whence, off_t checkoff) +{ + off_t offloc; + + if ((offloc = lseek(fdesc, offset, whence)) != checkoff) + { + syslog(LOG_ERR, + "FAIL, (%ld = lseek(%d, %ld, %d)) != %ld) errno = %d\n", + (long int)offloc, fdesc, (long int)offset, whence, + (long int)checkoff, errno); + return -1; + } + + return 0; +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_pwrite01 + ****************************************************************************/ + +void test_nuttx_syscall_pwrite01(FAR void **state) +{ + int fd; + int ret; + char filename[64] = ""; + + sprintf(filename, "%s_file", __func__); + + fd = open(filename, O_RDWR | O_CREAT, 0700); + assert_true(fd > 0); + ret = pwrite(fd, NULL, 0, 0); + assert_int_equal(ret, 0); + + if (fd > 0) + assert_int_equal(close(fd), 0); + + assert_int_equal(unlink(filename), 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_pwrite02 + ****************************************************************************/ + +void test_nuttx_syscall_pwrite02(FAR void **state) +{ + char fname[256] = ""; + char *wbuf[4]; + int fd; + int nbytes; + int lc; + struct stat statbuf; + + sprintf(fname, "%s_file", __func__); + + for (lc = 0; lc < 2; lc++) + { + assert_int_equal(pwrite02_init_buffers(wbuf), 0); + + fd = open(fname, O_RDWR | O_CREAT, 0666); + assert_true(fd > 0); + + /* pwrite() K1 of data (0's) at offset 0. + */ + + nbytes = pwrite(fd, wbuf[0], K1, 0); + assert_int_equal(nbytes, K1); + if (nbytes != K1) + { + syslog(LOG_ERR, + "FAIL, pwrite at 0 failed: nbytes=%d, errno=%d\n", + nbytes, errno); + assert_int_equal(unlink(fname), 0); + } + + /* We should still be at offset 0. + */ + + assert_int_equal(pwrite02_l_seek(fd, 0, SEEK_CUR, 0), 0); + + /* lseek() to a non K boundary, just to be different. + */ + + assert_int_equal(pwrite02_l_seek(fd, K1 / 2, SEEK_SET, K1 / 2), 0); + + /* pwrite() K1 of data (2's) at offset K2. + */ + + nbytes = pwrite(fd, wbuf[2], K1, K2); + assert_int_equal(nbytes, K1); + if (nbytes != K1) + { + syslog(LOG_ERR, + "FAIL, pwrite at K2 failed: nbytes=%d, errno=%d\n", + nbytes, errno); + assert_int_equal(unlink(fname), 0); + } + + /* We should still be at our non K boundary. + */ + + assert_int_equal(pwrite02_l_seek(fd, 0, SEEK_CUR, K1 / 2), 0); + + /* lseek() to an offset of K3. + */ + + assert_int_equal(pwrite02_l_seek(fd, K3, SEEK_SET, K3), 0); + + /* This time use a normal write() of K1 of data (3's) which should + * take place at an offset of K3, moving the file pointer to K4. + */ + + nbytes = write(fd, wbuf[3], K1); + assert_int_equal(nbytes, K1); + if (nbytes != K1) + { + syslog(LOG_ERR, "FAIL, write failed: nbytes=%d, errno=%d\n", + nbytes, errno); + assert_int_equal(unlink(fname), 0); + } + + /* We should be at offset K4. + */ + + assert_int_equal(pwrite02_l_seek(fd, 0, SEEK_CUR, K4), 0); + + /* pwrite() K1 of data (1's) at offset K1. + */ + + nbytes = pwrite(fd, wbuf[1], K1, K1); + assert_int_equal(nbytes, K1); + if (nbytes != K1) + { + syslog(LOG_ERR, "FAIL, pwrite failed: nbytes=%d, errno=%d\n", + nbytes, errno); + assert_int_equal(unlink(fname), 0); + } + + /* -------------------------------------------------------------- */ + + /* Now test that O_APPEND takes precedence over any + * offset specified by pwrite(), but that the file + * pointer remains unchanged. First, close then reopen + * the file and ensure it is already K4 in length and + * set the file pointer to it's midpoint, K2. + */ + + close(fd); + fd = open(fname, O_RDWR | O_APPEND, 0666); + assert_true(fd > 0); + if (fd < 0) + { + fail_msg("TEST FAIL !\n"); + syslog(LOG_ERR, "FAIL, open failed: fname = %s, errno = %d\n", + fname, errno); + assert_int_equal(unlink(fname), 0); + } + + if (fstat(fd, &statbuf) == -1) + { + fail_msg("TEST FAIL !\n"); + syslog(LOG_ERR, "FAIl, fstat failed: errno = %d\n", errno); + assert_int_equal(unlink(fname), 0); + } + + if (statbuf.st_size != K4) + { + fail_msg("TEST FAIL !\n"); + syslog(LOG_ERR, "FAIl, file size is %ld != K4\n", + (long int)statbuf.st_size); + assert_int_equal(unlink(fname), 0); + } + + assert_int_equal(pwrite02_l_seek(fd, K2, SEEK_SET, K2), 0); + + /* Finally, pwrite() some K1 of data at offset 0. + * What we should end up with is: + * -The file pointer should still be at K2. + * -The data should have been written to the end + * of the file (O_APPEND) and should be K5 in size. + */ + + if ((nbytes = pwrite(fd, wbuf[0], K1, 0)) != K1) + { + fail_msg("TEST FAIL !\n"); + syslog(LOG_ERR, + "FAIl, pwrite at 0 failed: nbytes=%d, errno=%d\n", + nbytes, errno); + } + + assert_int_equal(pwrite02_l_seek(fd, 0, SEEK_CUR, K2), 0); + if (fstat(fd, &statbuf) == -1) + { + fail_msg("TEST FAIL !\n"); + syslog(LOG_ERR, "FAIl, fstat failed: errno = %d\n", errno); + } + + if (statbuf.st_size != K5) + { + fail_msg("TEST FAIL !\n"); + syslog(LOG_ERR, "FAIl, file size is %ld != K4\n", + (long int)statbuf.st_size); + } + + close(fd); + assert_int_equal(unlink(fname), 0); + pwrite02_free_buffers(wbuf); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/read_test.c b/testing/testsuites/kernel/syscall/cases/read_test.c new file mode 100644 index 00000000000..41b12659acc --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/read_test.c @@ -0,0 +1,201 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/read_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_read01 + ****************************************************************************/ + +void test_nuttx_syscall_read01(FAR void **state) +{ + int fd; + char buf[512]; + char filename[64] = ""; + + memset(buf, '*', 512); + sprintf(filename, "%s_file", __func__); + + fd = open(filename, O_RDWR | O_CREAT, 0700); + assert_true(fd > 0); + assert_int_equal(write(fd, buf, 512), (ssize_t)512); + + lseek(fd, 0, SEEK_SET); + + assert_int_equal(read(fd, buf, 512), (ssize_t)512); + + if (fd > 0) + assert_int_equal(close(fd), 0); + + assert_int_equal(unlink(filename), 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_read02 + ****************************************************************************/ + +void test_nuttx_syscall_read02(FAR void **state) +{ +#ifndef CONFIG_FDSAN + + /* Define an invalid file descriptor */ + + int badfd = 99999999; + int ret; + char buf[64]; + size_t count = 1; + + /* Read with an invalid file descriptor */ + + ret = read(badfd, buf, count); + + /* Read fail */ + + assert_int_equal(ret, -1); + + /* Check whether the error code meets the expectation */ + + assert_int_equal(errno, EBADF); +#endif +} + +/**************************************************************************** + * Name: test_nuttx_syscall_read03 + ****************************************************************************/ + +void test_nuttx_syscall_read03(FAR void **state) +{ + char fname[255]; + char palfa[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; + int fild; + + int lc; + int ret; + int rfild; + char prbuf[BUFSIZ]; + + sprintf(fname, "%s_tfile", __func__); + + fild = creat(fname, 0777); + if (fild > 0) + { + assert_int_equal(write(fild, palfa, 27), 27); + close(fild); + } + + for (lc = 0; lc < 2; lc++) + { + if ((rfild = open(fname, O_RDONLY)) == -1) + { + syslog(LOG_ERR, "can't open for reading\n"); + continue; + } + + ret = read(rfild, prbuf, BUFSIZ); + + if (ret == -1) + { + fail_msg("test fail !\n"); + syslog(LOG_ERR, "FAIL, call failed unexpectedly\n"); + close(rfild); + continue; + } + + if (ret != 27) + { + fail_msg("test fail !\n"); + syslog(LOG_ERR, + "FAIL, Bad read count - got %d - " + "expected %d\n", + ret, 27); + close(rfild); + continue; + } + + if (memcmp(palfa, prbuf, 27) != 0) + { + fail_msg("test fail !\n"); + syslog(LOG_ERR, + "FAIL, read buffer not equal " + "to write buffer\n"); + close(rfild); + continue; + } + + close(rfild); + } + + assert_int_equal(unlink(fname), 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_read04 + ****************************************************************************/ + +void test_nuttx_syscall_read04(FAR void **state) +{ + int ret; + + /* Define an invalid file descriptor */ + + int badfd = -1; + char buf[64]; + size_t count = 1; + + /* Read with an invalid file descriptor */ + + ret = read(badfd, buf, count); + + /* Read succeeded */ + + if (ret != -1) + { + fail_msg("FAIL, read() succeeded unexpectedly"); + } + + /* Check whether the error code meets the expectation */ + + if (errno != EBADF) + { + syslog(LOG_ERR, + "FAIL, read() failed unexpectedly, expected " + "EBADF:%d,actually:%d\n", + EBADF, errno); + fail_msg("read() failed unexpectedly"); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/readdir_test.c b/testing/testsuites/kernel/syscall/cases/readdir_test.c new file mode 100644 index 00000000000..09555c2e9be --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/readdir_test.c @@ -0,0 +1,108 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/readdir_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_setup + ****************************************************************************/ + +static void test_nuttx_syscall_setup(char *prefix, int nfiles) +{ + char fname[255] = + { + 0 + }; + + int i; + int fd; + int ret; + + for (i = 0; i < nfiles; i++) + { + sprintf(fname, "%s_%d", prefix, i); + fd = open(fname, O_RDWR | O_CREAT, 0700); + assert_true(fd > 0); + + ret = write(fd, "hello\n", 6); + assert_int_in_range(ret, 1, 6); + + assert_int_equal(close(fd), 0); + } +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_readdirtest01 + ****************************************************************************/ + +void test_nuttx_syscall_readdirtest01(FAR void **state) +{ + char *prefix = "readdirfile"; + int nfiles = 10; + test_nuttx_syscall_setup(prefix, nfiles); + + int cnt = 0; + DIR *test_dir; + struct dirent *ent; + + char buf[20] = + { + 0 + }; + + getcwd(buf, sizeof(buf)); + test_dir = opendir(buf); + assert_non_null(test_dir); + + while ((ent = readdir(test_dir))) + { + if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) + continue; + if (!strncmp(ent->d_name, prefix, sizeof(prefix) - 1)) + cnt++; + } + + assert_int_equal(cnt, nfiles); + assert_int_equal(closedir(test_dir), 0); +} diff --git a/testing/testsuites/kernel/syscall/cases/recvfrom_test.c b/testing/testsuites/kernel/syscall/cases/recvfrom_test.c new file mode 100644 index 00000000000..fb9d5907d3b --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/recvfrom_test.c @@ -0,0 +1,448 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/recvfrom_test.c + * + * 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 + ****************************************************************************/ +#ifndef UCLINUX +#define UCLINUX +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Private data Prototypes + ****************************************************************************/ + +__attribute__((unused)) static char buf[1024]; +__attribute__((unused)) static int s; /* socket descriptor */ +__attribute__((unused)) static int testno; +__attribute__((unused)) static struct sockaddr_in sin1, from; +__attribute__((unused)) static pthread_t thread; +__attribute__((unused)) static int + sfd; /* shared between do_child and start_server */ +__attribute__((unused)) static socklen_t fromlen; + +/**************************************************************************** + * Private Function Prototypes + ****************************************************************************/ + +__attribute__((unused)) static int setup(void), setup0(void), + setup1(void), setup2(void), cleanup(void), cleanup0(void), + cleanup1(void); +__attribute__((unused)) static void do_child(void); + +__attribute__((unused)) static void *start_server(void *); + +__attribute__((unused)) static struct test_case_t +{ + int domain; /* PF_INET, PF_UNIX, ... */ + int type; /* SOCK_STREAM, SOCK_DGRAM ... */ + int proto; /* protocol number (usually 0 = default) */ + void *buf; /* recv data buffer */ + size_t buflen; /* recv's 3rd argument */ + unsigned flags; /* recv's 4th argument */ + struct sockaddr *from; /* from address */ + socklen_t *salen; /* from address value/result buffer length */ + int retval; /* syscall return value */ + int experrno; /* expected errno */ + int (*setup)(void); + int (*cleanup)(void); + char *desc; +} + +tdat[] = +{ + /* 1 */ + + { + PF_INET, SOCK_STREAM, 0, buf, sizeof(buf), 0, + (struct sockaddr *)&from, &fromlen, -1, EBADF, setup0, cleanup0, + "bad file descriptor" + }, + + /* 2 */ + + { + 0, 0, 0, buf, sizeof(buf), 0, (struct sockaddr *)&from, &fromlen, + -1, ENOTSOCK, setup0, cleanup0, "invalid socket" + }, + + /* 3 */ + + { + PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), 0, + (struct sockaddr *)-1, &fromlen, 0, ENOTSOCK, setup1, cleanup1, + "invalid socket buffer" + }, + + /* 4 */ + + { + PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), 0, + (struct sockaddr *)&from, &fromlen, -1, EINVAL, setup2, cleanup1, + "invalid socket addr length" + }, +#ifndef UCLINUX + + /* 5 */ + + { + PF_INET, SOCK_STREAM, 0, (void *)-1, sizeof(buf), 0, + (struct sockaddr *)&from, &fromlen, -1, EFAULT, setup1, cleanup1, + "invalid recv buffer" + }, +#endif + /* 6 */ + +/* { + * PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), MSG_OOB, + * (struct sockaddr *)&from, &fromlen, + * -1, EINVAL, setup1, cleanup1, "invalid MSG_OOB flag set" + * }, + */ + + /* 7 */ + + { + PF_INET, SOCK_STREAM, 0, (void *)buf, sizeof(buf), + MSG_ERRQUEUE, (struct sockaddr *)&from, &fromlen, -1, EAGAIN, + setup1, cleanup1, "invalid MSG_ERRQUEUE flag set" + }, +}; + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: setup + ****************************************************************************/ + +__attribute__((unused)) static int setup(void) +{ + int r = pthread_create(&thread, NULL, start_server, (void *)&sin1); + if (r < 0) + { + syslog(LOG_ERR, "pthread_create fail, errno %d\n", errno); + return -1; + } + + return 0; +} + +/**************************************************************************** + * Name: cleanup + ****************************************************************************/ + +__attribute__((unused)) static int cleanup(void) +{ + assert_true(pthread_cancel(thread) == 0); + assert_true(pthread_join(thread, NULL) == 0); + return 0; +} + +/**************************************************************************** + * Name: setup0 + ****************************************************************************/ + +__attribute__((unused)) static int setup0(void) +{ + if (tdat[testno].experrno == EBADF) + { + s = 400; /* anything not an open file */ + } + + else if ((s = open("/dev/null", O_WRONLY)) == -1) + { + syslog(LOG_ERR, "open /dev/null fail, errno %d\n", errno); + fail_msg("test fail !"); + return -1; + } + + fromlen = sizeof(from); + return 0; +} + +/**************************************************************************** + * Name: cleanup0 + ****************************************************************************/ + +__attribute__((unused)) static int cleanup0(void) +{ + s = -1; + return 0; +} + +/**************************************************************************** + * Name: setup1 + ****************************************************************************/ + +__attribute__((unused)) static int setup1(void) +{ +#ifdef CONFIG_NET_TCP + fd_set rdfds; + struct timeval timeout; + int n; + + s = safe_socket(tdat[testno].domain, tdat[testno].type, + tdat[testno].proto); + assert_true(s >= 0); + if (tdat[testno].type == SOCK_STREAM && + connect(s, (struct sockaddr *)&sin1, sizeof(sin1)) < 0) + { + syslog(LOG_ERR, "connect failed, errno %d\n", errno); + fail_msg("test fail"); + } + + /* Wait for something to be readable, else we won't detect EFAULT on + * recv + */ + + FD_ZERO(&rdfds); + FD_SET(s, &rdfds); + timeout.tv_sec = 2; + timeout.tv_usec = 0; + n = select(s + 1, &rdfds, 0, 0, &timeout); + if (n != 1 || !FD_ISSET(s, &rdfds)) + { + syslog( + LOG_ERR, + "client setup1 failed - no message ready in 2 sec, errno %d\n", + errno); + fail_msg("test fail"); + } + + fromlen = sizeof(from); +#endif + return s; +} + +/**************************************************************************** + * Name: setup2 + ****************************************************************************/ + +__attribute__((unused)) static int setup2(void) +{ + setup1(); + fromlen = -1; + return 0; +} + +/**************************************************************************** + * Name: cleanup1 + ****************************************************************************/ + +__attribute__((unused)) static int cleanup1(void) +{ + (void)close(s); + s = -1; + return 0; +} + +/**************************************************************************** + * Name: start_server + ****************************************************************************/ + +__attribute__((unused)) static void *start_server(void *arg) +{ + /* 设置取消状态为启用 */ + + pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); + + /* 设置取消类型为异步取消 */ + + pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL); + + struct sockaddr_in *sin0 = (struct sockaddr_in *)arg; + socklen_t slen = sizeof(*sin0); + + sin0->sin_family = AF_INET; + sin0->sin_port = 0; /* pick random free port */ + sin0->sin_addr.s_addr = INADDR_ANY; + + sfd = socket(PF_INET, SOCK_STREAM, 0); + if (sfd < 0) + { + syslog(LOG_ERR, "server socket failed\n"); + fail_msg("test fail !"); + return NULL; + } + + if (bind(sfd, (struct sockaddr *)sin0, sizeof(*sin0)) < 0) + { + syslog(LOG_ERR, "server bind failed\n"); + close(sfd); + fail_msg("test fail"); + return NULL; + } + + if (listen(sfd, 10) < 0) + { + syslog(LOG_ERR, "server listen failed\n"); + close(sfd); + fail_msg("test fail"); + return NULL; + } + + /* assert_int_not_equal(-1,safe_getsockname(sfd, (struct sockaddr + * *)sin0, &slen)); + */ + + safe_getsockname(sfd, (struct sockaddr *)sin0, &slen); + do_child(); + return NULL; +} + +/**************************************************************************** + * Name: do_child + ****************************************************************************/ + +__attribute__((unused)) static void do_child(void) +{ + struct sockaddr_in fsin; + fd_set afds; + fd_set rfds; + int nfds; + int cc; + int fd; + + FD_ZERO(&afds); + FD_SET(sfd, &afds); + + nfds = sfd + 1; + + /* accept connections until killed */ + + while (1) + { + socklen_t fromlen_s; + memcpy(&rfds, &afds, sizeof(rfds)); + + if (select(nfds, &rfds, NULL, NULL, NULL) < 0) + if (errno != EINTR) + { + syslog(LOG_ERR, "select exit fail\n"); + fail_msg("test fail !"); + return; + } + + if (FD_ISSET(sfd, &rfds)) + { + int newfd; + + fromlen_s = sizeof(fsin); + newfd = accept(sfd, (struct sockaddr *)&fsin, &fromlen_s); + if (newfd >= 0) + { + FD_SET(newfd, &afds); + nfds = (nfds > newfd + 1) ? (nfds) : (newfd + 1); + + /* send something back */ + + (void)write(newfd, "hoser\n", 6); + } + } + + for (fd = 0; fd < nfds; ++fd) + if (fd != sfd && FD_ISSET(fd, &rfds)) + { + cc = read(fd, buf, sizeof(buf)); + if (cc == 0 || (cc < 0 && errno != EINTR)) + { + (void)close(fd); + FD_CLR(fd, &afds); + } + } + + pthread_testcancel(); + } +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_recvfromtest01 + ****************************************************************************/ + +void test_nuttx_syscall_recvfromtest01(FAR void **state) +{ +#ifdef CONFIG_NET_TCP + int ret; + int flag = 1; + setup(); + + for (testno = 0; testno < sizeof(tdat) / sizeof(tdat[0]); ++testno) + { + usleep(100000); + if (tdat[testno].setup() < 0) + { + tdat[testno].cleanup(); + continue; + } + + ret = recvfrom(s, tdat[testno].buf, tdat[testno].buflen, + tdat[testno].flags, tdat[testno].from, + tdat[testno].salen); + if (ret >= 0) + { + ret = 0; /* all nonzero equal here */ + } + + if (ret != tdat[testno].retval || + (ret < 0 && errno != tdat[testno].experrno)) + { + syslog(LOG_ERR, + "test recvfrom01 %s failed; " + "returned %d (expected %d), errno %d " + "(expected %d)\n", + tdat[testno].desc, ret, tdat[testno].retval, errno, + tdat[testno].experrno); + flag = 0; + } + + tdat[testno].cleanup(); + } + + cleanup(); + assert_true(flag); +#endif +} + +#undef UCLINUX +#endif diff --git a/testing/testsuites/kernel/syscall/cases/rmdir_test.c b/testing/testsuites/kernel/syscall/cases/rmdir_test.c new file mode 100644 index 00000000000..063e6b63435 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/rmdir_test.c @@ -0,0 +1,121 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/rmdir_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_rmdir01 + ****************************************************************************/ + +void test_nuttx_syscall_rmdir01(FAR void **state) +{ + int ret; + struct stat buf; + char testdir[64] = ""; + + sprintf(testdir, "%s_dir", __func__); + + ret = mkdir(testdir, 0777); + assert_int_equal(ret, 0); + + ret = rmdir(testdir); + assert_int_equal(ret, 0); + + assert_int_not_equal(stat(testdir, &buf), 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_rmdir02 + ****************************************************************************/ + +void test_nuttx_syscall_rmdir02(FAR void **state) +{ + int ret; + int fd; + + /* Description: + * 1) attempt to rmdir() non-empty directory -> ENOTEMPTY + * 2) attempt to rmdir() non-existing directory -> ENOENT + * 3) attempt to rmdir() a file -> ENOTDIR + */ + + struct testcase + { + char dir[32]; + int exp_errno; + } + + tcases[] = + { + { + "Rmdir02_testdir", ENOTEMPTY + }, + + { + "nosuchdir/testdir2", ENOENT + }, + + { + "Rmdir02_testfile2", ENOTDIR + }, + }; + + ret = mkdir("Rmdir02_testdir", (S_IRWXU | S_IRWXG | S_IRWXO)); + assert_int_equal(ret, 0); + ret = mkdir("Rmdir02_testdir/test1", (S_IRWXU | S_IRWXG | S_IRWXO)); + assert_int_equal(ret, 0); + fd = open("Rmdir02_testfile2", O_CREAT | O_RDWR); + + if (fd > 0) + close(fd); + for (int i = 0; i < 3; i++) + { + ret = rmdir(tcases[i].dir); + assert_int_not_equal(ret, 0); + if (ret != -1) + { + continue; + } + } + + assert_int_equal(rmdir("Rmdir02_testdir/test1"), 0); + assert_int_equal(rmdir("Rmdir02_testdir"), 0); + assert_int_equal(unlink("Rmdir02_testfile2"), 0); +} diff --git a/testing/testsuites/kernel/syscall/cases/sched_test.c b/testing/testsuites/kernel/syscall/cases/sched_test.c new file mode 100644 index 00000000000..9aa5edd62bc --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/sched_test.c @@ -0,0 +1,204 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/sched_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_sched01 + ****************************************************************************/ + +void test_nuttx_syscall_sched01(FAR void **state) +{ + struct test_case_t + { + int prio; + int policy; + } + + TC[] = + { + /* set scheduling policy to SCHED_RR */ + + { + 1, SCHED_RR + }, + + /* set scheduling policy to SCHED_FIFO */ + + { + 1, SCHED_FIFO + } + }; + + int i; + int rec; + struct sched_param param; + + i = 0; +#if CONFIG_RR_INTERVAL > 0 + param.sched_priority = TC[i].prio; + + assert_int_not_equal(sched_setscheduler(0, TC[i].policy, ¶m), -1); + + rec = sched_getscheduler(0); + assert_int_not_equal(rec, -1); + assert_int_equal(rec, TC[i].policy); +#endif + + i = 1; + param.sched_priority = TC[i].prio; + assert_int_not_equal(sched_setscheduler(0, TC[i].policy, ¶m), -1); + + rec = sched_getscheduler(0); + assert_int_not_equal(rec, -1); + assert_int_equal(rec, TC[i].policy); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_sched02 + ****************************************************************************/ + +void test_nuttx_syscall_sched02(FAR void **state) +{ +#if CONFIG_RR_INTERVAL > 0 + int ret; + struct timespec tp; + struct sched_param p = + { + 1 + }; + + /* Change scheduling policy to SCHED_RR */ + + assert_int_not_equal(sched_setscheduler(0, SCHED_RR, &p), -1); + ret = sched_rr_get_interval(0, &tp); + assert_int_equal(ret, 0); +#else + assert_true(1); +#endif +} + +/**************************************************************************** + * Name: test_nuttx_syscall_sched03 + ****************************************************************************/ + +void test_nuttx_syscall_sched03(FAR void **state) +{ + struct timespec tp; + struct sched_param p = + { + 1 + }; + + int ret; + + /* Change scheduling policy to SCHED_FIFO */ + + assert_int_not_equal(sched_setscheduler(0, SCHED_FIFO, &p), -1); + + tp.tv_sec = 99; + tp.tv_nsec = 99; + + ret = sched_rr_get_interval(0, &tp); + + assert_int_equal(ret, 0); + assert_int_equal(tp.tv_sec, 0); + assert_int_equal(tp.tv_nsec, 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_sched04 + ****************************************************************************/ + +void test_nuttx_syscall_sched04(FAR void **state) +{ + struct timespec tp; + + static pid_t inval_pid = -1; + + int i; + int ret; + + struct test_cases_t + { + pid_t *pid; + struct timespec *tp; + int exp_errno; + } + + test_cases[] = + { + { + &inval_pid, &tp, EINVAL + } + }; + + int TST_TOTAL = sizeof(test_cases) / sizeof(test_cases[0]); + +#if CONFIG_RR_INTERVAL > 0 + struct sched_param p = + { + 1 + }; + + /* Change scheduling policy to SCHED_RR */ + + assert_int_not_equal(sched_setscheduler(0, SCHED_RR, &p), -1); +#endif + for (i = 0; i < TST_TOTAL; ++i) + { + /* Call sched_rr_get_interval(2) + */ + + ret = + sched_rr_get_interval(*(test_cases[i].pid), test_cases[i].tp); + int ret_error = errno; + + assert_int_equal(ret, -1); + assert_int_equal(ret_error, test_cases[i].exp_errno); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/setsocketopt01_test.c b/testing/testsuites/kernel/syscall/cases/setsocketopt01_test.c new file mode 100644 index 00000000000..8e2bb42efc1 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/setsocketopt01_test.c @@ -0,0 +1,162 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/setsocketopt01_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_setsockopt01 + ****************************************************************************/ + +void test_nuttx_syscall_setsockopt01(FAR void **state) +{ +#if defined(CONFIG_NET) && defined(CONFIG_NET_SOCKOPTS) + struct sockaddr_in addr; + int optval; + struct test_case + { /* test case structure */ + int domain; /* PF_INET, PF_UNIX, ... */ + int type; /* SOCK_STREAM, SOCK_DGRAM ... */ + int proto; /* protocol number (usually 0 = default) */ + int level; /* IPPROTO_* */ + int optname; + void *optval; + int optlen; + int experrno; /* expected errno */ + char *desc; + } + + testcase_list[] = + { + { + -1, -1, -1, SOL_SOCKET, SO_OOBINLINE, &optval, sizeof(optval), + EBADF, "invalid file descriptor" + }, + + { + -1, -1, -1, SOL_SOCKET, SO_OOBINLINE, &optval, sizeof(optval), + ENOTSOCK, "non-socket file descriptor" + }, + + { + PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, NULL, + sizeof(optval), EFAULT, "invalid option buffer" + }, + + { + PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 0, + EINVAL, "invalid optlen" + }, + + { + PF_INET, SOCK_STREAM, 0, 500, SO_OOBINLINE, &optval, + sizeof(optval), ENOPROTOOPT, "invalid level" + }, + + { + PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval, + sizeof(optval), ENOPROTOOPT, "invalid option name (UDP)" + }, + + { + PF_INET, SOCK_STREAM, 0, IPPROTO_IP, -1, &optval, sizeof(optval), + ENOPROTOOPT, "invalid option name (IP)" + }, + + { + PF_INET, SOCK_STREAM, 0, IPPROTO_TCP, -1, &optval, sizeof(optval), + ENOPROTOOPT, "invalid option name (TCP)" + } + }; + + /* initialize local sockaddr */ + + addr.sin_family = AF_INET; + addr.sin_port = 0; + addr.sin_addr.s_addr = INADDR_ANY; + for (int n = 0; n < sizeof(testcase_list) / sizeof(testcase_list[0]); + n++) + { + int ret; + struct test_case *tc = testcase_list + n; + int tmpfd; + int fd; + if (tc->domain == -1) + { + tmpfd = fd = SAFE_OPEN("/dev/null", O_WRONLY); + if (fd < 0) + continue; + } + + else + { + tmpfd = fd = safe_socket(tc->domain, tc->type, tc->proto); + if (fd < 0) + continue; + if (safe_bind(fd, (struct sockaddr *)&addr, sizeof(addr)) < 0) + continue; + } + + /* Use closed file descriptor rather than -1 */ + + if (tc->experrno == EBADF) + if (safe_close(tmpfd) < 0) + continue; + ret = + setsockopt(fd, tc->level, tc->optname, tc->optval, tc->optlen); + if (tc->experrno != EBADF) + { + safe_close(fd); + fd = -1; + } + + if (ret != -1 || errno != tc->experrno) + { + syslog(LOG_ERR, + "setsockopt %s fail, returned %d (expected -1), " + "errno %d (expected %d)\n", + tc->desc, ret, errno, tc->experrno); + fail_msg("test fail !"); + continue; + } + } + +#endif +} diff --git a/testing/testsuites/kernel/syscall/cases/socket_test.c b/testing/testsuites/kernel/syscall/cases/socket_test.c new file mode 100644 index 00000000000..7bad8a0baea --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/socket_test.c @@ -0,0 +1,208 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/socket_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_verifysocket01 + ****************************************************************************/ + +void test_nuttx_syscall_verifysocket01(int testno, int domain, int type, + int proto, int retval, int experrno) +{ + int fd; + int ret; + errno = 0; + fd = socket(domain, type, proto); + ret = fd; + if (fd > 0) + { + ret = 0; + close(fd); + } + + else + { + ret = -1; + } + + if (errno != experrno || ret != retval) + { + syslog(LOG_WARNING, + "NO.%d do socket() test, ret=%d erron=%d experrno=%d\n", + testno, fd, errno, experrno); + } + + assert_int_equal(ret, retval); +} + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_verifysocket02 + ****************************************************************************/ + +void test_nuttx_syscall_verifysocket02(int type, int flag, int fl_flag) +{ + int fd; + int res; + int tmp; + + fd = socket(PF_INET, type, 0); + assert_int_not_equal(fd, -1); + + res = fcntl(fd, fl_flag); + tmp = (res & flag); + + if (flag != 0) + { + assert_int_not_equal(tmp, 0); + } + + else + { + assert_int_equal(tmp, 0); + } + + assert_int_equal(close(fd), 0); +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_sockettest01 + ****************************************************************************/ + +void test_nuttx_syscall_sockettest01(FAR void **state) +{ + struct test_case_t + { + int domain; + int type; + int proto; + int retval; + int experrno; + } + + tdat[] = + { + { + 0, SOCK_STREAM, 0, -1, EAFNOSUPPORT + }, + + { + PF_INET, 75, 0, -1, EAFNOSUPPORT + }, + + { + PF_INET, SOCK_RAW, 0, -1, EAFNOSUPPORT + }, + + { + PF_INET, SOCK_STREAM, 17, -1, EAFNOSUPPORT + }, + + { + PF_INET, SOCK_DGRAM, 6, -1, EAFNOSUPPORT + }, + + { + PF_INET, SOCK_STREAM, 6, 0, 0 + }, + + { + PF_INET, SOCK_STREAM, 1, -1, EAFNOSUPPORT + } + }; + + for (int i = 0; i < 7; i++) + { + test_nuttx_syscall_verifysocket01(i, tdat[i].domain, tdat[i].type, + tdat[i].proto, tdat[i].retval, + tdat[i].experrno); + } +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_sockettest02 + ****************************************************************************/ + +void test_nuttx_syscall_sockettest02(FAR void **state) +{ + static struct tcase + { + int type; + int flag; + int fl_flag; + } + + tcases[] = + { + { + SOCK_STREAM, 0, F_GETFD + }, + + { + SOCK_STREAM | SOCK_CLOEXEC, FD_CLOEXEC, F_GETFD + }, + + { + SOCK_STREAM, 0, F_GETFL + }, + + { + SOCK_STREAM | SOCK_NONBLOCK, O_NONBLOCK, F_GETFL + } + }; + + for (int i = 0; i < 4; i++) + { + test_nuttx_syscall_verifysocket02(tcases[i].type, tcases[i].flag, + tcases[i].fl_flag); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/socketpair_test.c b/testing/testsuites/kernel/syscall/cases/socketpair_test.c new file mode 100644 index 00000000000..2b4e6209d69 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/socketpair_test.c @@ -0,0 +1,230 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/socketpair_test.c + * + * 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 + ****************************************************************************/ +#ifndef UCLINUX +#define UCLINUX +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_socketpair01 + ****************************************************************************/ + +void test_nuttx_syscall_socketpair01(FAR void **state) +{ +#ifdef CONFIG_NET_TCP + int fds[2]; + int ret; + struct test_case_t + { + int domain; + int type; + int proto; + int *sv; + int retval; + int experrno; + char *desc; + } + + tdat[] = + { + { + 0, SOCK_STREAM, 0, fds, -1, EAFNOSUPPORT, "invalid domain" + }, + + { + PF_INET, 75, 0, fds, -1, EINVAL, "invalid type" + }, + + { + PF_UNIX, SOCK_DGRAM, 0, fds, 0, 0, "UNIX domain dgram" + }, + + { + PF_INET, SOCK_RAW, 0, fds, -1, EPROTONOSUPPORT, + "raw open as non-root" + }, + + #ifndef UCLINUX + { + PF_UNIX, SOCK_STREAM, 0, 0, -1, EFAULT, "bad aligned pointer" + }, + + { + PF_UNIX, SOCK_STREAM, 0, (int *)7, -1, EFAULT, + "bad unaligned pointer" + }, + + #endif + /* {PF_INET, SOCK_DGRAM, 17, fds, -1, EOPNOTSUPP, "UDP socket"}, */ + + { + PF_INET, SOCK_DGRAM, 6, fds, -1, EPROTONOSUPPORT, "TCP dgram" + }, + + /* {PF_INET, SOCK_STREAM, 6, fds, -1, EOPNOTSUPP, "TCP socket"}, */ + + { + PF_INET, SOCK_STREAM, 1, fds, -1, EPROTONOSUPPORT, + "ICMP stream" + } + }; + + for (int n = 0; n < sizeof(tdat) / sizeof(tdat[0]); n++) + { + struct test_case_t *tc = &tdat[n]; + ret = socketpair(tc->domain, tc->type, tc->proto, tc->sv); + if (ret == 0) + { + SAFE_CLOSE(fds[0]); + SAFE_CLOSE(fds[1]); + } + + if (ret != tc->retval || errno != tc->experrno) + { + syslog(LOG_ERR, + "test socketpair01 %s failed; " + "returned %d (expected %d), errno %d " + "(expected %d)\n", + tc->desc, ret, tc->retval, errno, tc->experrno); + assert_true(0); + } + } + +#endif +} + +/**************************************************************************** + * Name: test_nuttx_syscall_socketpair02 + ****************************************************************************/ + +void test_nuttx_syscall_socketpair02(FAR void **state) +{ +#ifdef CONFIG_NET_TCP + int fds[2]; + int ret; + int flag = 1; + struct tcase + { + int type; + int flag; + int fl_flag; + char *des; + } + + tcases[] = + { + { + SOCK_STREAM, 0, F_GETFD, "no close-on-exec" + }, + + { + SOCK_STREAM | SOCK_CLOEXEC, FD_CLOEXEC, F_GETFD, "close-on-exec" + }, + + { + SOCK_STREAM, 0, F_GETFL, "no non-blocking" + }, + + { + SOCK_STREAM | SOCK_NONBLOCK, O_NONBLOCK, F_GETFL, + "non-blocking" + } + }; + + for (int n = 0; n < sizeof(tcases) / sizeof(tcases[0]); n++) + { + int res; + struct tcase *tc = &tcases[n]; + ret = socketpair(PF_UNIX, tc->type, 0, fds); + if (ret == -1) + { + flag = 0; + syslog(LOG_ERR, + "test socketpair02 %s failed; " + "returned -1, errno %d\n", + tc->des, errno); + continue; + } + + for (int i = 0; i < 2; i++) + { + res = SAFE_FCNTL(fds[i], tc->fl_flag); + + if (tc->flag != 0 && (res & tc->flag) == 0) + { + flag = 0; + syslog(LOG_ERR, + "socketpair() failed to set %s flag for fds[%d]\n", + tc->des, i); + break; + } + + if (tc->flag == 0 && (res & tc->flag) != 0) + { + flag = 0; + syslog(LOG_ERR, + "socketpair() failed to set %s flag for fds[%d]\n", + tc->des, i); + break; + } + } + + SAFE_CLOSE(fds[0]); + SAFE_CLOSE(fds[1]); + } + + if (fds[0] > 0) + { + SAFE_CLOSE(fds[0]); + } + + if (fds[1] > 0) + { + SAFE_CLOSE(fds[1]); + } + + assert_true(flag); +#endif +} + +#undef UCLINUX +#endif \ No newline at end of file diff --git a/testing/testsuites/kernel/syscall/cases/symlink_test.c b/testing/testsuites/kernel/syscall/cases/symlink_test.c new file mode 100644 index 00000000000..40f653c1f38 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/symlink_test.c @@ -0,0 +1,132 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/symlink_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_symlink01 + ****************************************************************************/ + +void test_nuttx_syscall_symlink01(FAR void **state) +{ + char fname[255]; + char symlnk[255]; + int fd; + int ret; + + sprintf(fname, "%s_tfile", __func__); + fd = open(fname, O_RDWR | O_CREAT, 0700); + assert_true(fd > 0); + if (fd > 0) + close(fd); + sprintf(symlnk, "/%s_t_%d", __func__, gettid()); + ret = symlink(fname, symlnk); + if (fd > 0) + close(fd); + assert_int_equal(ret, OK); + + assert_int_equal(unlink(fname), 0); + assert_int_equal(unlink(symlnk), 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_symlink02 + ****************************************************************************/ + +void test_nuttx_syscall_symlink02(FAR void **state) +{ + int fd; + int ret; + struct stat stat_buf; + char testfile[128] = + { + 0 + }; + + snprintf(testfile, sizeof(testfile), "%s_file", __func__); + + /* creat/open a testfile */ + + fd = open(testfile, O_RDWR | O_CREAT, + S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); + if (fd < 0) + { + syslog(LOG_ERR, "open test file fail !\n"); + fail_msg("test fail !"); + } + + /* Close the temporary file created above */ + + assert_int_equal(close(fd), 0); + + ret = symlink(testfile, "/Symlink02_file"); + if (ret == -1) + { + syslog(LOG_ERR, "symlink testfile to symfile Failed, errno=%d \n", + errno); + fail_msg("test fail!"); + } + else + { + /* Get the symlink file status information + * using lstat(2). + */ + + if (lstat("/Symlink02_file", &stat_buf) < 0) + { + syslog(LOG_ERR, "lstat(2) of symfile failed, error:%d \n", + errno); + fail_msg("test fail!"); + } + + /* Check if the st_mode contains a link */ + + if (!S_ISLNK(stat_buf.st_mode)) + { + syslog(LOG_ERR, "symlink of testfile doesn't exist \n"); + fail_msg("test fail!"); + } + } + + assert_int_equal(unlink(testfile), 0); + assert_int_equal(unlink("/Symlink02_file"), 0); +} diff --git a/testing/testsuites/kernel/syscall/cases/time_test.c b/testing/testsuites/kernel/syscall/cases/time_test.c new file mode 100644 index 00000000000..9a17d3572e5 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/time_test.c @@ -0,0 +1,84 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/time_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_time01 + ****************************************************************************/ + +void test_nuttx_syscall_time01(FAR void **state) +{ + int lc; + time_t ret; + + for (lc = 0; lc < 5; lc++) + { + /* Call time() + */ + + ret = time(NULL); + + /* check return code */ + + assert_int_not_equal(ret, (time_t)-1); + } +} + +/**************************************************************************** + * Name: test_nuttx_syscall_time02 + ****************************************************************************/ + +void test_nuttx_syscall_time02(FAR void **state) +{ + int lc; + time_t tloc; + time_t ret; /* time_t variables for time(2) */ + + for (lc = 0; lc < 5; lc++) + { + /* Call time() to get the time in seconds$ + * since Epoch. + */ + + ret = time(&tloc); + + /* Check return code from time(2) */ + + assert_int_equal(tloc, ret); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/timer_create_test.c b/testing/testsuites/kernel/syscall/cases/timer_create_test.c new file mode 100644 index 00000000000..ac3bf7abef7 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/timer_create_test.c @@ -0,0 +1,62 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/timer_create_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_timercreate01 + ****************************************************************************/ + +void test_nuttx_syscall_timercreate01(FAR void **state) +{ + int ret; + struct sigevent evp; + clock_t clock = CLOCK_MONOTONIC; + timer_t created_timer_id; + + memset(&evp, 0, sizeof(evp)); + + evp.sigev_signo = SIGALRM; + evp.sigev_notify = SIGEV_SIGNAL; + + ret = timer_create(clock, &evp, &created_timer_id); + assert_int_equal(ret, 0); + + ret = timer_delete(created_timer_id); + assert_int_equal(ret, 0); +} diff --git a/testing/testsuites/kernel/syscall/cases/timer_delete_test.c b/testing/testsuites/kernel/syscall/cases/timer_delete_test.c new file mode 100644 index 00000000000..d8bf5ae1ea1 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/timer_delete_test.c @@ -0,0 +1,64 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/timer_delete_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_timerdelete01 + ****************************************************************************/ + +void test_nuttx_syscall_timerdelete01(FAR void **state) +{ + int ret; + timer_t timer_id; + clock_t clock_list[] = + { + CLOCK_REALTIME, + CLOCK_MONOTONIC, + CLOCK_BOOTTIME, + }; + + for (int i = 0; i < 3; i++) + { + ret = timer_create(clock_list[i], NULL, &timer_id); + assert_int_equal(ret, 0); + + ret = timer_delete(timer_id); + assert_int_equal(ret, 0); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/timer_gettime_test.c b/testing/testsuites/kernel/syscall/cases/timer_gettime_test.c new file mode 100644 index 00000000000..772678956fa --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/timer_gettime_test.c @@ -0,0 +1,69 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/timer_gettime_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_timergettime01 + ****************************************************************************/ + +void test_nuttx_syscall_timergettime01(FAR void **state) +{ + int lc; + int ret; + struct sigevent ev; + struct itimerspec spec; + timer_t timer; + + ev.sigev_value = (union sigval)0; + ev.sigev_signo = SIGALRM; + ev.sigev_notify = SIGEV_SIGNAL; + + ret = timer_create(CLOCK_REALTIME, &ev, &timer); + assert_int_equal(ret, 0); + + for (lc = 0; lc < 1; ++lc) + { + ret = timer_gettime(timer, &spec); + assert_int_equal(ret, 0); + + ret = timer_gettime(timer, NULL); + assert_int_equal(ret, -1); + assert_int_equal(errno, EINVAL); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/truncate_test.c b/testing/testsuites/kernel/syscall/cases/truncate_test.c new file mode 100644 index 00000000000..6589cd51ad3 --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/truncate_test.c @@ -0,0 +1,150 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/truncate_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_truncate01 + ****************************************************************************/ + +void test_nuttx_syscall_truncate01(FAR void **state) +{ + int BUF_SIZE = 256; /* buffer size */ + int FILE_SIZE = 1024; /* test file size */ + int TRUNC_LEN = 256; /* truncation length */ + struct stat stat_buf; /* stat(2) struct contents */ + int lc; + int ret; + off_t file_length; /* test file length */ + char truncate01_fileneme[128] = ""; + + /* setup */ + + int fd; + int i; /* file handler for testfile */ + int c; + int c_total = 0; /* no. bytes to be written to file */ + char tst_buff[BUF_SIZE]; /* buffer to hold data */ + + snprintf(truncate01_fileneme, sizeof(truncate01_fileneme), "%s_file", + __func__); + + /* Fill the test buffer with the known data */ + + for (i = 0; i < BUF_SIZE; i++) + { + tst_buff[i] = 'a'; + } + + /* Creat a testfile under temporary directory */ + + fd = open(truncate01_fileneme, O_RDWR | O_CREAT, + S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); + if (fd < 0) + { + syslog(LOG_ERR, "open test file fail !\n"); + fail_msg("test fail !"); + } + + /* Write to the file 1k data from the buffer */ + + while (c_total < FILE_SIZE) + { + c = write(fd, tst_buff, sizeof(tst_buff)); + if (c > 0) + { + c_total += c; + } + } + + /* Close the testfile after writing data into it */ + + close(fd); + + /* do test */ + + for (lc = 0; lc < 2; lc++) + { + ret = truncate(truncate01_fileneme, TRUNC_LEN); + + if (ret == -1) + { + syslog(LOG_ERR, + "FAIL, truncate(%s, %d) Failed, errno=%d : %s\n", + truncate01_fileneme, TRUNC_LEN, errno, strerror(errno)); + fail_msg("test fail !"); + } + else + { + /* Get the testfile information using + * stat(2). + */ + + if (stat(truncate01_fileneme, &stat_buf) < 0) + { + syslog(LOG_ERR, + "FAIL, stat(2) of " + "%s failed, error:%d\n", + truncate01_fileneme, errno); + fail_msg("test fail !"); + } + + stat_buf.st_mode &= ~S_IFREG; + file_length = stat_buf.st_size; + + /* Check for expected size of testfile after + * truncate(2) on it. + */ + + if (file_length != TRUNC_LEN) + { + syslog(LOG_ERR, + "FAIL, %s: Incorrect file " + "size %" PRId64 " , Expected %d\n", + truncate01_fileneme, (int64_t)file_length, + TRUNC_LEN); + fail_msg("test fail !"); + } + } + } + + assert_int_equal(unlink(truncate01_fileneme), 0); +} diff --git a/testing/testsuites/kernel/syscall/cases/unlink_test.c b/testing/testsuites/kernel/syscall/cases/unlink_test.c new file mode 100644 index 00000000000..78b3e6f579c --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/unlink_test.c @@ -0,0 +1,78 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/unlink_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_unlink01 + ****************************************************************************/ + +void test_nuttx_syscall_unlink01(FAR void **state) +{ + char fname[64] = + { + 0 + }; + + int fd; + int ret; + + sprintf(fname, "%s_file", __func__); + + fd = open(fname, O_RDWR | O_CREAT); + if (fd > 0) + { + close(fd); + } + + else + { + syslog(LOG_ERR, "open test file fail !\n"); + fail_msg("test fail"); + } + + ret = unlink(fname); + assert_int_equal(ret, 0); + + if (!access(fname, F_OK)) + { + fail_msg("test fail !\n"); + syslog(LOG_ERR, + "FAIL, unlink(%s) succeeded, but %s still existed\n", fname, + fname); + } +} diff --git a/testing/testsuites/kernel/syscall/cases/write_test.c b/testing/testsuites/kernel/syscall/cases/write_test.c new file mode 100644 index 00000000000..dcd10cc362d --- /dev/null +++ b/testing/testsuites/kernel/syscall/cases/write_test.c @@ -0,0 +1,177 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cases/write_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_write01 + ****************************************************************************/ + +void test_nuttx_syscall_write01(FAR void **state) +{ + ssize_t ret; + char filename[64]; + int fd; + int i; + int badcount = 0; + char buf[BUFSIZ]; + + sprintf(filename, "%s_file", __func__); + + /* setup */ + + fd = open(filename, O_RDWR | O_CREAT, 0700); + assert_true(fd > 0); + + /* do test */ + + assert_non_null(memset(buf, 'w', BUFSIZ)); + + assert_int_equal(lseek(fd, 0, SEEK_SET), 0); + + for (i = BUFSIZ; i > 0; i--) + { + ret = write(fd, buf, i); + if (ret == -1) + { + fail_msg("FAIL, write failed !\n"); + break; + } + + if (ret != i) + { + badcount++; + syslog(LOG_INFO, + "INFO, write() returned %" PRId64 ", expected %d\n", + (int64_t)ret, i); + } + } + + if (badcount != 0) + { + fail_msg("FAIL, write() failed to return proper count\n"); + } + + if (fd > 0) + { + assert_int_equal(close(fd), 0); + } + + assert_int_equal(unlink(filename), 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_write02 + ****************************************************************************/ + +void test_nuttx_syscall_write02(FAR void **state) +{ + int fd; + int ret; + char filename[64]; + sprintf(filename, "%s_file", __func__); + fd = open(filename, O_RDWR | O_CREAT, 0700); + assert_true(fd > 0); + + ret = write(fd, NULL, 3); + assert_true(ret < 0); + + if (fd > 0) + { + assert_int_equal(close(fd), 0); + } + + assert_int_equal(unlink(filename), 0); +} + +/**************************************************************************** + * Name: test_nuttx_syscall_write03 + ****************************************************************************/ + +void test_nuttx_syscall_write03(FAR void **state) +{ + int fd; + ssize_t ret; + char filename[64]; + int i; + int badcount = 0; + char buf[100]; + + sprintf(filename, "%s_file.wav", __func__); + + /* setup */ + + fd = open(filename, O_RDWR | O_CREAT, 0700); + assert_true(fd > 0); + + /* do test */ + + assert_non_null(memset(buf, 'w', 100)); + + assert_int_equal(lseek(fd, 0, SEEK_SET), 0); + + for (i = 100; i > 0; i--) + { + ret = write(fd, buf, i); + if (ret == -1) + { + fail_msg("FAIL, write failed !\n"); + break; + } + + if (ret != i) + { + badcount++; + syslog(LOG_INFO, + "INFO, write() returned %" PRId64 ", expected %d\n", + (int64_t)ret, i); + } + } + + if (badcount != 0) + { + fail_msg("FAIL, write() failed to return proper count\n"); + } + + if (fd > 0) + { + assert_int_equal(close(fd), 0); + } + + assert_int_equal(unlink(filename), 0); +} diff --git a/testing/testsuites/kernel/syscall/cmocka_syscall_test.c b/testing/testsuites/kernel/syscall/cmocka_syscall_test.c new file mode 100644 index 00000000000..3fa4c101c9b --- /dev/null +++ b/testing/testsuites/kernel/syscall/cmocka_syscall_test.c @@ -0,0 +1,458 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/cmocka_syscall_test.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" +#include + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: cmocka_sched_test_main + ****************************************************************************/ + +int main(int argc, char *argv[]) +{ + /* Add Test Cases */ + + const struct CMUnitTest nuttx_syscall_test_suites[] = + { + /* cmocka_unit_test_setup_teardown(test_nuttx_syscall_bind01, + * test_nuttx_syscall_test_group_setup, + * test_nuttx_syscall_test_group_teardown), + */ + + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_chdir01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_chdir02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + + /* cmocka_unit_test_setup_teardown(test_nuttx_syscall_accept01, + * test_nuttx_syscall_test_group_setup, + * test_nuttx_syscall_test_group_teardown), + */ + + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_getitimer01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_clockgettime01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_clocknanosleep01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_clocksettime01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_close01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_close02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_close03, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_creat01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_creat02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + + /* cmocka_unit_test_setup_teardown(test_nuttx_syscall_fcntl01, + * NULL, NULL), + */ + + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_fcntl02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_fcntl03, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_fcntl04, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + + /* cmocka_unit_test_setup_teardown(test_nuttx_syscall_fcntl05, NULL, + * NULL), + */ + +#ifndef CONFIG_ARCH_SIM + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_fcntl06, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), +#endif + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_fstatfs01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_fsync01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), +#ifdef CONFIG_NET + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_fsync02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_fsync03, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_getpeername01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_getsockopt01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + + /* cmocka_unit_test_setup_teardown(test_nuttx_syscall_recvfromtest01, + * test_nuttx_syscall_test_group_setup, + * test_nuttx_syscall_test_group_teardown), + */ + + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_setsockopt01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_listen01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + + /* cmocka_unit_test_setup_teardown(test_nuttx_syscall_socketpair01, + * test_nuttx_syscall_test_group_setup, + * test_nuttx_syscall_test_group_teardown), + */ + +#ifdef CONFIG_NET_LOCAL_DGRAM + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_socketpair02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), +#endif +#endif + + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_ftruncate01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_getcwd01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_getcwd02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_getpid01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_getppid01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_gethostname01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_gettimeofday01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_lseek01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_lseek07, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_lstat01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_dup01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_dup02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_dup03, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_dup04, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_dup05, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_dup201, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_dup202, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_fpathconf01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_getegid01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_getegid02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_geteuid01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + + /* not implement + * cmocka_unit_test_setup_teardown(test_nuttx_syscall_geteuid02, + * estnuttxsyscalltestgroupsetup, + * test_nuttx_syscall_test_group_teardown), + */ + + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_getgid01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_getgid02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_getuid01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + + /* not implement + * cmocka_unit_test_setup_teardown(test_nuttx_syscall_getuid02, + * test_nuttx_syscall_test_group_setup, + * test_nuttx_syscall_test_group_teardown), + */ + + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_pathconf01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_pipe01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_pipe02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_pread01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_pwrite01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_pwrite02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_rmdir01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_rmdir02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_truncate01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_unlink01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_nansleep01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_nansleep02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_time01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_time02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_timercreate01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_timerdelete01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_timergettime01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_mkdir01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_mkdir02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_mkdir03, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_sched01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_sched02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_sched03, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_sched04, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_write01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_write02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_write03, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_read01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_read02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_read03, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_read04, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_symlink01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_symlink02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + + /* cmocka_unit_test_setup_teardown(test_nuttx_syscall_connect01, + * test_nuttx_syscall_test_group_setup, + * test_nuttx_syscall_test_group_teardown), + */ + +#if !defined(CONFIG_ARCH_SIM) && defined(CONFIG_NET_IPv4) + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_sockettest01, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), + cmocka_unit_test_setup_teardown( + test_nuttx_syscall_sockettest02, + test_nuttx_syscall_test_group_setup, + test_nuttx_syscall_test_group_teardown), +#endif + }; + + /* Run Test cases */ + + cmocka_run_group_tests(nuttx_syscall_test_suites, NULL, NULL); + return 0; +} diff --git a/testing/testsuites/kernel/syscall/common/test_syscall_common.c b/testing/testsuites/kernel/syscall/common/test_syscall_common.c new file mode 100644 index 00000000000..def66d1b6fe --- /dev/null +++ b/testing/testsuites/kernel/syscall/common/test_syscall_common.c @@ -0,0 +1,767 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/common/test_syscall_common.c + * + * 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "SyscallTest.h" + +#define CM_SYSCALL_TESTDIR "CM_syscall_testdir" +#define PATH_SIZE 128 + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +static int rm_recursive(FAR char *path) +{ + struct dirent *d; + struct stat stat; + size_t len; + int ret; + DIR *dp; + + ret = lstat(path, &stat); + if (ret < 0) + { + return ret; + } + + if (!S_ISDIR(stat.st_mode)) + { + return unlink(path); + } + + dp = opendir(path); + if (dp == NULL) + { + return -1; + } + + len = strlen(path); + if (len > 0 && path[len - 1] == '/') + { + path[--len] = '\0'; + } + + while ((d = readdir(dp)) != NULL) + { + if (strcmp(d->d_name, ".") == 0 || strcmp(d->d_name, "..") == 0) + { + continue; + } + + snprintf(&path[len], PATH_MAX - len, "/%s", d->d_name); + ret = rm_recursive(path); + if (ret < 0) + { + closedir(dp); + return ret; + } + } + + ret = closedir(dp); + if (ret >= 0) + { + path[len] = '\0'; + ret = rmdir(path); + } + + return ret; +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: test_nuttx_syscall_testgroupsetup + ****************************************************************************/ + +int test_nuttx_syscall_test_group_setup(void **state) +{ + int res; + struct stat buf; + + res = chdir(MOUNT_DIR); + if (res != 0) + { + syslog(LOG_INFO, "ERROR: Failed to switch the mount dir\n"); + exit(1); + } + + res = stat(CM_SYSCALL_TESTDIR, &buf); + if (res == 0 && buf.st_mode == S_IFDIR) + { + res = chdir(CM_SYSCALL_TESTDIR); + return res; + } + + else + { + char testdir[PATH_MAX] = + { + 0 + }; + + sprintf(testdir, "%s/%s", MOUNT_DIR, CM_SYSCALL_TESTDIR); + + /* Delete the existing test directory */ + + rm_recursive(testdir); + res = mkdir(CM_SYSCALL_TESTDIR, 0777); + if (res != 0) + { + syslog(LOG_ERR, "ERROR: Failed to creat the test directory\n"); + exit(1); + } + + res = chdir(CM_SYSCALL_TESTDIR); + } + + return res; +} + +/**************************************************************************** + * Name: test_nuttx_syscall_test_group_teardown + ****************************************************************************/ + +int test_nuttx_syscall_test_group_teardown(void **state) +{ + int res; + char testdir[PATH_MAX] = + { + 0 + }; + + sprintf(testdir, "%s", CM_SYSCALL_TESTDIR); + + res = chdir(MOUNT_DIR); + if (res != 0) + { + syslog(LOG_INFO, "ERROR: Failed to switch the mount dir\n"); + exit(1); + } + + /* call the recursive delete interface */ + + rm_recursive(testdir); + + return 0; +} + +/**************************************************************************** + * Name: cmtestfillfilewithfd + ****************************************************************************/ + +static int cmtestfillfilewithfd(int fd, char pattern, size_t bs, + size_t bcount) +{ + size_t i; + char *buf; + + /* Filling a memory buffer with provided pattern */ + + buf = (char *)malloc(bs); + if (buf == NULL) + return -1; + + for (i = 0; i < bs; i++) + buf[i] = pattern; + + /* Filling the file */ + + for (i = 0; i < bcount; i++) + { + if (write(fd, buf, bs) != (ssize_t)bs) + { + free(buf); + return -1; + } + } + + free(buf); + + return 0; +} + +/**************************************************************************** + * Name: cmtestfillfile + ****************************************************************************/ + +int cmtestfillfile(const char *path, char pattern, size_t bs, + size_t bcount) +{ + int fd; + + fd = open(path, O_CREAT | O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR); + if (fd < 0) + return -1; + + if (cmtestfillfilewithfd(fd, pattern, bs, bcount)) + { + close(fd); + unlink(path); + return -1; + } + + if (close(fd) < 0) + { + unlink(path); + + return -1; + } + + return 0; +} + +/**************************************************************************** + * Name: checknames + ****************************************************************************/ + +int checknames(char *pfilnames, DIR *ddir) +{ + struct dirent *dir; + while ((dir = readdir(ddir)) != NULL) + { + /* cout << "file name=" << dir->d_name << endl; */ + + if (strcmp(pfilnames, dir->d_name) == 0) + return 0; + } + + return -1; +} + +/**************************************************************************** + * Name: check_and_report_ftruncatetest + ****************************************************************************/ + +int check_and_report_ftruncatetest(int fd, off_t offset, char data, + off_t trunc_len) +{ + int i; + int file_length; + char buf[1024]; + struct stat stat_buf; + + memset(buf, '*', sizeof(buf)); + + fstat(fd, &stat_buf); + file_length = stat_buf.st_size; + + if (file_length != trunc_len) + { + syslog(LOG_ERR, "FAIL, ftruncate() got incorrected size: %d\n", + file_length); + return -1; + } + + lseek(fd, offset, SEEK_SET); + read(fd, buf, sizeof(buf)); + + for (i = 0; i < 256; i++) + { + if (buf[i] != data) + { + syslog( + LOG_ERR, + "FAIL, ftruncate() got incorrect data %i, expected %i\n", + buf[i], data); + return -1; + } + } + + return 0; +} + +/**************************************************************************** + * Name: tst_fill_fd + ****************************************************************************/ + +int tst_fill_fd(int fd, char pattern, size_t bs, size_t bcount) +{ + size_t i; + char *buf; + + /* Filling a memory buffer with provided pattern */ + + buf = (char *)malloc(bs); + if (buf == NULL) + return -1; + + for (i = 0; i < bs; i++) + buf[i] = pattern; + + /* Filling the file */ + + for (i = 0; i < bcount; i++) + { + if (write(fd, buf, bs) != (ssize_t)bs) + { + free(buf); + return -1; + } + } + + free(buf); + + return 0; +} + +/**************************************************************************** + * Name: tst_fill_file + ****************************************************************************/ + +int tst_fill_file(const char *path, char pattern, size_t bs, + size_t bcount) +{ + int fd; + + fd = open(path, O_CREAT | O_WRONLY | O_TRUNC, S_IRUSR | S_IWUSR); + if (fd < 0) + return -1; + + if (tst_fill_fd(fd, pattern, bs, bcount)) + { + close(fd); + unlink(path); + return -1; + } + + if (close(fd) < 0) + { + unlink(path); + + return -1; + } + + return 0; +} + +/**************************************************************************** + * Name: safe_open + ****************************************************************************/ + +int safe_open(const char *pathname, int oflags, ...) +{ + va_list ap; + int rval; + mode_t mode; + + va_start(ap, oflags); + mode = va_arg(ap, int); + va_end(ap); + + rval = open(pathname, oflags, mode); + if (rval == -1) + { + syslog(LOG_ERR, "open(%s,%d,0%o) failed\n", pathname, oflags, + mode); + fail_msg("test fail !"); + } + + return rval; +} + +/**************************************************************************** + * Name: safe_write + ****************************************************************************/ + +ssize_t safe_write(int fildes, const void *buf, size_t nbyte) +{ + ssize_t rval; + + rval = write(fildes, buf, nbyte); + if (rval == -1 || ((size_t)rval != nbyte)) + { + syslog(LOG_ERR, "write(%d,%p,%zu) failed\n", fildes, buf, rval); + } + + return rval; +} + +/**************************************************************************** + * Name: safe_lseek + ****************************************************************************/ + +off_t safe_lseek(int fd, off_t offset, int whence) +{ + off_t rval; + + rval = lseek(fd, offset, whence); + + if (rval == (off_t)-1) + { + syslog(LOG_ERR, "lseek(%d, %ld, %d) failed\n", fd, + (long int)offset, whence); + } + + return rval; +} + +/**************************************************************************** + * Name: safe_close + ****************************************************************************/ + +int safe_close(int fildes) +{ + int rval; + + rval = close(fildes); + if (rval == -1) + { + syslog(LOG_ERR, "close(%d) failed, errno %d\n", fildes, errno); + fail_msg("test fail !"); + } + + return rval; +} + +/**************************************************************************** + * Function Name: safe_touch + * + * Description: + * This Function is used to touch a file. + * + * Input Parameters: + * file + * lineno + * pathname - name of the file to be created + * mode - mode + ****************************************************************************/ + +void safe_touch(const char *file, const int lineno, const char *pathname, + mode_t mode) +{ + int ret; + + /* Open the file */ + + ret = open(pathname, O_CREAT | O_WRONLY, mode); + + /* Open file fail */ + + if (ret == -1) + { + syslog(LOG_ERR, "Failed to open file '%s' at %s:%d \n", pathname, + file, lineno); + return; + } + + /* Close the file */ + + ret = close(ret); + + /* Close file fail */ + + if (ret == -1) + { + syslog(LOG_ERR, "Failed to close file '%s' at %s:%d \n", pathname, + file, lineno); + return; + } +} + +#ifdef CONFIG_NET + +/**************************************************************************** + * Name: sock_addr + ****************************************************************************/ + +char *sock_addr(const struct sockaddr *sa, socklen_t salen, char *res, + size_t len) +{ + char portstr[8]; + + switch (sa->sa_family) + { + case AF_INET: + { + struct sockaddr_in *sin = (struct sockaddr_in *)sa; + + if (!inet_ntop(AF_INET, &sin->sin_addr, res, len)) + return NULL; + + if (ntohs(sin->sin_port) != 0) + { + snprintf(portstr, sizeof(portstr), ":%d", + ntohs(sin->sin_port)); + strcat(res, portstr); + } + + return res; + } + + case AF_INET6: + { + struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; + + res[0] = '['; + if (!inet_ntop(AF_INET6, &sin6->sin6_addr, res + 1, len - 1)) + return NULL; + + if (ntohs(sin6->sin6_port) != 0) + { + snprintf(portstr, sizeof(portstr), "]:%d", + ntohs(sin6->sin6_port)); + strcat(res, portstr); + return res; + } + + return res + 1; + } + + case AF_UNIX: + { + struct sockaddr_un *unp = (struct sockaddr_un *)sa; + + if (unp->sun_path[0] == '\0') + strcpy(res, "(no pathname bound)"); + else + snprintf(res, len, "%s", unp->sun_path); + + return res; + } + + default: + { + snprintf(res, len, "sock_ntop: unknown AF_xxx: %d, len: %d\n", + sa->sa_family, salen); + + return res; + } + } +} + +/**************************************************************************** + * Name: get_unused_port + * * + * Description: + * return port in network byte order. + ****************************************************************************/ + +unsigned short get_unused_port(void(cleanup_fn)(void), + unsigned short family, int type) +{ + int sock; + socklen_t slen; + struct sockaddr_storage _addr; + struct sockaddr *addr = (struct sockaddr *)&_addr; + struct sockaddr_in *addr4 = (struct sockaddr_in *)addr; + struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)addr; + + switch (family) + { + case AF_INET: + addr4->sin_family = AF_INET; + addr4->sin_port = 0; + addr4->sin_addr.s_addr = INADDR_ANY; + slen = sizeof(*addr4); + break; + + case AF_INET6: + addr6->sin6_family = AF_INET6; + addr6->sin6_port = 0; + addr6->sin6_addr = in6addr_any; + slen = sizeof(*addr6); + break; + + default: + syslog(LOG_ERR, "nknown family\n"); + fail_msg("test fail !"); + return -1; + } + + sock = socket(addr->sa_family, type, 0); + if (sock < 0) + { + syslog(LOG_ERR, "socket failed\n"); + fail_msg("test fail !"); + return -1; + } + + if (bind(sock, addr, slen) < 0) + { + syslog(LOG_ERR, "bind failed\n"); + fail_msg("test fail !"); + return -1; + } + + if (getsockname(sock, addr, &slen) == -1) + { + syslog(LOG_ERR, "getsockname failed\n"); + fail_msg("test fail !"); + return -1; + } + + if (close(sock) == -1) + { + syslog(LOG_ERR, "close failed\n"); + fail_msg("test fail !"); + return -1; + } + + switch (family) + { + case AF_INET: + return addr4->sin_port; + case AF_INET6: + return addr6->sin6_port; + default: + return -1; + } +} + +/**************************************************************************** + * Name: safe_socket + ****************************************************************************/ + +int safe_socket(int domain, int type, int protocol) +{ + int rval; + + rval = socket(domain, type, protocol); + + if (rval < 0) + { + syslog(LOG_ERR, "socket(%d, %d, %d) failed\n", domain, type, + protocol); + fail_msg("test fail !"); + } + + return rval; +} + +/**************************************************************************** + * Name: safe_connect + ****************************************************************************/ + +int safe_connect(int sockfd, const struct sockaddr *addr, + socklen_t addrlen) +{ + int rval; + char buf[128]; + + rval = connect(sockfd, addr, addrlen); + + if (rval < 0) + { + syslog(LOG_ERR, "connect(%d, %s, %d) failed, errno %d\n", sockfd, + sock_addr(addr, addrlen, buf, sizeof(buf)), addrlen, errno); + fail_msg("test fail !"); + } + + return rval; +} + +/**************************************************************************** + * Name: safe_getsockname + ****************************************************************************/ + +int safe_getsockname(int sockfd, struct sockaddr *addr, + socklen_t *addrlen) +{ + int rval; + char buf[128]; + + rval = getsockname(sockfd, addr, addrlen); + + if (rval < 0) + { + syslog(LOG_ERR, "getsockname(%d, %s, %d) failed\n", sockfd, + sock_addr(addr, *addrlen, buf, sizeof(buf)), *addrlen); + } + + return rval; +} + +/**************************************************************************** + * Name: safe_bind + ****************************************************************************/ + +int safe_bind(int socket, const struct sockaddr *address, + socklen_t address_len) +{ + int i; + char buf[128]; + + for (i = 0; i < 120; i++) + { + if (!bind(socket, address, address_len)) + return 0; + + if (errno != EADDRINUSE) + { + syslog(LOG_ERR, "bind(%d, %s, %d) failed\n", socket, + sock_addr(address, address_len, buf, sizeof(buf)), + address_len); + fail_msg("test fail !"); + return -1; + } + + if ((i + 1) % 10 == 0) + { + syslog(LOG_INFO, "address is in use, waited %3i sec\n", i + 1); + } + + sleep(1); + } + + syslog(LOG_ERR, "Failed to bind(%d, %s, %d) after 120 retries\n", + socket, sock_addr(address, address_len, buf, sizeof(buf)), + address_len); + fail_msg("test fail !"); + return -1; +} + +/**************************************************************************** + * Name: safe_listen + ****************************************************************************/ + +int safe_listen(int socket, int backlog) +{ + int rval; + + rval = listen(socket, backlog); + + if (rval < 0) + { + syslog(LOG_ERR, "listen(%d, %d) failed\n", socket, backlog); + } + + return rval; +} + +#endif \ No newline at end of file diff --git a/testing/testsuites/kernel/syscall/include/SyscallTest.h b/testing/testsuites/kernel/syscall/include/SyscallTest.h new file mode 100644 index 00000000000..786aea21a1d --- /dev/null +++ b/testing/testsuites/kernel/syscall/include/SyscallTest.h @@ -0,0 +1,457 @@ +/**************************************************************************** + * apps/testing/testsuites/kernel/syscall/include/SyscallTest.h + * + * 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. + * + ****************************************************************************/ + +#ifndef __SYSCALLTEST_H +#define __SYSCALLTEST_H + +/**************************************************************************** + * Included Files + ****************************************************************************/ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +/* Functions to help test */ + +int checknames(char *pfilnames, DIR *ddir); +int check_and_report_ftruncatetest(int fd, off_t offset, char data, + off_t trunc_len); +int tst_fill_file(const char *path, char pattern, size_t bs, + size_t bcount); + +char *sock_addr(const struct sockaddr *sa, socklen_t salen, char *res, + size_t len); + +/* @return port in network byte order. + */ + +unsigned short get_unused_port(void(cleanup_fn)(void), + unsigned short family, int type); + +int safe_close(int fildes); + +int safe_socket(int domain, int type, int protocol); + +int safe_connect(int sockfd, const struct sockaddr *addr, + socklen_t addrlen); + +int safe_getsockname(int sockfd, struct sockaddr *addr, + socklen_t *addrlen); + +int safe_bind(int socket, const struct sockaddr *address, + socklen_t address_len); + +int safe_listen(int socket, int backlog); + +int safe_open(const char *pathname, int oflags, ...); + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +/* The test files generated during the 'syscall-test' are stored in this + * directory + */ + +#define SYSCALL_TEST_DIR "syscall_test_dir" + +#define MOUNT_DIR CONFIG_TESTS_TESTSUITES_MOUNT_DIR + +#define SAFE_OPEN(pathname, oflags, ...) \ + safe_open((pathname), (oflags), ##__VA_ARGS__) + +#define SAFE_FCNTL(fd, cmd, ...) \ + ({ \ + int tst_ret_ = fcntl(fd, cmd, ##__VA_ARGS__); \ + if (tst_ret_ == -1) \ + { \ + syslog(LOG_ERR, "fcntl(%i,%s,...) failed", fd, #cmd); \ + fail_msg("test fail !"); \ + } \ + tst_ret_ == -1 ? 0 : tst_ret_; \ + }) + +#define SAFE_CLOSE(fd) \ + do \ + { \ + safe_close((fd)); \ + fd = -1; \ + } while (0) + +/**************************************************************************** + * Public Function Prototypes + ****************************************************************************/ + +/* quickly fill a test file */ + +int cmtestfillfile(const char *path, char pattern, size_t bs, + size_t bcount); + +/* setup function */ + +int test_nuttx_syscall_test_group_setup(void **state); + +/* teardown function */ + +int test_nuttx_syscall_test_group_teardown(void **state); + +/* tools */ + +int checknames(char *pfilnames, DIR *ddir); +int check_and_report_ftruncatetest(int fd, off_t offset, char data, + off_t trunc_len); +int tst_fill_fd(int fd, char pattern, size_t bs, size_t bcount); +int tst_fill_file(const char *path, char pattern, size_t bs, + size_t bcount); +int safe_open(const char *pathname, int oflags, ...); +ssize_t safe_write(int fildes, const void *buf, size_t nbyte); +off_t safe_lseek(int fd, off_t offset, int whence); +int safe_close(int fildes); +void safe_touch(const char *file, const int lineno, const char *pathname, + mode_t mode); +#ifdef CONFIG_NET +char *sock_addr(const struct sockaddr *sa, socklen_t salen, char *res, + size_t len); +unsigned short get_unused_port(void(cleanup_fn)(void), + unsigned short family, int type); +int safe_socket(int domain, int type, int protocol); +int safe_connect(int sockfd, const struct sockaddr *addr, + socklen_t addrlen); +int safe_getsockname(int sockfd, struct sockaddr *addr, + socklen_t *addrlen); +int safe_bind(int socket, const struct sockaddr *address, + socklen_t address_len); +int safe_listen(int socket, int backlog); +#endif + +/* test case function */ + +/* cases/chdir_test.c + * ***********************************************/ + +void test_nuttx_syscall_chdir01(FAR void **state); +void test_nuttx_syscall_chdir02(FAR void **state); + +/* cases/accept_test.c + * ***********************************************/ + +void test_nuttx_syscall_accept01(FAR void **state); + +/* cases/getitimer_test.c + * ***********************************************/ + +void test_nuttx_syscall_getitimer01(FAR void **state); + +/* cases/clock_gettime_test.c + * ****************************************/ + +void test_nuttx_syscall_clockgettime01(FAR void **state); + +/* cases/clock_nanosleep_test.c + * **************************************/ + +void test_nuttx_syscall_clocknanosleep01(FAR void **state); +void test_nuttx_syscall_clocknanosleep02(FAR void **state); + +/* cases/clock_settime_test.c + * ****************************************/ + +void test_nuttx_syscall_clocksettime01(FAR void **state); + +/* cases/close_test.c + * ************************************************/ + +void test_nuttx_syscall_close01(FAR void **state); +void test_nuttx_syscall_close02(FAR void **state); +void test_nuttx_syscall_close03(FAR void **state); + +/* cases/creat_test.c + * ************************************************/ + +void test_nuttx_syscall_creat01(FAR void **state); +void test_nuttx_syscall_creat02(FAR void **state); + +/* cases/fcntl_test.c + * ************************************************/ + +void test_nuttx_syscall_fcntl01(FAR void **state); +void test_nuttx_syscall_fcntl02(FAR void **state); +void test_nuttx_syscall_fcntl03(FAR void **state); +void test_nuttx_syscall_fcntl04(FAR void **state); +void test_nuttx_syscall_fcntl05(FAR void **state); +void test_nuttx_syscall_fcntl06(FAR void **state); + +/* cases/fsatfs_test.c + * ***********************************************/ + +void test_nuttx_syscall_fstatfs01(FAR void **state); + +/* cases/fsync_test.c + * ************************************************/ + +void test_nuttx_syscall_fsync01(FAR void **state); +void test_nuttx_syscall_fsync02(FAR void **state); +void test_nuttx_syscall_fsync03(FAR void **state); + +/* cases/ftruncate_test.c + * ********************************************/ + +void test_nuttx_syscall_ftruncate01(FAR void **state); + +/* cases/getcwd_test.c + * ***********************************************/ + +void test_nuttx_syscall_getcwd01(FAR void **state); +void test_nuttx_syscall_getcwd02(FAR void **state); + +/* cases/getpid_test.c + * ***********************************************/ + +void test_nuttx_syscall_getpid01(FAR void **state); + +/* cases/getppid_test.c + * **********************************************/ + +void test_nuttx_syscall_getppid01(FAR void **state); + +/* cases/gethostname_test.c + * ******************************************/ + +void test_nuttx_syscall_gethostname01(FAR void **state); + +/* cases/getTimeofday_test.c + * *****************************************/ + +void test_nuttx_syscall_gettimeofday01(FAR void **state); + +/* cases/lseek_test.c + * ************************************************/ + +void test_nuttx_syscall_lseek01(FAR void **state); +void test_nuttx_syscall_lseek07(FAR void **state); + +/* cases/lstat_test.c + * ************************************************/ + +void test_nuttx_syscall_lstat01(FAR void **state); + +/* cases/dup_test.c + * **************************************************/ + +void test_nuttx_syscall_dup01(FAR void **state); +void test_nuttx_syscall_dup02(FAR void **state); +void test_nuttx_syscall_dup03(FAR void **state); +void test_nuttx_syscall_dup04(FAR void **state); +void test_nuttx_syscall_dup05(FAR void **state); + +/* cases/dup2_test.c + * **************************************************/ + +void test_nuttx_syscall_dup201(FAR void **state); +void test_nuttx_syscall_dup202(FAR void **state); + +/* cases/fpathconf_test.c + * *********************************************/ + +void test_nuttx_syscall_fpathconf01(FAR void **state); + +/* cases/getegid_test.c + * ***********************************************/ + +void test_nuttx_syscall_getegid01(FAR void **state); +void test_nuttx_syscall_getegid02(FAR void **state); + +/* cases/geteuid_test.c + * ***********************************************/ + +void test_nuttx_syscall_geteuid01(FAR void **state); +void test_nuttx_syscall_geteuid02(FAR void **state); + +/* cases/getgid_test.c + * ***********************************************/ + +void test_nuttx_syscall_getgid01(FAR void **state); +void test_nuttx_syscall_getgid02(FAR void **state); + +/* cases/getuid_test.c + * ***********************************************/ + +void test_nuttx_syscall_getuid01(FAR void **state); +void test_nuttx_syscall_getuid02(FAR void **state); + +/* cases/pathconf_test.c + * *********************************************/ + +void test_nuttx_syscall_pathconf01(FAR void **state); + +/* cases/pipe_test.c + * *************************************************/ + +void test_nuttx_syscall_pipe01(FAR void **state); +void test_nuttx_syscall_pipe02(FAR void **state); + +/* cases/pread_test.c + * ************************************************/ + +void test_nuttx_syscall_pread01(FAR void **state); + +/* cases/pwrite_test.c + * ***********************************************/ + +void test_nuttx_syscall_pwrite01(FAR void **state); +void test_nuttx_syscall_pwrite02(FAR void **state); + +/* cases/rmdir_test.c + * ************************************************/ + +void test_nuttx_syscall_rmdir01(FAR void **state); +void test_nuttx_syscall_rmdir02(FAR void **state); + +/* ases/syscall_truncate_test.c + * **********************************************/ + +void test_nuttx_syscall_truncate01(FAR void **state); + +/* cases/unlink_test.c + * ***********************************************/ + +void test_nuttx_syscall_unlink01(FAR void **state); + +/* cases/nansleep_test.c + * *********************************************/ + +void test_nuttx_syscall_nansleep01(FAR void **state); +void test_nuttx_syscall_nansleep02(FAR void **state); + +/* cases/time_test.c + * *************************************************/ + +void test_nuttx_syscall_time01(FAR void **state); +void test_nuttx_syscall_time02(FAR void **state); + +/* cases/timer_create_test.c + * *****************************************/ + +void test_nuttx_syscall_timercreate01(FAR void **state); + +/* cases/timer_delete_test.c + * *****************************************/ + +void test_nuttx_syscall_timerdelete01(FAR void **state); + +/* cases/timer_gettime_test.c + * ****************************************/ + +void test_nuttx_syscall_timergettime01(FAR void **state); + +/* cases/mkdir_test.c + * ************************************************/ + +void test_nuttx_syscall_mkdir01(FAR void **state); +void test_nuttx_syscall_mkdir02(FAR void **state); +void test_nuttx_syscall_mkdir03(FAR void **state); + +/* cases/syscall_sched_test.c + * ***********************************************/ + +void test_nuttx_syscall_sched01(FAR void **state); +void test_nuttx_syscall_sched02(FAR void **state); +void test_nuttx_syscall_sched03(FAR void **state); +void test_nuttx_syscall_sched04(FAR void **state); + +/* cases/write_test.c + * ************************************************/ + +void test_nuttx_syscall_write01(FAR void **state); +void test_nuttx_syscall_write02(FAR void **state); +void test_nuttx_syscall_write03(FAR void **state); + +/* cases/read_test.c + * *************************************************/ + +void test_nuttx_syscall_read01(FAR void **state); +void test_nuttx_syscall_read02(FAR void **state); +void test_nuttx_syscall_read03(FAR void **state); +void test_nuttx_syscall_read04(FAR void **state); + +/* cases/symlink_test.c + * **********************************************/ + +void test_nuttx_syscall_symlink01(FAR void **state); +void test_nuttx_syscall_symlink02(FAR void **state); + +/* cases/socket_test.c + * **********************************************/ + +void test_nuttx_syscall_sockettest01(FAR void **state); +void test_nuttx_syscall_sockettest02(FAR void **state); + +/* cases/getpeername_test.c + * **********************************************/ + +void test_nuttx_syscall_connect01(FAR void **state); + +/* cases/getpeername_test.c + * **********************************************/ + +void test_nuttx_syscall_getpeername01(FAR void **state); + +/* cases/getsocketopt_test.c + * **********************************************/ + +void test_nuttx_syscall_getsockopt01(FAR void **state); + +/* cases/recvfrom_test.c + * **********************************************/ + +void test_nuttx_syscall_recvfromtest01(FAR void **state); + +/* cases/setsocketopt01_test.c + * **********************************************/ + +void test_nuttx_syscall_setsockopt01(FAR void **state); + +/* cases/listen_test.c + * **********************************************/ + +void test_nuttx_syscall_listen01(FAR void **state); + +/* cases/socketpair_test.c + * **********************************************/ + +void test_nuttx_syscall_socketpair01(FAR void **state); +void test_nuttx_syscall_socketpair02(FAR void **state); + +/* cases/bind_test.c + * **********************************************/ + +void test_nuttx_syscall_bind01(FAR void **state); + +#endif diff --git a/testing/testsuites/kernel/time/cases/clock_test_clock01.c b/testing/testsuites/kernel/time/cases/clock_test_clock01.c index e2570a6b72a..a0cedb89166 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_clock01.c +++ b/testing/testsuites/kernel/time/cases/clock_test_clock01.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -65,9 +64,11 @@ void test_nuttx_clock_test_clock01(FAR void **state) assert_int_equal(ret, 0); syslog(LOG_INFO, "sleep 2 seconds\n"); - sleep(2); /* 2, seconds. */ + sleep(2); + + /* 2, use for testing clock setting */ - tp.tv_sec = oldtp.tv_sec + 2; /* 2, use for testing clock setting */ + tp.tv_sec = oldtp.tv_sec + 2; tp.tv_nsec = oldtp.tv_nsec; /* set real time */ @@ -83,15 +84,12 @@ void test_nuttx_clock_test_clock01(FAR void **state) ret = clock_gettime(clk, &tp); syslog(LOG_INFO, - "Obtaining the current time after setting:" - " sec = %lld, nsec = %ld\n", - (long long)tp.tv_sec, - tp.tv_nsec); - - /* 2, use for testing clock setting */ - - passflag = (tp.tv_sec >= 2 + oldtp.tv_sec) - && (tp.tv_sec <= 2 + oldtp.tv_sec + 1); + "Obtaining the current time after setting: sec = %lld, nsec = " + "%ld\n", + (long long)tp.tv_sec, tp.tv_nsec); + passflag = (tp.tv_sec >= 2 + oldtp.tv_sec) && + (tp.tv_sec <= + 2 + oldtp.tv_sec + 1); /* 2, use for testing clock setting */ assert_int_equal(ret, 0); assert_int_equal(passflag, 1); diff --git a/testing/testsuites/kernel/time/cases/clock_test_clock02.c b/testing/testsuites/kernel/time/cases/clock_test_clock02.c index c3b05ebba84..ebf35522723 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_clock02.c +++ b/testing/testsuites/kernel/time/cases/clock_test_clock02.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include diff --git a/testing/testsuites/kernel/time/cases/clock_test_smoke.c b/testing/testsuites/kernel/time/cases/clock_test_smoke.c index 595c1a48c7f..7de690d7237 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_smoke.c +++ b/testing/testsuites/kernel/time/cases/clock_test_smoke.c @@ -1,40 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/time/cases/clock_test_smoke.c - * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2020-2022 Huawei Device Co., Ltd. All rights reserved. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: + * 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 * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. + * 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. * - * 3. Neither the name of the copyright holder nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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. - */ + ****************************************************************************/ /**************************************************************************** * Included Files ****************************************************************************/ - #include #include #include @@ -59,24 +45,24 @@ void test_nuttx_clock_test_smoke01(FAR void **state) { clockid_t clk = CLOCK_REALTIME; - struct timespec res = { - 0, - 0, + struct timespec res = + { + 0, 0 }; - struct timespec setts = { - 0, - 0, + struct timespec setts = + { + 0, 0 }; - struct timespec oldtp = { - 0, - 0 + struct timespec oldtp = + { + 0, 0 }; - struct timespec ts = { - 0, - 0, + struct timespec ts = + { + 0, 0 }; int ret; @@ -90,7 +76,8 @@ void test_nuttx_clock_test_smoke01(FAR void **state) /* get clock realtime */ ret = clock_gettime(clk, &oldtp); - syslog(LOG_INFO, "the clock current time: %lld second, %ld nanosecond\n", + syslog(LOG_INFO, + "the clock current time: %lld second, %ld nanosecond\n", (long long)oldtp.tv_sec, oldtp.tv_nsec); assert_int_equal(ret, 0); @@ -98,21 +85,22 @@ void test_nuttx_clock_test_smoke01(FAR void **state) setts.tv_sec = oldtp.tv_sec + 1; setts.tv_nsec = oldtp.tv_nsec; - syslog(LOG_INFO, "the clock setting time: %lld second, %ld nanosecond\n", + syslog(LOG_INFO, + "the clock setting time: %lld second, %ld nanosecond\n", (long long)setts.tv_sec, setts.tv_nsec); ret = clock_settime(CLOCK_REALTIME, &setts); assert_int_equal(ret, 0); ret = clock_gettime(clk, &ts); syslog(LOG_INFO, - "obtaining the current time after " - "setting: %lld second, %ld nanosecond\n", - (long long)ts.tv_sec, - ts.tv_nsec); - - /* 1, means obtaining time's errno is 1 second. */ - - passflag = (ts.tv_sec >= setts.tv_sec) && (ts.tv_sec <= setts.tv_sec + 1); + "obtaining the current time after setting: %lld second, %ld " + "nanosecond\n", + (long long)ts.tv_sec, ts.tv_nsec); + + passflag = + (ts.tv_sec >= setts.tv_sec) && + (ts.tv_sec <= + setts.tv_sec + 1); /* 1, means obtaining time's errno is 1 second. */ assert_int_equal(ret, 0); assert_int_equal(passflag, 1); } diff --git a/testing/testsuites/kernel/time/cases/clock_test_timer01.c b/testing/testsuites/kernel/time/cases/clock_test_timer01.c index e2f1920b026..5146db37251 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_timer01.c +++ b/testing/testsuites/kernel/time/cases/clock_test_timer01.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -49,21 +48,21 @@ * Private Data ****************************************************************************/ -static int test_timer01_g_sig_hdl_cnt = 0; +static int test_timer01_g_sighdlcnt = 0; /**************************************************************************** * Private Functions ****************************************************************************/ /**************************************************************************** - * Name: sig_handler01 + * Name: sighandler01 ****************************************************************************/ -static void sig_handler01(int sig) +static void sighandler01(int sig) { - test_timer01_g_sig_hdl_cnt++; - syslog(LOG_INFO, "signo = %d test_timer01_g_sig_hdl_cnt = %d\n", - sig, test_timer01_g_sig_hdl_cnt); + test_timer01_g_sighdlcnt++; + syslog(LOG_INFO, "signo = %d test_timer01_g_sighdlcnt = %d\n", sig, + test_timer01_g_sighdlcnt); } /**************************************************************************** @@ -86,7 +85,7 @@ void test_nuttx_clock_test_timer01(FAR void **state) int ret; sa.sa_flags = 0; - sa.sa_handler = sig_handler01; + sa.sa_handler = sighandler01; sigemptyset(&sa.sa_mask); ret = sigaction(SIG, &sa, NULL); syslog(LOG_INFO, "sigaction %d: %d", SIG, ret); @@ -141,7 +140,9 @@ void test_nuttx_clock_test_timer01(FAR void **state) syslog(LOG_INFO, "sleep %ds", interval); - /* timer signal is blocked, this sleep should not be interrupted */ + /* timer signal is blocked, + * this sleep should not be interrupted + */ sleep(interval); @@ -162,13 +163,13 @@ void test_nuttx_clock_test_timer01(FAR void **state) interval = 1; syslog(LOG_INFO, "sleep another %ds", interval); sleep(interval); /* this sleep may be interrupted by the timer */ - syslog(LOG_INFO, "sleep time over, test_timer01_g_sig_hdl_cnt = %d", - test_timer01_g_sig_hdl_cnt); + syslog(LOG_INFO, "sleep time over, test_timer01_g_sighdlcnt = %d", + test_timer01_g_sighdlcnt); syslog(LOG_INFO, "sleep another %ds", interval); sleep(interval); /* this sleep may be interrupted by the timer */ - syslog(LOG_INFO, "sleep time over, test_timer01_g_sig_hdl_cnt = %d", - test_timer01_g_sig_hdl_cnt); + syslog(LOG_INFO, "sleep time over, test_timer01_g_sighdlcnt = %d", + test_timer01_g_sighdlcnt); ret = timer_delete(timerid01); syslog(LOG_INFO, "timer_delete %p %d", timerid01, ret); @@ -178,5 +179,5 @@ void test_nuttx_clock_test_timer01(FAR void **state) syslog(LOG_INFO, "timer_delete %p %d", timerid02, ret); assert_int_equal(ret, 0); - assert_int_not_equal(test_timer01_g_sig_hdl_cnt, 0); + assert_int_not_equal(test_timer01_g_sighdlcnt, 0); } diff --git a/testing/testsuites/kernel/time/cases/clock_test_timer03.c b/testing/testsuites/kernel/time/cases/clock_test_timer03.c index c23093dd5b8..54228d4ecb4 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_timer03.c +++ b/testing/testsuites/kernel/time/cases/clock_test_timer03.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -61,7 +60,7 @@ void test_nuttx_clock_test_timer03(FAR void **state) int failed = 0; timer_t timerid; sigset_t set; - sigset_t old_set; + sigset_t oldset; struct sigevent sev; ret = sigemptyset(&set); @@ -70,7 +69,7 @@ void test_nuttx_clock_test_timer03(FAR void **state) ret = sigaddset(&set, SIG); assert_int_equal(ret, 0); - ret = sigprocmask(SIG_BLOCK, &set, &old_set); + ret = sigprocmask(SIG_BLOCK, &set, &oldset); assert_int_equal(ret, 0); /* Create the timer */ @@ -82,24 +81,24 @@ void test_nuttx_clock_test_timer03(FAR void **state) syslog(LOG_INFO, "timer_create %p: %d", timerid, ret); assert_int_equal(ret, 0); - struct timespec testcases[] = { - {0, 30000000}, - {1, 0}, - {1, 5000}, - }; + struct timespec testcases[] = + { + {0, 30000000}, + {1, 0}, + {1, 5000}, + }; - struct timespec zero = { - 0, - 0, - }; + struct timespec zero = + { + 0, 0 + }; for (int i = 0; i < sizeof(testcases) / sizeof(testcases[0]); ++i) { struct timespec start; struct timespec end; struct itimerspec its; - int64_t expected; - int64_t escaped; + int64_t expected, escaped; its.it_interval = zero; its.it_value = testcases[i]; @@ -116,22 +115,21 @@ void test_nuttx_clock_test_timer03(FAR void **state) ret = clock_gettime(CLOCKID, &end); assert_int_equal(ret, 0); - expected = its.it_value.tv_sec * (int64_t)(1e9) + its.it_value.tv_nsec; + expected = + its.it_value.tv_sec * (int64_t)(1e9) + its.it_value.tv_nsec; escaped = end.tv_sec * (int64_t)(1e9) + end.tv_nsec - start.tv_sec * (int64_t)(1e9) - start.tv_nsec; - /* 20000000, 2 ticks. */ - - failed += (escaped < expected || (escaped - expected) >= 20000000); - syslog(LOG_INFO, - "expected = %" PRId64 " escaped = %" PRId64 " failed = %d", - expected, escaped, failed); + failed += (escaped < expected || + (escaped - expected) >= 20000000); /* 20000000, 2 ticks. */ + syslog(LOG_INFO, "expected = %" PRId64 " escaped = %" PRId64 + "failed = %d", expected, escaped, failed); } ret = timer_delete(timerid); assert_int_equal(ret, 0); - ret = sigprocmask(SIG_SETMASK, &old_set, NULL); + ret = sigprocmask(SIG_SETMASK, &oldset, NULL); assert_int_equal(ret, 0); assert_int_equal(failed, 0); diff --git a/testing/testsuites/kernel/time/cases/clock_test_timer04.c b/testing/testsuites/kernel/time/cases/clock_test_timer04.c index 972aa5c212e..a93202ea949 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_timer04.c +++ b/testing/testsuites/kernel/time/cases/clock_test_timer04.c @@ -3,25 +3,24 @@ * * 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 + * 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. + * 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 #include #include @@ -43,8 +42,8 @@ * Pre-processor Definitions ****************************************************************************/ -/* signo should be in the range SIGRTMIN to - * SIGRTMAX when SA_SIGINFO flag is set. +/* signo should be in the range SIGRTMIN to SIGRTMAX when SA_SIGINFO flag + * is set. */ #define SIG SIGRTMIN @@ -54,17 +53,17 @@ * Private Data ****************************************************************************/ -static int test_timer04_g_handler_flag; +static int test_timer04_g_handlerflag; /**************************************************************************** * Private Functions ****************************************************************************/ /**************************************************************************** - * Name: sig_handler + * Name: sighandler ****************************************************************************/ -static void sig_handler(int sig, siginfo_t *si, void *uc) +static void sighandler(int sig, siginfo_t *si, void *uc) { if (si == NULL) { @@ -72,7 +71,7 @@ static void sig_handler(int sig, siginfo_t *si, void *uc) return; } - test_timer04_g_handler_flag++; + test_timer04_g_handlerflag++; syslog(LOG_INFO, "sig %d, si %p, uc %p\n", sig, si, uc); } @@ -97,7 +96,7 @@ void test_nuttx_clock_test_timer04(FAR void **state) /* Install handler for timer signal. */ sa.sa_flags = SA_SIGINFO; - sa.sa_sigaction = sig_handler; + sa.sa_sigaction = sighandler; sigemptyset(&sa.sa_mask); ret = sigaction(SIG, &sa, NULL); syslog(LOG_INFO, "sigaction %d: %d", SIG, ret); @@ -150,12 +149,12 @@ void test_nuttx_clock_test_timer04(FAR void **state) syslog(LOG_INFO, "sleep another %ds", interval); sleep(interval); /* should be interrupted */ - syslog(LOG_INFO, "sleep time over, g_handlerFlag = %d", - test_timer04_g_handler_flag); + syslog(LOG_INFO, "sleep time over, g_handlerflag = %d", + test_timer04_g_handlerflag); ret = timer_delete(timerid); syslog(LOG_INFO, "timer_delete %p %d", timerid, ret); assert_int_equal(ret, 0); - assert_int_not_equal(test_timer04_g_handler_flag, 0); + assert_int_not_equal(test_timer04_g_handlerflag, 0); } diff --git a/testing/testsuites/kernel/time/cases/clock_test_timer05.c b/testing/testsuites/kernel/time/cases/clock_test_timer05.c index 4c0528d3cff..a0754a26cff 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_timer05.c +++ b/testing/testsuites/kernel/time/cases/clock_test_timer05.c @@ -1,40 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/time/cases/clock_test_timer05.c - * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2020-2022 Huawei Device Co., Ltd. All rights reserved. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: + * 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 * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. + * 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. * - * 3. Neither the name of the copyright holder nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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. - */ + ****************************************************************************/ /**************************************************************************** * Included Files ****************************************************************************/ - #include #include #include @@ -56,20 +42,20 @@ * Private Data ****************************************************************************/ -static int test_timer05_g_sig_hdl_cnt01; -static int test_timer05_g_sig_hdl_cnt02; +static int test_timer05_g_sighdlcnt01; +static int test_timer05_g_sighdlcnt02; /**************************************************************************** * Private Functions ****************************************************************************/ /**************************************************************************** - * Name: temp_sig_handler + * Name: tempsighandler ****************************************************************************/ -static void temp_sig_handler(union sigval v) +static void tempsighandler(union sigval v) { - syslog(LOG_INFO, "This is temp_sig_handler ...\r\n"); + syslog(LOG_INFO, "This is tempsighandler ...\r\n"); (*(void (*)(void))(v.sival_ptr))(); } @@ -78,12 +64,12 @@ static void temp_sig_handler(union sigval v) ****************************************************************************/ /**************************************************************************** - * Name: temp_sig_handler01 + * Name: tempsighandler01 ****************************************************************************/ -static void temp_sig_handler01(void) +static void tempsighandler01(void) { - test_timer05_g_sig_hdl_cnt01++; + test_timer05_g_sighdlcnt01++; } /**************************************************************************** @@ -91,12 +77,12 @@ static void temp_sig_handler01(void) ****************************************************************************/ /**************************************************************************** - * Name: temp_sig_handler02 + * Name: tempsighandler02 ****************************************************************************/ -static void temp_sig_handler02(void) +static void tempsighandler02(void) { - test_timer05_g_sig_hdl_cnt02++; + test_timer05_g_sighdlcnt02++; } /**************************************************************************** @@ -119,8 +105,8 @@ void test_nuttx_clock_test_timer05(FAR void **state) p = memset(&sev, 0, sizeof(struct sigevent)); assert_non_null(p); sev.sigev_notify = SIGEV_THREAD; - sev.sigev_notify_function = temp_sig_handler; - sev.sigev_value.sival_ptr = (void *)temp_sig_handler01; + sev.sigev_notify_function = tempsighandler; + sev.sigev_value.sival_ptr = (void *)tempsighandler01; /* Start the timer */ @@ -141,7 +127,7 @@ void test_nuttx_clock_test_timer05(FAR void **state) its.it_interval.tv_sec = its.it_value.tv_sec; its.it_interval.tv_nsec = its.it_value.tv_nsec; - sev.sigev_value.sival_ptr = (void *)temp_sig_handler02; + sev.sigev_value.sival_ptr = (void *)tempsighandler02; ret = timer_create(CLOCK_REALTIME, &sev, &timerid02); syslog(LOG_INFO, "timer_settime %p: %d", timerid02, ret); assert_int_equal(ret, 0); @@ -164,6 +150,6 @@ void test_nuttx_clock_test_timer05(FAR void **state) syslog(LOG_INFO, "timer_delete %p %d", timerid02, ret); assert_int_equal(ret, 0); - assert_int_not_equal(test_timer05_g_sig_hdl_cnt01, 0); - assert_int_not_equal(test_timer05_g_sig_hdl_cnt02, 0); + assert_int_not_equal(test_timer05_g_sighdlcnt01, 0); + assert_int_not_equal(test_timer05_g_sighdlcnt02, 0); } diff --git a/testing/testsuites/kernel/time/cmocka_time_test.c b/testing/testsuites/kernel/time/cmocka_time_test.c index f3fe1d06fd1..4d36dcd76f4 100644 --- a/testing/testsuites/kernel/time/cmocka_time_test.c +++ b/testing/testsuites/kernel/time/cmocka_time_test.c @@ -1,24 +1,26 @@ /**************************************************************************** * apps/testing/testsuites/kernel/time/cmocka_time_test.c - * Copyright (C) 2020 Xiaomi Corporation * - * Licensed 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 + * 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 + * 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. - */ + *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 #include #include @@ -29,18 +31,19 @@ #include /**************************************************************************** - * Public Functions + * Name: cmocka_time_test_main ****************************************************************************/ /**************************************************************************** - * Name: cmocka_time_test_main + * Private Functions ****************************************************************************/ int main(int argc, char *argv[]) { /* Add Test Cases */ - const struct CMUnitTest nuttx_time_testsuites[] = { + const struct CMUnitTest nuttx_time_test_suites[] = + { cmocka_unit_test(test_nuttx_clock_test_smoke01), cmocka_unit_test(test_nuttx_clock_test_timer01), cmocka_unit_test(test_nuttx_clock_test_timer03), @@ -52,6 +55,6 @@ int main(int argc, char *argv[]) /* Run Test cases */ - cmocka_run_group_tests(nuttx_time_testsuites, NULL, NULL); + cmocka_run_group_tests(nuttx_time_test_suites, NULL, NULL); return 0; } diff --git a/testing/testsuites/kernel/time/include/TimeTest.h b/testing/testsuites/kernel/time/include/TimeTest.h index 31d24d6f47e..79d25937589 100644 --- a/testing/testsuites/kernel/time/include/TimeTest.h +++ b/testing/testsuites/kernel/time/include/TimeTest.h @@ -1,43 +1,28 @@ /**************************************************************************** * apps/testing/testsuites/kernel/time/include/TimeTest.h - * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. - * Copyright (c) 2020-2022 Huawei Device Co., Ltd. All rights reserved. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: + * 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 * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. + * http://www.apache.org/licenses/LICENSE-2.0 * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. + * 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. * - * 3. Neither the name of the copyright holder nor the names of its - * contributors may be used to endorse or promote products derived from this - * software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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. - */ + ****************************************************************************/ #ifndef TIME_CLOCK_LT_CLOCK_TEST_H_ #define TIME_CLOCK_LT_CLOCK_TEST_H_ - /**************************************************************************** * Included Files ****************************************************************************/ - #include #include #include From b6f05945760de1b9996a1ec36aeb742577430035 Mon Sep 17 00:00:00 2001 From: wangmingrong1 Date: Mon, 2 Dec 2024 16:33:08 +0800 Subject: [PATCH 24/38] mtetest: Add a series of tests for the mte instruction set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added basic mte instructions, ldg, stg, irg, gmi instruction tests ➜ NX git:(master) ✗ qemu-system-aarch64 -cpu max -nographic \ -machine virt,virtualization=on,gic-version=3,mte=on \ -chardev stdio,id=con,mux=on, -serial chardev:con \ -mon chardev=con,mode=readline -kernel ./nuttx/nuttx - Ready to Boot Primary CPU - Boot from EL2 - Boot from EL1 - Boot to C runtime for OS Initialize NuttShell (NSH) nsh> nsh> nsh> mtetest Spawning process for test: mtetest1 Running test: mtetest1 Test 'mtetest1' completed Spawning process for test: mtetest2 Running test: mtetest2 Test 'mtetest2' completed Spawning process for test: mtetest3 Running test: mtetest3 Test 'mtetest3' completed Spawning process for test: mtetest4 Running test: mtetest4 Test 'mtetest4' completed Spawning process for test: mtetest5 Running test: mtetest5 Test 'mtetest5' completed All tests completed. nsh> Signed-off-by: wangmingrong1 --- testing/mtetest/CMakeLists.txt | 23 ++ testing/mtetest/Kconfig | 11 + testing/mtetest/Make.defs | 23 ++ testing/mtetest/Makefile | 28 +++ testing/mtetest/mtetest.c | 371 +++++++++++++++++++++++++++++++++ 5 files changed, 456 insertions(+) create mode 100644 testing/mtetest/CMakeLists.txt create mode 100644 testing/mtetest/Kconfig create mode 100644 testing/mtetest/Make.defs create mode 100644 testing/mtetest/Makefile create mode 100644 testing/mtetest/mtetest.c diff --git a/testing/mtetest/CMakeLists.txt b/testing/mtetest/CMakeLists.txt new file mode 100644 index 00000000000..a3a9737b812 --- /dev/null +++ b/testing/mtetest/CMakeLists.txt @@ -0,0 +1,23 @@ +# ############################################################################## +# apps/testing/mtetest/CMakeLists.txt +# +# 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. +# +# ############################################################################## + +if(CONFIG_TESTING_MTE) + nuttx_add_application(NAME mtetest COMPILE_FLAGS ${CFLAGS} SRCS mtetest.c) +endif() diff --git a/testing/mtetest/Kconfig b/testing/mtetest/Kconfig new file mode 100644 index 00000000000..e4574d58149 --- /dev/null +++ b/testing/mtetest/Kconfig @@ -0,0 +1,11 @@ +# +# For a description of the syntax of this configuration file, +# see the file kconfig-language.txt in the NuttX tools repository. +# + +config TESTING_MTE + tristate "MTE instruction set test" + depends on ARM64_MTE + default n + ---help--- + Enable MTE instruction set test diff --git a/testing/mtetest/Make.defs b/testing/mtetest/Make.defs new file mode 100644 index 00000000000..e927e21187a --- /dev/null +++ b/testing/mtetest/Make.defs @@ -0,0 +1,23 @@ +############################################################################ +# apps/testing/mtetest/Make.defs +# +# 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. +# +############################################################################ + +ifneq ($(CONFIG_TESTING_MTE),) +CONFIGURED_APPS += $(APPDIR)/testing/mtetest +endif diff --git a/testing/mtetest/Makefile b/testing/mtetest/Makefile new file mode 100644 index 00000000000..b95a2a04fb7 --- /dev/null +++ b/testing/mtetest/Makefile @@ -0,0 +1,28 @@ +############################################################################ +# apps/testing/mtetest/Makefile +# +# 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. +# +############################################################################ + +include $(APPDIR)/Make.defs + +MAINSRC = mtetest.c +PROGNAME = mtetest +PRIORITY = $(CONFIG_TESTING_KASAN_PRIORITY) +STACKSIZE = $(CONFIG_DEFAULT_TASK_STACKSIZE) + +include $(APPDIR)/Application.mk diff --git a/testing/mtetest/mtetest.c b/testing/mtetest/mtetest.c new file mode 100644 index 00000000000..a08ef382583 --- /dev/null +++ b/testing/mtetest/mtetest.c @@ -0,0 +1,371 @@ +/**************************************************************************** + * apps/testing/mtetest/mtetest.c + * + * 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 +#include + +#include +#include +#include +#include +#include +#include + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#define MTETEST_BUFFER_LEN 512 + +struct mte_test_s +{ + FAR const char *name; + FAR void (*func)(void); +}; + +/**************************************************************************** + * Private Function Prototypes + ****************************************************************************/ + +static void mtetest1(void); +static void mtetest2(void); +static void mtetest3(void); +static void mtetest4(void); +static void mtetest5(void); + +/**************************************************************************** + * Private Data + ****************************************************************************/ + +/* The instruction requires a 16-byte aligned memory block. */ + +static aligned_data(16) char g_buffer[MTETEST_BUFFER_LEN]; + +static const struct mte_test_s g_mtetest[] = +{ + { "mtetest1", mtetest1 }, + { "mtetest2", mtetest2 }, + { "mtetest3", mtetest3 }, + { "mtetest4", mtetest4 }, + { "mtetest5", mtetest5 }, + { NULL, NULL } +}; + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +/**************************************************************************** + * Name: tagset + * + * Description: + * Applies tags to a memory block starting from the pointer `p` for a + * given size (`size`). The function iterates through the memory in + * 16-byte chunks and uses the `stg` (store tag) instruction to assign + * a tag to each address. + * + * - `p`: The starting pointer to the memory block. + * - `size`: The size of the memory block (in bytes) to tag. + * + * The function uses inline assembly to store the tag at each memory + * location in the specified region, ensuring that the entire block is + * tagged. + ****************************************************************************/ + +static void __attribute__((noinline)) tagset(void *p, size_t size) +{ + size_t i; + for (i = 0; i < size; i += 16) + { + asm("stg %0, [%0]" : : "r"(p + i)); + } +} + +/**************************************************************************** + * Name: tagcheck + * + * Description: + * Verifies the consistency of tags in memory block starting from ptr `p` + * for the given `size`. The function checks each 16-byte chunk using the + * `ldg` (load tag) instruction to load the tag and compares it with the + * original pointer `p` to ensure consistency. + * + * - `p`: The starting pointer to the memory block. + * - `size`: The size of the memory block (in bytes) to check for + * tag consistency. + * + * The function loads the tag for each chunk and ensures that the tag + * matches the expected value. If the tag does not match, the function + * triggers an assertion failure, providing a mechanism to validate + * correct memory tagging and access. + ****************************************************************************/ + +static void __attribute__((noinline)) tagcheck(void *p, size_t size) +{ + size_t i; + void *c; + + for (i = 0; i < size; i += 16) + { + asm("ldg %0, [%1]" : "=r"(c) : "r"(p + i), "0"(p)); + assert(c == p); + } +} + +/**************************************************************************** + * Name: mtetest1 + * + * Description: + * 1. Initializes the pointer `p0` to point to `g_buffer`, which is assumed + * to contain enough data. + * 2. Uses the assembly instruction `irg` to create a tagged pointer `p1` + * from `p0`. Asserts that `p1` is not equal to `p0`, confirming the + * tagging operation worked. + * 3. Uses the assembly instruction `subp` to calculate the difference + * between `p0` and `p1`, storing it in `c`. Asserts that `c` is zero, + * confirming that `p1` and `p0` are the same address. + * 4. Uses `stg` to store the tag from `p1` at the address of `p1`. + * 5. Uses `ldg` to load the tag from `p0` into `p2`. Asserts that `p1` + * and `p2` are equal, confirming the tag stored at `p0` is correctly + * retrieved into `p2`. + ****************************************************************************/ + +static void mtetest1(void) +{ + long c; + int *p0; + int *p1; + int *p2; + + p0 = (int *)g_buffer; + + asm("irg %0,%1,%2" : "=r"(p1) : "r"(p0), "r"(1l)); + assert(p1 != p0); + + asm("subp %0,%1,%2" : "=r"(c) : "r"(p0), "r"(p1)); + assert(c == 0); + + asm("stg %0, [%0]" : : "r"(p1)); + asm("ldg %0, [%1]" : "=r"(p2) : "r"(p0), "0"(p0)); + assert(p1 == p2); +} + +/**************************************************************************** + * Name: mtetest2 + * + * Description: + * 1. Initializes the pointer `p0` to point to `g_buffer`, which is assumed + * to contain sufficient data. + * 2. Uses the assembly instruction `irg` to create a tagged pointer `p1` + * from `p0` using `excl`. The `gmi` instruction is used to modify `excl`, + * and asserts that `excl` is different from 1, confirming the change. + * 3. Creates a second tagged pointer `p2` using the modified `excl` and + * asserts that `p1` and `p2` are different, validating that two distinct + * tagged pointers are created. + ****************************************************************************/ + +static void mtetest2(void) +{ + long excl = 1; + int *p0; + int *p1; + int *p2; + + p0 = (int *)g_buffer; + + /* Create two differently tagged pointers. */ + + asm("irg %0,%1,%2" : "=r"(p1) : "r"(p0), "r"(excl)); + asm("gmi %0,%1,%0" : "+r"(excl) : "r" (p1)); + assert(excl != 1); + + asm("irg %0,%1,%2" : "=r"(p2) : "r"(p0), "r"(excl)); + assert(p1 != p2); +} + +/**************************************************************************** + * Name: mtetest3 + * + * Description: + * 1. Initializes `p0` to point to `g_buffer`, which is assumed to contain + * enough data. + * 2. Uses the assembly instruction `irg` to create a tagged pointer `p1` + * from `p0`. It then uses `gmi` to modify the `excl` value, ensuring it + * is different from 1 (validated by an `assert`). + * 3. Uses `irg` again to create a tagged pointer `p2` from `p0`. Asserts + * that `p1` and `p2` are different, validating the creation of two + * distinct tagged pointers. + * 4. Stores the tag from the first pointer (`p1`) using the assembly + * instruction `stg`. + * 5. Stores the value at `p1` using the assembly instruction `str`, followed + * by a `yield` to allow other tasks to execute. + ****************************************************************************/ + +static void mtetest3(void) +{ + long excl = 1; + int *p0; + int *p1; + int *p2; + + p0 = (int *)g_buffer; + + /* Create two differently tagged pointers. */ + + asm("irg %0,%1,%2" : "=r"(p1) : "r"(p0), "r"(excl)); + asm("gmi %0,%1,%0" : "+r"(excl) : "r" (p1)); + assert(excl != 1); + + asm("irg %0,%1,%2" : "=r"(p2) : "r"(p0), "r"(excl)); + assert(p1 != p2); + + /* Store the tag from the first pointer. */ + + asm("stg %0, [%0]" : : "r"(p1)); + asm("str %0, [%0]; yield" : : "r"(p1)); +} + +/**************************************************************************** + * Name: mtetest4 + * + * Description: + * 1. Initializes the pointer `p0` to point to `g_buffer`, which is assumed + * to contain sufficient data. + * 2. Uses the assembly instruction `irg` (likely a custom instruction) to + * process `p0` and `excl`, storing the result in `p1`. + * 3. Calls the `tagset` function with `p1` and `MTETEST_BUFFER_LEN` to set + * tags for the buffer. + * 4. Calls the `tagcheck` function with `p1` and `MTETEST_BUFFER_LEN` to + * verify the tags for the buffer. + ****************************************************************************/ + +static void mtetest4(void) +{ + long excl = 1; + int *p0; + int *p1; + + p0 = (int *)g_buffer; + + /* Tag the pointer. */ + + asm("irg %0,%1,%2" : "=r"(p1) : "r"(p0), "r"(excl)); + + tagset(p1, MTETEST_BUFFER_LEN); + tagcheck(p1, MTETEST_BUFFER_LEN); +} + +/**************************************************************************** + * Name: mtetest5 + * + * Description: + * 1. Initializes the pointer `p0` to point to `g_buffer`, which is assumed + * to contain enough data. + * 2. Uses the assembly instruction `irg` (possibly a custom instruction) + * to process `p0` and `excl`, storing the result in `p1`. + * 3. Uses the assembly instruction `stg` to store data at the address + * `p0 + 16`. + * 4. Uses standard C syntax to assign the value 1 to the address `p0 + 16`. + * 5. Uses the assembly instruction `stg` to store data at the address + * `p1 + 16`. + * 6. Uses `assert` to verify that the value at `p1 + 16` is 1, ensuring + * that the assignment was successful. + ****************************************************************************/ + +static void mtetest5(void) +{ + long excl = 1; + int *p0; + int *p1; + + p0 = (int *)g_buffer; + + /* Tag the pointer. */ + + asm("irg %0,%1,%2" : "=r"(p1) : "r"(p0), "r"(excl)); + + /* Assign value 1 to the address p0 + 16 */ + + asm("stg %0, [%0]" : : "r"(p0 + 16)); + *(p0 + 16) = 1; + + asm("stg %0, [%0]" : : "r"(p1 + 16)); + assert(1 == *(p1 + 16)); +} + +static void spawn_test_process(const struct mte_test_s *test) +{ + char *args[3]; + int status; + pid_t pid; + + args[0] = "mtetest"; + args[1] = (char *)test->name; + args[2] = NULL; + + if (posix_spawn(&pid, "mtetest", NULL, NULL, args, environ) != 0) + { + perror("posix_spawn"); + return; + } + + waitpid(pid, &status, 0); + printf("Test '%s' completed\n", test->name); +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +int main(int argc, char *argv[]) +{ + int i; + + if (argc < 2) + { + /* Loop through the tests and spawn a process for each one */ + + for (i = 0; g_mtetest[i].name != NULL; i++) + { + printf("Spawning process for test: %s\n", g_mtetest[i].name); + spawn_test_process(&g_mtetest[i]); + } + + printf("All tests completed.\n"); + } + else + { + for (i = 0; g_mtetest[i].name != NULL; i++) + { + if (strcmp(argv[1], g_mtetest[i].name) == 0) + { + printf("Running test: %s\n", g_mtetest[i].name); + g_mtetest[i].func(); + break; + } + } + } + + return 0; +} From a37a9b256ec253c6e65970f4f6fa881f394a6b13 Mon Sep 17 00:00:00 2001 From: Tiago Medicci Date: Mon, 16 Dec 2024 15:28:55 -0300 Subject: [PATCH 25/38] ostest: Add test for GCC's tls (CONFIG_SCHED_THREAD_LOCAL) Enables testing the GCC thread local storage (tls) and the __thread keyword within ostest. --- testing/ostest/Makefile | 4 + testing/ostest/ostest.h | 4 + testing/ostest/ostest_main.c | 8 + testing/ostest/sched_thread_local.c | 230 ++++++++++++++++++++++++++++ 4 files changed, 246 insertions(+) create mode 100644 testing/ostest/sched_thread_local.c diff --git a/testing/ostest/Makefile b/testing/ostest/Makefile index fcd04665d5f..18fc1c19d80 100644 --- a/testing/ostest/Makefile +++ b/testing/ostest/Makefile @@ -58,6 +58,10 @@ ifneq ($(CONFIG_TLS_NELEM),0) CSRCS += tls.c endif +ifeq ($(CONFIG_SCHED_THREAD_LOCAL),y) +CSRCS += sched_thread_local.c +endif + ifeq ($(CONFIG_TESTING_OSTEST_AIO),y) CSRCS += aio.c endif diff --git a/testing/ostest/ostest.h b/testing/ostest/ostest.h index f369319c2f4..02ed90c7b16 100644 --- a/testing/ostest/ostest.h +++ b/testing/ostest/ostest.h @@ -234,6 +234,10 @@ void sporadic2_test(void); void tls_test(void); +/* sched_thread_local.c *****************************************************/ + +void sched_thread_local_test(void); + /* pthread_rwlock.c *********************************************************/ void pthread_rwlock_test(void); diff --git a/testing/ostest/ostest_main.c b/testing/ostest/ostest_main.c index c0f37dbc951..4a3902c8b55 100644 --- a/testing/ostest/ostest_main.c +++ b/testing/ostest/ostest_main.c @@ -313,6 +313,14 @@ static int user_main(int argc, char *argv[]) check_test_memory_usage(); #endif +#ifdef CONFIG_SCHED_THREAD_LOCAL + /* Test __thread/thread_local keyword */ + + printf("\nuser_main: sched_thread_local test\n"); + sched_thread_local_test(); + check_test_memory_usage(); +#endif + /* Top of test loop */ #if CONFIG_TESTING_OSTEST_LOOPS > 1 diff --git a/testing/ostest/sched_thread_local.c b/testing/ostest/sched_thread_local.c new file mode 100644 index 00000000000..d2fc08a3104 --- /dev/null +++ b/testing/ostest/sched_thread_local.c @@ -0,0 +1,230 @@ +/**************************************************************************** + * apps/testing/ostest/sched_thread_local.c + * + * 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 +#include + +#include +#include +#include +#include +#include + +#include "ostest.h" + +#ifdef CONFIG_SCHED_THREAD_LOCAL + +/**************************************************************************** + * Pre-processor Definitions + ****************************************************************************/ + +#define INIT_VALUE 6 +#define TEST_THREADS 3 + +/**************************************************************************** + * Private Data + ****************************************************************************/ + +__thread short g_tls_short = INIT_VALUE; +__thread int g_tls_int = INIT_VALUE; +__thread long long g_tls_lld = -INIT_VALUE; + +long long g_tls_variables[TEST_THREADS][3]; + +static pthread_barrier_t g_barrier; + +/**************************************************************************** + * Private Functions + ****************************************************************************/ + +static void *thread_func(void *parameter) +{ + int id = (int)((intptr_t)parameter); + short value_short = g_tls_short; + int value_int = g_tls_int; + long long value_lld = g_tls_lld; + int status; + + /* Wait at the g_barrier until all threads are synchronized. */ + + status = pthread_barrier_wait(&g_barrier); + if (status != 0 && status != PTHREAD_BARRIER_SERIAL_THREAD) + { + printf("sched_thread_local_test: ERROR thread %d pthread_barrier_wait " + "failed\n", id); + ASSERT(false); + } + + printf("thread_func[%d]: Thread Started\n", id); + + printf("thread_func[%d]: g_tls_short (at 0x%p) initial value = %d\n", + id, &g_tls_short, value_short); + printf("thread_func[%d]: g_tls_int (at 0x%p) initial value = %d\n", + id, &g_tls_int, value_int); + printf("thread_func[%d]: g_tls_lld (at 0x%p) initial value = %lld\n", + id, &g_tls_lld, value_lld); + + if (value_short != INIT_VALUE) + { + printf("thread_func[%d]: " + "ERROR value_short value for this thread is different than the " + "expected initial value (%d): %d\n", + id, INIT_VALUE, value_short); + ASSERT(false); + } + + if (value_int != INIT_VALUE) + { + printf("thread_func[%d]: " + "ERROR value_int value for this thread is different than the " + "expected initial value (%d): %d\n", + id, INIT_VALUE, value_int); + ASSERT(false); + } + + if (value_lld != -INIT_VALUE) + { + printf("thread_func[%d]: " + "ERROR value_lld value for this thread is different than the " + "expected initial value (%d): %lld\n", + id, -INIT_VALUE, value_lld); + ASSERT(false); + } + + printf("thread_func[%d]: setting value_short (at 0x%p) to %d\n", + id, &g_tls_short, value_short + id); + + g_tls_short = value_short + id; + g_tls_variables[id][0] = g_tls_short; + + printf("thread_func[%d]: setting value_int (at 0x%p) to %d\n", + id, &g_tls_int, value_int + id); + + g_tls_int = value_int + id; + g_tls_variables[id][1] = g_tls_int; + + printf("thread_func[%d]: setting value_lld (at 0x%p) to %lld\n", + id, &g_tls_lld, value_lld - id); + + g_tls_lld = value_lld - id; + g_tls_variables[id][2] = g_tls_lld; + + printf("thread_func[%d]: Thread done\n", id); + return NULL; +} + +/**************************************************************************** + * Public Functions + ****************************************************************************/ + +void sched_thread_local_test(void) +{ + pthread_t thread[TEST_THREADS] = + { + 0 + }; + + int i; + int status; + + printf("sched_thread_local_test: g_tls_int value is: %d\n", g_tls_int); + + /* Create the g_barrier */ + + status = pthread_barrier_init(&g_barrier, NULL, TEST_THREADS); + if (status != OK) + { + printf("sched_thread_local_test: pthread_barrier_init failed, " + "status=%d\n", status); + } + + for (i = 0; i < TEST_THREADS; i++) + { + /* Start three thread instances */ + + printf("sched_thread_local_test: Starting waiter thread %d\n", i); + + status = pthread_create(&thread[i], NULL, + thread_func, (pthread_addr_t)(intptr_t)i); + if (status != 0) + { + printf("sched_thread_local_test: ERROR: " + "Thread %d creation failed: %d\n", i, status); + ASSERT(false); + } + } + + for (i = 0; i < TEST_THREADS; i++) + { + if (thread[i] != (pthread_t)0) + { + pthread_join(thread[i], NULL); + } + } + + for (i = 0; i < TEST_THREADS; i++) + { + printf("sched_thread_local_test: " + "g_tls_variables[thread_%d][g_tls_short] = %lld\n", + i, g_tls_variables[i][0]); + if (g_tls_variables[i][0] != INIT_VALUE + i) + { + printf("sched_thread_local_test: ERROR: " + "g_tls_variables[thread_%d][g_tls_short] = %lld\n", + i, g_tls_variables[i][0]); + ASSERT(false); + } + + printf("sched_thread_local_test: " + "g_tls_variables[thread_%d][g_tls_int] = %lld\n", + i, g_tls_variables[i][1]); + if (g_tls_variables[i][1] != INIT_VALUE + i) + { + printf("sched_thread_local_test: ERROR: " + "g_tls_variables[thread_%d][g_tls_int] = %lld\n", + i, g_tls_variables[i][1]); + ASSERT(false); + } + + printf("sched_thread_local_test: " + "g_tls_variables[thread_%d][g_tls_lld] = %lld\n", + i, g_tls_variables[i][2]); + if (g_tls_variables[i][2] != -INIT_VALUE - i) + { + printf("sched_thread_local_test: ERROR: " + "g_tls_variables[thread_%d][g_tls_lld] = %lld\n", + i, g_tls_variables[i][2]); + ASSERT(false); + } + } + + status = pthread_barrier_destroy(&g_barrier); + if (status != OK) + { + printf("sched_thread_local_test: pthread_barrier_destroy failed, " + "status=%d\n", status); + } +} + +#endif /* CONFIG_SCHED_THREAD_LOCAL */ From f8c566aea2bf3adaca116f773c10b9994cc40bd0 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 12:19:52 +0100 Subject: [PATCH 26/38] examples: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- examples/CMakeLists.txt | 2 ++ examples/Make.defs | 2 ++ examples/Makefile | 2 ++ examples/abntcodi/CMakeLists.txt | 2 ++ examples/abntcodi/Make.defs | 2 ++ examples/abntcodi/Makefile | 2 ++ examples/abntcodi/abntcodi_main.c | 2 ++ examples/adc/CMakeLists.txt | 2 ++ examples/adc/Make.defs | 2 ++ examples/adc/Makefile | 2 ++ examples/adc/adc.h | 2 ++ examples/adc/adc_main.c | 2 ++ examples/adjtime/CMakeLists.txt | 2 ++ examples/adjtime/Make.defs | 2 ++ examples/adjtime/Makefile | 2 ++ examples/adjtime/adjtime_main.c | 2 ++ examples/adxl372_test/CMakeLists.txt | 2 ++ examples/adxl372_test/Make.defs | 2 ++ examples/adxl372_test/Makefile | 2 ++ examples/adxl372_test/adxl372_test_main.c | 2 ++ examples/ajoystick/CMakeLists.txt | 2 ++ examples/ajoystick/Make.defs | 2 ++ examples/ajoystick/Makefile | 2 ++ examples/ajoystick/ajoy_main.c | 2 ++ examples/alarm/CMakeLists.txt | 2 ++ examples/alarm/Make.defs | 2 ++ examples/alarm/Makefile | 2 ++ examples/alarm/alarm_main.c | 2 ++ examples/amg88xx/CMakeLists.txt | 2 ++ examples/amg88xx/Make.defs | 2 ++ examples/amg88xx/Makefile | 2 ++ examples/amg88xx/amg88xx_main.c | 2 ++ examples/apa102/CMakeLists.txt | 2 ++ examples/apa102/Make.defs | 2 ++ examples/apa102/Makefile | 2 ++ examples/apa102/apa102_main.c | 2 ++ examples/apds9960/CMakeLists.txt | 2 ++ examples/apds9960/Make.defs | 2 ++ examples/apds9960/Makefile | 2 ++ examples/apds9960/apds9960_main.c | 2 ++ examples/audio_rttl/CMakeLists.txt | 2 ++ examples/audio_rttl/Make.defs | 2 ++ examples/audio_rttl/Makefile | 2 ++ examples/audio_rttl/audio_rttl.cxx | 2 ++ examples/audio_rttl/audio_rttl.h | 2 ++ examples/bastest/CMakeLists.txt | 2 ++ examples/bastest/Make.defs | 2 ++ examples/bastest/Makefile | 2 ++ examples/bastest/bastest_main.c | 2 ++ examples/battery/CMakeLists.txt | 2 ++ examples/battery/Make.defs | 2 ++ examples/battery/Makefile | 2 ++ examples/battery/batt_main.c | 2 ++ examples/ble/CMakeLists.txt | 2 ++ examples/ble/Make.defs | 2 ++ examples/ble/Makefile | 2 ++ examples/ble/ble.c | 2 ++ examples/ble/ble_main.c | 2 ++ examples/ble/dummy.c | 2 ++ examples/ble/sensors.c | 2 ++ examples/ble/sensors.h | 2 ++ examples/bme680/CMakeLists.txt | 2 ++ examples/bme680/Make.defs | 2 ++ examples/bme680/Makefile | 2 ++ examples/bme680/bme680_main.c | 2 ++ examples/bmi160/CMakeLists.txt | 2 ++ examples/bmi160/Make.defs | 2 ++ examples/bmi160/Makefile | 2 ++ examples/bmi160/sixaxis_main.c | 2 ++ examples/bmi160/sixaxis_uorb_main.c | 2 ++ examples/bmp180/CMakeLists.txt | 2 ++ examples/bmp180/Make.defs | 2 ++ examples/bmp180/Makefile | 2 ++ examples/bmp180/bmp180_main.c | 2 ++ examples/bmp280/CMakeLists.txt | 2 ++ examples/bmp280/Make.defs | 2 ++ examples/bmp280/Makefile | 2 ++ examples/bmp280/bmp280_main.c | 2 ++ examples/bridge/CMakeLists.txt | 2 ++ examples/bridge/Make.defs | 2 ++ examples/bridge/Makefile | 2 ++ examples/bridge/bridge_main.c | 2 ++ examples/bridge/host_main.c | 2 ++ examples/bridge/host_net1.c | 2 ++ examples/bridge/host_net2.c | 2 ++ examples/buttons/CMakeLists.txt | 2 ++ examples/buttons/Make.defs | 2 ++ examples/buttons/Makefile | 2 ++ examples/buttons/buttons_main.c | 2 ++ examples/calib_udelay/CMakeLists.txt | 2 ++ examples/calib_udelay/Make.defs | 2 ++ examples/calib_udelay/Makefile | 2 ++ examples/calib_udelay/calib_udelay_main.c | 2 ++ examples/camera/CMakeLists.txt | 2 ++ examples/camera/Make.defs | 2 ++ examples/camera/Makefile | 2 ++ examples/camera/camera_bkgd.c | 2 ++ examples/camera/camera_bkgd.h | 2 ++ examples/camera/camera_fileutil.c | 2 ++ examples/camera/camera_fileutil.h | 2 ++ examples/camera/camera_main.c | 2 ++ examples/can/CMakeLists.txt | 2 ++ examples/can/Make.defs | 2 ++ examples/can/Makefile | 2 ++ examples/can/can.h | 2 ++ examples/can/can_main.c | 2 ++ examples/capture/CMakeLists.txt | 2 ++ examples/capture/Make.defs | 2 ++ examples/capture/Makefile | 2 ++ examples/capture/cap.h | 2 ++ examples/capture/cap_main.c | 2 ++ examples/cbortest/CMakeLists.txt | 2 ++ examples/cbortest/Make.defs | 2 ++ examples/cbortest/Makefile | 2 ++ examples/cbortest/cbortest_main.c | 2 ++ examples/cctype/CMakeLists.txt | 2 ++ examples/cctype/Make.defs | 2 ++ examples/cctype/Makefile | 2 ++ examples/cctype/cctype_main.cxx | 2 ++ examples/charger/CMakeLists.txt | 2 ++ examples/charger/Make.defs | 2 ++ examples/charger/Makefile | 2 ++ examples/charger/charger_main.c | 2 ++ examples/chat/CMakeLists.txt | 2 ++ examples/chat/Make.defs | 2 ++ examples/chat/Makefile | 2 ++ examples/chat/chat_main.c | 5 ++-- examples/chrono/CMakeLists.txt | 2 ++ examples/chrono/Make.defs | 2 ++ examples/chrono/Makefile | 2 ++ examples/chrono/chrono_main.c | 2 ++ examples/configdata/CMakeLists.txt | 2 ++ examples/configdata/Make.defs | 2 ++ examples/configdata/Makefile | 2 ++ examples/configdata/configdata_main.c | 2 ++ examples/cordic/CMakeLists.txt | 2 ++ examples/cordic/Make.defs | 2 ++ examples/cordic/Makefile | 2 ++ examples/cordic/cordic_main.c | 2 ++ examples/cpuhog/CMakeLists.txt | 2 ++ examples/cpuhog/Make.defs | 2 ++ examples/cpuhog/Makefile | 2 ++ examples/cpuhog/cpuhog_main.c | 2 ++ examples/cromfs/CMakeLists.txt | 2 ++ examples/cromfs/Make.defs | 2 ++ examples/cromfs/Makefile | 2 ++ examples/dac/CMakeLists.txt | 2 ++ examples/dac/Make.defs | 2 ++ examples/dac/Makefile | 2 ++ examples/dac/dac_main.c | 2 ++ examples/dhcpd/CMakeLists.txt | 2 ++ examples/dhcpd/Make.defs | 2 ++ examples/dhcpd/Makefile | 2 ++ examples/dhcpd/Makefile.host | 2 ++ examples/dhcpd/dhcpd_daemon.c | 2 ++ examples/dhcpd/dhcpd_daemon.h | 2 ++ examples/dhcpd/dhcpd_start.c | 2 ++ examples/dhcpd/dhcpd_stop.c | 2 ++ examples/dhcpd/host.c | 2 ++ examples/dhcpd/target.c | 2 ++ examples/dhtxx/CMakeLists.txt | 2 ++ examples/dhtxx/Make.defs | 2 ++ examples/dhtxx/Makefile | 2 ++ examples/dhtxx/dhtxx_main.c | 2 ++ examples/discover/CMakeLists.txt | 2 ++ examples/discover/Make.defs | 2 ++ examples/discover/Makefile | 2 ++ examples/discover/discover_main.c | 2 ++ examples/djoystick/CMakeLists.txt | 2 ++ examples/djoystick/Make.defs | 2 ++ examples/djoystick/Makefile | 2 ++ examples/djoystick/djoy_main.c | 2 ++ examples/dronecan/CMakeLists.txt | 2 ++ examples/dronecan/Make.defs | 2 ++ examples/dronecan/Makefile | 2 ++ examples/dronecan/canard_main.c | 5 ++-- examples/elf/CMakeLists.txt | 2 ++ examples/elf/Make.defs | 2 ++ examples/elf/Makefile | 2 ++ examples/elf/elf_main.c | 2 ++ examples/elf/tests/Makefile | 2 ++ examples/elf/tests/errno/Makefile | 2 ++ examples/elf/tests/errno/errno.c | 2 ++ examples/elf/tests/hello/Makefile | 2 ++ examples/elf/tests/hello/hello.c | 2 ++ examples/elf/tests/helloxx/Makefile | 2 ++ examples/elf/tests/helloxx/hello++1.cxx | 2 ++ examples/elf/tests/helloxx/hello++2.cxx | 2 ++ examples/elf/tests/helloxx/hello++3.cxx | 2 ++ examples/elf/tests/helloxx/hello++4.cxx | 2 ++ examples/elf/tests/helloxx/hello++5.cxx | 2 ++ examples/elf/tests/longjmp/Makefile | 2 ++ examples/elf/tests/longjmp/longjmp.c | 2 ++ examples/elf/tests/mutex/Makefile | 2 ++ examples/elf/tests/mutex/mutex.c | 2 ++ examples/elf/tests/pthread/Makefile | 2 ++ examples/elf/tests/pthread/pthread.c | 2 ++ examples/elf/tests/signal/Makefile | 2 ++ examples/elf/tests/signal/signal.c | 2 ++ examples/elf/tests/struct/Makefile | 2 ++ examples/elf/tests/struct/struct.h | 2 ++ examples/elf/tests/struct/struct_dummy.c | 2 ++ examples/elf/tests/struct/struct_main.c | 2 ++ examples/elf/tests/task/Makefile | 2 ++ examples/elf/tests/task/task.c | 2 ++ examples/embedlog/CMakeLists.txt | 2 ++ examples/embedlog/Make.defs | 2 ++ examples/embedlog/Makefile | 2 ++ examples/embedlog/embedlog_main.c | 2 ++ examples/esp32_himem/CMakeLists.txt | 2 ++ examples/esp32_himem/Make.defs | 2 ++ examples/esp32_himem/Makefile | 2 ++ examples/esp32_himem/esp32_himem_main.c | 2 ++ examples/etl/CMakeLists.txt | 2 ++ examples/etl/Make.defs | 2 ++ examples/etl/Makefile | 2 ++ examples/etl/etl_main.cxx | 2 ++ examples/fb/CMakeLists.txt | 2 ++ examples/fb/Make.defs | 2 ++ examples/fb/Makefile | 2 ++ examples/fb/fb_main.c | 2 ++ examples/fboverlay/CMakeLists.txt | 2 ++ examples/fboverlay/Make.defs | 2 ++ examples/fboverlay/Makefile | 2 ++ examples/fboverlay/fboverlay_main.c | 2 ++ examples/flash_test/CMakeLists.txt | 2 ++ examples/flash_test/Make.defs | 2 ++ examples/flash_test/Makefile | 2 ++ examples/flash_test/flash_test.c | 2 ++ examples/flowc/CMakeLists.txt | 2 ++ examples/flowc/Make.defs | 2 ++ examples/flowc/Makefile | 2 ++ examples/flowc/flowc.h | 2 ++ examples/flowc/flowc_host.c | 2 ++ examples/flowc/flowc_mktestdata.c | 2 ++ examples/flowc/flowc_receiver.c | 2 ++ examples/flowc/flowc_sender.c | 2 ++ examples/flowc/flowc_target1.c | 2 ++ examples/flowc/flowc_target2.c | 2 ++ examples/fmsynth/CMakeLists.txt | 2 ++ examples/fmsynth/Make.defs | 2 ++ examples/fmsynth/Makefile | 2 ++ examples/fmsynth/keyboard_main.c | 2 ++ examples/fmsynth/mmlplayer_main.c | 2 ++ examples/fmsynth/mmlplayer_score.h | 2 ++ examples/fmsynth/music_scale.c | 2 ++ examples/fmsynth/music_scale.h | 2 ++ examples/fmsynth/operator_algorithm.c | 2 ++ examples/fmsynth/operator_algorithm.h | 2 ++ examples/foc/CMakeLists.txt | 2 ++ examples/foc/Make.defs | 2 ++ examples/foc/Makefile | 2 ++ examples/foc/foc_adc.h | 2 ++ examples/foc/foc_cfg.h | 2 ++ examples/foc/foc_debug.h | 2 ++ examples/foc/foc_device.c | 2 ++ examples/foc/foc_device.h | 2 ++ examples/foc/foc_fixed16_thr.c | 2 ++ examples/foc/foc_float_thr.c | 2 ++ examples/foc/foc_intf.c | 2 ++ examples/foc/foc_intf.h | 2 ++ examples/foc/foc_main.c | 2 ++ examples/foc/foc_motor_b16.c | 2 ++ examples/foc/foc_motor_b16.h | 2 ++ examples/foc/foc_motor_f32.c | 2 ++ examples/foc/foc_motor_f32.h | 2 ++ examples/foc/foc_mq.c | 2 ++ examples/foc/foc_mq.h | 2 ++ examples/foc/foc_nxscope.c | 2 ++ examples/foc/foc_nxscope.h | 2 ++ examples/foc/foc_parseargs.c | 2 ++ examples/foc/foc_parseargs.h | 2 ++ examples/foc/foc_perf.c | 2 ++ examples/foc/foc_perf.h | 2 ++ examples/foc/foc_thr.c | 2 ++ examples/foc/foc_thr.h | 2 ++ examples/ft80x/CMakeLists.txt | 2 ++ examples/ft80x/Make.defs | 2 ++ examples/ft80x/Makefile | 2 ++ examples/ft80x/ft80x.h | 2 ++ examples/ft80x/ft80x_bitmaps.c | 2 ++ examples/ft80x/ft80x_coprocessor.c | 2 ++ examples/ft80x/ft80x_main.c | 2 ++ examples/ft80x/ft80x_primitives.c | 2 ++ examples/ftpc/CMakeLists.txt | 2 ++ examples/ftpc/Make.defs | 2 ++ examples/ftpc/Makefile | 2 ++ examples/ftpc/ftpc.h | 2 ++ examples/ftpc/ftpc_cmds.c | 2 ++ examples/ftpc/ftpc_main.c | 2 ++ examples/ftpd/CMakeLists.txt | 2 ++ examples/ftpd/Make.defs | 2 ++ examples/ftpd/Makefile | 2 ++ examples/ftpd/ftpd.h | 2 ++ examples/ftpd/ftpd_main.c | 2 ++ examples/fxos8700cq_test/CMakeLists.txt | 2 ++ examples/fxos8700cq_test/Make.defs | 2 ++ examples/fxos8700cq_test/Makefile | 2 ++ examples/fxos8700cq_test/fxos8700cq_main.c | 3 ++- examples/gpio/CMakeLists.txt | 2 ++ examples/gpio/Make.defs | 2 ++ examples/gpio/Makefile | 2 ++ examples/gpio/gpio_main.c | 2 ++ examples/gps/CMakeLists.txt | 2 ++ examples/gps/Make.defs | 2 ++ examples/gps/Makefile | 2 ++ examples/gps/gps_main.c | 2 ++ examples/hall/CMakeLists.txt | 2 ++ examples/hall/Make.defs | 2 ++ examples/hall/Makefile | 2 ++ examples/hall/hall.h | 2 ++ examples/hall/hall_main.c | 2 ++ examples/hdc1008_demo/CMakeLists.txt | 2 ++ examples/hdc1008_demo/Make.defs | 2 ++ examples/hdc1008_demo/Makefile | 2 ++ examples/hdc1008_demo/hdc1008_main.c | 2 ++ examples/hello/CMakeLists.txt | 2 ++ examples/hello/Make.defs | 2 ++ examples/hello/Makefile | 2 ++ examples/hello/hello_main.c | 2 ++ examples/hello_d/Make.defs | 2 ++ examples/hello_d/Makefile | 2 ++ examples/hello_d/hello_d_main.d | 2 ++ examples/hello_d/nuttx_std.c | 2 ++ examples/hello_nim/Make.defs | 2 ++ examples/hello_nim/Makefile | 2 ++ examples/hello_nim/hello_nim_async.nim | 22 ++++++++++++++++ examples/hello_nim/hello_nim_main.c | 2 ++ examples/hello_rust/Make.defs | 2 ++ examples/hello_rust/Makefile | 2 ++ examples/hello_rust/hello_rust_main.rs | 2 ++ examples/hello_swift/BridgingHeader.h | 2 ++ examples/hello_swift/Make.defs | 2 ++ examples/hello_swift/Makefile | 2 ++ examples/hello_swift/hello_swift_main.swift | 2 ++ examples/hello_wasm/CMakeLists.txt | 2 ++ examples/hello_wasm/Make.defs | 2 ++ examples/hello_wasm/Makefile | 2 ++ examples/hello_wasm/hello_main.c | 2 ++ examples/hello_zig/Make.defs | 2 ++ examples/hello_zig/Makefile | 2 ++ examples/hello_zig/hello_zig.zig | 2 ++ examples/helloxx/CMakeLists.txt | 2 ++ examples/helloxx/Make.defs | 2 ++ examples/helloxx/Makefile | 2 ++ examples/helloxx/helloxx_main.cxx | 2 ++ examples/hidkbd/CMakeLists.txt | 2 ++ examples/hidkbd/Make.defs | 2 ++ examples/hidkbd/Makefile | 2 ++ examples/hidkbd/hidkbd_main.c | 2 ++ examples/hts221_reader/CMakeLists.txt | 2 ++ examples/hts221_reader/Make.defs | 2 ++ examples/hts221_reader/Makefile | 2 ++ examples/hts221_reader/hts221_reader_main.c | 2 ++ examples/hx711/CMakeLists.txt | 2 ++ examples/hx711/Make.defs | 2 ++ examples/hx711/Makefile | 2 ++ examples/hx711/hx711_main.c | 2 ++ examples/i2schar/CMakeLists.txt | 2 ++ examples/i2schar/Make.defs | 2 ++ examples/i2schar/Makefile | 2 ++ examples/i2schar/i2schar.h | 2 ++ examples/i2schar/i2schar_main.c | 2 ++ examples/i2schar/i2schar_receiver.c | 2 ++ examples/i2schar/i2schar_transmitter.c | 2 ++ examples/i2sloop/CMakeLists.txt | 2 ++ examples/i2sloop/Make.defs | 2 ++ examples/i2sloop/Makefile | 2 ++ examples/i2sloop/i2sloop_main.c | 2 ++ examples/igmp/CMakeLists.txt | 2 ++ examples/igmp/Make.defs | 2 ++ examples/igmp/Makefile | 2 ++ examples/igmp/igmp.c | 2 ++ examples/igmp/igmp.h | 2 ++ examples/ina219/CMakeLists.txt | 2 ++ examples/ina219/Make.defs | 2 ++ examples/ina219/Makefile | 2 ++ examples/ina219/ina219_main.c | 2 ++ examples/ina226/CMakeLists.txt | 2 ++ examples/ina226/Make.defs | 2 ++ examples/ina226/Makefile | 2 ++ examples/ina226/ina226_main.c | 2 ++ examples/ini_dumper/CMakeLists.txt | 2 ++ examples/ini_dumper/Make.defs | 2 ++ examples/ini_dumper/Makefile | 2 ++ examples/ini_dumper/ini_dumper_main.c | 2 ++ examples/ipcfg/CMakeLists.txt | 2 ++ examples/ipcfg/Make.defs | 2 ++ examples/ipcfg/Makefile | 2 ++ examples/ipcfg/ipcfg_main.c | 2 ++ examples/ipforward/CMakeLists.txt | 2 ++ examples/ipforward/Make.defs | 2 ++ examples/ipforward/Makefile | 2 ++ examples/ipforward/ipforward.c | 2 ++ examples/isl29023/CMakeLists.txt | 2 ++ examples/isl29023/Make.defs | 2 ++ examples/isl29023/Makefile | 2 ++ examples/isl29023/isl29023_main.c | 2 ++ examples/json/CMakeLists.txt | 2 ++ examples/json/Make.defs | 2 ++ examples/json/Makefile | 2 ++ examples/json/json_main.c | 12 +++------ examples/keyboard/Make.defs | 2 ++ examples/keyboard/Makefile | 2 ++ examples/keyboard/kbd_main.c | 2 ++ examples/leds/CMakeLists.txt | 2 ++ examples/leds/Make.defs | 2 ++ examples/leds/Makefile | 2 ++ examples/leds/leds_main.c | 2 ++ examples/leds_rust/Make.defs | 2 ++ examples/leds_rust/Makefile | 2 ++ examples/leds_rust/leds_rust_main.rs | 2 ++ examples/leds_rust/nuttx.rs | 2 ++ examples/leds_zig/Make.defs | 2 ++ examples/leds_zig/Makefile | 2 ++ examples/leds_zig/leds_zig.zig | 2 ++ examples/libtest/CMakeLists.txt | 2 ++ examples/libtest/Make.defs | 2 ++ examples/libtest/Makefile | 2 ++ examples/libtest/libtest.c | 2 ++ examples/libtest/libtest.h | 2 ++ examples/libtest/libtest_main.c | 2 ++ examples/lis3dsh_reader/CMakeLists.txt | 2 ++ examples/lis3dsh_reader/Make.defs | 2 ++ examples/lis3dsh_reader/Makefile | 2 ++ examples/lis3dsh_reader/lis3dsh_reader_main.c | 5 ++-- examples/lp503x/CMakeLists.txt | 2 ++ examples/lp503x/Make.defs | 2 ++ examples/lp503x/Makefile | 2 ++ examples/lp503x/lp503x_main.c | 2 ++ examples/lsm303_reader/CMakeLists.txt | 2 ++ examples/lsm303_reader/Make.defs | 2 ++ examples/lsm303_reader/Makefile | 2 ++ examples/lsm303_reader/lsm303_reader_main.c | 2 ++ examples/lsm330spi_test/CMakeLists.txt | 2 ++ examples/lsm330spi_test/Make.defs | 2 ++ examples/lsm330spi_test/Makefile | 2 ++ examples/lsm330spi_test/lsm330spi_test_main.c | 2 ++ examples/lsm6dsl_reader/CMakeLists.txt | 2 ++ examples/lsm6dsl_reader/Make.defs | 2 ++ examples/lsm6dsl_reader/Makefile | 2 ++ examples/lsm6dsl_reader/lsm6dsl_reader_main.c | 2 ++ examples/ltr308/CMakeLists.txt | 2 ++ examples/ltr308/Make.defs | 2 ++ examples/ltr308/Makefile | 2 ++ examples/ltr308/ltr308_main.c | 2 ++ examples/lua_module/CMakeLists.txt | 2 ++ examples/lua_module/Make.defs | 2 ++ examples/lua_module/Makefile | 2 ++ examples/lua_module/luamod_hello.c | 2 ++ examples/lvgldemo/CMakeLists.txt | 2 ++ examples/lvgldemo/Make.defs | 2 ++ examples/lvgldemo/Makefile | 2 ++ examples/lvgldemo/lvgldemo.c | 2 ++ examples/lvglterm/CMakeLists.txt | 2 ++ examples/lvglterm/Make.defs | 2 ++ examples/lvglterm/Makefile | 2 ++ examples/lvglterm/lvglterm.c | 2 ++ examples/max31855/CMakeLists.txt | 2 ++ examples/max31855/Make.defs | 2 ++ examples/max31855/Makefile | 2 ++ examples/max31855/max31855_main.c | 2 ++ examples/mcuboot/CMakeLists.txt | 2 ++ examples/mcuboot/Make.defs | 2 ++ examples/mcuboot/Makefile | 2 ++ examples/mcuboot/slot_confirm/CMakeLists.txt | 2 ++ examples/mcuboot/slot_confirm/Make.defs | 2 ++ examples/mcuboot/slot_confirm/Makefile | 2 ++ .../slot_confirm/mcuboot_confirm_main.c | 2 ++ examples/mcuboot/swap_test/CMakeLists.txt | 2 ++ examples/mcuboot/swap_test/Make.defs | 2 ++ examples/mcuboot/swap_test/Makefile | 2 ++ examples/mcuboot/swap_test/confirm_main.c | 2 ++ examples/mcuboot/swap_test/set_img_main.c | 2 ++ examples/mcuboot/swap_test/version_main.c | 2 ++ examples/mcuboot/update_agent/CMakeLists.txt | 2 ++ examples/mcuboot/update_agent/Make.defs | 2 ++ examples/mcuboot/update_agent/Makefile | 2 ++ .../mcuboot/update_agent/mcuboot_agent_main.c | 2 ++ examples/media/CMakeLists.txt | 2 ++ examples/media/Make.defs | 2 ++ examples/media/Makefile | 2 ++ examples/media/media_main.c | 2 ++ examples/mld/CMakeLists.txt | 2 ++ examples/mld/Make.defs | 2 ++ examples/mld/Makefile | 2 ++ examples/mld/mld.h | 2 ++ examples/mld/mld_main.c | 2 ++ examples/mlx90614/CMakeLists.txt | 2 ++ examples/mlx90614/Make.defs | 2 ++ examples/mlx90614/Makefile | 2 ++ examples/mlx90614/mlx90614_main.c | 7 ++--- examples/mml_parser/CMakeLists.txt | 2 ++ examples/mml_parser/Make.defs | 2 ++ examples/mml_parser/Makefile | 2 ++ examples/mml_parser/mml_parser_main.c | 2 ++ examples/modbus/CMakeLists.txt | 2 ++ examples/modbus/Make.defs | 2 ++ examples/modbus/Makefile | 2 ++ examples/modbus/modbus_main.c | 2 ++ examples/modbusmaster/CMakeLists.txt | 2 ++ examples/modbusmaster/Make.defs | 2 ++ examples/modbusmaster/Makefile | 2 ++ examples/modbusmaster/mbmaster_main.c | 6 ++--- examples/module/CMakeLists.txt | 2 ++ examples/module/Make.defs | 2 ++ examples/module/Makefile | 2 ++ examples/module/chardev/Make.defs | 2 ++ examples/module/chardev/Makefile | 2 ++ examples/module/chardev/chardev.c | 2 ++ examples/module/main/CMakeLists.txt | 2 ++ examples/module/main/Make.defs | 2 ++ examples/module/main/Makefile | 6 ++++- examples/module/main/module_main.c | 2 ++ examples/mount/CMakeLists.txt | 2 ++ examples/mount/Make.defs | 2 ++ examples/mount/Makefile | 2 ++ examples/mount/mount.h | 2 ++ examples/mount/mount_main.c | 2 ++ examples/mount/ramdisk.c | 2 ++ examples/mqttc/CMakeLists.txt | 2 ++ examples/mqttc/Make.defs | 2 ++ examples/mqttc/Makefile | 2 ++ examples/mqttc/mqttc_pub.c | 2 ++ examples/mtdpart/CMakeLists.txt | 2 ++ examples/mtdpart/Make.defs | 2 ++ examples/mtdpart/Makefile | 2 ++ examples/mtdpart/mtdpart_main.c | 2 ++ examples/mtdrwb/CMakeLists.txt | 2 ++ examples/mtdrwb/Make.defs | 2 ++ examples/mtdrwb/Makefile | 2 ++ examples/mtdrwb/mtdrwb_main.c | 2 ++ examples/netlink_route/CMakeLists.txt | 2 ++ examples/netlink_route/Make.defs | 2 ++ examples/netlink_route/Makefile | 2 ++ examples/netlink_route/netlink_route_main.c | 2 ++ examples/netloop/CMakeLists.txt | 2 ++ examples/netloop/Make.defs | 2 ++ examples/netloop/Makefile | 2 ++ examples/netloop/lo_listener.c | 2 ++ examples/netloop/lo_main.c | 2 ++ examples/netloop/netloop.h | 2 ++ examples/netpkt/CMakeLists.txt | 2 ++ examples/netpkt/Make.defs | 2 ++ examples/netpkt/Makefile | 2 ++ examples/netpkt/netpkt_ethercat.c | 2 ++ examples/netpkt/netpkt_main.c | 2 ++ examples/nettest/CMakeLists.txt | 2 ++ examples/nettest/Make.defs | 2 ++ examples/nettest/Makefile | 2 ++ examples/nettest/host/CMakeLists.txt | 2 ++ examples/nettest/nettest.h | 2 ++ examples/nettest/nettest_client.c | 2 ++ examples/nettest/nettest_cmdline.c | 2 ++ examples/nettest/nettest_host.c | 2 ++ examples/nettest/nettest_netinit.c | 2 ++ examples/nettest/nettest_server.c | 2 ++ examples/nettest/nettest_target1.c | 2 ++ examples/nettest/nettest_target2.c | 2 ++ examples/nimble/CMakeLists.txt | 2 ++ examples/nimble/Make.defs | 2 ++ examples/nimble/Makefile | 2 ++ examples/nimble/nimble_main.c | 2 ++ examples/nng_test/CMakeLists.txt | 2 ++ examples/nng_test/Make.defs | 2 ++ examples/nng_test/Makefile | 2 ++ examples/nng_test/pubsub.c | 2 ++ examples/noteprintf/CMakeLists.txt | 2 ++ examples/noteprintf/Make.defs | 2 ++ examples/noteprintf/Makefile | 2 ++ examples/noteprintf/noteprintf_main.c | 2 ++ examples/nrf24l01_btle/CMakeLists.txt | 2 ++ examples/nrf24l01_btle/Make.defs | 5 ++-- examples/nrf24l01_btle/Makefile | 26 ++++++++++--------- examples/nrf24l01_btle/nrf24l01_btle.c | 2 ++ examples/nrf24l01_btle/nrf24l01_btle.h | 2 ++ examples/nrf24l01_term/CMakeLists.txt | 2 ++ examples/nrf24l01_term/Make.defs | 2 ++ examples/nrf24l01_term/Makefile | 2 ++ examples/nrf24l01_term/nrf24l01_term.c | 2 ++ examples/null/CMakeLists.txt | 2 ++ examples/null/Make.defs | 2 ++ examples/null/Makefile | 2 ++ examples/null/null_main.c | 2 ++ examples/nunchuck/CMakeLists.txt | 2 ++ examples/nunchuck/Make.defs | 2 ++ examples/nunchuck/Makefile | 2 ++ examples/nunchuck/nunchuck_main.c | 2 ++ examples/nx/CMakeLists.txt | 2 ++ examples/nx/Make.defs | 2 ++ examples/nx/Makefile | 2 ++ examples/nx/nx_events.c | 2 ++ examples/nx/nx_internal.h | 2 ++ examples/nx/nx_kbdin.c | 2 ++ examples/nx/nx_main.c | 2 ++ examples/nxdemo/CMakeLists.txt | 2 ++ examples/nxdemo/Make.defs | 2 ++ examples/nxdemo/Makefile | 2 ++ examples/nxdemo/images.h | 2 ++ examples/nxdemo/nxdemo.h | 2 ++ examples/nxdemo/nxdemo_bkgd.c | 2 ++ examples/nxdemo/nxdemo_listener.c | 2 ++ examples/nxdemo/nxdemo_main.c | 2 ++ examples/nxflat/CMakeLists.txt | 2 ++ examples/nxflat/Make.defs | 2 ++ examples/nxflat/Makefile | 2 ++ examples/nxflat/nxflat_main.c | 2 ++ examples/nxflat/tests/Makefile | 2 ++ examples/nxflat/tests/errno/Makefile | 2 ++ examples/nxflat/tests/errno/errno.c | 2 ++ examples/nxflat/tests/hello++/Makefile | 2 ++ examples/nxflat/tests/hello++/hello++1.cxx | 2 ++ examples/nxflat/tests/hello++/hello++2.cxx | 2 ++ examples/nxflat/tests/hello++/hello++3.cxx | 2 ++ examples/nxflat/tests/hello++/hello++4.cxx | 2 ++ examples/nxflat/tests/hello/Makefile | 2 ++ examples/nxflat/tests/hello/hello.c | 2 ++ examples/nxflat/tests/longjmp/Makefile | 2 ++ examples/nxflat/tests/longjmp/longjmp.c | 2 ++ examples/nxflat/tests/mkdirlist.sh | 21 +++++++++++++++ examples/nxflat/tests/mutex/Makefile | 2 ++ examples/nxflat/tests/mutex/mutex.c | 2 ++ examples/nxflat/tests/pthread/Makefile | 2 ++ examples/nxflat/tests/pthread/pthread.c | 2 ++ examples/nxflat/tests/signal/Makefile | 2 ++ examples/nxflat/tests/signal/signal.c | 2 ++ examples/nxflat/tests/struct/Makefile | 2 ++ examples/nxflat/tests/struct/struct.h | 2 ++ examples/nxflat/tests/struct/struct_dummy.c | 2 ++ examples/nxflat/tests/struct/struct_main.c | 2 ++ examples/nxflat/tests/task/Makefile | 2 ++ examples/nxflat/tests/task/task.c | 2 ++ examples/nxhello/CMakeLists.txt | 2 ++ examples/nxhello/Make.defs | 2 ++ examples/nxhello/Makefile | 2 ++ examples/nxhello/nxhello.h | 2 ++ examples/nxhello/nxhello_bkgd.c | 2 ++ examples/nxhello/nxhello_listener.c | 2 ++ examples/nxhello/nxhello_main.c | 2 ++ examples/nximage/CMakeLists.txt | 2 ++ examples/nximage/Make.defs | 2 ++ examples/nximage/Makefile | 2 ++ examples/nximage/nximage.h | 2 ++ examples/nximage/nximage_bitmap.c | 2 ++ examples/nximage/nximage_bkgd.c | 2 ++ examples/nximage/nximage_listener.c | 2 ++ examples/nximage/nximage_main.c | 2 ++ examples/nxlines/CMakeLists.txt | 2 ++ examples/nxlines/Make.defs | 2 ++ examples/nxlines/Makefile | 2 ++ examples/nxlines/nxlines.h | 2 ++ examples/nxlines/nxlines_bkgd.c | 2 ++ examples/nxlines/nxlines_listener.c | 2 ++ examples/nxlines/nxlines_main.c | 2 ++ examples/nxscope/CMakeLists.txt | 2 ++ examples/nxscope/Make.defs | 2 ++ examples/nxscope/Makefile | 2 ++ examples/nxscope/nxscope_main.c | 2 ++ examples/nxterm/CMakeLists.txt | 2 ++ examples/nxterm/Make.defs | 2 ++ examples/nxterm/Makefile | 2 ++ examples/nxterm/nxterm_internal.h | 2 ++ examples/nxterm/nxterm_listener.c | 2 ++ examples/nxterm/nxterm_main.c | 2 ++ examples/nxterm/nxterm_toolbar.c | 2 ++ examples/nxterm/nxterm_wndo.c | 2 ++ examples/nxtext/CMakeLists.txt | 2 ++ examples/nxtext/Make.defs | 2 ++ examples/nxtext/Makefile | 2 ++ examples/nxtext/nxtext_bkgd.c | 2 ++ examples/nxtext/nxtext_internal.h | 2 ++ examples/nxtext/nxtext_listener.c | 2 ++ examples/nxtext/nxtext_main.c | 2 ++ examples/nxtext/nxtext_popup.c | 2 ++ examples/nxtext/nxtext_putc.c | 2 ++ examples/obd2/CMakeLists.txt | 2 ++ examples/obd2/Make.defs | 2 ++ examples/obd2/Makefile | 2 ++ examples/obd2/obd2_main.c | 2 ++ examples/oneshot/CMakeLists.txt | 2 ++ examples/oneshot/Make.defs | 2 ++ examples/oneshot/Makefile | 2 ++ examples/oneshot/oneshot_main.c | 2 ++ examples/opencyphal/CMakeLists.txt | 2 ++ examples/opencyphal/Make.defs | 2 ++ examples/opencyphal/Makefile | 2 ++ examples/opencyphal/canard_main.c | 2 ++ examples/opencyphal/socketcan.c | 2 ++ examples/opencyphal/socketcan.h | 2 ++ examples/pca9635/CMakeLists.txt | 2 ++ examples/pca9635/Make.defs | 2 ++ examples/pca9635/Makefile | 2 ++ examples/pca9635/pca9635_main.c | 2 ++ examples/pdcurses/CMakeLists.txt | 2 ++ examples/pdcurses/Make.defs | 2 ++ examples/pdcurses/Makefile | 2 ++ examples/pdcurses/charset_main.c | 2 ++ examples/pdcurses/firework_main.c | 2 ++ examples/pdcurses/newdemo_main.c | 2 ++ examples/pdcurses/panel_main.c | 2 ++ examples/pdcurses/rain_main.c | 2 ++ examples/pdcurses/testcurs_main.c | 2 ++ examples/pdcurses/tui.c | 2 ++ examples/pdcurses/tui.h | 2 ++ examples/pdcurses/tui_main.c | 2 ++ examples/pdcurses/worm_main.c | 2 ++ examples/pdcurses/xmas_main.c | 2 ++ examples/pf_ieee802154/CMakeLists.txt | 2 ++ examples/pf_ieee802154/Make.defs | 2 ++ examples/pf_ieee802154/Makefile | 2 ++ examples/pf_ieee802154/pf_client.c | 2 ++ examples/pf_ieee802154/pf_cmdline.c | 2 ++ examples/pf_ieee802154/pf_server.c | 2 ++ examples/pf_ieee802154/pfieee802154.h | 2 ++ examples/pipe/CMakeLists.txt | 2 ++ examples/pipe/Make.defs | 2 ++ examples/pipe/Makefile | 2 ++ examples/pipe/interlock_test.c | 2 ++ examples/pipe/pipe.h | 2 ++ examples/pipe/pipe_main.c | 2 ++ examples/pipe/redirect_test.c | 2 ++ examples/pipe/transfer_test.c | 2 ++ examples/poll/CMakeLists.txt | 2 ++ examples/poll/Make.defs | 2 ++ examples/poll/Makefile | 2 ++ examples/poll/Makefile.host | 2 ++ examples/poll/host.c | 2 ++ examples/poll/net_listener.c | 2 ++ examples/poll/net_reader.c | 2 ++ examples/poll/poll_internal.h | 2 ++ examples/poll/poll_listener.c | 2 ++ examples/poll/poll_main.c | 2 ++ examples/poll/select_listener.c | 2 ++ examples/popen/CMakeLists.txt | 2 ++ examples/popen/Make.defs | 2 ++ examples/popen/Makefile | 2 ++ examples/popen/popen_main.c | 2 ++ examples/posix_spawn/CMakeLists.txt | 2 ++ examples/posix_spawn/Make.defs | 2 ++ examples/posix_spawn/Makefile | 2 ++ examples/posix_spawn/filesystem/Makefile | 2 ++ .../posix_spawn/filesystem/hello/Makefile | 2 ++ examples/posix_spawn/filesystem/hello/hello.c | 2 ++ .../posix_spawn/filesystem/redirect/Makefile | 2 ++ .../filesystem/redirect/redirect.c | 2 ++ examples/posix_spawn/spawn_main.c | 2 ++ examples/powerled/CMakeLists.txt | 2 ++ examples/powerled/Make.defs | 2 ++ examples/powerled/Makefile | 2 ++ examples/powerled/powerled_main.c | 2 ++ examples/powermonitor/CMakeLists.txt | 2 ++ examples/powermonitor/Make.defs | 2 ++ examples/powermonitor/Makefile | 2 ++ examples/powermonitor/powermonitor_main.c | 2 ++ examples/pppd/CMakeLists.txt | 2 ++ examples/pppd/Make.defs | 2 ++ examples/pppd/Makefile | 2 ++ examples/pppd/pppd_main.c | 5 ++-- examples/pty_test/CMakeLists.txt | 2 ++ examples/pty_test/Make.defs | 2 ++ examples/pty_test/Makefile | 2 ++ examples/pty_test/pty_test.c | 2 ++ examples/pwfb/CMakeLists.txt | 2 ++ examples/pwfb/Make.defs | 2 ++ examples/pwfb/Makefile | 2 ++ examples/pwfb/pwfb_events.c | 2 ++ examples/pwfb/pwfb_internal.h | 2 ++ examples/pwfb/pwfb_main.c | 2 ++ examples/pwfb/pwfb_motion.c | 2 ++ examples/pwlines/CMakeLists.txt | 2 ++ examples/pwlines/Make.defs | 2 ++ examples/pwlines/Makefile | 2 ++ examples/pwlines/pwlines_events.c | 2 ++ examples/pwlines/pwlines_internal.h | 2 ++ examples/pwlines/pwlines_main.c | 2 ++ examples/pwlines/pwlines_motion.c | 2 ++ examples/pwlines/pwlines_update.c | 2 ++ examples/pwm/CMakeLists.txt | 2 ++ examples/pwm/Make.defs | 2 ++ examples/pwm/Makefile | 2 ++ examples/pwm/pwm.h | 2 ++ examples/pwm/pwm_main.c | 2 ++ examples/qencoder/CMakeLists.txt | 2 ++ examples/qencoder/Make.defs | 2 ++ examples/qencoder/Makefile | 2 ++ examples/qencoder/qe.h | 2 ++ examples/qencoder/qe_main.c | 2 ++ examples/random/CMakeLists.txt | 2 ++ examples/random/Make.defs | 2 ++ examples/random/Makefile | 2 ++ examples/random/random_main.c | 2 ++ examples/relays/CMakeLists.txt | 2 ++ examples/relays/Make.defs | 2 ++ examples/relays/Makefile | 2 ++ examples/relays/relays_main.c | 2 ++ examples/rfid_readuid/CMakeLists.txt | 2 ++ examples/rfid_readuid/Make.defs | 2 ++ examples/rfid_readuid/Makefile | 2 ++ examples/rfid_readuid/rfid_readuid.c | 2 ++ examples/rgbled/CMakeLists.txt | 2 ++ examples/rgbled/Make.defs | 2 ++ examples/rgbled/Makefile | 2 ++ examples/rgbled/rgbled.c | 2 ++ examples/rmtchar/CMakeLists.txt | 2 ++ examples/rmtchar/Make.defs | 2 ++ examples/rmtchar/Makefile | 2 ++ examples/rmtchar/rmtchar.h | 2 ++ examples/rmtchar/rmtchar_common.c | 2 ++ examples/rmtchar/rmtchar_main.c | 2 ++ examples/rmtchar/rmtchar_receiver.c | 2 ++ examples/rmtchar/rmtchar_transmitter.c | 2 ++ examples/romfs/CMakeLists.txt | 2 ++ examples/romfs/Make.defs | 2 ++ examples/romfs/Makefile | 2 ++ examples/romfs/romfs_main.c | 2 ++ examples/rpmsgsocket/CMakeLists.txt | 6 +++-- examples/rpmsgsocket/Make.defs | 2 ++ examples/rpmsgsocket/Makefile | 2 ++ examples/rpmsgsocket/rpsock_client.c | 2 ++ examples/rpmsgsocket/rpsock_server.c | 2 ++ examples/scd41/CMakeLists.txt | 6 +++-- examples/scd41/Make.defs | 2 ++ examples/scd41/Makefile | 2 ++ examples/scd41/scd41_main.c | 2 ++ examples/sendmail/CMakeLists.txt | 2 ++ examples/sendmail/Make.defs | 2 ++ examples/sendmail/Makefile | 2 ++ examples/sendmail/sendmail_main.c | 2 ++ examples/sensor_fusion/Make.defs | 2 ++ examples/sensor_fusion/Makefile | 2 ++ examples/sensor_fusion/sensor_fusion_main.c | 2 ++ examples/serialblaster/CMakeLists.txt | 2 ++ examples/serialblaster/Make.defs | 2 ++ examples/serialblaster/Makefile | 2 ++ examples/serialblaster/serialblaster_main.c | 2 ++ examples/serialrx/CMakeLists.txt | 2 ++ examples/serialrx/Make.defs | 2 ++ examples/serialrx/Makefile | 2 ++ examples/serialrx/serialrx_main.c | 2 ++ examples/serloop/CMakeLists.txt | 2 ++ examples/serloop/Make.defs | 2 ++ examples/serloop/Makefile | 2 ++ examples/serloop/serloop_main.c | 2 ++ examples/settings/Make.defs | 2 ++ examples/settings/Makefile | 2 ++ examples/settings/settings_main.c | 2 ++ examples/shm_test/CMakeLists.txt | 2 ++ examples/shm_test/Make.defs | 2 ++ examples/shm_test/Makefile | 2 ++ examples/shm_test/shm_main.c | 2 ++ examples/sht3x/CMakeLists.txt | 2 ++ examples/sht3x/Make.defs | 2 ++ examples/sht3x/Makefile | 2 ++ examples/sht3x/sht3x_main.c | 2 ++ examples/slcd/CMakeLists.txt | 2 ++ examples/slcd/Make.defs | 2 ++ examples/slcd/Makefile | 2 ++ examples/slcd/slcd_main.c | 2 ++ examples/smps/CMakeLists.txt | 2 ++ examples/smps/Make.defs | 2 ++ examples/smps/Makefile | 2 ++ examples/smps/smps_main.c | 2 ++ examples/sotest/CMakeLists.txt | 2 ++ examples/sotest/Make.defs | 2 ++ examples/sotest/Makefile | 2 ++ examples/sotest/main/CMakeLists.txt | 2 ++ examples/sotest/main/Make.defs | 2 ++ examples/sotest/main/Makefile | 2 ++ examples/sotest/main/sotest_main.c | 2 ++ examples/sotest/modprint/Make.defs | 2 ++ examples/sotest/modprint/Makefile | 2 ++ examples/sotest/modprint/modprint.c | 2 ++ examples/sotest/sotest/Make.defs | 2 ++ examples/sotest/sotest/Makefile | 2 ++ examples/sotest/sotest/sotest.c | 2 ++ examples/spislv_test/CMakeLists.txt | 2 ++ examples/spislv_test/Make.defs | 2 ++ examples/spislv_test/Makefile | 2 ++ examples/spislv_test/spislv_test.c | 2 ++ examples/stat/CMakeLists.txt | 2 ++ examples/stat/Make.defs | 2 ++ examples/stat/Makefile | 2 ++ examples/stat/stat_main.c | 2 ++ examples/stepper/CMakeLists.txt | 2 ++ examples/stepper/Make.defs | 2 ++ examples/stepper/Makefile | 2 ++ examples/stepper/stepper.c | 2 ++ examples/sx127x_demo/CMakeLists.txt | 2 ++ examples/sx127x_demo/Make.defs | 2 ++ examples/sx127x_demo/Makefile | 2 ++ examples/sx127x_demo/sx127x_demo.c | 2 ++ examples/system/CMakeLists.txt | 2 ++ examples/system/Make.defs | 2 ++ examples/system/Makefile | 2 ++ examples/system/system_main.c | 2 ++ examples/tcp_ipc_client/CMakeLists.txt | 2 ++ examples/tcp_ipc_client/Make.defs | 2 ++ examples/tcp_ipc_client/Makefile | 2 ++ examples/tcp_ipc_client/protocol.h | 4 ++- examples/tcp_ipc_client/tcp_ipc_client_main.c | 2 ++ examples/tcp_ipc_server/CMakeLists.txt | 2 ++ examples/tcp_ipc_server/Make.defs | 2 ++ examples/tcp_ipc_server/Makefile | 2 ++ .../lorawan/uart_lorawan_layer.h | 4 ++- examples/tcp_ipc_server/protocol.c | 2 ++ examples/tcp_ipc_server/protocol.h | 4 ++- examples/tcp_ipc_server/tcp_ipc_server_main.c | 2 ++ examples/tcp_ipc_server/uart_lorawan_layer.c | 2 ++ examples/tcpblaster/CMakeLists.txt | 2 ++ examples/tcpblaster/Make.defs | 2 ++ examples/tcpblaster/Makefile | 2 ++ examples/tcpblaster/tcpblaster.h | 2 ++ examples/tcpblaster/tcpblaster_client.c | 2 ++ examples/tcpblaster/tcpblaster_cmdline.c | 2 ++ examples/tcpblaster/tcpblaster_host.c | 2 ++ examples/tcpblaster/tcpblaster_host.cmake | 2 ++ examples/tcpblaster/tcpblaster_netinit.c | 2 ++ examples/tcpblaster/tcpblaster_server.c | 2 ++ examples/tcpblaster/tcpblaster_target1.c | 2 ++ examples/tcpblaster/tcpblaster_target2.c | 2 ++ examples/tcpecho/CMakeLists.txt | 2 ++ examples/tcpecho/Make.defs | 2 ++ examples/tcpecho/Makefile | 2 ++ examples/tcpecho/tcpecho_main.c | 2 ++ examples/telnetd/CMakeLists.txt | 2 ++ examples/telnetd/Make.defs | 2 ++ examples/telnetd/Makefile | 2 ++ examples/telnetd/telnetd.c | 13 ++++------ examples/telnetd/telnetd.h | 2 ++ examples/termios/CMakeLists.txt | 2 ++ examples/termios/Make.defs | 2 ++ examples/termios/Makefile | 2 ++ examples/termios/termios_main.c | 2 ++ examples/thttpd/CMakeLists.txt | 2 ++ examples/thttpd/Make.defs | 2 ++ examples/thttpd/Makefile | 2 ++ examples/thttpd/content/Makefile.binfs | 2 ++ examples/thttpd/content/Makefile.nxflat | 2 ++ examples/thttpd/content/hello/Makefile | 2 ++ examples/thttpd/content/hello/hello.c | 2 ++ examples/thttpd/content/tasks/Makefile | 2 ++ examples/thttpd/content/tasks/tasks.c | 2 ++ examples/thttpd/thttpd_main.c | 2 ++ examples/tiff/CMakeLists.txt | 2 ++ examples/tiff/Make.defs | 2 ++ examples/tiff/Makefile | 2 ++ examples/tiff/tiff_main.c | 2 ++ examples/timer/CMakeLists.txt | 2 ++ examples/timer/Make.defs | 2 ++ examples/timer/Makefile | 2 ++ examples/timer/timer_main.c | 2 ++ examples/timer_gpio/CMakeLists.txt | 2 ++ examples/timer_gpio/Make.defs | 2 ++ examples/timer_gpio/Makefile | 2 ++ examples/timer_gpio/timer_gpio_main.c | 2 ++ examples/tlpi/Make.defs | 2 ++ examples/tlpi/Makefile | 2 ++ examples/touchscreen/CMakeLists.txt | 2 ++ examples/touchscreen/Make.defs | 2 ++ examples/touchscreen/Makefile | 2 ++ examples/touchscreen/tc.h | 2 ++ examples/touchscreen/tc_main.c | 2 ++ examples/udgram/CMakeLists.txt | 2 ++ examples/udgram/Make.defs | 2 ++ examples/udgram/Makefile | 2 ++ examples/udgram/udgram.h | 2 ++ examples/udgram/udgram_client.c | 2 ++ examples/udgram/udgram_server.c | 2 ++ examples/udp/CMakeLists.txt | 2 ++ examples/udp/Make.defs | 2 ++ examples/udp/Makefile | 2 ++ examples/udp/udp.h | 2 ++ examples/udp/udp_client.c | 2 ++ examples/udp/udp_cmdline.c | 2 ++ examples/udp/udp_host.c | 2 ++ examples/udp/udp_netinit.c | 2 ++ examples/udp/udp_server.c | 2 ++ examples/udp/udp_target1.c | 2 ++ examples/udp/udp_target2.c | 2 ++ examples/udpblaster/CMakeLists.txt | 2 ++ examples/udpblaster/Make.defs | 2 ++ examples/udpblaster/Makefile | 2 ++ examples/udpblaster/udpblaster.h | 2 ++ examples/udpblaster/udpblaster_host.c | 2 ++ examples/udpblaster/udpblaster_host.cmake | 2 ++ examples/udpblaster/udpblaster_target.c | 2 ++ examples/udpblaster/udpblaster_text.c | 2 ++ examples/uid/CMakeLists.txt | 2 ++ examples/uid/Make.defs | 2 ++ examples/uid/Makefile | 2 ++ examples/uid/uid_main.c | 2 ++ examples/unionfs/CMakeLists.txt | 2 ++ examples/unionfs/Make.defs | 2 ++ examples/unionfs/Makefile | 2 ++ examples/unionfs/unionfs_main.c | 2 ++ examples/usbserial/CMakeLists.txt | 2 ++ examples/usbserial/Make.defs | 2 ++ examples/usbserial/Makefile | 2 ++ examples/usbserial/Makefile.host | 2 ++ examples/usbserial/host.c | 2 ++ examples/usbserial/usbserial_main.c | 2 ++ examples/userfs/CMakeLists.txt | 2 ++ examples/userfs/Make.defs | 2 ++ examples/userfs/Makefile | 2 ++ examples/userfs/userfs_main.c | 2 ++ examples/usrsocktest/CMakeLists.txt | 2 ++ examples/usrsocktest/Make.defs | 2 ++ examples/usrsocktest/Makefile | 2 ++ examples/usrsocktest/defines.h | 2 ++ .../usrsocktest/usrsocktest_basic_connect.c | 2 ++ .../usrsocktest/usrsocktest_basic_daemon.c | 2 ++ .../usrsocktest_basic_getsockname.c | 2 ++ .../usrsocktest_basic_getsockopt.c | 2 ++ examples/usrsocktest/usrsocktest_basic_send.c | 2 ++ .../usrsocktest_basic_setsockopt.c | 2 ++ examples/usrsocktest/usrsocktest_block_recv.c | 2 ++ examples/usrsocktest/usrsocktest_block_send.c | 2 ++ examples/usrsocktest/usrsocktest_chardev.c | 2 ++ examples/usrsocktest/usrsocktest_daemon.c | 2 ++ examples/usrsocktest/usrsocktest_main.c | 2 ++ .../usrsocktest/usrsocktest_multi_thread.c | 2 ++ .../usrsocktest/usrsocktest_noblock_connect.c | 2 ++ .../usrsocktest/usrsocktest_noblock_recv.c | 2 ++ .../usrsocktest/usrsocktest_noblock_send.c | 2 ++ examples/usrsocktest/usrsocktest_nodaemon.c | 2 ++ examples/usrsocktest/usrsocktest_poll.c | 2 ++ .../usrsocktest_remote_disconnect.c | 2 ++ .../usrsocktest_wake_with_signal.c | 2 ++ examples/ustream/CMakeLists.txt | 2 ++ examples/ustream/Make.defs | 2 ++ examples/ustream/Makefile | 2 ++ examples/ustream/ustream.h | 2 ++ examples/ustream/ustream_client.c | 2 ++ examples/ustream/ustream_server.c | 2 ++ examples/veml6070/CMakeLists.txt | 2 ++ examples/veml6070/Make.defs | 2 ++ examples/veml6070/Makefile | 2 ++ examples/veml6070/veml6070_main.c | 2 ++ examples/wamr_module/CMakeLists.txt | 2 ++ examples/wamr_module/Make.defs | 2 ++ examples/wamr_module/Makefile | 2 ++ examples/wamr_module/module_hello.c | 2 ++ examples/watchdog/CMakeLists.txt | 2 ++ examples/watchdog/Make.defs | 2 ++ examples/watchdog/Makefile | 2 ++ examples/watchdog/watchdog.h | 2 ++ examples/watchdog/watchdog_main.c | 2 ++ examples/watched/CMakeLists.txt | 2 ++ examples/watched/Make.defs | 3 ++- examples/watched/Makefile | 4 ++- examples/watched/watched.c | 2 ++ examples/watched/watched.h | 2 ++ examples/watched/watched_main.c | 2 ++ examples/watcher/CMakeLists.txt | 2 ++ examples/watcher/Make.defs | 2 ++ examples/watcher/Makefile | 2 ++ examples/watcher/ramdisk.c | 2 ++ examples/watcher/ramdisk.h | 2 ++ examples/watcher/task_mn.c | 2 ++ examples/watcher/task_mn.h | 2 ++ examples/watcher/watcher_main.c | 2 ++ examples/watcher/wdt.c | 2 ++ examples/watcher/wdt.h | 2 ++ examples/webserver/CMakeLists.txt | 2 ++ examples/webserver/Make.defs | 2 ++ examples/webserver/Makefile | 2 ++ examples/webserver/cgi.c | 7 +++-- examples/webserver/cgi.h | 7 +++-- examples/wget/CMakeLists.txt | 2 ++ examples/wget/Make.defs | 2 ++ examples/wget/Makefile | 2 ++ examples/wget/wget_main.c | 2 ++ examples/wgetjson/CMakeLists.txt | 2 ++ examples/wgetjson/Make.defs | 2 ++ examples/wgetjson/Makefile | 2 ++ examples/wgetjson/wgetjson_main.c | 2 ++ examples/wiegand/Make.defs | 2 ++ examples/wiegand/Makefile | 2 ++ examples/wiegand/wiegand.c | 2 ++ examples/ws2812/CMakeLists.txt | 2 ++ examples/ws2812/Make.defs | 2 ++ examples/ws2812/Makefile | 2 ++ examples/ws2812/ws2812_main.c | 2 ++ examples/ws2812esp32rmt/CMakeLists.txt | 2 ++ examples/ws2812esp32rmt/Make.defs | 2 ++ examples/ws2812esp32rmt/Makefile | 2 ++ examples/ws2812esp32rmt/ws2812esp32rmt_main.c | 2 ++ examples/xbc_test/CMakeLists.txt | 6 ++--- examples/xbc_test/Make.defs | 2 ++ examples/xbc_test/Makefile | 2 ++ examples/xbc_test/xbc_test_main.c | 10 +++---- examples/xmlrpc/CMakeLists.txt | 2 ++ examples/xmlrpc/Make.defs | 2 ++ examples/xmlrpc/Makefile | 2 ++ examples/xmlrpc/calls.c | 17 ++++++------ examples/xmlrpc/xmlrpc_main.c | 18 ++++++------- examples/zerocross/CMakeLists.txt | 2 ++ examples/zerocross/Make.defs | 2 ++ examples/zerocross/Makefile | 2 ++ examples/zerocross/zerocross_main.c | 2 ++ 1100 files changed, 2294 insertions(+), 89 deletions(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 16281b51090..3d04efdf4f9 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/CMakeLists.txt # +# 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 diff --git a/examples/Make.defs b/examples/Make.defs index aa354e50318..08127668f52 100644 --- a/examples/Make.defs +++ b/examples/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/Make.defs # +# 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/examples/Makefile b/examples/Makefile index 26ecf518afd..9f8132ba599 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/Makefile # +# 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/examples/abntcodi/CMakeLists.txt b/examples/abntcodi/CMakeLists.txt index b1d9eb4b616..19d10a4d8ca 100644 --- a/examples/abntcodi/CMakeLists.txt +++ b/examples/abntcodi/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/abntcodi/CMakeLists.txt # +# 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 diff --git a/examples/abntcodi/Make.defs b/examples/abntcodi/Make.defs index f6e97a68567..1e5389c2729 100644 --- a/examples/abntcodi/Make.defs +++ b/examples/abntcodi/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/abntcodi/Make.defs # +# 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/examples/abntcodi/Makefile b/examples/abntcodi/Makefile index e85c7a94bd8..d0277e3d275 100644 --- a/examples/abntcodi/Makefile +++ b/examples/abntcodi/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/abntcodi/Makefile # +# 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/examples/abntcodi/abntcodi_main.c b/examples/abntcodi/abntcodi_main.c index 3a74f445be9..547b7d88d11 100644 --- a/examples/abntcodi/abntcodi_main.c +++ b/examples/abntcodi/abntcodi_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/abntcodi/abntcodi_main.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/examples/adc/CMakeLists.txt b/examples/adc/CMakeLists.txt index 89242551eb5..215137a4005 100644 --- a/examples/adc/CMakeLists.txt +++ b/examples/adc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/adc/CMakeLists.txt # +# 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 diff --git a/examples/adc/Make.defs b/examples/adc/Make.defs index 6f7d70ac4b5..baecb9a7073 100644 --- a/examples/adc/Make.defs +++ b/examples/adc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/adc/Make.defs # +# 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/examples/adc/Makefile b/examples/adc/Makefile index 25d0e5f48b9..631234ff680 100644 --- a/examples/adc/Makefile +++ b/examples/adc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/adc/Makefile # +# 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/examples/adc/adc.h b/examples/adc/adc.h index e7bad34fdaf..45497b0c986 100644 --- a/examples/adc/adc.h +++ b/examples/adc/adc.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/adc/adc.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 diff --git a/examples/adc/adc_main.c b/examples/adc/adc_main.c index 1db9817e0dd..89cee2f23f9 100644 --- a/examples/adc/adc_main.c +++ b/examples/adc/adc_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/adc/adc_main.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/examples/adjtime/CMakeLists.txt b/examples/adjtime/CMakeLists.txt index 633bb7b1976..77c9338befa 100644 --- a/examples/adjtime/CMakeLists.txt +++ b/examples/adjtime/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/adjtime/CMakeLists.txt # +# 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 diff --git a/examples/adjtime/Make.defs b/examples/adjtime/Make.defs index f0ef399f1ea..0abb68bb1cd 100644 --- a/examples/adjtime/Make.defs +++ b/examples/adjtime/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/adjtime/Make.defs # +# 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/examples/adjtime/Makefile b/examples/adjtime/Makefile index 4874145665f..c35b77f2605 100644 --- a/examples/adjtime/Makefile +++ b/examples/adjtime/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/adjtime/Makefile # +# 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/examples/adjtime/adjtime_main.c b/examples/adjtime/adjtime_main.c index a897fa15310..17eda10f510 100644 --- a/examples/adjtime/adjtime_main.c +++ b/examples/adjtime/adjtime_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/adjtime/adjtime_main.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/examples/adxl372_test/CMakeLists.txt b/examples/adxl372_test/CMakeLists.txt index 3c5ae442897..ead2dd360e9 100644 --- a/examples/adxl372_test/CMakeLists.txt +++ b/examples/adxl372_test/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/adxl372_test/CMakeLists.txt # +# 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 diff --git a/examples/adxl372_test/Make.defs b/examples/adxl372_test/Make.defs index d5311c7a37b..92384909fea 100644 --- a/examples/adxl372_test/Make.defs +++ b/examples/adxl372_test/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/adxl372_test/Make.defs # +# 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/examples/adxl372_test/Makefile b/examples/adxl372_test/Makefile index 583a03e6da7..5c30ba191a2 100644 --- a/examples/adxl372_test/Makefile +++ b/examples/adxl372_test/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/adxl372_test/Makefile # +# 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/examples/adxl372_test/adxl372_test_main.c b/examples/adxl372_test/adxl372_test_main.c index 2c05d61ba01..4d8b3ced9ab 100644 --- a/examples/adxl372_test/adxl372_test_main.c +++ b/examples/adxl372_test/adxl372_test_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/adxl372_test/adxl372_test_main.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/examples/ajoystick/CMakeLists.txt b/examples/ajoystick/CMakeLists.txt index 6448f21f415..b35aff10aae 100644 --- a/examples/ajoystick/CMakeLists.txt +++ b/examples/ajoystick/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/ajoystick/CMakeLists.txt # +# 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 diff --git a/examples/ajoystick/Make.defs b/examples/ajoystick/Make.defs index e7757702350..623b4f1693d 100644 --- a/examples/ajoystick/Make.defs +++ b/examples/ajoystick/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ajoystick/Make.defs # +# 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/examples/ajoystick/Makefile b/examples/ajoystick/Makefile index 04620d741b5..68d9de39f7d 100644 --- a/examples/ajoystick/Makefile +++ b/examples/ajoystick/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ajoystick/Makefile # +# 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/examples/ajoystick/ajoy_main.c b/examples/ajoystick/ajoy_main.c index c66a2c1a1c1..178608b2ff4 100644 --- a/examples/ajoystick/ajoy_main.c +++ b/examples/ajoystick/ajoy_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ajoystick/ajoy_main.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/examples/alarm/CMakeLists.txt b/examples/alarm/CMakeLists.txt index ecdfbd1cdf1..31445775044 100644 --- a/examples/alarm/CMakeLists.txt +++ b/examples/alarm/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/alarm/CMakeLists.txt # +# 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 diff --git a/examples/alarm/Make.defs b/examples/alarm/Make.defs index d2699def19d..79c467cd49d 100644 --- a/examples/alarm/Make.defs +++ b/examples/alarm/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/alarm/Make.defs # +# 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/examples/alarm/Makefile b/examples/alarm/Makefile index f0b8d745017..59cdad47a30 100644 --- a/examples/alarm/Makefile +++ b/examples/alarm/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/alarm/Makefile # +# 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/examples/alarm/alarm_main.c b/examples/alarm/alarm_main.c index 74c5e8fc601..d4ab70a80cc 100644 --- a/examples/alarm/alarm_main.c +++ b/examples/alarm/alarm_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/alarm/alarm_main.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/examples/amg88xx/CMakeLists.txt b/examples/amg88xx/CMakeLists.txt index 65493e9e9b6..cfd88724bfb 100644 --- a/examples/amg88xx/CMakeLists.txt +++ b/examples/amg88xx/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/amg88xx/CMakeLists.txt # +# 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 diff --git a/examples/amg88xx/Make.defs b/examples/amg88xx/Make.defs index 2fb5e030e19..ba390c84dbe 100644 --- a/examples/amg88xx/Make.defs +++ b/examples/amg88xx/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/amg88xx/Make.defs # +# 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/examples/amg88xx/Makefile b/examples/amg88xx/Makefile index a07deffdc8d..85f777d49f9 100644 --- a/examples/amg88xx/Makefile +++ b/examples/amg88xx/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/amg88xx/Makefile # +# 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/examples/amg88xx/amg88xx_main.c b/examples/amg88xx/amg88xx_main.c index ded223369d0..93234832694 100644 --- a/examples/amg88xx/amg88xx_main.c +++ b/examples/amg88xx/amg88xx_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/amg88xx/amg88xx_main.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/examples/apa102/CMakeLists.txt b/examples/apa102/CMakeLists.txt index c97ecf72f45..35344d1b467 100644 --- a/examples/apa102/CMakeLists.txt +++ b/examples/apa102/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/apa102/CMakeLists.txt # +# 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 diff --git a/examples/apa102/Make.defs b/examples/apa102/Make.defs index 6bcac6cd3d8..8286107ea43 100644 --- a/examples/apa102/Make.defs +++ b/examples/apa102/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/apa102/Make.defs # +# 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/examples/apa102/Makefile b/examples/apa102/Makefile index fe7d5e68990..afe3f91aea9 100644 --- a/examples/apa102/Makefile +++ b/examples/apa102/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/apa102/Makefile # +# 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/examples/apa102/apa102_main.c b/examples/apa102/apa102_main.c index df41b016858..8e933b3923b 100644 --- a/examples/apa102/apa102_main.c +++ b/examples/apa102/apa102_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/apa102/apa102_main.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/examples/apds9960/CMakeLists.txt b/examples/apds9960/CMakeLists.txt index e391d1d2ea5..6f2c7f2e8f2 100644 --- a/examples/apds9960/CMakeLists.txt +++ b/examples/apds9960/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/apds9960/CMakeLists.txt # +# 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 diff --git a/examples/apds9960/Make.defs b/examples/apds9960/Make.defs index 44bf6c6aa7b..3902c6ab28c 100644 --- a/examples/apds9960/Make.defs +++ b/examples/apds9960/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/apds9960/Make.defs # +# 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/examples/apds9960/Makefile b/examples/apds9960/Makefile index eced4dd3ecd..7701173d720 100644 --- a/examples/apds9960/Makefile +++ b/examples/apds9960/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/apds9960/Makefile # +# 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/examples/apds9960/apds9960_main.c b/examples/apds9960/apds9960_main.c index ec186d5a0d7..97b5f907aca 100644 --- a/examples/apds9960/apds9960_main.c +++ b/examples/apds9960/apds9960_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/apds9960/apds9960_main.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/examples/audio_rttl/CMakeLists.txt b/examples/audio_rttl/CMakeLists.txt index 713549198ea..ec7709bd3cb 100644 --- a/examples/audio_rttl/CMakeLists.txt +++ b/examples/audio_rttl/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/audio_rttl/CMakeLists.txt # +# 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 diff --git a/examples/audio_rttl/Make.defs b/examples/audio_rttl/Make.defs index 8d5430e2f46..8975cb9ab00 100644 --- a/examples/audio_rttl/Make.defs +++ b/examples/audio_rttl/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/audio_rttl/Make.defs # +# 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/examples/audio_rttl/Makefile b/examples/audio_rttl/Makefile index c644377ad00..1816513a7b9 100644 --- a/examples/audio_rttl/Makefile +++ b/examples/audio_rttl/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/audio_rttl/Makefile # +# 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/examples/audio_rttl/audio_rttl.cxx b/examples/audio_rttl/audio_rttl.cxx index bad903e919c..3533258c1a9 100644 --- a/examples/audio_rttl/audio_rttl.cxx +++ b/examples/audio_rttl/audio_rttl.cxx @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/audio_rttl/audio_rttl.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 diff --git a/examples/audio_rttl/audio_rttl.h b/examples/audio_rttl/audio_rttl.h index 4759fb56ca8..41c5386d308 100644 --- a/examples/audio_rttl/audio_rttl.h +++ b/examples/audio_rttl/audio_rttl.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/audio_rttl/audio_rttl.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 diff --git a/examples/bastest/CMakeLists.txt b/examples/bastest/CMakeLists.txt index fd26f559710..033ec2133b3 100644 --- a/examples/bastest/CMakeLists.txt +++ b/examples/bastest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/bastest/CMakeLists.txt # +# 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 diff --git a/examples/bastest/Make.defs b/examples/bastest/Make.defs index 269db66092c..1ce65d36249 100644 --- a/examples/bastest/Make.defs +++ b/examples/bastest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/bastest/Make.defs # +# 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/examples/bastest/Makefile b/examples/bastest/Makefile index 58531970d9e..ceed0ad3ba0 100644 --- a/examples/bastest/Makefile +++ b/examples/bastest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/bastest/Makefile # +# 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/examples/bastest/bastest_main.c b/examples/bastest/bastest_main.c index 4c0deab9e1c..2397b90c3ee 100644 --- a/examples/bastest/bastest_main.c +++ b/examples/bastest/bastest_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/bastest/bastest_main.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/examples/battery/CMakeLists.txt b/examples/battery/CMakeLists.txt index 7968bb88c0a..857a78f108c 100644 --- a/examples/battery/CMakeLists.txt +++ b/examples/battery/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/battery/CMakeLists.txt # +# 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 diff --git a/examples/battery/Make.defs b/examples/battery/Make.defs index 499c6449bab..eb4247aab5a 100644 --- a/examples/battery/Make.defs +++ b/examples/battery/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/battery/Make.defs # +# 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/examples/battery/Makefile b/examples/battery/Makefile index 82cf964f537..184fdfb5d45 100644 --- a/examples/battery/Makefile +++ b/examples/battery/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/battery/Makefile # +# 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/examples/battery/batt_main.c b/examples/battery/batt_main.c index fc427671adb..d88a2885f7a 100644 --- a/examples/battery/batt_main.c +++ b/examples/battery/batt_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/battery/batt_main.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/examples/ble/CMakeLists.txt b/examples/ble/CMakeLists.txt index 037f9b2c8a5..7a01af99d9b 100644 --- a/examples/ble/CMakeLists.txt +++ b/examples/ble/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/ble/CMakeLists.txt # +# 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 diff --git a/examples/ble/Make.defs b/examples/ble/Make.defs index 1795a888c57..ddd9bd391ad 100644 --- a/examples/ble/Make.defs +++ b/examples/ble/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ble/Make.defs # +# 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/examples/ble/Makefile b/examples/ble/Makefile index b3376702138..a2cfd248388 100644 --- a/examples/ble/Makefile +++ b/examples/ble/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ble/Makefile # +# 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/examples/ble/ble.c b/examples/ble/ble.c index eb18c4aba48..82bbed5e5e0 100644 --- a/examples/ble/ble.c +++ b/examples/ble/ble.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ble/ble.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/examples/ble/ble_main.c b/examples/ble/ble_main.c index 788efe417dc..7afb2eedd01 100644 --- a/examples/ble/ble_main.c +++ b/examples/ble/ble_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ble/ble_main.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/examples/ble/dummy.c b/examples/ble/dummy.c index 2d3a713294e..528c3a5b6d1 100644 --- a/examples/ble/dummy.c +++ b/examples/ble/dummy.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ble/dummy.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. diff --git a/examples/ble/sensors.c b/examples/ble/sensors.c index 45c0aa85237..85aed45aad5 100644 --- a/examples/ble/sensors.c +++ b/examples/ble/sensors.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ble/sensors.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. diff --git a/examples/ble/sensors.h b/examples/ble/sensors.h index a382f049978..9d6defe70b7 100644 --- a/examples/ble/sensors.h +++ b/examples/ble/sensors.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ble/sensors.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. diff --git a/examples/bme680/CMakeLists.txt b/examples/bme680/CMakeLists.txt index 2da7f2a1194..9b151abaa9a 100644 --- a/examples/bme680/CMakeLists.txt +++ b/examples/bme680/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/bme680/CMakeLists.txt # +# 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 diff --git a/examples/bme680/Make.defs b/examples/bme680/Make.defs index 2578737a240..d4c3c6a9d12 100644 --- a/examples/bme680/Make.defs +++ b/examples/bme680/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/bme680/Make.defs # +# 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/examples/bme680/Makefile b/examples/bme680/Makefile index de2e631cf17..fd5240c3147 100644 --- a/examples/bme680/Makefile +++ b/examples/bme680/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/bme680/Makefile # +# 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/examples/bme680/bme680_main.c b/examples/bme680/bme680_main.c index da7905ad916..d0e626f0183 100644 --- a/examples/bme680/bme680_main.c +++ b/examples/bme680/bme680_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/bme680/bme680_main.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/examples/bmi160/CMakeLists.txt b/examples/bmi160/CMakeLists.txt index 18e1d01f978..a21a690bb70 100644 --- a/examples/bmi160/CMakeLists.txt +++ b/examples/bmi160/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/bmi160/CMakeLists.txt # +# 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 diff --git a/examples/bmi160/Make.defs b/examples/bmi160/Make.defs index d5495526c59..48c25caa972 100644 --- a/examples/bmi160/Make.defs +++ b/examples/bmi160/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/bmi160/Make.defs # +# 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/examples/bmi160/Makefile b/examples/bmi160/Makefile index 80d98ae2f2f..27789bd39e4 100644 --- a/examples/bmi160/Makefile +++ b/examples/bmi160/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/bmi160/Makefile # +# 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/examples/bmi160/sixaxis_main.c b/examples/bmi160/sixaxis_main.c index c1456cefca5..bded1ead1cd 100644 --- a/examples/bmi160/sixaxis_main.c +++ b/examples/bmi160/sixaxis_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/bmi160/sixaxis_main.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/examples/bmi160/sixaxis_uorb_main.c b/examples/bmi160/sixaxis_uorb_main.c index b07249ba5ac..2d9143eb82c 100644 --- a/examples/bmi160/sixaxis_uorb_main.c +++ b/examples/bmi160/sixaxis_uorb_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/bmi160/sixaxis_uorb_main.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/examples/bmp180/CMakeLists.txt b/examples/bmp180/CMakeLists.txt index 90546f34199..814a5c896d3 100644 --- a/examples/bmp180/CMakeLists.txt +++ b/examples/bmp180/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/bmp180/CMakeLists.txt # +# 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 diff --git a/examples/bmp180/Make.defs b/examples/bmp180/Make.defs index 536fbb2af91..182d14940ca 100644 --- a/examples/bmp180/Make.defs +++ b/examples/bmp180/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/bmp180/Make.defs # +# 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/examples/bmp180/Makefile b/examples/bmp180/Makefile index d67c98f27da..acdae3da2c0 100644 --- a/examples/bmp180/Makefile +++ b/examples/bmp180/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/bmp180/Makefile # +# 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/examples/bmp180/bmp180_main.c b/examples/bmp180/bmp180_main.c index 0b5b98c23ef..69c467cf0c9 100644 --- a/examples/bmp180/bmp180_main.c +++ b/examples/bmp180/bmp180_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/bmp180/bmp180_main.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/examples/bmp280/CMakeLists.txt b/examples/bmp280/CMakeLists.txt index 44b02d6d3be..6d45eb5256a 100644 --- a/examples/bmp280/CMakeLists.txt +++ b/examples/bmp280/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/bmp280/CMakeLists.txt # +# 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 diff --git a/examples/bmp280/Make.defs b/examples/bmp280/Make.defs index 875a775b008..0f7ee54cf97 100644 --- a/examples/bmp280/Make.defs +++ b/examples/bmp280/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/bmp280/Make.defs # +# 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/examples/bmp280/Makefile b/examples/bmp280/Makefile index 566cafb5287..bda4bb88110 100644 --- a/examples/bmp280/Makefile +++ b/examples/bmp280/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/bmp280/Makefile # +# 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/examples/bmp280/bmp280_main.c b/examples/bmp280/bmp280_main.c index d41927b25f1..1b8fdde88c9 100644 --- a/examples/bmp280/bmp280_main.c +++ b/examples/bmp280/bmp280_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/bmp280/bmp280_main.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/examples/bridge/CMakeLists.txt b/examples/bridge/CMakeLists.txt index f04b54826ee..02d0b58fabb 100644 --- a/examples/bridge/CMakeLists.txt +++ b/examples/bridge/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/bridge/CMakeLists.txt # +# 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 diff --git a/examples/bridge/Make.defs b/examples/bridge/Make.defs index 74bac57317d..deff70d1d00 100644 --- a/examples/bridge/Make.defs +++ b/examples/bridge/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/bridge/Make.defs # +# 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/examples/bridge/Makefile b/examples/bridge/Makefile index 63b8ce1652d..c5d73e5947f 100644 --- a/examples/bridge/Makefile +++ b/examples/bridge/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/bridge/Makefile # +# 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/examples/bridge/bridge_main.c b/examples/bridge/bridge_main.c index 6b79480a0f7..2893c01c4d8 100644 --- a/examples/bridge/bridge_main.c +++ b/examples/bridge/bridge_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/bridge/bridge_main.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/examples/bridge/host_main.c b/examples/bridge/host_main.c index e2f12f6dd31..25a6c16311c 100644 --- a/examples/bridge/host_main.c +++ b/examples/bridge/host_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/bridge/host_main.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/examples/bridge/host_net1.c b/examples/bridge/host_net1.c index 7584643fc2b..a05c6711edc 100644 --- a/examples/bridge/host_net1.c +++ b/examples/bridge/host_net1.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/bridge/host_net1.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/examples/bridge/host_net2.c b/examples/bridge/host_net2.c index b12cc13b464..87510ebdaff 100644 --- a/examples/bridge/host_net2.c +++ b/examples/bridge/host_net2.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/bridge/host_net2.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/examples/buttons/CMakeLists.txt b/examples/buttons/CMakeLists.txt index 7d05e0525d1..bf266157f65 100644 --- a/examples/buttons/CMakeLists.txt +++ b/examples/buttons/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/buttons/CMakeLists.txt # +# 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 diff --git a/examples/buttons/Make.defs b/examples/buttons/Make.defs index 90ac06fabba..86b92252e92 100644 --- a/examples/buttons/Make.defs +++ b/examples/buttons/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/buttons/Make.defs # +# 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/examples/buttons/Makefile b/examples/buttons/Makefile index d77ff3988d3..4602b9bbb46 100644 --- a/examples/buttons/Makefile +++ b/examples/buttons/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/buttons/Makefile # +# 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/examples/buttons/buttons_main.c b/examples/buttons/buttons_main.c index 2e034bc7d0f..d4b36431c95 100644 --- a/examples/buttons/buttons_main.c +++ b/examples/buttons/buttons_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/buttons/buttons_main.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/examples/calib_udelay/CMakeLists.txt b/examples/calib_udelay/CMakeLists.txt index ccba69415ea..d48449bab9a 100644 --- a/examples/calib_udelay/CMakeLists.txt +++ b/examples/calib_udelay/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/calib_udelay/CMakeLists.txt # +# 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 diff --git a/examples/calib_udelay/Make.defs b/examples/calib_udelay/Make.defs index 1e9f8e23788..d890de933de 100644 --- a/examples/calib_udelay/Make.defs +++ b/examples/calib_udelay/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/calib_udelay/Make.defs # +# 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/examples/calib_udelay/Makefile b/examples/calib_udelay/Makefile index ba1e17c1884..4570c51f7c2 100644 --- a/examples/calib_udelay/Makefile +++ b/examples/calib_udelay/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/calib_udelay/Makefile # +# 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/examples/calib_udelay/calib_udelay_main.c b/examples/calib_udelay/calib_udelay_main.c index 8f3638a13db..1c9a822f9b3 100644 --- a/examples/calib_udelay/calib_udelay_main.c +++ b/examples/calib_udelay/calib_udelay_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/calib_udelay/calib_udelay_main.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/examples/camera/CMakeLists.txt b/examples/camera/CMakeLists.txt index 6b6ca0eb46d..488f485e55c 100644 --- a/examples/camera/CMakeLists.txt +++ b/examples/camera/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/camera/CMakeLists.txt # +# 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 diff --git a/examples/camera/Make.defs b/examples/camera/Make.defs index d2507a9db82..7007a068204 100644 --- a/examples/camera/Make.defs +++ b/examples/camera/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/camera/Make.defs # +# 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/examples/camera/Makefile b/examples/camera/Makefile index 946f3049b8f..e734c96dbae 100644 --- a/examples/camera/Makefile +++ b/examples/camera/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/camera/Makefile # +# 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/examples/camera/camera_bkgd.c b/examples/camera/camera_bkgd.c index 32e07e7465c..cdd6653ff0f 100644 --- a/examples/camera/camera_bkgd.c +++ b/examples/camera/camera_bkgd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/camera/camera_bkgd.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/examples/camera/camera_bkgd.h b/examples/camera/camera_bkgd.h index 7d56aadde0d..1ebee240bb2 100644 --- a/examples/camera/camera_bkgd.h +++ b/examples/camera/camera_bkgd.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/camera/camera_bkgd.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 diff --git a/examples/camera/camera_fileutil.c b/examples/camera/camera_fileutil.c index 4635677043d..f8c7500e379 100644 --- a/examples/camera/camera_fileutil.c +++ b/examples/camera/camera_fileutil.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/camera/camera_fileutil.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/examples/camera/camera_fileutil.h b/examples/camera/camera_fileutil.h index 08d2513d796..f9bce368c5e 100644 --- a/examples/camera/camera_fileutil.h +++ b/examples/camera/camera_fileutil.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/camera/camera_fileutil.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 diff --git a/examples/camera/camera_main.c b/examples/camera/camera_main.c index 6fce11ccf18..221fa4c4b8b 100644 --- a/examples/camera/camera_main.c +++ b/examples/camera/camera_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/camera/camera_main.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/examples/can/CMakeLists.txt b/examples/can/CMakeLists.txt index 03a77e313e4..783d82dc6a9 100644 --- a/examples/can/CMakeLists.txt +++ b/examples/can/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/can/CMakeLists.txt # +# 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 diff --git a/examples/can/Make.defs b/examples/can/Make.defs index 420dbbf03fa..a8a53ac2beb 100644 --- a/examples/can/Make.defs +++ b/examples/can/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/can/Make.defs # +# 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/examples/can/Makefile b/examples/can/Makefile index 5e02c45b1f4..297591fe8ba 100644 --- a/examples/can/Makefile +++ b/examples/can/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/can/Makefile # +# 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/examples/can/can.h b/examples/can/can.h index 9d598483b51..21a2fbda5cb 100644 --- a/examples/can/can.h +++ b/examples/can/can.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/can/can.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 diff --git a/examples/can/can_main.c b/examples/can/can_main.c index 6d73910ac82..bba0b2275c3 100644 --- a/examples/can/can_main.c +++ b/examples/can/can_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/can/can_main.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/examples/capture/CMakeLists.txt b/examples/capture/CMakeLists.txt index fe7c2ca0ef5..e23ee56aab1 100644 --- a/examples/capture/CMakeLists.txt +++ b/examples/capture/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/capture/CMakeLists.txt # +# 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 diff --git a/examples/capture/Make.defs b/examples/capture/Make.defs index de9fcd063d8..2e64699f4c4 100644 --- a/examples/capture/Make.defs +++ b/examples/capture/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/capture/Make.defs # +# 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/examples/capture/Makefile b/examples/capture/Makefile index db92c71f044..add205481a5 100644 --- a/examples/capture/Makefile +++ b/examples/capture/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/capture/Makefile # +# 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/examples/capture/cap.h b/examples/capture/cap.h index 1e218ec44c8..2b1c6f5cfa3 100644 --- a/examples/capture/cap.h +++ b/examples/capture/cap.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/capture/cap.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 diff --git a/examples/capture/cap_main.c b/examples/capture/cap_main.c index f8a47cda5df..3cbe9e8c2d6 100644 --- a/examples/capture/cap_main.c +++ b/examples/capture/cap_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/capture/cap_main.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/examples/cbortest/CMakeLists.txt b/examples/cbortest/CMakeLists.txt index b17eff412ea..01557a340f2 100644 --- a/examples/cbortest/CMakeLists.txt +++ b/examples/cbortest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/cbortest/CMakeLists.txt # +# 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 diff --git a/examples/cbortest/Make.defs b/examples/cbortest/Make.defs index feecd1f0379..a4844be9d88 100644 --- a/examples/cbortest/Make.defs +++ b/examples/cbortest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/cbortest/Make.defs # +# 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/examples/cbortest/Makefile b/examples/cbortest/Makefile index d2f76a3434d..01061a2011e 100644 --- a/examples/cbortest/Makefile +++ b/examples/cbortest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/cbortest/Makefile # +# 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/examples/cbortest/cbortest_main.c b/examples/cbortest/cbortest_main.c index ce9d763c5d2..1ce7ccee503 100644 --- a/examples/cbortest/cbortest_main.c +++ b/examples/cbortest/cbortest_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/cbortest/cbortest_main.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/examples/cctype/CMakeLists.txt b/examples/cctype/CMakeLists.txt index 734fc731746..921d91a6cb5 100644 --- a/examples/cctype/CMakeLists.txt +++ b/examples/cctype/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/cctype/CMakeLists.txt # +# 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 diff --git a/examples/cctype/Make.defs b/examples/cctype/Make.defs index 30174b5fd80..f1cdcd34e5a 100644 --- a/examples/cctype/Make.defs +++ b/examples/cctype/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/cctype/Make.defs # +# 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/examples/cctype/Makefile b/examples/cctype/Makefile index bd7bbee1d1a..c58e8326f0c 100644 --- a/examples/cctype/Makefile +++ b/examples/cctype/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/cctype/Makefile # +# 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/examples/cctype/cctype_main.cxx b/examples/cctype/cctype_main.cxx index 27b885fdc51..68014356300 100644 --- a/examples/cctype/cctype_main.cxx +++ b/examples/cctype/cctype_main.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/examples/cctype/cctype_main.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 diff --git a/examples/charger/CMakeLists.txt b/examples/charger/CMakeLists.txt index e93dac45822..54a33207654 100644 --- a/examples/charger/CMakeLists.txt +++ b/examples/charger/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/charger/CMakeLists.txt # +# 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 diff --git a/examples/charger/Make.defs b/examples/charger/Make.defs index 05c7a0425a2..2e9d48467d9 100644 --- a/examples/charger/Make.defs +++ b/examples/charger/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/charger/Make.defs # +# 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/examples/charger/Makefile b/examples/charger/Makefile index e96d4dfe80d..a9f5366119e 100644 --- a/examples/charger/Makefile +++ b/examples/charger/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/charger/Makefile # +# 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/examples/charger/charger_main.c b/examples/charger/charger_main.c index 84b4bb8a7d5..baac2f27e92 100644 --- a/examples/charger/charger_main.c +++ b/examples/charger/charger_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/charger/charger_main.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/examples/chat/CMakeLists.txt b/examples/chat/CMakeLists.txt index 14d8d9fce5d..b63991ab2f4 100644 --- a/examples/chat/CMakeLists.txt +++ b/examples/chat/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/chat/CMakeLists.txt # +# 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 diff --git a/examples/chat/Make.defs b/examples/chat/Make.defs index 8725d60f1ba..6f5f9498dd0 100644 --- a/examples/chat/Make.defs +++ b/examples/chat/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/chat/Make.defs # +# 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/examples/chat/Makefile b/examples/chat/Makefile index 5c30573de42..c4d1d90cc1b 100644 --- a/examples/chat/Makefile +++ b/examples/chat/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/chat/Makefile # +# 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/examples/chat/chat_main.c b/examples/chat/chat_main.c index 837ba9c5314..caf6cca2832 100644 --- a/examples/chat/chat_main.c +++ b/examples/chat/chat_main.c @@ -1,8 +1,9 @@ /**************************************************************************** * apps/examples/chat/chat_main.c * - * Copyright (C) 2016 Vladimir Komendantskiy. All rights reserved. - * Author: Vladimir Komendantskiy + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2016 Vladimir Komendantskiy. All rights reserved. + * SPDX-FileContributor: Vladimir Komendantskiy * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/examples/chrono/CMakeLists.txt b/examples/chrono/CMakeLists.txt index 571eb84ae09..e4523875e3b 100644 --- a/examples/chrono/CMakeLists.txt +++ b/examples/chrono/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/chrono/CMakeLists.txt # +# 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 diff --git a/examples/chrono/Make.defs b/examples/chrono/Make.defs index 8577d853637..ff572352726 100644 --- a/examples/chrono/Make.defs +++ b/examples/chrono/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/chrono/Make.defs # +# 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/examples/chrono/Makefile b/examples/chrono/Makefile index f28079cef5e..5cec2e30d97 100644 --- a/examples/chrono/Makefile +++ b/examples/chrono/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/chrono/Makefile # +# 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/examples/chrono/chrono_main.c b/examples/chrono/chrono_main.c index 1902b92ada5..ee6658591d1 100644 --- a/examples/chrono/chrono_main.c +++ b/examples/chrono/chrono_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/chrono/chrono_main.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/examples/configdata/CMakeLists.txt b/examples/configdata/CMakeLists.txt index 242bc649835..3047383c0e5 100644 --- a/examples/configdata/CMakeLists.txt +++ b/examples/configdata/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/configdata/CMakeLists.txt # +# 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 diff --git a/examples/configdata/Make.defs b/examples/configdata/Make.defs index 0db814b6baf..61e3f1554e0 100644 --- a/examples/configdata/Make.defs +++ b/examples/configdata/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/configdata/Make.defs # +# 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/examples/configdata/Makefile b/examples/configdata/Makefile index c27eb6b75c2..8e6fba9430c 100644 --- a/examples/configdata/Makefile +++ b/examples/configdata/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/configdata/Makefile # +# 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/examples/configdata/configdata_main.c b/examples/configdata/configdata_main.c index 7c687835b25..236d8e26713 100644 --- a/examples/configdata/configdata_main.c +++ b/examples/configdata/configdata_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/configdata/configdata_main.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/examples/cordic/CMakeLists.txt b/examples/cordic/CMakeLists.txt index 53c0262d9b2..e303d8b966b 100644 --- a/examples/cordic/CMakeLists.txt +++ b/examples/cordic/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/cordic/CMakeLists.txt # +# 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 diff --git a/examples/cordic/Make.defs b/examples/cordic/Make.defs index 7494f87eccf..b1342b63812 100644 --- a/examples/cordic/Make.defs +++ b/examples/cordic/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/cordic/Make.defs # +# 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/examples/cordic/Makefile b/examples/cordic/Makefile index 36918650afe..18344c92c01 100644 --- a/examples/cordic/Makefile +++ b/examples/cordic/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/cordic/Makefile # +# 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/examples/cordic/cordic_main.c b/examples/cordic/cordic_main.c index fe128a7d599..204a755ac35 100644 --- a/examples/cordic/cordic_main.c +++ b/examples/cordic/cordic_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/cordic/cordic_main.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/examples/cpuhog/CMakeLists.txt b/examples/cpuhog/CMakeLists.txt index 18acc19421e..c9995e7c990 100644 --- a/examples/cpuhog/CMakeLists.txt +++ b/examples/cpuhog/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/cpuhog/CMakeLists.txt # +# 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 diff --git a/examples/cpuhog/Make.defs b/examples/cpuhog/Make.defs index a80cad30419..c15cb779eec 100644 --- a/examples/cpuhog/Make.defs +++ b/examples/cpuhog/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/cpuhog/Make.defs # +# 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/examples/cpuhog/Makefile b/examples/cpuhog/Makefile index 2f1214930f8..8fa589e5879 100644 --- a/examples/cpuhog/Makefile +++ b/examples/cpuhog/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/cpuhog/Makefile # +# 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/examples/cpuhog/cpuhog_main.c b/examples/cpuhog/cpuhog_main.c index 2c8d773445d..6a45ddad0d7 100644 --- a/examples/cpuhog/cpuhog_main.c +++ b/examples/cpuhog/cpuhog_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/cpuhog/cpuhog_main.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/examples/cromfs/CMakeLists.txt b/examples/cromfs/CMakeLists.txt index 6f75a5638ce..9c06bf85504 100644 --- a/examples/cromfs/CMakeLists.txt +++ b/examples/cromfs/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/cromfs/CMakeLists.txt # +# 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 diff --git a/examples/cromfs/Make.defs b/examples/cromfs/Make.defs index f95a7f623c7..dbf0dbeb0b6 100644 --- a/examples/cromfs/Make.defs +++ b/examples/cromfs/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/cromfs/Make.defs # +# 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/examples/cromfs/Makefile b/examples/cromfs/Makefile index 161736d2919..96078719e05 100644 --- a/examples/cromfs/Makefile +++ b/examples/cromfs/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/cromfs/Makefile # +# 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/examples/dac/CMakeLists.txt b/examples/dac/CMakeLists.txt index 6c0b76de07e..854199b9a1a 100644 --- a/examples/dac/CMakeLists.txt +++ b/examples/dac/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/dac/CMakeLists.txt # +# 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 diff --git a/examples/dac/Make.defs b/examples/dac/Make.defs index a8b027520aa..9e53508173d 100644 --- a/examples/dac/Make.defs +++ b/examples/dac/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/dac/Make.defs # +# 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/examples/dac/Makefile b/examples/dac/Makefile index ea26dea9d55..3f983939fef 100644 --- a/examples/dac/Makefile +++ b/examples/dac/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/dac/Makefile # +# 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/examples/dac/dac_main.c b/examples/dac/dac_main.c index ac524be5bf6..050cc0f800b 100644 --- a/examples/dac/dac_main.c +++ b/examples/dac/dac_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/dac/dac_main.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/examples/dhcpd/CMakeLists.txt b/examples/dhcpd/CMakeLists.txt index 09cc83d8fc0..0305ab59cfd 100644 --- a/examples/dhcpd/CMakeLists.txt +++ b/examples/dhcpd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/dhcpd/CMakeLists.txt # +# 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 diff --git a/examples/dhcpd/Make.defs b/examples/dhcpd/Make.defs index 6d002428658..8c6fddcf6a3 100644 --- a/examples/dhcpd/Make.defs +++ b/examples/dhcpd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/dhcpd/Make.defs # +# 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/examples/dhcpd/Makefile b/examples/dhcpd/Makefile index 5f127cdc602..84ce2efc4f0 100644 --- a/examples/dhcpd/Makefile +++ b/examples/dhcpd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/dhcpd/Makefile # +# 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/examples/dhcpd/Makefile.host b/examples/dhcpd/Makefile.host index 78caadfe83f..18795707ad3 100644 --- a/examples/dhcpd/Makefile.host +++ b/examples/dhcpd/Makefile.host @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/dhcpd/Makefile.host # +# 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/examples/dhcpd/dhcpd_daemon.c b/examples/dhcpd/dhcpd_daemon.c index 34747b3456a..5b8f521862b 100644 --- a/examples/dhcpd/dhcpd_daemon.c +++ b/examples/dhcpd/dhcpd_daemon.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/dhcpd/dhcpd_daemon.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/examples/dhcpd/dhcpd_daemon.h b/examples/dhcpd/dhcpd_daemon.h index 5c2e521c7c6..bdf929146a3 100644 --- a/examples/dhcpd/dhcpd_daemon.h +++ b/examples/dhcpd/dhcpd_daemon.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/dhcpd/dhcpd_daemon.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 diff --git a/examples/dhcpd/dhcpd_start.c b/examples/dhcpd/dhcpd_start.c index 1ab56aa615f..e5e7d5c2451 100644 --- a/examples/dhcpd/dhcpd_start.c +++ b/examples/dhcpd/dhcpd_start.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/dhcpd/dhcpd_start.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/examples/dhcpd/dhcpd_stop.c b/examples/dhcpd/dhcpd_stop.c index 7d6795d169b..099d47fcd3b 100644 --- a/examples/dhcpd/dhcpd_stop.c +++ b/examples/dhcpd/dhcpd_stop.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/dhcpd/dhcpd_stop.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/examples/dhcpd/host.c b/examples/dhcpd/host.c index 89c4885eeef..bd806f06a7d 100644 --- a/examples/dhcpd/host.c +++ b/examples/dhcpd/host.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/dhcpd/host.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/examples/dhcpd/target.c b/examples/dhcpd/target.c index 574a6b6cb95..3a5117f6199 100644 --- a/examples/dhcpd/target.c +++ b/examples/dhcpd/target.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/dhcpd/target.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/examples/dhtxx/CMakeLists.txt b/examples/dhtxx/CMakeLists.txt index 2d271c6fa6e..b46b9b4043a 100644 --- a/examples/dhtxx/CMakeLists.txt +++ b/examples/dhtxx/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/dhtxx/CMakeLists.txt # +# 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 diff --git a/examples/dhtxx/Make.defs b/examples/dhtxx/Make.defs index 924d5dac79b..7caff590768 100644 --- a/examples/dhtxx/Make.defs +++ b/examples/dhtxx/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/dhtxx/Make.defs # +# 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/examples/dhtxx/Makefile b/examples/dhtxx/Makefile index cfebad51563..cca81fc2f43 100644 --- a/examples/dhtxx/Makefile +++ b/examples/dhtxx/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/dhtxx/Makefile # +# 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/examples/dhtxx/dhtxx_main.c b/examples/dhtxx/dhtxx_main.c index 4720c4d7b4a..d38b502aed0 100644 --- a/examples/dhtxx/dhtxx_main.c +++ b/examples/dhtxx/dhtxx_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/dhtxx/dhtxx_main.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/examples/discover/CMakeLists.txt b/examples/discover/CMakeLists.txt index 83fdc7e6f8e..1baaa7a8e35 100644 --- a/examples/discover/CMakeLists.txt +++ b/examples/discover/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/discover/CMakeLists.txt # +# 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 diff --git a/examples/discover/Make.defs b/examples/discover/Make.defs index 79226fec9c3..b5491e9572d 100644 --- a/examples/discover/Make.defs +++ b/examples/discover/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/discover/Make.defs # +# 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/examples/discover/Makefile b/examples/discover/Makefile index 7c4e96b7ce4..698d9cbd1d8 100644 --- a/examples/discover/Makefile +++ b/examples/discover/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/discover/Makefile # +# 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/examples/discover/discover_main.c b/examples/discover/discover_main.c index 9a3bfe3c8a1..ba81dbcb020 100644 --- a/examples/discover/discover_main.c +++ b/examples/discover/discover_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/discover/discover_main.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/examples/djoystick/CMakeLists.txt b/examples/djoystick/CMakeLists.txt index 8c05fdb0bec..37152b56b89 100644 --- a/examples/djoystick/CMakeLists.txt +++ b/examples/djoystick/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/djoystick/CMakeLists.txt # +# 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 diff --git a/examples/djoystick/Make.defs b/examples/djoystick/Make.defs index f4a06499250..280c627af97 100644 --- a/examples/djoystick/Make.defs +++ b/examples/djoystick/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/djoystick/Make.defs # +# 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/examples/djoystick/Makefile b/examples/djoystick/Makefile index 9a071735e5c..74e31b644bf 100644 --- a/examples/djoystick/Makefile +++ b/examples/djoystick/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/djoystick/Makefile # +# 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/examples/djoystick/djoy_main.c b/examples/djoystick/djoy_main.c index f32de94d65b..110de4531c6 100644 --- a/examples/djoystick/djoy_main.c +++ b/examples/djoystick/djoy_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/djoystick/djoy_main.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/examples/dronecan/CMakeLists.txt b/examples/dronecan/CMakeLists.txt index e52cbbc4cf2..353bd4dc71d 100644 --- a/examples/dronecan/CMakeLists.txt +++ b/examples/dronecan/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/dronecan/CMakeLists.txt # +# 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 diff --git a/examples/dronecan/Make.defs b/examples/dronecan/Make.defs index afcaed2be3e..f17aebd60f0 100644 --- a/examples/dronecan/Make.defs +++ b/examples/dronecan/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/dronecan/Make.defs # +# 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/examples/dronecan/Makefile b/examples/dronecan/Makefile index b2f35d86196..a8f309b6868 100644 --- a/examples/dronecan/Makefile +++ b/examples/dronecan/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/dronecan/Makefile # +# 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/examples/dronecan/canard_main.c b/examples/dronecan/canard_main.c index eb2f7b320e2..a5a55ebe947 100644 --- a/examples/dronecan/canard_main.c +++ b/examples/dronecan/canard_main.c @@ -1,8 +1,9 @@ /**************************************************************************** * apps/examples/dronecan/canard_main.c * - * Copyright (C) 2016 ETH Zuerich. All rights reserved. - * Author: Matthias Renner + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2016 ETH Zuerich. All rights reserved. + * SPDX-FileContributor: Matthias Renner * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/examples/elf/CMakeLists.txt b/examples/elf/CMakeLists.txt index 181927e84a6..341fc4b530a 100644 --- a/examples/elf/CMakeLists.txt +++ b/examples/elf/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/elf/CMakeLists.txt # +# 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 diff --git a/examples/elf/Make.defs b/examples/elf/Make.defs index a86d97359e6..e01a9d0ddb1 100644 --- a/examples/elf/Make.defs +++ b/examples/elf/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/elf/Make.defs # +# 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/examples/elf/Makefile b/examples/elf/Makefile index 0d17c8a1c11..8d1e32f139f 100644 --- a/examples/elf/Makefile +++ b/examples/elf/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/elf/Makefile # +# 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/examples/elf/elf_main.c b/examples/elf/elf_main.c index 91a2f971c7f..160d1e233bc 100644 --- a/examples/elf/elf_main.c +++ b/examples/elf/elf_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/elf/elf_main.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/examples/elf/tests/Makefile b/examples/elf/tests/Makefile index b72020917d0..ca78d8d5d3b 100644 --- a/examples/elf/tests/Makefile +++ b/examples/elf/tests/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/elf/tests/Makefile # +# 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/examples/elf/tests/errno/Makefile b/examples/elf/tests/errno/Makefile index 4432cbd4a25..2f9d2a13ab0 100644 --- a/examples/elf/tests/errno/Makefile +++ b/examples/elf/tests/errno/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/elf/tests/errno/Makefile # +# 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/examples/elf/tests/errno/errno.c b/examples/elf/tests/errno/errno.c index e75659f3ba6..8a26e47c43e 100644 --- a/examples/elf/tests/errno/errno.c +++ b/examples/elf/tests/errno/errno.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/elf/tests/errno/errno.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/examples/elf/tests/hello/Makefile b/examples/elf/tests/hello/Makefile index cde309695b3..88ec0f0a807 100644 --- a/examples/elf/tests/hello/Makefile +++ b/examples/elf/tests/hello/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/elf/tests/hello/Makefile # +# 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/examples/elf/tests/hello/hello.c b/examples/elf/tests/hello/hello.c index 41b3cfcb8a0..d2856f73bea 100644 --- a/examples/elf/tests/hello/hello.c +++ b/examples/elf/tests/hello/hello.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/elf/tests/hello/hello.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/examples/elf/tests/helloxx/Makefile b/examples/elf/tests/helloxx/Makefile index 142282a0021..b2f2768342d 100644 --- a/examples/elf/tests/helloxx/Makefile +++ b/examples/elf/tests/helloxx/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/elf/tests/helloxx/Makefile # +# 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/examples/elf/tests/helloxx/hello++1.cxx b/examples/elf/tests/helloxx/hello++1.cxx index acc86c04caf..5b79d7f2fbe 100644 --- a/examples/elf/tests/helloxx/hello++1.cxx +++ b/examples/elf/tests/helloxx/hello++1.cxx @@ -1,6 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// // apps/examples/elf/tests/helloxx/hello++1.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 diff --git a/examples/elf/tests/helloxx/hello++2.cxx b/examples/elf/tests/helloxx/hello++2.cxx index cd666bd8bc1..a7dc7191819 100644 --- a/examples/elf/tests/helloxx/hello++2.cxx +++ b/examples/elf/tests/helloxx/hello++2.cxx @@ -1,6 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// // apps/examples/elf/tests/helloxx/hello++2.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 diff --git a/examples/elf/tests/helloxx/hello++3.cxx b/examples/elf/tests/helloxx/hello++3.cxx index c1f6d0c14b0..d76406eac1b 100644 --- a/examples/elf/tests/helloxx/hello++3.cxx +++ b/examples/elf/tests/helloxx/hello++3.cxx @@ -1,6 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// // apps/examples/elf/tests/helloxx/hello++3.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 diff --git a/examples/elf/tests/helloxx/hello++4.cxx b/examples/elf/tests/helloxx/hello++4.cxx index d0743f40245..3f065cafeea 100644 --- a/examples/elf/tests/helloxx/hello++4.cxx +++ b/examples/elf/tests/helloxx/hello++4.cxx @@ -1,6 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// // apps/examples/elf/tests/helloxx/hello++4.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 diff --git a/examples/elf/tests/helloxx/hello++5.cxx b/examples/elf/tests/helloxx/hello++5.cxx index 38417dd5de2..c72a8cc9a3c 100644 --- a/examples/elf/tests/helloxx/hello++5.cxx +++ b/examples/elf/tests/helloxx/hello++5.cxx @@ -1,6 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// // apps/examples/elf/tests/helloxx/hello++5.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 diff --git a/examples/elf/tests/longjmp/Makefile b/examples/elf/tests/longjmp/Makefile index 17e325c786b..fa792e6ff0d 100644 --- a/examples/elf/tests/longjmp/Makefile +++ b/examples/elf/tests/longjmp/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/elf/tests/longjmp/Makefile # +# 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/examples/elf/tests/longjmp/longjmp.c b/examples/elf/tests/longjmp/longjmp.c index ca36b95dd2a..ea48d456901 100644 --- a/examples/elf/tests/longjmp/longjmp.c +++ b/examples/elf/tests/longjmp/longjmp.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/elf/tests/longjmp/longjmp.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/examples/elf/tests/mutex/Makefile b/examples/elf/tests/mutex/Makefile index e95fba84e75..5fec89d3c0c 100644 --- a/examples/elf/tests/mutex/Makefile +++ b/examples/elf/tests/mutex/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/elf/tests/mutex/Makefile # +# 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/examples/elf/tests/mutex/mutex.c b/examples/elf/tests/mutex/mutex.c index 714dc94c65f..2c7310ccfa5 100644 --- a/examples/elf/tests/mutex/mutex.c +++ b/examples/elf/tests/mutex/mutex.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/elf/tests/mutex/mutex.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/examples/elf/tests/pthread/Makefile b/examples/elf/tests/pthread/Makefile index 39e821e802b..61108bc5f0d 100644 --- a/examples/elf/tests/pthread/Makefile +++ b/examples/elf/tests/pthread/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/elf/tests/pthread/Makefile # +# 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/examples/elf/tests/pthread/pthread.c b/examples/elf/tests/pthread/pthread.c index 4e5e8f810fd..cea9f033072 100644 --- a/examples/elf/tests/pthread/pthread.c +++ b/examples/elf/tests/pthread/pthread.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/elf/tests/pthread/pthread.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/examples/elf/tests/signal/Makefile b/examples/elf/tests/signal/Makefile index d89e1838442..21df11dd0d0 100644 --- a/examples/elf/tests/signal/Makefile +++ b/examples/elf/tests/signal/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/elf/tests/signal/Makefile # +# 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/examples/elf/tests/signal/signal.c b/examples/elf/tests/signal/signal.c index a55070fbed6..b091602bcce 100644 --- a/examples/elf/tests/signal/signal.c +++ b/examples/elf/tests/signal/signal.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/elf/tests/signal/signal.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/examples/elf/tests/struct/Makefile b/examples/elf/tests/struct/Makefile index e76e5a6c4ff..990d990c25d 100644 --- a/examples/elf/tests/struct/Makefile +++ b/examples/elf/tests/struct/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/elf/tests/struct/Makefile # +# 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/examples/elf/tests/struct/struct.h b/examples/elf/tests/struct/struct.h index 7508f053de0..bfbe1c8ac5b 100644 --- a/examples/elf/tests/struct/struct.h +++ b/examples/elf/tests/struct/struct.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/elf/tests/struct/struct.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 diff --git a/examples/elf/tests/struct/struct_dummy.c b/examples/elf/tests/struct/struct_dummy.c index d3376417cf5..c1361d4eb75 100644 --- a/examples/elf/tests/struct/struct_dummy.c +++ b/examples/elf/tests/struct/struct_dummy.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/elf/tests/struct/struct_dummy.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/examples/elf/tests/struct/struct_main.c b/examples/elf/tests/struct/struct_main.c index 2cb707ec1a5..801d2c5c55e 100644 --- a/examples/elf/tests/struct/struct_main.c +++ b/examples/elf/tests/struct/struct_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/elf/tests/struct/struct_main.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/examples/elf/tests/task/Makefile b/examples/elf/tests/task/Makefile index 3db9ab24f56..b57b98885f9 100644 --- a/examples/elf/tests/task/Makefile +++ b/examples/elf/tests/task/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/elf/tests/task/Makefile # +# 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/examples/elf/tests/task/task.c b/examples/elf/tests/task/task.c index dfaf9834a22..64a90f07f70 100644 --- a/examples/elf/tests/task/task.c +++ b/examples/elf/tests/task/task.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/elf/tests/task/task.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/examples/embedlog/CMakeLists.txt b/examples/embedlog/CMakeLists.txt index 055126498ad..0a403bfc5a8 100644 --- a/examples/embedlog/CMakeLists.txt +++ b/examples/embedlog/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/embedlog/CMakeLists.txt # +# 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 diff --git a/examples/embedlog/Make.defs b/examples/embedlog/Make.defs index 9c2ef3aad71..6096211d44e 100644 --- a/examples/embedlog/Make.defs +++ b/examples/embedlog/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/embedlog/Make.defs # +# 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/examples/embedlog/Makefile b/examples/embedlog/Makefile index 6524a872f20..a48e7e76d97 100644 --- a/examples/embedlog/Makefile +++ b/examples/embedlog/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/embedlog/Makefile # +# 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/examples/embedlog/embedlog_main.c b/examples/embedlog/embedlog_main.c index 497fa145228..85c1193647d 100644 --- a/examples/embedlog/embedlog_main.c +++ b/examples/embedlog/embedlog_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/embedlog/embedlog_main.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/examples/esp32_himem/CMakeLists.txt b/examples/esp32_himem/CMakeLists.txt index bf96baf00ce..313e906740b 100644 --- a/examples/esp32_himem/CMakeLists.txt +++ b/examples/esp32_himem/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/esp32_himem/CMakeLists.txt # +# 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 diff --git a/examples/esp32_himem/Make.defs b/examples/esp32_himem/Make.defs index 69f4979b3f4..2f6324c6b29 100644 --- a/examples/esp32_himem/Make.defs +++ b/examples/esp32_himem/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/esp32_himem/Make.defs # +# 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/examples/esp32_himem/Makefile b/examples/esp32_himem/Makefile index d80be5cc9fd..aba61321da9 100644 --- a/examples/esp32_himem/Makefile +++ b/examples/esp32_himem/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/esp32_himem/Makefile # +# 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/examples/esp32_himem/esp32_himem_main.c b/examples/esp32_himem/esp32_himem_main.c index 88e29546377..bf7eda01c41 100644 --- a/examples/esp32_himem/esp32_himem_main.c +++ b/examples/esp32_himem/esp32_himem_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/esp32_himem/esp32_himem_main.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/examples/etl/CMakeLists.txt b/examples/etl/CMakeLists.txt index 2c705062a73..9c0a201060a 100644 --- a/examples/etl/CMakeLists.txt +++ b/examples/etl/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/etl/CMakeLists.txt # +# 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 diff --git a/examples/etl/Make.defs b/examples/etl/Make.defs index b020e2bc11d..54405b0eddb 100644 --- a/examples/etl/Make.defs +++ b/examples/etl/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/etl/Make.defs # +# 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/examples/etl/Makefile b/examples/etl/Makefile index f273f4fa77d..89b4c57a8fd 100644 --- a/examples/etl/Makefile +++ b/examples/etl/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/etl/Makefile # +# 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/examples/etl/etl_main.cxx b/examples/etl/etl_main.cxx index ec4a08187b7..efb4aa835dd 100644 --- a/examples/etl/etl_main.cxx +++ b/examples/etl/etl_main.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/examples/etl/etl_main.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 diff --git a/examples/fb/CMakeLists.txt b/examples/fb/CMakeLists.txt index fdabfec244c..87736c9600a 100644 --- a/examples/fb/CMakeLists.txt +++ b/examples/fb/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/fb/CMakeLists.txt # +# 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 diff --git a/examples/fb/Make.defs b/examples/fb/Make.defs index 319ba7ea175..a8ddc29d39f 100644 --- a/examples/fb/Make.defs +++ b/examples/fb/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/fb/Make.defs # +# 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/examples/fb/Makefile b/examples/fb/Makefile index 1ccc6944aad..fcf0f41abf5 100644 --- a/examples/fb/Makefile +++ b/examples/fb/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/fb/Makefile # +# 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/examples/fb/fb_main.c b/examples/fb/fb_main.c index 835e70733ff..8948770bfd7 100644 --- a/examples/fb/fb_main.c +++ b/examples/fb/fb_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/fb/fb_main.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/examples/fboverlay/CMakeLists.txt b/examples/fboverlay/CMakeLists.txt index a3248597ad6..0a90f9ab43c 100644 --- a/examples/fboverlay/CMakeLists.txt +++ b/examples/fboverlay/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/fboverlay/CMakeLists.txt # +# 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 diff --git a/examples/fboverlay/Make.defs b/examples/fboverlay/Make.defs index 0fc92aaa6b9..62ea27755c0 100644 --- a/examples/fboverlay/Make.defs +++ b/examples/fboverlay/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/fboverlay/Make.defs # +# 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/examples/fboverlay/Makefile b/examples/fboverlay/Makefile index 8072f0f89f1..d68057f25df 100644 --- a/examples/fboverlay/Makefile +++ b/examples/fboverlay/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/fboverlay/Makefile # +# 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/examples/fboverlay/fboverlay_main.c b/examples/fboverlay/fboverlay_main.c index 193c4b81d36..f71e17e9b6c 100644 --- a/examples/fboverlay/fboverlay_main.c +++ b/examples/fboverlay/fboverlay_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/fboverlay/fboverlay_main.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/examples/flash_test/CMakeLists.txt b/examples/flash_test/CMakeLists.txt index ea278ae7f7c..136905dfc0e 100644 --- a/examples/flash_test/CMakeLists.txt +++ b/examples/flash_test/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/flash_test/CMakeLists.txt # +# 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 diff --git a/examples/flash_test/Make.defs b/examples/flash_test/Make.defs index a5ef02bb4d7..04e423a2df2 100644 --- a/examples/flash_test/Make.defs +++ b/examples/flash_test/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/flash_test/Make.defs # +# 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/examples/flash_test/Makefile b/examples/flash_test/Makefile index 462b72b5081..6b1cf355f40 100644 --- a/examples/flash_test/Makefile +++ b/examples/flash_test/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/flash_test/Makefile # +# 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/examples/flash_test/flash_test.c b/examples/flash_test/flash_test.c index eeda05fbe5c..2dea201c2ba 100644 --- a/examples/flash_test/flash_test.c +++ b/examples/flash_test/flash_test.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/flash_test/flash_test.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/examples/flowc/CMakeLists.txt b/examples/flowc/CMakeLists.txt index cdcdcde2f28..fd7d7096069 100644 --- a/examples/flowc/CMakeLists.txt +++ b/examples/flowc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/flowc/CMakeLists.txt # +# 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 diff --git a/examples/flowc/Make.defs b/examples/flowc/Make.defs index 060c7d3ad3e..5153fbc9b6e 100644 --- a/examples/flowc/Make.defs +++ b/examples/flowc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/flowc/Make.defs # +# 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/examples/flowc/Makefile b/examples/flowc/Makefile index 597f6eedced..9d9d90f54c9 100644 --- a/examples/flowc/Makefile +++ b/examples/flowc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/flowc/Makefile # +# 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/examples/flowc/flowc.h b/examples/flowc/flowc.h index 8f9b3eb2bfc..c96fe76afce 100644 --- a/examples/flowc/flowc.h +++ b/examples/flowc/flowc.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/flowc/flowc.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 diff --git a/examples/flowc/flowc_host.c b/examples/flowc/flowc_host.c index a2d97bb8b08..3355dcb3ed1 100644 --- a/examples/flowc/flowc_host.c +++ b/examples/flowc/flowc_host.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/flowc/flowc_host.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/examples/flowc/flowc_mktestdata.c b/examples/flowc/flowc_mktestdata.c index 900c0d70093..0ad5546a22c 100644 --- a/examples/flowc/flowc_mktestdata.c +++ b/examples/flowc/flowc_mktestdata.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/flowc/flowc_mktestdata.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/examples/flowc/flowc_receiver.c b/examples/flowc/flowc_receiver.c index fe57f60c834..07d9ede0ff9 100644 --- a/examples/flowc/flowc_receiver.c +++ b/examples/flowc/flowc_receiver.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/flowc/flowc_receiver.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/examples/flowc/flowc_sender.c b/examples/flowc/flowc_sender.c index 5149c512cf5..fc536c45273 100644 --- a/examples/flowc/flowc_sender.c +++ b/examples/flowc/flowc_sender.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/flowc/flowc_sender.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/examples/flowc/flowc_target1.c b/examples/flowc/flowc_target1.c index 80790b323ec..a7956211504 100644 --- a/examples/flowc/flowc_target1.c +++ b/examples/flowc/flowc_target1.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/flowc/flowc_target1.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/examples/flowc/flowc_target2.c b/examples/flowc/flowc_target2.c index 4488308bfc5..31fa0071847 100644 --- a/examples/flowc/flowc_target2.c +++ b/examples/flowc/flowc_target2.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/flowc/flowc_target2.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/examples/fmsynth/CMakeLists.txt b/examples/fmsynth/CMakeLists.txt index 5279ba28965..b6ff8c4f19e 100644 --- a/examples/fmsynth/CMakeLists.txt +++ b/examples/fmsynth/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/fmsynth/CMakeLists.txt # +# 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 diff --git a/examples/fmsynth/Make.defs b/examples/fmsynth/Make.defs index 25be117b1d8..ecca6198f49 100644 --- a/examples/fmsynth/Make.defs +++ b/examples/fmsynth/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/fmsynth/Make.defs # +# 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/examples/fmsynth/Makefile b/examples/fmsynth/Makefile index d89a7df17a8..11aa02ff94f 100644 --- a/examples/fmsynth/Makefile +++ b/examples/fmsynth/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/fmsynth/Makefile # +# 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/examples/fmsynth/keyboard_main.c b/examples/fmsynth/keyboard_main.c index 1cbaba2a554..e30eab3de74 100644 --- a/examples/fmsynth/keyboard_main.c +++ b/examples/fmsynth/keyboard_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/fmsynth/keyboard_main.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/examples/fmsynth/mmlplayer_main.c b/examples/fmsynth/mmlplayer_main.c index 88c849c02f7..dd2a2b47880 100644 --- a/examples/fmsynth/mmlplayer_main.c +++ b/examples/fmsynth/mmlplayer_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/fmsynth/mmlplayer_main.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/examples/fmsynth/mmlplayer_score.h b/examples/fmsynth/mmlplayer_score.h index f9e7578469b..eae095aa162 100644 --- a/examples/fmsynth/mmlplayer_score.h +++ b/examples/fmsynth/mmlplayer_score.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/fmsynth/mmlplayer_score.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 diff --git a/examples/fmsynth/music_scale.c b/examples/fmsynth/music_scale.c index 7ec2e7709f9..185528be08d 100644 --- a/examples/fmsynth/music_scale.c +++ b/examples/fmsynth/music_scale.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/fmsynth/music_scale.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/examples/fmsynth/music_scale.h b/examples/fmsynth/music_scale.h index 577564a3c90..afb5a384a10 100644 --- a/examples/fmsynth/music_scale.h +++ b/examples/fmsynth/music_scale.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/fmsynth/music_scale.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 diff --git a/examples/fmsynth/operator_algorithm.c b/examples/fmsynth/operator_algorithm.c index 2d6b6068ec1..6eafe902598 100644 --- a/examples/fmsynth/operator_algorithm.c +++ b/examples/fmsynth/operator_algorithm.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/fmsynth/operator_algorithm.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/examples/fmsynth/operator_algorithm.h b/examples/fmsynth/operator_algorithm.h index 94594d027bd..45adb4a194d 100644 --- a/examples/fmsynth/operator_algorithm.h +++ b/examples/fmsynth/operator_algorithm.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/fmsynth/operator_algorithm.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 diff --git a/examples/foc/CMakeLists.txt b/examples/foc/CMakeLists.txt index 8cf8faa005a..17fcc5fa698 100644 --- a/examples/foc/CMakeLists.txt +++ b/examples/foc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/foc/CMakeLists.txt # +# 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 diff --git a/examples/foc/Make.defs b/examples/foc/Make.defs index 8387dcfafc0..646d0c54b54 100644 --- a/examples/foc/Make.defs +++ b/examples/foc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/foc/Make.defs # +# 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/examples/foc/Makefile b/examples/foc/Makefile index cc81a317253..e0785cf2187 100644 --- a/examples/foc/Makefile +++ b/examples/foc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/foc/Makefile # +# 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/examples/foc/foc_adc.h b/examples/foc/foc_adc.h index d578d1fb0cf..fbc1a69abd4 100644 --- a/examples/foc/foc_adc.h +++ b/examples/foc/foc_adc.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_adc.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 diff --git a/examples/foc/foc_cfg.h b/examples/foc/foc_cfg.h index 3e03d3725d7..6ce0343472e 100644 --- a/examples/foc/foc_cfg.h +++ b/examples/foc/foc_cfg.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_cfg.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 diff --git a/examples/foc/foc_debug.h b/examples/foc/foc_debug.h index fd92d247e30..ed8ebcb2089 100644 --- a/examples/foc/foc_debug.h +++ b/examples/foc/foc_debug.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_debug.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 diff --git a/examples/foc/foc_device.c b/examples/foc/foc_device.c index e4075f1c426..3ebea241fc4 100644 --- a/examples/foc/foc_device.c +++ b/examples/foc/foc_device.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_device.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/examples/foc/foc_device.h b/examples/foc/foc_device.h index 8c57934cf0c..aa056b63d5f 100644 --- a/examples/foc/foc_device.h +++ b/examples/foc/foc_device.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_device.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 diff --git a/examples/foc/foc_fixed16_thr.c b/examples/foc/foc_fixed16_thr.c index 47a979d41dd..412b2b26e87 100644 --- a/examples/foc/foc_fixed16_thr.c +++ b/examples/foc/foc_fixed16_thr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_fixed16_thr.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/examples/foc/foc_float_thr.c b/examples/foc/foc_float_thr.c index 44bde00e60f..52fb0833b92 100644 --- a/examples/foc/foc_float_thr.c +++ b/examples/foc/foc_float_thr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_float_thr.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/examples/foc/foc_intf.c b/examples/foc/foc_intf.c index 04a3493a34a..1b0d4a8b1b0 100644 --- a/examples/foc/foc_intf.c +++ b/examples/foc/foc_intf.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_intf.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/examples/foc/foc_intf.h b/examples/foc/foc_intf.h index 28689831991..ca6edf7bdf9 100644 --- a/examples/foc/foc_intf.h +++ b/examples/foc/foc_intf.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_intf.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 diff --git a/examples/foc/foc_main.c b/examples/foc/foc_main.c index e4626baf673..4b280e848de 100644 --- a/examples/foc/foc_main.c +++ b/examples/foc/foc_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_main.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/examples/foc/foc_motor_b16.c b/examples/foc/foc_motor_b16.c index a67230fac45..f7a8ed2a523 100644 --- a/examples/foc/foc_motor_b16.c +++ b/examples/foc/foc_motor_b16.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_motor_b16.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/examples/foc/foc_motor_b16.h b/examples/foc/foc_motor_b16.h index ee8c73a591c..834d92111ee 100644 --- a/examples/foc/foc_motor_b16.h +++ b/examples/foc/foc_motor_b16.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_motor_b16.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 diff --git a/examples/foc/foc_motor_f32.c b/examples/foc/foc_motor_f32.c index 5feedf5db08..8499a34ccf0 100644 --- a/examples/foc/foc_motor_f32.c +++ b/examples/foc/foc_motor_f32.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_motor_f32.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/examples/foc/foc_motor_f32.h b/examples/foc/foc_motor_f32.h index 3a031282e62..773241f28c6 100644 --- a/examples/foc/foc_motor_f32.h +++ b/examples/foc/foc_motor_f32.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_motor_f32.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 diff --git a/examples/foc/foc_mq.c b/examples/foc/foc_mq.c index aa32c4ed481..bbcd5a4fa43 100644 --- a/examples/foc/foc_mq.c +++ b/examples/foc/foc_mq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_mq.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/examples/foc/foc_mq.h b/examples/foc/foc_mq.h index e096d0c4b36..a2fd32c4d06 100644 --- a/examples/foc/foc_mq.h +++ b/examples/foc/foc_mq.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_mq.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 diff --git a/examples/foc/foc_nxscope.c b/examples/foc/foc_nxscope.c index f40297d51dd..93fd992af1d 100644 --- a/examples/foc/foc_nxscope.c +++ b/examples/foc/foc_nxscope.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_nxscope.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/examples/foc/foc_nxscope.h b/examples/foc/foc_nxscope.h index 911e0afdf17..28ab6c06e24 100644 --- a/examples/foc/foc_nxscope.h +++ b/examples/foc/foc_nxscope.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_nxscope.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 diff --git a/examples/foc/foc_parseargs.c b/examples/foc/foc_parseargs.c index cddd73b8569..972a0703f35 100644 --- a/examples/foc/foc_parseargs.c +++ b/examples/foc/foc_parseargs.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_parseargs.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/examples/foc/foc_parseargs.h b/examples/foc/foc_parseargs.h index a019bc5283a..485ab7a4324 100644 --- a/examples/foc/foc_parseargs.h +++ b/examples/foc/foc_parseargs.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_parseargs.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 diff --git a/examples/foc/foc_perf.c b/examples/foc/foc_perf.c index 3c64d3816f2..22a0456daea 100644 --- a/examples/foc/foc_perf.c +++ b/examples/foc/foc_perf.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_perf.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/examples/foc/foc_perf.h b/examples/foc/foc_perf.h index 9409e10575e..d8b90d795ce 100644 --- a/examples/foc/foc_perf.h +++ b/examples/foc/foc_perf.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_perf.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 diff --git a/examples/foc/foc_thr.c b/examples/foc/foc_thr.c index a4bf87e33a9..6de9900faca 100644 --- a/examples/foc/foc_thr.c +++ b/examples/foc/foc_thr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_thr.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/examples/foc/foc_thr.h b/examples/foc/foc_thr.h index 93f6832abbf..f7a931c6066 100644 --- a/examples/foc/foc_thr.h +++ b/examples/foc/foc_thr.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/foc/foc_thr.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 diff --git a/examples/ft80x/CMakeLists.txt b/examples/ft80x/CMakeLists.txt index 979ad69a538..beacaaa5ee8 100644 --- a/examples/ft80x/CMakeLists.txt +++ b/examples/ft80x/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/ft80x/CMakeLists.txt # +# 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 diff --git a/examples/ft80x/Make.defs b/examples/ft80x/Make.defs index 6cc416928de..c4a5c5f63c1 100644 --- a/examples/ft80x/Make.defs +++ b/examples/ft80x/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ft80x/Make.defs # +# 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/examples/ft80x/Makefile b/examples/ft80x/Makefile index 04ef4ab2276..9bbf390dc4e 100644 --- a/examples/ft80x/Makefile +++ b/examples/ft80x/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ft80x/Makefile # +# 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/examples/ft80x/ft80x.h b/examples/ft80x/ft80x.h index b87164e6160..0349f6eb488 100644 --- a/examples/ft80x/ft80x.h +++ b/examples/ft80x/ft80x.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ft80x/ft80x.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 diff --git a/examples/ft80x/ft80x_bitmaps.c b/examples/ft80x/ft80x_bitmaps.c index 4794f3c5202..aecfbfb4f63 100644 --- a/examples/ft80x/ft80x_bitmaps.c +++ b/examples/ft80x/ft80x_bitmaps.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ft80x/ft80x_bitmaps.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/examples/ft80x/ft80x_coprocessor.c b/examples/ft80x/ft80x_coprocessor.c index 3ca5bb69102..474097a4555 100644 --- a/examples/ft80x/ft80x_coprocessor.c +++ b/examples/ft80x/ft80x_coprocessor.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ft80x/ft80x_coprocessor.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/examples/ft80x/ft80x_main.c b/examples/ft80x/ft80x_main.c index 06a11112332..e3529454733 100644 --- a/examples/ft80x/ft80x_main.c +++ b/examples/ft80x/ft80x_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ft80x/ft80x_main.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/examples/ft80x/ft80x_primitives.c b/examples/ft80x/ft80x_primitives.c index 3bd075cfea5..6f70b53f2ca 100644 --- a/examples/ft80x/ft80x_primitives.c +++ b/examples/ft80x/ft80x_primitives.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ft80x/ft80x_primitives.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/examples/ftpc/CMakeLists.txt b/examples/ftpc/CMakeLists.txt index 6318c9cb4d6..1e7f1512b63 100644 --- a/examples/ftpc/CMakeLists.txt +++ b/examples/ftpc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/ftpc/CMakeLists.txt # +# 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 diff --git a/examples/ftpc/Make.defs b/examples/ftpc/Make.defs index b6b5e7a4484..22d85b45c65 100644 --- a/examples/ftpc/Make.defs +++ b/examples/ftpc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ftpc/Make.defs # +# 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/examples/ftpc/Makefile b/examples/ftpc/Makefile index f49e509a9a2..733ef4e69d3 100644 --- a/examples/ftpc/Makefile +++ b/examples/ftpc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ftpc/Makefile # +# 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/examples/ftpc/ftpc.h b/examples/ftpc/ftpc.h index 55bf004061a..5b20aa63443 100644 --- a/examples/ftpc/ftpc.h +++ b/examples/ftpc/ftpc.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ftpc/ftpc.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 diff --git a/examples/ftpc/ftpc_cmds.c b/examples/ftpc/ftpc_cmds.c index a3abd17d6e0..4d7a890d47e 100644 --- a/examples/ftpc/ftpc_cmds.c +++ b/examples/ftpc/ftpc_cmds.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ftpc/ftpc_cmds.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/examples/ftpc/ftpc_main.c b/examples/ftpc/ftpc_main.c index ba57e17beaa..cce4cf6c246 100644 --- a/examples/ftpc/ftpc_main.c +++ b/examples/ftpc/ftpc_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ftpc/ftpc_main.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/examples/ftpd/CMakeLists.txt b/examples/ftpd/CMakeLists.txt index e433f125beb..7b3b33b43c0 100644 --- a/examples/ftpd/CMakeLists.txt +++ b/examples/ftpd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/ftpd/CMakeLists.txt # +# 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 diff --git a/examples/ftpd/Make.defs b/examples/ftpd/Make.defs index 4761439f8e5..b845f46df0e 100644 --- a/examples/ftpd/Make.defs +++ b/examples/ftpd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ftpd/Make.defs # +# 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/examples/ftpd/Makefile b/examples/ftpd/Makefile index fe42036f91f..564dd149b1c 100644 --- a/examples/ftpd/Makefile +++ b/examples/ftpd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ftpd/Makefile # +# 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/examples/ftpd/ftpd.h b/examples/ftpd/ftpd.h index 213ab1b1935..59bf11b80e2 100644 --- a/examples/ftpd/ftpd.h +++ b/examples/ftpd/ftpd.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ftpd/ftpd.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 diff --git a/examples/ftpd/ftpd_main.c b/examples/ftpd/ftpd_main.c index d1052b50c3c..5c7888b2416 100644 --- a/examples/ftpd/ftpd_main.c +++ b/examples/ftpd/ftpd_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ftpd/ftpd_main.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/examples/fxos8700cq_test/CMakeLists.txt b/examples/fxos8700cq_test/CMakeLists.txt index add6afd763f..d1fa727ed35 100644 --- a/examples/fxos8700cq_test/CMakeLists.txt +++ b/examples/fxos8700cq_test/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/fxos8700cq_test/CMakeLists.txt # +# 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 diff --git a/examples/fxos8700cq_test/Make.defs b/examples/fxos8700cq_test/Make.defs index e43f726d9d9..6f58ed4c0ea 100644 --- a/examples/fxos8700cq_test/Make.defs +++ b/examples/fxos8700cq_test/Make.defs @@ -1,6 +1,8 @@ ############################################################################# # apps/examples/fxos8700cq_test/Make.defs # +# 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/examples/fxos8700cq_test/Makefile b/examples/fxos8700cq_test/Makefile index 3cb1ccecb4a..18f857db0ce 100644 --- a/examples/fxos8700cq_test/Makefile +++ b/examples/fxos8700cq_test/Makefile @@ -1,6 +1,8 @@ ############################################################################# # apps/examples/fxos8700cq_test/Makefile # +# 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/examples/fxos8700cq_test/fxos8700cq_main.c b/examples/fxos8700cq_test/fxos8700cq_main.c index 02bda14f4ca..b55ad7aef43 100644 --- a/examples/fxos8700cq_test/fxos8700cq_main.c +++ b/examples/fxos8700cq_test/fxos8700cq_main.c @@ -1,6 +1,7 @@ /**************************************************************************** * apps/examples/fxos8700cq_test/fxos8700cq_main.c - * fxos8700cq motion sensor sample application + * + * 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 diff --git a/examples/gpio/CMakeLists.txt b/examples/gpio/CMakeLists.txt index ba9246cb580..e0d66402012 100644 --- a/examples/gpio/CMakeLists.txt +++ b/examples/gpio/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/gpio/CMakeLists.txt # +# 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 diff --git a/examples/gpio/Make.defs b/examples/gpio/Make.defs index 6575a1ef4e9..05f914f31d9 100644 --- a/examples/gpio/Make.defs +++ b/examples/gpio/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/gpio/Make.defs # +# 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/examples/gpio/Makefile b/examples/gpio/Makefile index 889ca59af57..be8b54ab724 100644 --- a/examples/gpio/Makefile +++ b/examples/gpio/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/gpio/Makefile # +# 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/examples/gpio/gpio_main.c b/examples/gpio/gpio_main.c index c097a265f3e..1b2e86ad568 100644 --- a/examples/gpio/gpio_main.c +++ b/examples/gpio/gpio_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/gpio/gpio_main.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/examples/gps/CMakeLists.txt b/examples/gps/CMakeLists.txt index 26103014fa6..43d7dd0815e 100644 --- a/examples/gps/CMakeLists.txt +++ b/examples/gps/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/gps/CMakeLists.txt # +# 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 diff --git a/examples/gps/Make.defs b/examples/gps/Make.defs index e90682038ac..a7b093ba154 100644 --- a/examples/gps/Make.defs +++ b/examples/gps/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/gps/Make.defs # +# 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/examples/gps/Makefile b/examples/gps/Makefile index efac4f0ba4e..b6af0ca7d1b 100644 --- a/examples/gps/Makefile +++ b/examples/gps/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/gps/Makefile # +# 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/examples/gps/gps_main.c b/examples/gps/gps_main.c index e042449d3d8..a79cd65c2da 100644 --- a/examples/gps/gps_main.c +++ b/examples/gps/gps_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/gps/gps_main.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/examples/hall/CMakeLists.txt b/examples/hall/CMakeLists.txt index 44a7674ee6a..9626d70fa07 100644 --- a/examples/hall/CMakeLists.txt +++ b/examples/hall/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/hall/CMakeLists.txt # +# 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 diff --git a/examples/hall/Make.defs b/examples/hall/Make.defs index 7db20e76998..40bb4483fe2 100644 --- a/examples/hall/Make.defs +++ b/examples/hall/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hall/Make.defs # +# 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/examples/hall/Makefile b/examples/hall/Makefile index 3c415e238fb..12e6dfe2317 100644 --- a/examples/hall/Makefile +++ b/examples/hall/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hall/Makefile # +# 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/examples/hall/hall.h b/examples/hall/hall.h index 3bb2a2a76b7..242e9d06483 100644 --- a/examples/hall/hall.h +++ b/examples/hall/hall.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/hall/hall.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 diff --git a/examples/hall/hall_main.c b/examples/hall/hall_main.c index 3cf2a4d4ac7..ed3c3b570bd 100644 --- a/examples/hall/hall_main.c +++ b/examples/hall/hall_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/hall/hall_main.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/examples/hdc1008_demo/CMakeLists.txt b/examples/hdc1008_demo/CMakeLists.txt index 1bf7ce4daf1..d2807a4ea30 100644 --- a/examples/hdc1008_demo/CMakeLists.txt +++ b/examples/hdc1008_demo/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/hdc1008_demo/CMakeLists.txt # +# 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 diff --git a/examples/hdc1008_demo/Make.defs b/examples/hdc1008_demo/Make.defs index fa1dd8e8a01..ac45aa939d4 100644 --- a/examples/hdc1008_demo/Make.defs +++ b/examples/hdc1008_demo/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hdc1008_demo/Make.defs # +# 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/examples/hdc1008_demo/Makefile b/examples/hdc1008_demo/Makefile index 6f691ea5e29..0016c3e71ad 100644 --- a/examples/hdc1008_demo/Makefile +++ b/examples/hdc1008_demo/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hdc1008_demo/Makefile # +# 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/examples/hdc1008_demo/hdc1008_main.c b/examples/hdc1008_demo/hdc1008_main.c index 589f7ddd591..57b6f221503 100644 --- a/examples/hdc1008_demo/hdc1008_main.c +++ b/examples/hdc1008_demo/hdc1008_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/hdc1008_demo/hdc1008_main.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/examples/hello/CMakeLists.txt b/examples/hello/CMakeLists.txt index d71131595a7..94fefd6124d 100644 --- a/examples/hello/CMakeLists.txt +++ b/examples/hello/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/hello/CMakeLists.txt # +# 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 diff --git a/examples/hello/Make.defs b/examples/hello/Make.defs index b21f7d2031a..e31ef0f1d80 100644 --- a/examples/hello/Make.defs +++ b/examples/hello/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hello/Make.defs # +# 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/examples/hello/Makefile b/examples/hello/Makefile index f5f6017c0e0..e8bcc498584 100644 --- a/examples/hello/Makefile +++ b/examples/hello/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hello/Makefile # +# 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/examples/hello/hello_main.c b/examples/hello/hello_main.c index 2cd6cb400a7..fd194a623ae 100644 --- a/examples/hello/hello_main.c +++ b/examples/hello/hello_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/hello/hello_main.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/examples/hello_d/Make.defs b/examples/hello_d/Make.defs index b267da14fab..1dbcd3b9fac 100644 --- a/examples/hello_d/Make.defs +++ b/examples/hello_d/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hello_d/Make.defs # +# 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/examples/hello_d/Makefile b/examples/hello_d/Makefile index 805edea851a..983d3f3d751 100644 --- a/examples/hello_d/Makefile +++ b/examples/hello_d/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hello_d/Makefile # +# 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/examples/hello_d/hello_d_main.d b/examples/hello_d/hello_d_main.d index 47dd4e88541..4d165b1f31d 100644 --- a/examples/hello_d/hello_d_main.d +++ b/examples/hello_d/hello_d_main.d @@ -1,6 +1,8 @@ //*************************************************************************** // apps/examples/hello_d/hello_d_main.d // +// 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/examples/hello_d/nuttx_std.c b/examples/hello_d/nuttx_std.c index f8585c47f5c..0583f396bb4 100644 --- a/examples/hello_d/nuttx_std.c +++ b/examples/hello_d/nuttx_std.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/hello_d/nuttx_std.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/examples/hello_nim/Make.defs b/examples/hello_nim/Make.defs index 3c8fdf662d8..595d851339d 100644 --- a/examples/hello_nim/Make.defs +++ b/examples/hello_nim/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hello_nim/Make.defs # +# 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/examples/hello_nim/Makefile b/examples/hello_nim/Makefile index 67e9bf9c97a..fa797310614 100644 --- a/examples/hello_nim/Makefile +++ b/examples/hello_nim/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hello_nim/Makefile # +# 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/examples/hello_nim/hello_nim_async.nim b/examples/hello_nim/hello_nim_async.nim index 580283c17b3..664fe7d9bd3 100644 --- a/examples/hello_nim/hello_nim_async.nim +++ b/examples/hello_nim/hello_nim_async.nim @@ -1,3 +1,25 @@ +/**************************************************************************** + * apps/examples/hello_nim/hello_nim_async.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 + * 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. + * + ****************************************************************************/ + import std/asyncdispatch import std/strformat diff --git a/examples/hello_nim/hello_nim_main.c b/examples/hello_nim/hello_nim_main.c index 9cad2fd9242..2f138653307 100644 --- a/examples/hello_nim/hello_nim_main.c +++ b/examples/hello_nim/hello_nim_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/hello_nim/hello_nim_main.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/examples/hello_rust/Make.defs b/examples/hello_rust/Make.defs index 245662e68ce..7cb3099d206 100644 --- a/examples/hello_rust/Make.defs +++ b/examples/hello_rust/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hello_rust/Make.defs # +# 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/examples/hello_rust/Makefile b/examples/hello_rust/Makefile index 8415ff40288..b1ac1824ca7 100644 --- a/examples/hello_rust/Makefile +++ b/examples/hello_rust/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hello_rust/Makefile # +# 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/examples/hello_rust/hello_rust_main.rs b/examples/hello_rust/hello_rust_main.rs index 3a276e94dd6..fa24671cd7f 100644 --- a/examples/hello_rust/hello_rust_main.rs +++ b/examples/hello_rust/hello_rust_main.rs @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/hello_rust/hello_rust_main.rs * + * 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/examples/hello_swift/BridgingHeader.h b/examples/hello_swift/BridgingHeader.h index 4d5ed3d94eb..ca7ed2ce656 100644 --- a/examples/hello_swift/BridgingHeader.h +++ b/examples/hello_swift/BridgingHeader.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/hello_swift/BridgingHeader.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 diff --git a/examples/hello_swift/Make.defs b/examples/hello_swift/Make.defs index 2829de01e12..d3e68fc72ec 100644 --- a/examples/hello_swift/Make.defs +++ b/examples/hello_swift/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hello_swift/Make.defs # +# 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/examples/hello_swift/Makefile b/examples/hello_swift/Makefile index 5f6a39be841..49fabf55d2d 100644 --- a/examples/hello_swift/Makefile +++ b/examples/hello_swift/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hello_swift/Makefile # +# 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/examples/hello_swift/hello_swift_main.swift b/examples/hello_swift/hello_swift_main.swift index 215235e50be..665704908ee 100644 --- a/examples/hello_swift/hello_swift_main.swift +++ b/examples/hello_swift/hello_swift_main.swift @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/hello_swift/hello_swift_main.swift * + * 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/examples/hello_wasm/CMakeLists.txt b/examples/hello_wasm/CMakeLists.txt index 556aafd5b40..ecdc6e8e787 100644 --- a/examples/hello_wasm/CMakeLists.txt +++ b/examples/hello_wasm/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/hello_wasm/CMakeLists.txt # +# 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 diff --git a/examples/hello_wasm/Make.defs b/examples/hello_wasm/Make.defs index 26d76c29290..4f780cbbcb2 100644 --- a/examples/hello_wasm/Make.defs +++ b/examples/hello_wasm/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hello_wasm/Make.defs # +# 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/examples/hello_wasm/Makefile b/examples/hello_wasm/Makefile index 1d6f4f81a03..1ca45f7c531 100644 --- a/examples/hello_wasm/Makefile +++ b/examples/hello_wasm/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hello_wasm/Makefile # +# 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/examples/hello_wasm/hello_main.c b/examples/hello_wasm/hello_main.c index c351cf93984..856f6b4ccd3 100644 --- a/examples/hello_wasm/hello_main.c +++ b/examples/hello_wasm/hello_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/hello_wasm/hello_main.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/examples/hello_zig/Make.defs b/examples/hello_zig/Make.defs index 25dcc1824f4..e60bcc7ce04 100644 --- a/examples/hello_zig/Make.defs +++ b/examples/hello_zig/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hello_zig/Make.defs # +# 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/examples/hello_zig/Makefile b/examples/hello_zig/Makefile index 90b9de59011..a1a66d2f845 100644 --- a/examples/hello_zig/Makefile +++ b/examples/hello_zig/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hello_zig/Makefile # +# 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/examples/hello_zig/hello_zig.zig b/examples/hello_zig/hello_zig.zig index 4c8fbcbcadb..d3b5dd35d4a 100644 --- a/examples/hello_zig/hello_zig.zig +++ b/examples/hello_zig/hello_zig.zig @@ -1,6 +1,8 @@ //*************************************************************************** // examples/hello_zig/hello_zig.zig // +// 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/examples/helloxx/CMakeLists.txt b/examples/helloxx/CMakeLists.txt index 6138c309e45..12c27efe2e1 100644 --- a/examples/helloxx/CMakeLists.txt +++ b/examples/helloxx/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/helloxx/CMakeLists.txt # +# 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 diff --git a/examples/helloxx/Make.defs b/examples/helloxx/Make.defs index 13fbd567b44..318436af99b 100644 --- a/examples/helloxx/Make.defs +++ b/examples/helloxx/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/helloxx/Make.defs # +# 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/examples/helloxx/Makefile b/examples/helloxx/Makefile index 30b02cfd181..a9741277fa4 100644 --- a/examples/helloxx/Makefile +++ b/examples/helloxx/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/helloxx/Makefile # +# 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/examples/helloxx/helloxx_main.cxx b/examples/helloxx/helloxx_main.cxx index fb0134a8483..c3425ff6b92 100644 --- a/examples/helloxx/helloxx_main.cxx +++ b/examples/helloxx/helloxx_main.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/examples/helloxx/helloxx_main.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 diff --git a/examples/hidkbd/CMakeLists.txt b/examples/hidkbd/CMakeLists.txt index cbbe8bf7e4b..90654c581dd 100644 --- a/examples/hidkbd/CMakeLists.txt +++ b/examples/hidkbd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/hidkbd/CMakeLists.txt # +# 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 diff --git a/examples/hidkbd/Make.defs b/examples/hidkbd/Make.defs index 7868506f9e2..659cf76da41 100644 --- a/examples/hidkbd/Make.defs +++ b/examples/hidkbd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hidkbd/Make.defs # +# 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/examples/hidkbd/Makefile b/examples/hidkbd/Makefile index 91a644692d3..8532747f39b 100644 --- a/examples/hidkbd/Makefile +++ b/examples/hidkbd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hidkbd/Makefile # +# 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/examples/hidkbd/hidkbd_main.c b/examples/hidkbd/hidkbd_main.c index d2b53ee9de1..1515d65261b 100644 --- a/examples/hidkbd/hidkbd_main.c +++ b/examples/hidkbd/hidkbd_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/hidkbd/hidkbd_main.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/examples/hts221_reader/CMakeLists.txt b/examples/hts221_reader/CMakeLists.txt index edd1ad9664c..70b883a4b77 100644 --- a/examples/hts221_reader/CMakeLists.txt +++ b/examples/hts221_reader/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/hts221_reader/CMakeLists.txt # +# 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 diff --git a/examples/hts221_reader/Make.defs b/examples/hts221_reader/Make.defs index 846a0ff2003..d6577e5b276 100644 --- a/examples/hts221_reader/Make.defs +++ b/examples/hts221_reader/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hts221_reader/Make.defs # +# 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/examples/hts221_reader/Makefile b/examples/hts221_reader/Makefile index 46db8727c26..90b9cc57928 100644 --- a/examples/hts221_reader/Makefile +++ b/examples/hts221_reader/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hts221_reader/Makefile # +# 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/examples/hts221_reader/hts221_reader_main.c b/examples/hts221_reader/hts221_reader_main.c index f77bbfd88a1..ac00ede5e7a 100644 --- a/examples/hts221_reader/hts221_reader_main.c +++ b/examples/hts221_reader/hts221_reader_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/hts221_reader/hts221_reader_main.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/examples/hx711/CMakeLists.txt b/examples/hx711/CMakeLists.txt index aabe90ef60d..df388c6ae13 100644 --- a/examples/hx711/CMakeLists.txt +++ b/examples/hx711/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/hx711/CMakeLists.txt # +# 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 diff --git a/examples/hx711/Make.defs b/examples/hx711/Make.defs index 7cffdda6f42..2503e5b994b 100644 --- a/examples/hx711/Make.defs +++ b/examples/hx711/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hx711/Make.defs # +# 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/examples/hx711/Makefile b/examples/hx711/Makefile index 4d2a8461991..d68a8767e12 100644 --- a/examples/hx711/Makefile +++ b/examples/hx711/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/hx711/Makefile # +# 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/examples/hx711/hx711_main.c b/examples/hx711/hx711_main.c index fc7117469e3..3e9f1755c85 100644 --- a/examples/hx711/hx711_main.c +++ b/examples/hx711/hx711_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/hx711/hx711_main.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/examples/i2schar/CMakeLists.txt b/examples/i2schar/CMakeLists.txt index aca814c244c..003a13e9803 100644 --- a/examples/i2schar/CMakeLists.txt +++ b/examples/i2schar/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/i2schar/CMakeLists.txt # +# 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 diff --git a/examples/i2schar/Make.defs b/examples/i2schar/Make.defs index eb17a38b4a2..a4add3ee858 100644 --- a/examples/i2schar/Make.defs +++ b/examples/i2schar/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/i2schar/Make.defs # +# 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/examples/i2schar/Makefile b/examples/i2schar/Makefile index 8a312abcda0..6f4ad7de289 100644 --- a/examples/i2schar/Makefile +++ b/examples/i2schar/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/i2schar/Makefile # +# 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/examples/i2schar/i2schar.h b/examples/i2schar/i2schar.h index ed140e6e7c2..b80b5e4832a 100644 --- a/examples/i2schar/i2schar.h +++ b/examples/i2schar/i2schar.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/i2schar/i2schar.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 diff --git a/examples/i2schar/i2schar_main.c b/examples/i2schar/i2schar_main.c index 28f2fd59af7..ea5d6850ff5 100644 --- a/examples/i2schar/i2schar_main.c +++ b/examples/i2schar/i2schar_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/i2schar/i2schar_main.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/examples/i2schar/i2schar_receiver.c b/examples/i2schar/i2schar_receiver.c index 9b6300f6734..164635779db 100644 --- a/examples/i2schar/i2schar_receiver.c +++ b/examples/i2schar/i2schar_receiver.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/i2schar/i2schar_receiver.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/examples/i2schar/i2schar_transmitter.c b/examples/i2schar/i2schar_transmitter.c index 1396757e257..aa5c59db9ff 100644 --- a/examples/i2schar/i2schar_transmitter.c +++ b/examples/i2schar/i2schar_transmitter.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/i2schar/i2schar_transmitter.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/examples/i2sloop/CMakeLists.txt b/examples/i2sloop/CMakeLists.txt index a36cd669b39..c1d64f1367f 100644 --- a/examples/i2sloop/CMakeLists.txt +++ b/examples/i2sloop/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/i2sloop/CMakeLists.txt # +# 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 diff --git a/examples/i2sloop/Make.defs b/examples/i2sloop/Make.defs index 6f72f5fcb70..97c751df4cd 100644 --- a/examples/i2sloop/Make.defs +++ b/examples/i2sloop/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/i2sloop/Make.defs # +# 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/examples/i2sloop/Makefile b/examples/i2sloop/Makefile index d3341ac2f11..fb5b5625527 100644 --- a/examples/i2sloop/Makefile +++ b/examples/i2sloop/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/i2sloop/Makefile # +# 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/examples/i2sloop/i2sloop_main.c b/examples/i2sloop/i2sloop_main.c index f64aa816836..a84c8254c33 100644 --- a/examples/i2sloop/i2sloop_main.c +++ b/examples/i2sloop/i2sloop_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/i2sloop/i2sloop_main.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/examples/igmp/CMakeLists.txt b/examples/igmp/CMakeLists.txt index bf5f770e3f7..f02381f8153 100644 --- a/examples/igmp/CMakeLists.txt +++ b/examples/igmp/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/igmp/CMakeLists.txt # +# 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 diff --git a/examples/igmp/Make.defs b/examples/igmp/Make.defs index 5ce9853f313..1f839cc9e79 100644 --- a/examples/igmp/Make.defs +++ b/examples/igmp/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/igmp/Make.defs # +# 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/examples/igmp/Makefile b/examples/igmp/Makefile index 4fc9fef0159..9dbec79ca90 100644 --- a/examples/igmp/Makefile +++ b/examples/igmp/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/igmp/Makefile # +# 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/examples/igmp/igmp.c b/examples/igmp/igmp.c index 4822227cc0e..da904fa34f6 100644 --- a/examples/igmp/igmp.c +++ b/examples/igmp/igmp.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/igmp/igmp.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/examples/igmp/igmp.h b/examples/igmp/igmp.h index 3d9ac6466f5..11ffb57f959 100644 --- a/examples/igmp/igmp.h +++ b/examples/igmp/igmp.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/igmp/igmp.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 diff --git a/examples/ina219/CMakeLists.txt b/examples/ina219/CMakeLists.txt index d507fd5b6ed..451ddffaf96 100644 --- a/examples/ina219/CMakeLists.txt +++ b/examples/ina219/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/ina219/CMakeLists.txt # +# 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 diff --git a/examples/ina219/Make.defs b/examples/ina219/Make.defs index 4aad654d6c5..29ae967e004 100644 --- a/examples/ina219/Make.defs +++ b/examples/ina219/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ina219/Make.defs # +# 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/examples/ina219/Makefile b/examples/ina219/Makefile index 16d3e6348d3..5580850fea8 100644 --- a/examples/ina219/Makefile +++ b/examples/ina219/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ina219/Makefile # +# 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/examples/ina219/ina219_main.c b/examples/ina219/ina219_main.c index a82064ceb2f..ddb4ce5abba 100644 --- a/examples/ina219/ina219_main.c +++ b/examples/ina219/ina219_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ina219/ina219_main.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/examples/ina226/CMakeLists.txt b/examples/ina226/CMakeLists.txt index cade2d42cee..1e34b265990 100644 --- a/examples/ina226/CMakeLists.txt +++ b/examples/ina226/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/ina226/CMakeLists.txt # +# 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 diff --git a/examples/ina226/Make.defs b/examples/ina226/Make.defs index 980fd358a91..a335ce5c039 100644 --- a/examples/ina226/Make.defs +++ b/examples/ina226/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ina226/Make.defs # +# 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/examples/ina226/Makefile b/examples/ina226/Makefile index 0a5859b5fda..46efa9d1ccc 100644 --- a/examples/ina226/Makefile +++ b/examples/ina226/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ina226/Makefile # +# 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/examples/ina226/ina226_main.c b/examples/ina226/ina226_main.c index 69d040cdfd8..6a73f6cbb52 100644 --- a/examples/ina226/ina226_main.c +++ b/examples/ina226/ina226_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ina226/ina226_main.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/examples/ini_dumper/CMakeLists.txt b/examples/ini_dumper/CMakeLists.txt index f97058410e7..e6cf9392931 100644 --- a/examples/ini_dumper/CMakeLists.txt +++ b/examples/ini_dumper/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/ini_dumper/CMakeLists.txt # +# 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 diff --git a/examples/ini_dumper/Make.defs b/examples/ini_dumper/Make.defs index f83e58fdbf3..2c92065a834 100644 --- a/examples/ini_dumper/Make.defs +++ b/examples/ini_dumper/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ini_dumper/Make.defs # +# 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/examples/ini_dumper/Makefile b/examples/ini_dumper/Makefile index fdd362a3d75..cecc252abc4 100644 --- a/examples/ini_dumper/Makefile +++ b/examples/ini_dumper/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ini_dumper/Makefile # +# 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/examples/ini_dumper/ini_dumper_main.c b/examples/ini_dumper/ini_dumper_main.c index 7f950e1f572..8f3e2ca7646 100644 --- a/examples/ini_dumper/ini_dumper_main.c +++ b/examples/ini_dumper/ini_dumper_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ini_dumper/ini_dumper_main.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/examples/ipcfg/CMakeLists.txt b/examples/ipcfg/CMakeLists.txt index eed3461196c..ab57dcd6d0f 100644 --- a/examples/ipcfg/CMakeLists.txt +++ b/examples/ipcfg/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/ipcfg/CMakeLists.txt # +# 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 diff --git a/examples/ipcfg/Make.defs b/examples/ipcfg/Make.defs index 1a54ae6f8b4..6dc082db01a 100644 --- a/examples/ipcfg/Make.defs +++ b/examples/ipcfg/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ipcfg/Make.defs # +# 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/examples/ipcfg/Makefile b/examples/ipcfg/Makefile index 82c6b018c0d..fe823188044 100644 --- a/examples/ipcfg/Makefile +++ b/examples/ipcfg/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ipcfg/Makefile # +# 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/examples/ipcfg/ipcfg_main.c b/examples/ipcfg/ipcfg_main.c index 2caa7d1bdcb..f64a73ea850 100644 --- a/examples/ipcfg/ipcfg_main.c +++ b/examples/ipcfg/ipcfg_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ipcfg/ipcfg_main.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/examples/ipforward/CMakeLists.txt b/examples/ipforward/CMakeLists.txt index 04f4fee6239..350da02db7e 100644 --- a/examples/ipforward/CMakeLists.txt +++ b/examples/ipforward/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/ipforward/CMakeLists.txt # +# 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 diff --git a/examples/ipforward/Make.defs b/examples/ipforward/Make.defs index 51f4e5da981..42f55108feb 100644 --- a/examples/ipforward/Make.defs +++ b/examples/ipforward/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ipforward/Make.defs # +# 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/examples/ipforward/Makefile b/examples/ipforward/Makefile index 2fa6f4866d5..1a5c2a90963 100644 --- a/examples/ipforward/Makefile +++ b/examples/ipforward/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ipforward/Makefile # +# 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/examples/ipforward/ipforward.c b/examples/ipforward/ipforward.c index 45fa3e79081..205df55482d 100644 --- a/examples/ipforward/ipforward.c +++ b/examples/ipforward/ipforward.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ipforward/ipforward.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/examples/isl29023/CMakeLists.txt b/examples/isl29023/CMakeLists.txt index a04780ba156..d833c1a62fd 100644 --- a/examples/isl29023/CMakeLists.txt +++ b/examples/isl29023/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/isl29023/CMakeLists.txt # +# 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 diff --git a/examples/isl29023/Make.defs b/examples/isl29023/Make.defs index f6497bbe002..e8e9583c556 100644 --- a/examples/isl29023/Make.defs +++ b/examples/isl29023/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/isl29023/Make.defs # +# 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/examples/isl29023/Makefile b/examples/isl29023/Makefile index 7e3a0801fb0..2c20c2665bb 100644 --- a/examples/isl29023/Makefile +++ b/examples/isl29023/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/isl29023/Makefile # +# 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/examples/isl29023/isl29023_main.c b/examples/isl29023/isl29023_main.c index 7ccddda67cf..2c36d817833 100644 --- a/examples/isl29023/isl29023_main.c +++ b/examples/isl29023/isl29023_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/isl29023/isl29023_main.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/examples/json/CMakeLists.txt b/examples/json/CMakeLists.txt index c8f862dacc8..f2c1d432d3a 100644 --- a/examples/json/CMakeLists.txt +++ b/examples/json/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/json/CMakeLists.txt # +# 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 diff --git a/examples/json/Make.defs b/examples/json/Make.defs index 1156c79288d..023d630f533 100644 --- a/examples/json/Make.defs +++ b/examples/json/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/json/Make.defs # +# 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/examples/json/Makefile b/examples/json/Makefile index 2ce52673078..c416b223348 100644 --- a/examples/json/Makefile +++ b/examples/json/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/json/Makefile # +# 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/examples/json/json_main.c b/examples/json/json_main.c index e3b1c9118c9..d49d40316a6 100644 --- a/examples/json/json_main.c +++ b/examples/json/json_main.c @@ -1,14 +1,10 @@ /**************************************************************************** * apps/examples/json/json_main.c * - * This file is a part of NuttX: - * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. - * Ported by: Darcy Gong - * - * And derives from the cJSON Project which has an MIT license: - * - * Copyright (c) 2009 Dave Gamble + * SPDX-License-Identifier: MIT + * SPDX-FileCopyrightText: 2012 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2009 Dave Gamble + * SPDX-FileContributor: Darcy Gong * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal diff --git a/examples/keyboard/Make.defs b/examples/keyboard/Make.defs index 0310f739ed7..ddd11f9bcc0 100644 --- a/examples/keyboard/Make.defs +++ b/examples/keyboard/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/keyboard/Make.defs # +# 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/examples/keyboard/Makefile b/examples/keyboard/Makefile index 8010d71a134..1284fb73a1c 100644 --- a/examples/keyboard/Makefile +++ b/examples/keyboard/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/keyboard/Makefile # +# 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/examples/keyboard/kbd_main.c b/examples/keyboard/kbd_main.c index a1624e844c0..58a6e9f3efe 100644 --- a/examples/keyboard/kbd_main.c +++ b/examples/keyboard/kbd_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/keyboard/kbd_main.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/examples/leds/CMakeLists.txt b/examples/leds/CMakeLists.txt index 71c32cd7a26..9e45423d28f 100644 --- a/examples/leds/CMakeLists.txt +++ b/examples/leds/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/leds/CMakeLists.txt # +# 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 diff --git a/examples/leds/Make.defs b/examples/leds/Make.defs index eff16b38941..50b1b9997ea 100644 --- a/examples/leds/Make.defs +++ b/examples/leds/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/leds/Make.defs # +# 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/examples/leds/Makefile b/examples/leds/Makefile index f98a32f4812..2bd032ba357 100644 --- a/examples/leds/Makefile +++ b/examples/leds/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/leds/Makefile # +# 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/examples/leds/leds_main.c b/examples/leds/leds_main.c index 71864dc0c13..4d785f65cd2 100644 --- a/examples/leds/leds_main.c +++ b/examples/leds/leds_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/leds/leds_main.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/examples/leds_rust/Make.defs b/examples/leds_rust/Make.defs index 0749823da12..059e8a20e89 100644 --- a/examples/leds_rust/Make.defs +++ b/examples/leds_rust/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/leds_rust/Make.defs # +# 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/examples/leds_rust/Makefile b/examples/leds_rust/Makefile index ab3d86e2bcd..bf3c8345dd7 100644 --- a/examples/leds_rust/Makefile +++ b/examples/leds_rust/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/leds_rust/Makefile # +# 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/examples/leds_rust/leds_rust_main.rs b/examples/leds_rust/leds_rust_main.rs index 1bd1bca4254..206d36028a4 100644 --- a/examples/leds_rust/leds_rust_main.rs +++ b/examples/leds_rust/leds_rust_main.rs @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/leds_rust/leds_rust_main.rs * + * 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/examples/leds_rust/nuttx.rs b/examples/leds_rust/nuttx.rs index 4b075767b6e..41366096d55 100644 --- a/examples/leds_rust/nuttx.rs +++ b/examples/leds_rust/nuttx.rs @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/leds_rust/nuttx.rs * + * 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/examples/leds_zig/Make.defs b/examples/leds_zig/Make.defs index 9f5fb809e02..1ea4e5d040e 100644 --- a/examples/leds_zig/Make.defs +++ b/examples/leds_zig/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/leds_zig/Make.defs # +# 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/examples/leds_zig/Makefile b/examples/leds_zig/Makefile index 4da5a89084d..a97c199d16a 100644 --- a/examples/leds_zig/Makefile +++ b/examples/leds_zig/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/leds_zig/Makefile # +# 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/examples/leds_zig/leds_zig.zig b/examples/leds_zig/leds_zig.zig index ad1b3f435d4..bbfbffd546f 100644 --- a/examples/leds_zig/leds_zig.zig +++ b/examples/leds_zig/leds_zig.zig @@ -1,6 +1,8 @@ ///************************************************************************** // examples/leds_zig/leds_zig.zig // +// 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/examples/libtest/CMakeLists.txt b/examples/libtest/CMakeLists.txt index 4458322ff53..a1975f18431 100644 --- a/examples/libtest/CMakeLists.txt +++ b/examples/libtest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/libtest/CMakeLists.txt # +# 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 diff --git a/examples/libtest/Make.defs b/examples/libtest/Make.defs index a76fbef7cd9..c9e0a6c887e 100644 --- a/examples/libtest/Make.defs +++ b/examples/libtest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/libtest/Make.defs # +# 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/examples/libtest/Makefile b/examples/libtest/Makefile index 95606815e5a..b29501389bd 100644 --- a/examples/libtest/Makefile +++ b/examples/libtest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/libtest/Makefile # +# 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/examples/libtest/libtest.c b/examples/libtest/libtest.c index 83360588434..a1d9852c8ad 100644 --- a/examples/libtest/libtest.c +++ b/examples/libtest/libtest.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/libtest/libtest.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/examples/libtest/libtest.h b/examples/libtest/libtest.h index 59f7d2acf10..df0ed548a88 100644 --- a/examples/libtest/libtest.h +++ b/examples/libtest/libtest.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/libtest/libtest.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 diff --git a/examples/libtest/libtest_main.c b/examples/libtest/libtest_main.c index 60281a4705a..9ce19525619 100644 --- a/examples/libtest/libtest_main.c +++ b/examples/libtest/libtest_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/libtest/libtest_main.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/examples/lis3dsh_reader/CMakeLists.txt b/examples/lis3dsh_reader/CMakeLists.txt index 641904e2adf..37e2d5961f9 100644 --- a/examples/lis3dsh_reader/CMakeLists.txt +++ b/examples/lis3dsh_reader/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/lis3dsh_reader/CMakeLists.txt # +# 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 diff --git a/examples/lis3dsh_reader/Make.defs b/examples/lis3dsh_reader/Make.defs index 2245b4d37d7..1caf28f154f 100644 --- a/examples/lis3dsh_reader/Make.defs +++ b/examples/lis3dsh_reader/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lis3dsh_reader/Make.defs # +# 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/examples/lis3dsh_reader/Makefile b/examples/lis3dsh_reader/Makefile index b83339d9e0b..d97e90a41ad 100644 --- a/examples/lis3dsh_reader/Makefile +++ b/examples/lis3dsh_reader/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lis3dsh_reader/Makefile # +# 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/examples/lis3dsh_reader/lis3dsh_reader_main.c b/examples/lis3dsh_reader/lis3dsh_reader_main.c index 7d5816ac2e7..dad00b312b3 100644 --- a/examples/lis3dsh_reader/lis3dsh_reader_main.c +++ b/examples/lis3dsh_reader/lis3dsh_reader_main.c @@ -1,8 +1,9 @@ /**************************************************************************** * apps/examples/lis3dsh_reader/lis3dsh_reader_main.c * - * Copyright (C) 2017 Florian Olbrich. All rights reserved. - * Author: Florian Olbrich + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2017 Florian Olbrich. All rights reserved. + * SPDX-FileContributor: Florian Olbrich * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/examples/lp503x/CMakeLists.txt b/examples/lp503x/CMakeLists.txt index 78c7f70b3d9..1256caabb09 100644 --- a/examples/lp503x/CMakeLists.txt +++ b/examples/lp503x/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/lp503x/CMakeLists.txt # +# 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 diff --git a/examples/lp503x/Make.defs b/examples/lp503x/Make.defs index f89e60f5e14..bf3f20b86ca 100644 --- a/examples/lp503x/Make.defs +++ b/examples/lp503x/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lp503x/Make.defs # +# 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/examples/lp503x/Makefile b/examples/lp503x/Makefile index abad5899ca6..5cab0d4e49b 100644 --- a/examples/lp503x/Makefile +++ b/examples/lp503x/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lp503x/Makefile # +# 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/examples/lp503x/lp503x_main.c b/examples/lp503x/lp503x_main.c index 6443052481d..2d34929a6c5 100644 --- a/examples/lp503x/lp503x_main.c +++ b/examples/lp503x/lp503x_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/lp503x/lp503x_main.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/examples/lsm303_reader/CMakeLists.txt b/examples/lsm303_reader/CMakeLists.txt index f7d857393ad..b45c576a774 100644 --- a/examples/lsm303_reader/CMakeLists.txt +++ b/examples/lsm303_reader/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/lsm303_reader/CMakeLists.txt # +# 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 diff --git a/examples/lsm303_reader/Make.defs b/examples/lsm303_reader/Make.defs index e47c99ca111..3035bb27661 100644 --- a/examples/lsm303_reader/Make.defs +++ b/examples/lsm303_reader/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lsm303_reader/Make.defs # +# 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/examples/lsm303_reader/Makefile b/examples/lsm303_reader/Makefile index 325b9104841..0183a532080 100644 --- a/examples/lsm303_reader/Makefile +++ b/examples/lsm303_reader/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lsm303_reader/Makefile # +# 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/examples/lsm303_reader/lsm303_reader_main.c b/examples/lsm303_reader/lsm303_reader_main.c index 7c5c2e7f67e..b48e81a2d91 100644 --- a/examples/lsm303_reader/lsm303_reader_main.c +++ b/examples/lsm303_reader/lsm303_reader_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/lsm303_reader/lsm303_reader_main.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/examples/lsm330spi_test/CMakeLists.txt b/examples/lsm330spi_test/CMakeLists.txt index 92aade46c9c..96438b7729b 100644 --- a/examples/lsm330spi_test/CMakeLists.txt +++ b/examples/lsm330spi_test/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/lsm330spi_test/CMakeLists.txt # +# 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 diff --git a/examples/lsm330spi_test/Make.defs b/examples/lsm330spi_test/Make.defs index ea85abe516d..19908c39205 100644 --- a/examples/lsm330spi_test/Make.defs +++ b/examples/lsm330spi_test/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lsm330spi_test/Make.defs # +# 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/examples/lsm330spi_test/Makefile b/examples/lsm330spi_test/Makefile index 4e2ebc68da1..341cf7567fd 100644 --- a/examples/lsm330spi_test/Makefile +++ b/examples/lsm330spi_test/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lsm330spi_test/Makefile # +# 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/examples/lsm330spi_test/lsm330spi_test_main.c b/examples/lsm330spi_test/lsm330spi_test_main.c index f78032a6f91..2ac49feac1c 100644 --- a/examples/lsm330spi_test/lsm330spi_test_main.c +++ b/examples/lsm330spi_test/lsm330spi_test_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/lsm330spi_test/lsm330spi_test_main.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/examples/lsm6dsl_reader/CMakeLists.txt b/examples/lsm6dsl_reader/CMakeLists.txt index ee068dd7d41..766504114d3 100644 --- a/examples/lsm6dsl_reader/CMakeLists.txt +++ b/examples/lsm6dsl_reader/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/lsm6dsl_reader/CMakeLists.txt # +# 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 diff --git a/examples/lsm6dsl_reader/Make.defs b/examples/lsm6dsl_reader/Make.defs index 4db2424da95..19918cf56b6 100644 --- a/examples/lsm6dsl_reader/Make.defs +++ b/examples/lsm6dsl_reader/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lsm6dsl_reader/Make.defs # +# 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/examples/lsm6dsl_reader/Makefile b/examples/lsm6dsl_reader/Makefile index f1a8cb3e242..a9fbfb47599 100644 --- a/examples/lsm6dsl_reader/Makefile +++ b/examples/lsm6dsl_reader/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lsm6dsl_reader/Makefile # +# 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/examples/lsm6dsl_reader/lsm6dsl_reader_main.c b/examples/lsm6dsl_reader/lsm6dsl_reader_main.c index 6fea70de5b0..c3ec68ff725 100644 --- a/examples/lsm6dsl_reader/lsm6dsl_reader_main.c +++ b/examples/lsm6dsl_reader/lsm6dsl_reader_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/lsm6dsl_reader/lsm6dsl_reader_main.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/examples/ltr308/CMakeLists.txt b/examples/ltr308/CMakeLists.txt index 16409fe40e0..5d3615c0402 100644 --- a/examples/ltr308/CMakeLists.txt +++ b/examples/ltr308/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/ltr308/CMakeLists.txt # +# 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 diff --git a/examples/ltr308/Make.defs b/examples/ltr308/Make.defs index 6fc8ea33631..16bdcc134e3 100644 --- a/examples/ltr308/Make.defs +++ b/examples/ltr308/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ltr308/Make.defs # +# 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/examples/ltr308/Makefile b/examples/ltr308/Makefile index 3eef9a3fc3b..0db3eb1f403 100644 --- a/examples/ltr308/Makefile +++ b/examples/ltr308/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ltr308/Makefile # +# 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/examples/ltr308/ltr308_main.c b/examples/ltr308/ltr308_main.c index c951add02f2..1109b1799ad 100644 --- a/examples/ltr308/ltr308_main.c +++ b/examples/ltr308/ltr308_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ltr308/ltr308_main.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/examples/lua_module/CMakeLists.txt b/examples/lua_module/CMakeLists.txt index 951002584c1..713f5abbdae 100644 --- a/examples/lua_module/CMakeLists.txt +++ b/examples/lua_module/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/lua_module/CMakeLists.txt # +# 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 diff --git a/examples/lua_module/Make.defs b/examples/lua_module/Make.defs index 4daf2b8d07d..11cf233b148 100644 --- a/examples/lua_module/Make.defs +++ b/examples/lua_module/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lua_module/Make.defs # +# 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/examples/lua_module/Makefile b/examples/lua_module/Makefile index c588aacf09f..77f1932612f 100644 --- a/examples/lua_module/Makefile +++ b/examples/lua_module/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lua_module/Makefile # +# 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/examples/lua_module/luamod_hello.c b/examples/lua_module/luamod_hello.c index dd9fb8b3c2c..22f13c2fbed 100644 --- a/examples/lua_module/luamod_hello.c +++ b/examples/lua_module/luamod_hello.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/lua_module/luamod_hello.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/examples/lvgldemo/CMakeLists.txt b/examples/lvgldemo/CMakeLists.txt index 1b8734b9512..a3b241fa888 100644 --- a/examples/lvgldemo/CMakeLists.txt +++ b/examples/lvgldemo/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/lvgldemo/CMakeLists.txt # +# 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 diff --git a/examples/lvgldemo/Make.defs b/examples/lvgldemo/Make.defs index 1793bbd9676..7729d01d63c 100644 --- a/examples/lvgldemo/Make.defs +++ b/examples/lvgldemo/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lvgldemo/Make.defs # +# 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/examples/lvgldemo/Makefile b/examples/lvgldemo/Makefile index 65e0b5a9599..f2645b2437e 100644 --- a/examples/lvgldemo/Makefile +++ b/examples/lvgldemo/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lvgldemo/Makefile # +# 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/examples/lvgldemo/lvgldemo.c b/examples/lvgldemo/lvgldemo.c index 34b1b6e8c14..05741cb88e0 100644 --- a/examples/lvgldemo/lvgldemo.c +++ b/examples/lvgldemo/lvgldemo.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/lvgldemo/lvgldemo.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/examples/lvglterm/CMakeLists.txt b/examples/lvglterm/CMakeLists.txt index 82ded6f6720..fe6d3c48cab 100644 --- a/examples/lvglterm/CMakeLists.txt +++ b/examples/lvglterm/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/lvglterm/CMakeLists.txt # +# 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 diff --git a/examples/lvglterm/Make.defs b/examples/lvglterm/Make.defs index 17e96e8b7a9..89c84302ac2 100644 --- a/examples/lvglterm/Make.defs +++ b/examples/lvglterm/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lvglterm/Make.defs # +# 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/examples/lvglterm/Makefile b/examples/lvglterm/Makefile index 6ff05028605..531d8c405f2 100644 --- a/examples/lvglterm/Makefile +++ b/examples/lvglterm/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/lvglterm/Makefile # +# 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/examples/lvglterm/lvglterm.c b/examples/lvglterm/lvglterm.c index 8ee096f1b84..90269daa875 100644 --- a/examples/lvglterm/lvglterm.c +++ b/examples/lvglterm/lvglterm.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/lvglterm/lvglterm.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/examples/max31855/CMakeLists.txt b/examples/max31855/CMakeLists.txt index 38d998a1860..68a8014e14f 100644 --- a/examples/max31855/CMakeLists.txt +++ b/examples/max31855/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/max31855/CMakeLists.txt # +# 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 diff --git a/examples/max31855/Make.defs b/examples/max31855/Make.defs index b707cabf47c..d114228b1c5 100644 --- a/examples/max31855/Make.defs +++ b/examples/max31855/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/max31855/Make.defs # +# 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/examples/max31855/Makefile b/examples/max31855/Makefile index 592c03d0be9..04951afa10e 100644 --- a/examples/max31855/Makefile +++ b/examples/max31855/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/max31855/Makefile # +# 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/examples/max31855/max31855_main.c b/examples/max31855/max31855_main.c index 1c345d12e58..fb26fee2cef 100644 --- a/examples/max31855/max31855_main.c +++ b/examples/max31855/max31855_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/max31855/max31855_main.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/examples/mcuboot/CMakeLists.txt b/examples/mcuboot/CMakeLists.txt index 26f891869f8..7c6b7189d11 100644 --- a/examples/mcuboot/CMakeLists.txt +++ b/examples/mcuboot/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/mcuboot/CMakeLists.txt # +# 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 diff --git a/examples/mcuboot/Make.defs b/examples/mcuboot/Make.defs index fea6548f9d0..f8cc9ed896a 100644 --- a/examples/mcuboot/Make.defs +++ b/examples/mcuboot/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mcuboot/Make.defs # +# 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/examples/mcuboot/Makefile b/examples/mcuboot/Makefile index 3bd6703c205..5687f531cca 100644 --- a/examples/mcuboot/Makefile +++ b/examples/mcuboot/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mcuboot/Makefile # +# 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/examples/mcuboot/slot_confirm/CMakeLists.txt b/examples/mcuboot/slot_confirm/CMakeLists.txt index 415556ffad5..ec4c24abd56 100644 --- a/examples/mcuboot/slot_confirm/CMakeLists.txt +++ b/examples/mcuboot/slot_confirm/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/mcuboot/slot_confirm/CMakeLists.txt # +# 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 diff --git a/examples/mcuboot/slot_confirm/Make.defs b/examples/mcuboot/slot_confirm/Make.defs index dc9bad2e4c7..5050148d10b 100644 --- a/examples/mcuboot/slot_confirm/Make.defs +++ b/examples/mcuboot/slot_confirm/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mcuboot/slot_confirm/Make.defs # +# 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/examples/mcuboot/slot_confirm/Makefile b/examples/mcuboot/slot_confirm/Makefile index 809dc864efb..dc4a93279ea 100644 --- a/examples/mcuboot/slot_confirm/Makefile +++ b/examples/mcuboot/slot_confirm/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mcuboot/slot_confirm/Makefile # +# 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/examples/mcuboot/slot_confirm/mcuboot_confirm_main.c b/examples/mcuboot/slot_confirm/mcuboot_confirm_main.c index 0052716c6f2..2f296b08122 100644 --- a/examples/mcuboot/slot_confirm/mcuboot_confirm_main.c +++ b/examples/mcuboot/slot_confirm/mcuboot_confirm_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/mcuboot/slot_confirm/mcuboot_confirm_main.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/examples/mcuboot/swap_test/CMakeLists.txt b/examples/mcuboot/swap_test/CMakeLists.txt index 2d7467dcd69..0de3e51b710 100644 --- a/examples/mcuboot/swap_test/CMakeLists.txt +++ b/examples/mcuboot/swap_test/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/mcuboot/swap_test/CMakeLists.txt # +# 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 diff --git a/examples/mcuboot/swap_test/Make.defs b/examples/mcuboot/swap_test/Make.defs index e4d01553288..e503eab8a56 100644 --- a/examples/mcuboot/swap_test/Make.defs +++ b/examples/mcuboot/swap_test/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mcuboot/swap_test/Make.defs # +# 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/examples/mcuboot/swap_test/Makefile b/examples/mcuboot/swap_test/Makefile index ad91a880462..c409490a830 100644 --- a/examples/mcuboot/swap_test/Makefile +++ b/examples/mcuboot/swap_test/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mcuboot/swap_test/Makefile # +# 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/examples/mcuboot/swap_test/confirm_main.c b/examples/mcuboot/swap_test/confirm_main.c index c8a29c179e9..8f1980455fa 100644 --- a/examples/mcuboot/swap_test/confirm_main.c +++ b/examples/mcuboot/swap_test/confirm_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/mcuboot/swap_test/confirm_main.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/examples/mcuboot/swap_test/set_img_main.c b/examples/mcuboot/swap_test/set_img_main.c index b8c538e5279..b8196094a4a 100644 --- a/examples/mcuboot/swap_test/set_img_main.c +++ b/examples/mcuboot/swap_test/set_img_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/mcuboot/swap_test/set_img_main.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/examples/mcuboot/swap_test/version_main.c b/examples/mcuboot/swap_test/version_main.c index fbe04e36251..b606c628c69 100644 --- a/examples/mcuboot/swap_test/version_main.c +++ b/examples/mcuboot/swap_test/version_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/mcuboot/swap_test/version_main.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/examples/mcuboot/update_agent/CMakeLists.txt b/examples/mcuboot/update_agent/CMakeLists.txt index 9a84d60dc0a..f356d8c22a4 100644 --- a/examples/mcuboot/update_agent/CMakeLists.txt +++ b/examples/mcuboot/update_agent/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/mcuboot/update_agent/CMakeLists.txt # +# 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 diff --git a/examples/mcuboot/update_agent/Make.defs b/examples/mcuboot/update_agent/Make.defs index 2419050c3f5..0130402bdb6 100644 --- a/examples/mcuboot/update_agent/Make.defs +++ b/examples/mcuboot/update_agent/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mcuboot/update_agent/Make.defs # +# 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/examples/mcuboot/update_agent/Makefile b/examples/mcuboot/update_agent/Makefile index a0d40ebf623..bb227cabf4b 100644 --- a/examples/mcuboot/update_agent/Makefile +++ b/examples/mcuboot/update_agent/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mcuboot/update_agent/Makefile # +# 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/examples/mcuboot/update_agent/mcuboot_agent_main.c b/examples/mcuboot/update_agent/mcuboot_agent_main.c index 935dca5010d..697825acb83 100644 --- a/examples/mcuboot/update_agent/mcuboot_agent_main.c +++ b/examples/mcuboot/update_agent/mcuboot_agent_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/mcuboot/update_agent/mcuboot_agent_main.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/examples/media/CMakeLists.txt b/examples/media/CMakeLists.txt index f812ae8806c..e579c4fd959 100644 --- a/examples/media/CMakeLists.txt +++ b/examples/media/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/media/CMakeLists.txt # +# 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 diff --git a/examples/media/Make.defs b/examples/media/Make.defs index 99d09ae79e7..d6ae0164a3f 100644 --- a/examples/media/Make.defs +++ b/examples/media/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/media/Make.defs # +# 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/examples/media/Makefile b/examples/media/Makefile index d0203d196f7..c1d39a1b2c7 100644 --- a/examples/media/Makefile +++ b/examples/media/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/media/Makefile # +# 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/examples/media/media_main.c b/examples/media/media_main.c index 7dee8c90d5c..f27b507c402 100644 --- a/examples/media/media_main.c +++ b/examples/media/media_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/media/media_main.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/examples/mld/CMakeLists.txt b/examples/mld/CMakeLists.txt index 3ccae2b0105..66120beb4b0 100644 --- a/examples/mld/CMakeLists.txt +++ b/examples/mld/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/mld/CMakeLists.txt # +# 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 diff --git a/examples/mld/Make.defs b/examples/mld/Make.defs index c94b181f24b..350dbd00560 100644 --- a/examples/mld/Make.defs +++ b/examples/mld/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mld/Make.defs # +# 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/examples/mld/Makefile b/examples/mld/Makefile index f309c17e849..af45c88665a 100644 --- a/examples/mld/Makefile +++ b/examples/mld/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mld/Makefile # +# 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/examples/mld/mld.h b/examples/mld/mld.h index c2d5afbfc64..69d8f13a4c6 100644 --- a/examples/mld/mld.h +++ b/examples/mld/mld.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/mld/mld.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 diff --git a/examples/mld/mld_main.c b/examples/mld/mld_main.c index a2cad6fb626..363a7e41d39 100644 --- a/examples/mld/mld_main.c +++ b/examples/mld/mld_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/mld/mld_main.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/examples/mlx90614/CMakeLists.txt b/examples/mlx90614/CMakeLists.txt index 2d601e2204d..aaa6ea2443e 100644 --- a/examples/mlx90614/CMakeLists.txt +++ b/examples/mlx90614/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/mlx90614/CMakeLists.txt # +# 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 diff --git a/examples/mlx90614/Make.defs b/examples/mlx90614/Make.defs index 6c59d12ffa1..f0a682e74de 100644 --- a/examples/mlx90614/Make.defs +++ b/examples/mlx90614/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mlx90614/Make.defs # +# 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/examples/mlx90614/Makefile b/examples/mlx90614/Makefile index 0c7316ca7a4..60ddd79a116 100644 --- a/examples/mlx90614/Makefile +++ b/examples/mlx90614/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mlx90614/Makefile # +# 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/examples/mlx90614/mlx90614_main.c b/examples/mlx90614/mlx90614_main.c index 7b8d95c6ce3..0311ceddd2f 100644 --- a/examples/mlx90614/mlx90614_main.c +++ b/examples/mlx90614/mlx90614_main.c @@ -1,9 +1,10 @@ /**************************************************************************** * apps/examples/mlx90614/mlx90614_main.c * - * Copyright (C) 2017 Gregory Nutt. All rights reserved. - * Copyright (c) 2015-2017 Pololu Corporation. - * Author: Alan Carvalho de Assis + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2017 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2015-2017 Pololu Corporation. + * SPDX-FileContributor: Alan Carvalho de Assis * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/examples/mml_parser/CMakeLists.txt b/examples/mml_parser/CMakeLists.txt index 2d2f909140f..b6792dd7bca 100644 --- a/examples/mml_parser/CMakeLists.txt +++ b/examples/mml_parser/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/mml_parser/CMakeLists.txt # +# 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 diff --git a/examples/mml_parser/Make.defs b/examples/mml_parser/Make.defs index e24a6d54e7e..5f290c70bec 100644 --- a/examples/mml_parser/Make.defs +++ b/examples/mml_parser/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mml_parser/Make.defs # +# 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/examples/mml_parser/Makefile b/examples/mml_parser/Makefile index 99bf56503ea..796153ed6af 100644 --- a/examples/mml_parser/Makefile +++ b/examples/mml_parser/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mml_parser/Makefile # +# 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/examples/mml_parser/mml_parser_main.c b/examples/mml_parser/mml_parser_main.c index 9bd1adebad8..4f4fe9bf255 100644 --- a/examples/mml_parser/mml_parser_main.c +++ b/examples/mml_parser/mml_parser_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/mml_parser/mml_parser_main.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/examples/modbus/CMakeLists.txt b/examples/modbus/CMakeLists.txt index 8c8e5bd7b94..37104316f86 100644 --- a/examples/modbus/CMakeLists.txt +++ b/examples/modbus/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/modbus/CMakeLists.txt # +# 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 diff --git a/examples/modbus/Make.defs b/examples/modbus/Make.defs index b44c8b8b8ee..2032f5c2608 100644 --- a/examples/modbus/Make.defs +++ b/examples/modbus/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/modbus/Make.defs # +# 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/examples/modbus/Makefile b/examples/modbus/Makefile index c792c809bc5..7d7810f079e 100644 --- a/examples/modbus/Makefile +++ b/examples/modbus/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/modbus/Makefile # +# 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/examples/modbus/modbus_main.c b/examples/modbus/modbus_main.c index cefa94f90a1..7178a458e84 100644 --- a/examples/modbus/modbus_main.c +++ b/examples/modbus/modbus_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/modbus/modbus_main.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/examples/modbusmaster/CMakeLists.txt b/examples/modbusmaster/CMakeLists.txt index 5dd9ae8a843..3a6043a384e 100644 --- a/examples/modbusmaster/CMakeLists.txt +++ b/examples/modbusmaster/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/modbusmaster/CMakeLists.txt # +# 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 diff --git a/examples/modbusmaster/Make.defs b/examples/modbusmaster/Make.defs index e90c3d1ec48..bcdef99c5b7 100644 --- a/examples/modbusmaster/Make.defs +++ b/examples/modbusmaster/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/modbusmaster/Make.defs # +# 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/examples/modbusmaster/Makefile b/examples/modbusmaster/Makefile index 188a70e556a..fc93c00cef4 100644 --- a/examples/modbusmaster/Makefile +++ b/examples/modbusmaster/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/modbusmaster/Makefile # +# 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/examples/modbusmaster/mbmaster_main.c b/examples/modbusmaster/mbmaster_main.c index 4f80f12679c..2c369dd35b1 100644 --- a/examples/modbusmaster/mbmaster_main.c +++ b/examples/modbusmaster/mbmaster_main.c @@ -1,9 +1,9 @@ /**************************************************************************** * apps/examples/modbusmaster/mbmaster_main.c * - * Copyright (c) 2016 Vytautas Lukenskas - * Copyright (c) 2019 Alan Carvalho de Assis - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2016 Vytautas Lukenskas + * SPDX-FileCopyrightText: 2019 Alan Carvalho de Assis * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/examples/module/CMakeLists.txt b/examples/module/CMakeLists.txt index 54e5a388b93..77e6b30aa36 100644 --- a/examples/module/CMakeLists.txt +++ b/examples/module/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/module/CMakeLists.txt # +# 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 diff --git a/examples/module/Make.defs b/examples/module/Make.defs index 57b758ed1f5..2e99fa3b5d8 100644 --- a/examples/module/Make.defs +++ b/examples/module/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/module/Make.defs # +# 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/examples/module/Makefile b/examples/module/Makefile index 8024342718a..ca547c70d48 100644 --- a/examples/module/Makefile +++ b/examples/module/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/module/Makefile # +# 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/examples/module/chardev/Make.defs b/examples/module/chardev/Make.defs index df35a6034c2..71ed9fb3a53 100644 --- a/examples/module/chardev/Make.defs +++ b/examples/module/chardev/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/module/chardev/Make.defs # +# 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/examples/module/chardev/Makefile b/examples/module/chardev/Makefile index 070247a01e4..94d56ed8715 100644 --- a/examples/module/chardev/Makefile +++ b/examples/module/chardev/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/module/chardev/Makefile # +# 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/examples/module/chardev/chardev.c b/examples/module/chardev/chardev.c index 5291a13cc98..82eed698c95 100644 --- a/examples/module/chardev/chardev.c +++ b/examples/module/chardev/chardev.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/module/chardev/chardev.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/examples/module/main/CMakeLists.txt b/examples/module/main/CMakeLists.txt index 57f3f4f0178..8036a7c87c1 100644 --- a/examples/module/main/CMakeLists.txt +++ b/examples/module/main/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/module/main/CMakeLists.txt # +# 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 diff --git a/examples/module/main/Make.defs b/examples/module/main/Make.defs index f4f4ea83c87..7e049406d89 100644 --- a/examples/module/main/Make.defs +++ b/examples/module/main/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/module/main/Make.defs # +# 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/examples/module/main/Makefile b/examples/module/main/Makefile index ceacd6abc60..f5294b25748 100644 --- a/examples/module/main/Makefile +++ b/examples/module/main/Makefile @@ -1,12 +1,16 @@ ############################################################################ # apps/examples/module/main/Makefile # +# 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 +# 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 diff --git a/examples/module/main/module_main.c b/examples/module/main/module_main.c index 903aced652d..0d31fb38b51 100644 --- a/examples/module/main/module_main.c +++ b/examples/module/main/module_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/module/main/module_main.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/examples/mount/CMakeLists.txt b/examples/mount/CMakeLists.txt index 748a1ca6ccd..9c7e5b03cff 100644 --- a/examples/mount/CMakeLists.txt +++ b/examples/mount/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/mount/CMakeLists.txt # +# 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 diff --git a/examples/mount/Make.defs b/examples/mount/Make.defs index 998094833a2..eed839585f0 100644 --- a/examples/mount/Make.defs +++ b/examples/mount/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mount/Make.defs # +# 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/examples/mount/Makefile b/examples/mount/Makefile index 32d8641a905..197c6b00452 100644 --- a/examples/mount/Makefile +++ b/examples/mount/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mount/Makefile # +# 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/examples/mount/mount.h b/examples/mount/mount.h index a1ac41212b6..4697ec2a3d1 100644 --- a/examples/mount/mount.h +++ b/examples/mount/mount.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/mount/mount.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 diff --git a/examples/mount/mount_main.c b/examples/mount/mount_main.c index 89c23da115f..c2b4e45b489 100644 --- a/examples/mount/mount_main.c +++ b/examples/mount/mount_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/mount/mount_main.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/examples/mount/ramdisk.c b/examples/mount/ramdisk.c index f732c28348a..7eeeafaab80 100644 --- a/examples/mount/ramdisk.c +++ b/examples/mount/ramdisk.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/mount/ramdisk.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/examples/mqttc/CMakeLists.txt b/examples/mqttc/CMakeLists.txt index ade8dcbd68b..56771255847 100644 --- a/examples/mqttc/CMakeLists.txt +++ b/examples/mqttc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/mqttc/CMakeLists.txt # +# 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 diff --git a/examples/mqttc/Make.defs b/examples/mqttc/Make.defs index 80ed6a46a50..87bb6453085 100644 --- a/examples/mqttc/Make.defs +++ b/examples/mqttc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mqttc/Make.defs # +# 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/examples/mqttc/Makefile b/examples/mqttc/Makefile index 6ade70103d9..9aacf67f6c8 100644 --- a/examples/mqttc/Makefile +++ b/examples/mqttc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mqttc/Makefile # +# 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/examples/mqttc/mqttc_pub.c b/examples/mqttc/mqttc_pub.c index 876e67e7056..6948afb426a 100644 --- a/examples/mqttc/mqttc_pub.c +++ b/examples/mqttc/mqttc_pub.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/mqttc/mqttc_pub.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/examples/mtdpart/CMakeLists.txt b/examples/mtdpart/CMakeLists.txt index 1ec237c64c9..2b629ba0387 100644 --- a/examples/mtdpart/CMakeLists.txt +++ b/examples/mtdpart/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/mtdpart/CMakeLists.txt # +# 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 diff --git a/examples/mtdpart/Make.defs b/examples/mtdpart/Make.defs index b15dcadd094..a5bb9f62da3 100644 --- a/examples/mtdpart/Make.defs +++ b/examples/mtdpart/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mtdpart/Make.defs # +# 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/examples/mtdpart/Makefile b/examples/mtdpart/Makefile index c758eb3cc11..ac0785e75d3 100644 --- a/examples/mtdpart/Makefile +++ b/examples/mtdpart/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mtdpart/Makefile # +# 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/examples/mtdpart/mtdpart_main.c b/examples/mtdpart/mtdpart_main.c index 12f77e9287e..9b4496e9164 100644 --- a/examples/mtdpart/mtdpart_main.c +++ b/examples/mtdpart/mtdpart_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/mtdpart/mtdpart_main.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/examples/mtdrwb/CMakeLists.txt b/examples/mtdrwb/CMakeLists.txt index bf84c01708f..f0e53117d11 100644 --- a/examples/mtdrwb/CMakeLists.txt +++ b/examples/mtdrwb/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/mtdrwb/CMakeLists.txt # +# 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 diff --git a/examples/mtdrwb/Make.defs b/examples/mtdrwb/Make.defs index c63649109ac..b5f983c5e20 100644 --- a/examples/mtdrwb/Make.defs +++ b/examples/mtdrwb/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mtdrwb/Make.defs # +# 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/examples/mtdrwb/Makefile b/examples/mtdrwb/Makefile index 609e2cf7bd1..79831664d4f 100644 --- a/examples/mtdrwb/Makefile +++ b/examples/mtdrwb/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/mtdrwb/Makefile # +# 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/examples/mtdrwb/mtdrwb_main.c b/examples/mtdrwb/mtdrwb_main.c index 7110f112a12..1ebbe44f5b3 100644 --- a/examples/mtdrwb/mtdrwb_main.c +++ b/examples/mtdrwb/mtdrwb_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/mtdrwb/mtdrwb_main.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/examples/netlink_route/CMakeLists.txt b/examples/netlink_route/CMakeLists.txt index 9f0dc52cec3..57d14f97740 100644 --- a/examples/netlink_route/CMakeLists.txt +++ b/examples/netlink_route/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/netlink_route/CMakeLists.txt # +# 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 diff --git a/examples/netlink_route/Make.defs b/examples/netlink_route/Make.defs index 0fdbd42d032..7b46636ba73 100644 --- a/examples/netlink_route/Make.defs +++ b/examples/netlink_route/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/netlink_route/Make.defs # +# 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/examples/netlink_route/Makefile b/examples/netlink_route/Makefile index dd6c790db89..9fd5052c83b 100644 --- a/examples/netlink_route/Makefile +++ b/examples/netlink_route/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/netlink_route/Makefile # +# 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/examples/netlink_route/netlink_route_main.c b/examples/netlink_route/netlink_route_main.c index 887ac9a93bb..c69f4dd12c4 100644 --- a/examples/netlink_route/netlink_route_main.c +++ b/examples/netlink_route/netlink_route_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/netlink_route/netlink_route_main.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/examples/netloop/CMakeLists.txt b/examples/netloop/CMakeLists.txt index 783827dafb7..22a4bedbead 100644 --- a/examples/netloop/CMakeLists.txt +++ b/examples/netloop/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/netloop/CMakeLists.txt # +# 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 diff --git a/examples/netloop/Make.defs b/examples/netloop/Make.defs index 2478605a2f7..aac6a4db967 100644 --- a/examples/netloop/Make.defs +++ b/examples/netloop/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/netloop/Make.defs # +# 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/examples/netloop/Makefile b/examples/netloop/Makefile index 486cb02d41d..bb6c3d73fb8 100644 --- a/examples/netloop/Makefile +++ b/examples/netloop/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/netloop/Makefile # +# 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/examples/netloop/lo_listener.c b/examples/netloop/lo_listener.c index 84b0572905f..8b51027bbc1 100644 --- a/examples/netloop/lo_listener.c +++ b/examples/netloop/lo_listener.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/netloop/lo_listener.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/examples/netloop/lo_main.c b/examples/netloop/lo_main.c index 2775c0da9cc..cfdfab429d8 100644 --- a/examples/netloop/lo_main.c +++ b/examples/netloop/lo_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/netloop/lo_main.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/examples/netloop/netloop.h b/examples/netloop/netloop.h index e6788f08ff9..c4d6415d6ce 100644 --- a/examples/netloop/netloop.h +++ b/examples/netloop/netloop.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/netloop/netloop.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 diff --git a/examples/netpkt/CMakeLists.txt b/examples/netpkt/CMakeLists.txt index 0550d3af477..54da626d4a4 100644 --- a/examples/netpkt/CMakeLists.txt +++ b/examples/netpkt/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/netpkt/CMakeLists.txt # +# 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 diff --git a/examples/netpkt/Make.defs b/examples/netpkt/Make.defs index ff4735448c1..2c6ceecc9ec 100644 --- a/examples/netpkt/Make.defs +++ b/examples/netpkt/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/netpkt/Make.defs # +# 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/examples/netpkt/Makefile b/examples/netpkt/Makefile index d9f1e11abf5..b3c056a6d79 100644 --- a/examples/netpkt/Makefile +++ b/examples/netpkt/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/netpkt/Makefile # +# 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/examples/netpkt/netpkt_ethercat.c b/examples/netpkt/netpkt_ethercat.c index 9d0a17012fc..8b8ab298abb 100644 --- a/examples/netpkt/netpkt_ethercat.c +++ b/examples/netpkt/netpkt_ethercat.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/netpkt/netpkt_ethercat.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/examples/netpkt/netpkt_main.c b/examples/netpkt/netpkt_main.c index 94a37f050d3..5f9aec81f21 100644 --- a/examples/netpkt/netpkt_main.c +++ b/examples/netpkt/netpkt_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/netpkt/netpkt_main.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/examples/nettest/CMakeLists.txt b/examples/nettest/CMakeLists.txt index 2bcedfbf31f..fafdec23618 100644 --- a/examples/nettest/CMakeLists.txt +++ b/examples/nettest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nettest/CMakeLists.txt # +# 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 diff --git a/examples/nettest/Make.defs b/examples/nettest/Make.defs index a18a3eca30f..36647cfc195 100644 --- a/examples/nettest/Make.defs +++ b/examples/nettest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nettest/Make.defs # +# 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/examples/nettest/Makefile b/examples/nettest/Makefile index 9cd52eacf4f..763cd4476af 100644 --- a/examples/nettest/Makefile +++ b/examples/nettest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nettest/Makefile # +# 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/examples/nettest/host/CMakeLists.txt b/examples/nettest/host/CMakeLists.txt index b0f87c8de10..6a06817e802 100644 --- a/examples/nettest/host/CMakeLists.txt +++ b/examples/nettest/host/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nettest/host/CMakeLists.txt # +# 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 diff --git a/examples/nettest/nettest.h b/examples/nettest/nettest.h index d49e7de31b9..e4ff7f3cc99 100644 --- a/examples/nettest/nettest.h +++ b/examples/nettest/nettest.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nettest/nettest.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 diff --git a/examples/nettest/nettest_client.c b/examples/nettest/nettest_client.c index 9a3a10408c4..c6070b7c649 100644 --- a/examples/nettest/nettest_client.c +++ b/examples/nettest/nettest_client.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nettest/nettest_client.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/examples/nettest/nettest_cmdline.c b/examples/nettest/nettest_cmdline.c index af8ed5e690d..397e0aa7cc4 100644 --- a/examples/nettest/nettest_cmdline.c +++ b/examples/nettest/nettest_cmdline.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nettest/nettest_cmdline.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/examples/nettest/nettest_host.c b/examples/nettest/nettest_host.c index 6e6ce25bd1e..e6dfb4eafb0 100644 --- a/examples/nettest/nettest_host.c +++ b/examples/nettest/nettest_host.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nettest/nettest_host.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/examples/nettest/nettest_netinit.c b/examples/nettest/nettest_netinit.c index 481a7737f26..5c29ca411d7 100644 --- a/examples/nettest/nettest_netinit.c +++ b/examples/nettest/nettest_netinit.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nettest/nettest_netinit.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/examples/nettest/nettest_server.c b/examples/nettest/nettest_server.c index fefcd451bc2..26fca608833 100644 --- a/examples/nettest/nettest_server.c +++ b/examples/nettest/nettest_server.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nettest/nettest_server.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/examples/nettest/nettest_target1.c b/examples/nettest/nettest_target1.c index 9a14f3fe8f1..3875be272c2 100644 --- a/examples/nettest/nettest_target1.c +++ b/examples/nettest/nettest_target1.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nettest/nettest_target1.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/examples/nettest/nettest_target2.c b/examples/nettest/nettest_target2.c index 43e4e080698..4a56f18a240 100644 --- a/examples/nettest/nettest_target2.c +++ b/examples/nettest/nettest_target2.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nettest/nettest_target2.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/examples/nimble/CMakeLists.txt b/examples/nimble/CMakeLists.txt index ede1b48c909..6298d5d4a96 100644 --- a/examples/nimble/CMakeLists.txt +++ b/examples/nimble/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nimble/CMakeLists.txt # +# 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 diff --git a/examples/nimble/Make.defs b/examples/nimble/Make.defs index a3be37e41e6..09cc79a8bca 100644 --- a/examples/nimble/Make.defs +++ b/examples/nimble/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nimble/Make.defs # +# 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/examples/nimble/Makefile b/examples/nimble/Makefile index 4e6a3b71489..6b75c2aa1d7 100644 --- a/examples/nimble/Makefile +++ b/examples/nimble/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nimble/Makefile # +# 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/examples/nimble/nimble_main.c b/examples/nimble/nimble_main.c index bae871b7f88..829e02cdb08 100644 --- a/examples/nimble/nimble_main.c +++ b/examples/nimble/nimble_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nimble/nimble_main.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/examples/nng_test/CMakeLists.txt b/examples/nng_test/CMakeLists.txt index da59e8ce85f..3d35655ee3c 100644 --- a/examples/nng_test/CMakeLists.txt +++ b/examples/nng_test/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nng_test/CMakeLists.txt # +# 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 diff --git a/examples/nng_test/Make.defs b/examples/nng_test/Make.defs index e63161ba219..c8a42149bab 100644 --- a/examples/nng_test/Make.defs +++ b/examples/nng_test/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nng_test/Make.defs # +# 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/examples/nng_test/Makefile b/examples/nng_test/Makefile index 950bd990294..7ab7ecb6c33 100644 --- a/examples/nng_test/Makefile +++ b/examples/nng_test/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nng_test/Makefile # +# 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/examples/nng_test/pubsub.c b/examples/nng_test/pubsub.c index a5dc1cda3e0..4f285906efe 100644 --- a/examples/nng_test/pubsub.c +++ b/examples/nng_test/pubsub.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nng_test/pubsub.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/examples/noteprintf/CMakeLists.txt b/examples/noteprintf/CMakeLists.txt index 07bb69c57e2..3bcfc483a7f 100644 --- a/examples/noteprintf/CMakeLists.txt +++ b/examples/noteprintf/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/noteprintf/CMakeLists.txt # +# 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 diff --git a/examples/noteprintf/Make.defs b/examples/noteprintf/Make.defs index 3c481289d1d..eb21a4d5c33 100644 --- a/examples/noteprintf/Make.defs +++ b/examples/noteprintf/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/noteprintf/Make.defs # +# 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/examples/noteprintf/Makefile b/examples/noteprintf/Makefile index 06b11cbcef5..b14eddf9827 100644 --- a/examples/noteprintf/Makefile +++ b/examples/noteprintf/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/noteprintf/Makefile # +# 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/examples/noteprintf/noteprintf_main.c b/examples/noteprintf/noteprintf_main.c index 6e1e73a9b76..dbc81ee8f79 100644 --- a/examples/noteprintf/noteprintf_main.c +++ b/examples/noteprintf/noteprintf_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/noteprintf/noteprintf_main.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/examples/nrf24l01_btle/CMakeLists.txt b/examples/nrf24l01_btle/CMakeLists.txt index 660424ae317..ec150791f96 100644 --- a/examples/nrf24l01_btle/CMakeLists.txt +++ b/examples/nrf24l01_btle/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nrf24l01_btle/CMakeLists.txt # +# 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 diff --git a/examples/nrf24l01_btle/Make.defs b/examples/nrf24l01_btle/Make.defs index 459ce982b27..adb767470c0 100644 --- a/examples/nrf24l01_btle/Make.defs +++ b/examples/nrf24l01_btle/Make.defs @@ -1,7 +1,8 @@ ############################################################################ # apps/examples/nrf24l01_btle/Make.defs - -# Adds selected applications to apps/ build +# +# 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/examples/nrf24l01_btle/Makefile b/examples/nrf24l01_btle/Makefile index 4e1eda4e1de..621635598a2 100644 --- a/examples/nrf24l01_btle/Makefile +++ b/examples/nrf24l01_btle/Makefile @@ -1,20 +1,22 @@ ############################################################################ # apps/examples/nrf24l01_btle/Makefile # -# 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 +# SPDX-License-Identifier: Apache-2.0 # -# http://www.apache.org/licenses/LICENSE-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 # -# 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. +# 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. # ############################################################################ diff --git a/examples/nrf24l01_btle/nrf24l01_btle.c b/examples/nrf24l01_btle/nrf24l01_btle.c index 33db52f973a..1f0e68a13a0 100644 --- a/examples/nrf24l01_btle/nrf24l01_btle.c +++ b/examples/nrf24l01_btle/nrf24l01_btle.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nrf24l01_btle/nrf24l01_btle.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/examples/nrf24l01_btle/nrf24l01_btle.h b/examples/nrf24l01_btle/nrf24l01_btle.h index 10abe165d82..73d16635616 100644 --- a/examples/nrf24l01_btle/nrf24l01_btle.h +++ b/examples/nrf24l01_btle/nrf24l01_btle.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nrf24l01_btle/nrf24l01_btle.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 diff --git a/examples/nrf24l01_term/CMakeLists.txt b/examples/nrf24l01_term/CMakeLists.txt index 99ee24ae062..e1e46c0ae58 100644 --- a/examples/nrf24l01_term/CMakeLists.txt +++ b/examples/nrf24l01_term/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nrf24l01_term/CMakeLists.txt # +# 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 diff --git a/examples/nrf24l01_term/Make.defs b/examples/nrf24l01_term/Make.defs index 4129a49f596..35985af7fa6 100644 --- a/examples/nrf24l01_term/Make.defs +++ b/examples/nrf24l01_term/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nrf24l01_term/Make.defs # +# 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/examples/nrf24l01_term/Makefile b/examples/nrf24l01_term/Makefile index f0911da2e29..f496bd8520d 100644 --- a/examples/nrf24l01_term/Makefile +++ b/examples/nrf24l01_term/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nrf24l01_term/Makefile # +# 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/examples/nrf24l01_term/nrf24l01_term.c b/examples/nrf24l01_term/nrf24l01_term.c index 91cc766dfee..b8af3dca030 100644 --- a/examples/nrf24l01_term/nrf24l01_term.c +++ b/examples/nrf24l01_term/nrf24l01_term.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nrf24l01_term/nrf24l01_term.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/examples/null/CMakeLists.txt b/examples/null/CMakeLists.txt index 5d359bd8f44..299433f0b85 100644 --- a/examples/null/CMakeLists.txt +++ b/examples/null/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/null/CMakeLists.txt # +# 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 diff --git a/examples/null/Make.defs b/examples/null/Make.defs index 0fdb580f46f..6d55c9de2b9 100644 --- a/examples/null/Make.defs +++ b/examples/null/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/null/Make.defs # +# 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/examples/null/Makefile b/examples/null/Makefile index b5a051051cc..602f6117174 100644 --- a/examples/null/Makefile +++ b/examples/null/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/null/Makefile # +# 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/examples/null/null_main.c b/examples/null/null_main.c index 43702b20d57..0e9ea160e75 100644 --- a/examples/null/null_main.c +++ b/examples/null/null_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/null/null_main.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/examples/nunchuck/CMakeLists.txt b/examples/nunchuck/CMakeLists.txt index 6f3fc48dcc9..50680da74ef 100644 --- a/examples/nunchuck/CMakeLists.txt +++ b/examples/nunchuck/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nunchuck/CMakeLists.txt # +# 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 diff --git a/examples/nunchuck/Make.defs b/examples/nunchuck/Make.defs index 1ec2ae31201..931735e59c5 100644 --- a/examples/nunchuck/Make.defs +++ b/examples/nunchuck/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nunchuck/Make.defs # +# 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/examples/nunchuck/Makefile b/examples/nunchuck/Makefile index 1bcb336bfb6..87e66e50cef 100644 --- a/examples/nunchuck/Makefile +++ b/examples/nunchuck/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nunchuck/Makefile # +# 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/examples/nunchuck/nunchuck_main.c b/examples/nunchuck/nunchuck_main.c index f3f7e6e7fdc..fa72e1ce6aa 100644 --- a/examples/nunchuck/nunchuck_main.c +++ b/examples/nunchuck/nunchuck_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nunchuck/nunchuck_main.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/examples/nx/CMakeLists.txt b/examples/nx/CMakeLists.txt index 9ca2a119dfc..a4ff9f8d1c5 100644 --- a/examples/nx/CMakeLists.txt +++ b/examples/nx/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nx/CMakeLists.txt # +# 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 diff --git a/examples/nx/Make.defs b/examples/nx/Make.defs index c8adfaba47c..db23b214ee0 100644 --- a/examples/nx/Make.defs +++ b/examples/nx/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nx/Make.defs # +# 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/examples/nx/Makefile b/examples/nx/Makefile index b743cf0efca..cacdb2e311b 100644 --- a/examples/nx/Makefile +++ b/examples/nx/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nx/Makefile # +# 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/examples/nx/nx_events.c b/examples/nx/nx_events.c index 7aaf1272dd5..36085658486 100644 --- a/examples/nx/nx_events.c +++ b/examples/nx/nx_events.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nx/nx_events.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/examples/nx/nx_internal.h b/examples/nx/nx_internal.h index b9477284666..c92b1ccfa46 100644 --- a/examples/nx/nx_internal.h +++ b/examples/nx/nx_internal.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nx/nx_internal.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 diff --git a/examples/nx/nx_kbdin.c b/examples/nx/nx_kbdin.c index 137207f8192..856323a2482 100644 --- a/examples/nx/nx_kbdin.c +++ b/examples/nx/nx_kbdin.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nx/nx_kbdin.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/examples/nx/nx_main.c b/examples/nx/nx_main.c index 674d9149644..a7b9134c00d 100644 --- a/examples/nx/nx_main.c +++ b/examples/nx/nx_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nx/nx_main.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/examples/nxdemo/CMakeLists.txt b/examples/nxdemo/CMakeLists.txt index 26fe5144a3c..b43078f14d4 100644 --- a/examples/nxdemo/CMakeLists.txt +++ b/examples/nxdemo/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nxdemo/CMakeLists.txt # +# 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 diff --git a/examples/nxdemo/Make.defs b/examples/nxdemo/Make.defs index acde420ba33..7a75f29afa6 100644 --- a/examples/nxdemo/Make.defs +++ b/examples/nxdemo/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxdemo/Make.defs # +# 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/examples/nxdemo/Makefile b/examples/nxdemo/Makefile index 475e58c99d0..67faa61aae3 100644 --- a/examples/nxdemo/Makefile +++ b/examples/nxdemo/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxdemo/Makefile # +# 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/examples/nxdemo/images.h b/examples/nxdemo/images.h index a3bed7888bd..b0c411a62fd 100644 --- a/examples/nxdemo/images.h +++ b/examples/nxdemo/images.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxdemo/images.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 diff --git a/examples/nxdemo/nxdemo.h b/examples/nxdemo/nxdemo.h index 190d9efa43d..ebace04ae39 100644 --- a/examples/nxdemo/nxdemo.h +++ b/examples/nxdemo/nxdemo.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxdemo/nxdemo.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 diff --git a/examples/nxdemo/nxdemo_bkgd.c b/examples/nxdemo/nxdemo_bkgd.c index 23ada3a6b72..fd03f08c00b 100644 --- a/examples/nxdemo/nxdemo_bkgd.c +++ b/examples/nxdemo/nxdemo_bkgd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxdemo/nxdemo_bkgd.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/examples/nxdemo/nxdemo_listener.c b/examples/nxdemo/nxdemo_listener.c index 430b9003994..83458491326 100644 --- a/examples/nxdemo/nxdemo_listener.c +++ b/examples/nxdemo/nxdemo_listener.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxdemo/nxdemo_listener.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/examples/nxdemo/nxdemo_main.c b/examples/nxdemo/nxdemo_main.c index e09e0182fd9..ca5d5b878db 100644 --- a/examples/nxdemo/nxdemo_main.c +++ b/examples/nxdemo/nxdemo_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxdemo/nxdemo_main.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/examples/nxflat/CMakeLists.txt b/examples/nxflat/CMakeLists.txt index bb3de47a2e7..35107f1b996 100644 --- a/examples/nxflat/CMakeLists.txt +++ b/examples/nxflat/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nxflat/CMakeLists.txt # +# 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 diff --git a/examples/nxflat/Make.defs b/examples/nxflat/Make.defs index 765c7957484..45e6739089c 100644 --- a/examples/nxflat/Make.defs +++ b/examples/nxflat/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxflat/Make.defs # +# 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/examples/nxflat/Makefile b/examples/nxflat/Makefile index db78b8349e4..a8aa8184249 100644 --- a/examples/nxflat/Makefile +++ b/examples/nxflat/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxflat/Makefile # +# 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/examples/nxflat/nxflat_main.c b/examples/nxflat/nxflat_main.c index fe856087a93..0c8425e2e68 100644 --- a/examples/nxflat/nxflat_main.c +++ b/examples/nxflat/nxflat_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxflat/nxflat_main.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/examples/nxflat/tests/Makefile b/examples/nxflat/tests/Makefile index b14d2f74ba2..0f83f513728 100644 --- a/examples/nxflat/tests/Makefile +++ b/examples/nxflat/tests/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxflat/tests/Makefile # +# 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/examples/nxflat/tests/errno/Makefile b/examples/nxflat/tests/errno/Makefile index 97d707a9877..43ee63d4e9c 100644 --- a/examples/nxflat/tests/errno/Makefile +++ b/examples/nxflat/tests/errno/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxflat/tests/errno/Makefile # +# 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/examples/nxflat/tests/errno/errno.c b/examples/nxflat/tests/errno/errno.c index bb5acd3c477..1c3e4305774 100644 --- a/examples/nxflat/tests/errno/errno.c +++ b/examples/nxflat/tests/errno/errno.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxflat/tests/errno/errno.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/examples/nxflat/tests/hello++/Makefile b/examples/nxflat/tests/hello++/Makefile index f34dc338723..3202dd1b9c0 100644 --- a/examples/nxflat/tests/hello++/Makefile +++ b/examples/nxflat/tests/hello++/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxflat/tests/hello++/Makefile # +# 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/examples/nxflat/tests/hello++/hello++1.cxx b/examples/nxflat/tests/hello++/hello++1.cxx index 013861a71f5..d0a229f9854 100644 --- a/examples/nxflat/tests/hello++/hello++1.cxx +++ b/examples/nxflat/tests/hello++/hello++1.cxx @@ -1,6 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// // apps/examples/nxflat/tests/hello++/hello++1.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 diff --git a/examples/nxflat/tests/hello++/hello++2.cxx b/examples/nxflat/tests/hello++/hello++2.cxx index 96c1c2ba2a1..d5ee74edaab 100644 --- a/examples/nxflat/tests/hello++/hello++2.cxx +++ b/examples/nxflat/tests/hello++/hello++2.cxx @@ -1,6 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// // apps/examples/nxflat/tests/hello++/hello++2.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 diff --git a/examples/nxflat/tests/hello++/hello++3.cxx b/examples/nxflat/tests/hello++/hello++3.cxx index bf308517582..c16686e6825 100644 --- a/examples/nxflat/tests/hello++/hello++3.cxx +++ b/examples/nxflat/tests/hello++/hello++3.cxx @@ -1,6 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// // apps/examples/nxflat/tests/hello++/hello++3.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 diff --git a/examples/nxflat/tests/hello++/hello++4.cxx b/examples/nxflat/tests/hello++/hello++4.cxx index e1c30de2633..98a1eb7465f 100644 --- a/examples/nxflat/tests/hello++/hello++4.cxx +++ b/examples/nxflat/tests/hello++/hello++4.cxx @@ -1,6 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// // apps/examples/nxflat/tests/hello++/hello++4.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 diff --git a/examples/nxflat/tests/hello/Makefile b/examples/nxflat/tests/hello/Makefile index fb7036409e0..c176050953b 100644 --- a/examples/nxflat/tests/hello/Makefile +++ b/examples/nxflat/tests/hello/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxflat/tests/hello/Makefile # +# 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/examples/nxflat/tests/hello/hello.c b/examples/nxflat/tests/hello/hello.c index f55565b33dc..90017f1b2c1 100644 --- a/examples/nxflat/tests/hello/hello.c +++ b/examples/nxflat/tests/hello/hello.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxflat/tests/hello/hello.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/examples/nxflat/tests/longjmp/Makefile b/examples/nxflat/tests/longjmp/Makefile index 1cb724b1822..d1dfdd6a444 100644 --- a/examples/nxflat/tests/longjmp/Makefile +++ b/examples/nxflat/tests/longjmp/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxflat/tests/longjmp/Makefile # +# 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/examples/nxflat/tests/longjmp/longjmp.c b/examples/nxflat/tests/longjmp/longjmp.c index c27518f1707..ea7ae7bad74 100644 --- a/examples/nxflat/tests/longjmp/longjmp.c +++ b/examples/nxflat/tests/longjmp/longjmp.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxflat/tests/longjmp/longjmp.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/examples/nxflat/tests/mkdirlist.sh b/examples/nxflat/tests/mkdirlist.sh index 96f928c7ac3..786a7b4cdee 100755 --- a/examples/nxflat/tests/mkdirlist.sh +++ b/examples/nxflat/tests/mkdirlist.sh @@ -1,4 +1,25 @@ #!/usr/bin/env bash +############################################################################ +# apps/examples/nxflat/tests/mkdirlist.sh +# +# 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. +# +############################################################################ usage="Usage: %0 " diff --git a/examples/nxflat/tests/mutex/Makefile b/examples/nxflat/tests/mutex/Makefile index 6ed1f382320..afdfc4966e0 100644 --- a/examples/nxflat/tests/mutex/Makefile +++ b/examples/nxflat/tests/mutex/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxflat/tests/mutex/Makefile # +# 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/examples/nxflat/tests/mutex/mutex.c b/examples/nxflat/tests/mutex/mutex.c index bbf7102c926..c8bede26d92 100644 --- a/examples/nxflat/tests/mutex/mutex.c +++ b/examples/nxflat/tests/mutex/mutex.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxflat/tests/mutex/mutex.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/examples/nxflat/tests/pthread/Makefile b/examples/nxflat/tests/pthread/Makefile index 219213d4d94..34eda9330c0 100644 --- a/examples/nxflat/tests/pthread/Makefile +++ b/examples/nxflat/tests/pthread/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxflat/tests/pthread/Makefile # +# 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/examples/nxflat/tests/pthread/pthread.c b/examples/nxflat/tests/pthread/pthread.c index 200de0a5aea..ca2f6268d1e 100644 --- a/examples/nxflat/tests/pthread/pthread.c +++ b/examples/nxflat/tests/pthread/pthread.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxflat/tests/pthread/pthread.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/examples/nxflat/tests/signal/Makefile b/examples/nxflat/tests/signal/Makefile index cb20c01187b..0fba3386436 100644 --- a/examples/nxflat/tests/signal/Makefile +++ b/examples/nxflat/tests/signal/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxflat/tests/signal/Makefile # +# 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/examples/nxflat/tests/signal/signal.c b/examples/nxflat/tests/signal/signal.c index 7cf4732d327..7deb7768e70 100644 --- a/examples/nxflat/tests/signal/signal.c +++ b/examples/nxflat/tests/signal/signal.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxflat/tests/signal/signal.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/examples/nxflat/tests/struct/Makefile b/examples/nxflat/tests/struct/Makefile index eb37c8b8010..463b2c260de 100644 --- a/examples/nxflat/tests/struct/Makefile +++ b/examples/nxflat/tests/struct/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxflat/tests/struct/Makefile # +# 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/examples/nxflat/tests/struct/struct.h b/examples/nxflat/tests/struct/struct.h index 1afd0c5a2ff..199efd8cae5 100644 --- a/examples/nxflat/tests/struct/struct.h +++ b/examples/nxflat/tests/struct/struct.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxflat/tests/struct/struct.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 diff --git a/examples/nxflat/tests/struct/struct_dummy.c b/examples/nxflat/tests/struct/struct_dummy.c index c1444a4aed3..5630b22add0 100644 --- a/examples/nxflat/tests/struct/struct_dummy.c +++ b/examples/nxflat/tests/struct/struct_dummy.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxflat/tests/struct/struct_dummy.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/examples/nxflat/tests/struct/struct_main.c b/examples/nxflat/tests/struct/struct_main.c index f8abc2a7323..18aa4917897 100644 --- a/examples/nxflat/tests/struct/struct_main.c +++ b/examples/nxflat/tests/struct/struct_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxflat/tests/struct/struct_main.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/examples/nxflat/tests/task/Makefile b/examples/nxflat/tests/task/Makefile index 712f5b1fd40..cb3473d6be6 100644 --- a/examples/nxflat/tests/task/Makefile +++ b/examples/nxflat/tests/task/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxflat/tests/task/Makefile # +# 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/examples/nxflat/tests/task/task.c b/examples/nxflat/tests/task/task.c index e77dc887538..8a208d5aa7f 100644 --- a/examples/nxflat/tests/task/task.c +++ b/examples/nxflat/tests/task/task.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxflat/tests/task/task.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/examples/nxhello/CMakeLists.txt b/examples/nxhello/CMakeLists.txt index 9d7732c0303..96330188f5a 100644 --- a/examples/nxhello/CMakeLists.txt +++ b/examples/nxhello/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nxhello/CMakeLists.txt # +# 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 diff --git a/examples/nxhello/Make.defs b/examples/nxhello/Make.defs index c0081cd1130..c64c988f5eb 100644 --- a/examples/nxhello/Make.defs +++ b/examples/nxhello/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxhello/Make.defs # +# 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/examples/nxhello/Makefile b/examples/nxhello/Makefile index 5e0c54de897..4fd312e8950 100644 --- a/examples/nxhello/Makefile +++ b/examples/nxhello/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxhello/Makefile # +# 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/examples/nxhello/nxhello.h b/examples/nxhello/nxhello.h index 87e2ee4669b..9fae5855a67 100644 --- a/examples/nxhello/nxhello.h +++ b/examples/nxhello/nxhello.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxhello/nxhello.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 diff --git a/examples/nxhello/nxhello_bkgd.c b/examples/nxhello/nxhello_bkgd.c index 3c224a39839..ee73f2614a0 100644 --- a/examples/nxhello/nxhello_bkgd.c +++ b/examples/nxhello/nxhello_bkgd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxhello/nxhello_bkgd.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/examples/nxhello/nxhello_listener.c b/examples/nxhello/nxhello_listener.c index 73793652375..65995f476f5 100644 --- a/examples/nxhello/nxhello_listener.c +++ b/examples/nxhello/nxhello_listener.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxhello/nxhello_listener.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/examples/nxhello/nxhello_main.c b/examples/nxhello/nxhello_main.c index 097134ebe68..13e2b8a622e 100644 --- a/examples/nxhello/nxhello_main.c +++ b/examples/nxhello/nxhello_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxhello/nxhello_main.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/examples/nximage/CMakeLists.txt b/examples/nximage/CMakeLists.txt index f8aa815ace4..0fa9b0adcc4 100644 --- a/examples/nximage/CMakeLists.txt +++ b/examples/nximage/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nximage/CMakeLists.txt # +# 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 diff --git a/examples/nximage/Make.defs b/examples/nximage/Make.defs index dbdbd4b182c..5fdc157938f 100644 --- a/examples/nximage/Make.defs +++ b/examples/nximage/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nximage/Make.defs # +# 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/examples/nximage/Makefile b/examples/nximage/Makefile index 1e11d344b13..b4ed626a34f 100644 --- a/examples/nximage/Makefile +++ b/examples/nximage/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nximage/Makefile # +# 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/examples/nximage/nximage.h b/examples/nximage/nximage.h index a9fb4724d04..12e79e0e50d 100644 --- a/examples/nximage/nximage.h +++ b/examples/nximage/nximage.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nximage/nximage.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 diff --git a/examples/nximage/nximage_bitmap.c b/examples/nximage/nximage_bitmap.c index 16b339feabd..ee7444a14b8 100644 --- a/examples/nximage/nximage_bitmap.c +++ b/examples/nximage/nximage_bitmap.c @@ -1,6 +1,8 @@ /******************************************************************************************** * apps/examples/nximage/nximage_bitmap.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/examples/nximage/nximage_bkgd.c b/examples/nximage/nximage_bkgd.c index 953d3f03335..36ac04eda64 100644 --- a/examples/nximage/nximage_bkgd.c +++ b/examples/nximage/nximage_bkgd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nximage/nximage_bkgd.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/examples/nximage/nximage_listener.c b/examples/nximage/nximage_listener.c index f92f10b873d..cc0353ee031 100644 --- a/examples/nximage/nximage_listener.c +++ b/examples/nximage/nximage_listener.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nximage/nximage_listener.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/examples/nximage/nximage_main.c b/examples/nximage/nximage_main.c index 96a85b63f9b..4598ae4f648 100644 --- a/examples/nximage/nximage_main.c +++ b/examples/nximage/nximage_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nximage/nximage_main.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/examples/nxlines/CMakeLists.txt b/examples/nxlines/CMakeLists.txt index a563be7deb5..4ae6fc2132a 100644 --- a/examples/nxlines/CMakeLists.txt +++ b/examples/nxlines/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nxlines/CMakeLists.txt # +# 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 diff --git a/examples/nxlines/Make.defs b/examples/nxlines/Make.defs index 9f3337688da..bfdf332329a 100644 --- a/examples/nxlines/Make.defs +++ b/examples/nxlines/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxlines/Make.defs # +# 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/examples/nxlines/Makefile b/examples/nxlines/Makefile index 14ae58a698d..836ffde06da 100644 --- a/examples/nxlines/Makefile +++ b/examples/nxlines/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxlines/Makefile # +# 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/examples/nxlines/nxlines.h b/examples/nxlines/nxlines.h index 5e92ad312a5..98993c25ad6 100644 --- a/examples/nxlines/nxlines.h +++ b/examples/nxlines/nxlines.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxlines/nxlines.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 diff --git a/examples/nxlines/nxlines_bkgd.c b/examples/nxlines/nxlines_bkgd.c index 03be1d0d758..22b068c645b 100644 --- a/examples/nxlines/nxlines_bkgd.c +++ b/examples/nxlines/nxlines_bkgd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxlines/nxlines_bkgd.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/examples/nxlines/nxlines_listener.c b/examples/nxlines/nxlines_listener.c index 452e2b65898..ab1c2530667 100644 --- a/examples/nxlines/nxlines_listener.c +++ b/examples/nxlines/nxlines_listener.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxlines/nxlines_listener.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/examples/nxlines/nxlines_main.c b/examples/nxlines/nxlines_main.c index 8b6753b40a7..7b3d4ba0de2 100644 --- a/examples/nxlines/nxlines_main.c +++ b/examples/nxlines/nxlines_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxlines/nxlines_main.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/examples/nxscope/CMakeLists.txt b/examples/nxscope/CMakeLists.txt index 56e19d76c3c..09f9b8e168b 100644 --- a/examples/nxscope/CMakeLists.txt +++ b/examples/nxscope/CMakeLists.txt @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxscope/CMakeLists.txt # +# 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/examples/nxscope/Make.defs b/examples/nxscope/Make.defs index 738d2209bb1..0e16898752c 100644 --- a/examples/nxscope/Make.defs +++ b/examples/nxscope/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxscope/Make.defs # +# 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/examples/nxscope/Makefile b/examples/nxscope/Makefile index 285b4da49fd..d9f4029a121 100644 --- a/examples/nxscope/Makefile +++ b/examples/nxscope/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxscope/Makefile # +# 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/examples/nxscope/nxscope_main.c b/examples/nxscope/nxscope_main.c index bfdfadcbcf9..b4bf72665cc 100644 --- a/examples/nxscope/nxscope_main.c +++ b/examples/nxscope/nxscope_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxscope/nxscope_main.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/examples/nxterm/CMakeLists.txt b/examples/nxterm/CMakeLists.txt index aa413133c02..816d90c365a 100644 --- a/examples/nxterm/CMakeLists.txt +++ b/examples/nxterm/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nxterm/CMakeLists.txt # +# 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 diff --git a/examples/nxterm/Make.defs b/examples/nxterm/Make.defs index 9392c310ed8..096848dece7 100644 --- a/examples/nxterm/Make.defs +++ b/examples/nxterm/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxterm/Make.defs # +# 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/examples/nxterm/Makefile b/examples/nxterm/Makefile index b2911fe8d05..58b7037ad8a 100644 --- a/examples/nxterm/Makefile +++ b/examples/nxterm/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxterm/Makefile # +# 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/examples/nxterm/nxterm_internal.h b/examples/nxterm/nxterm_internal.h index 7a959950ad6..d72aa0159a1 100644 --- a/examples/nxterm/nxterm_internal.h +++ b/examples/nxterm/nxterm_internal.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxterm/nxterm_internal.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 diff --git a/examples/nxterm/nxterm_listener.c b/examples/nxterm/nxterm_listener.c index de20445caab..b01328ab2b8 100644 --- a/examples/nxterm/nxterm_listener.c +++ b/examples/nxterm/nxterm_listener.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxterm/nxterm_listener.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/examples/nxterm/nxterm_main.c b/examples/nxterm/nxterm_main.c index b3c736ea8bb..c1a912a0842 100644 --- a/examples/nxterm/nxterm_main.c +++ b/examples/nxterm/nxterm_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxterm/nxterm_main.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/examples/nxterm/nxterm_toolbar.c b/examples/nxterm/nxterm_toolbar.c index 63076ac5b94..24bcee46369 100644 --- a/examples/nxterm/nxterm_toolbar.c +++ b/examples/nxterm/nxterm_toolbar.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxterm/nxterm_toolbar.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/examples/nxterm/nxterm_wndo.c b/examples/nxterm/nxterm_wndo.c index 227f4db9758..2bba6016aae 100644 --- a/examples/nxterm/nxterm_wndo.c +++ b/examples/nxterm/nxterm_wndo.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxterm/nxterm_wndo.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/examples/nxtext/CMakeLists.txt b/examples/nxtext/CMakeLists.txt index 42337d504b7..7bfa5f756a3 100644 --- a/examples/nxtext/CMakeLists.txt +++ b/examples/nxtext/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/nxtext/CMakeLists.txt # +# 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 diff --git a/examples/nxtext/Make.defs b/examples/nxtext/Make.defs index 028b1f756a9..003fb52db5c 100644 --- a/examples/nxtext/Make.defs +++ b/examples/nxtext/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxtext/Make.defs # +# 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/examples/nxtext/Makefile b/examples/nxtext/Makefile index 420746da008..dafa6386e74 100644 --- a/examples/nxtext/Makefile +++ b/examples/nxtext/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/nxtext/Makefile # +# 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/examples/nxtext/nxtext_bkgd.c b/examples/nxtext/nxtext_bkgd.c index 98c761bbbe0..1e0d4a18d83 100644 --- a/examples/nxtext/nxtext_bkgd.c +++ b/examples/nxtext/nxtext_bkgd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxtext/nxtext_bkgd.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/examples/nxtext/nxtext_internal.h b/examples/nxtext/nxtext_internal.h index 45652a852b9..376fe5d0740 100644 --- a/examples/nxtext/nxtext_internal.h +++ b/examples/nxtext/nxtext_internal.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxtext/nxtext_internal.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 diff --git a/examples/nxtext/nxtext_listener.c b/examples/nxtext/nxtext_listener.c index 7189d684a4a..ddb9069ef7d 100644 --- a/examples/nxtext/nxtext_listener.c +++ b/examples/nxtext/nxtext_listener.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxtext/nxtext_listener.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/examples/nxtext/nxtext_main.c b/examples/nxtext/nxtext_main.c index 3814c8dd9a4..1ad8bb9b379 100644 --- a/examples/nxtext/nxtext_main.c +++ b/examples/nxtext/nxtext_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxtext/nxtext_main.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/examples/nxtext/nxtext_popup.c b/examples/nxtext/nxtext_popup.c index a4087779fd6..4ca10e1b70b 100644 --- a/examples/nxtext/nxtext_popup.c +++ b/examples/nxtext/nxtext_popup.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxtext/nxtext_popup.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/examples/nxtext/nxtext_putc.c b/examples/nxtext/nxtext_putc.c index 93c8ca402be..47fdd9ba518 100644 --- a/examples/nxtext/nxtext_putc.c +++ b/examples/nxtext/nxtext_putc.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/nxtext/nxtext_putc.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/examples/obd2/CMakeLists.txt b/examples/obd2/CMakeLists.txt index 09993acb5cf..a2d8d9fd774 100644 --- a/examples/obd2/CMakeLists.txt +++ b/examples/obd2/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/obd2/CMakeLists.txt # +# 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 diff --git a/examples/obd2/Make.defs b/examples/obd2/Make.defs index 49e7cdb7bd7..61ccfd4a37e 100644 --- a/examples/obd2/Make.defs +++ b/examples/obd2/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/obd2/Make.defs # +# 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/examples/obd2/Makefile b/examples/obd2/Makefile index 73be458549d..d3d64bfec2d 100644 --- a/examples/obd2/Makefile +++ b/examples/obd2/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/obd2/Makefile # +# 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/examples/obd2/obd2_main.c b/examples/obd2/obd2_main.c index eeadebe0db9..20efcdb7d61 100644 --- a/examples/obd2/obd2_main.c +++ b/examples/obd2/obd2_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/obd2/obd2_main.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/examples/oneshot/CMakeLists.txt b/examples/oneshot/CMakeLists.txt index d8d3c0bb307..d38a0e419e7 100644 --- a/examples/oneshot/CMakeLists.txt +++ b/examples/oneshot/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/oneshot/CMakeLists.txt # +# 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 diff --git a/examples/oneshot/Make.defs b/examples/oneshot/Make.defs index d194c2e918b..d3a12049c7e 100644 --- a/examples/oneshot/Make.defs +++ b/examples/oneshot/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/oneshot/Make.defs # +# 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/examples/oneshot/Makefile b/examples/oneshot/Makefile index 1ddce30496b..5e498965775 100644 --- a/examples/oneshot/Makefile +++ b/examples/oneshot/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/oneshot/Makefile # +# 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/examples/oneshot/oneshot_main.c b/examples/oneshot/oneshot_main.c index c7c505da34b..50760e360d6 100644 --- a/examples/oneshot/oneshot_main.c +++ b/examples/oneshot/oneshot_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/oneshot/oneshot_main.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/examples/opencyphal/CMakeLists.txt b/examples/opencyphal/CMakeLists.txt index f68b268eeb1..386a094b80f 100644 --- a/examples/opencyphal/CMakeLists.txt +++ b/examples/opencyphal/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/opencyphal/CMakeLists.txt # +# 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 diff --git a/examples/opencyphal/Make.defs b/examples/opencyphal/Make.defs index 60b182fab1b..432f44b2238 100644 --- a/examples/opencyphal/Make.defs +++ b/examples/opencyphal/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/opencyphal/Make.defs # +# 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/examples/opencyphal/Makefile b/examples/opencyphal/Makefile index 2004e1469bb..6168f583c98 100644 --- a/examples/opencyphal/Makefile +++ b/examples/opencyphal/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/opencyphal/Makefile # +# 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/examples/opencyphal/canard_main.c b/examples/opencyphal/canard_main.c index 4d0cce80185..4c6f6dd308c 100644 --- a/examples/opencyphal/canard_main.c +++ b/examples/opencyphal/canard_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/opencyphal/canard_main.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/examples/opencyphal/socketcan.c b/examples/opencyphal/socketcan.c index ac6f58a016f..37809833725 100644 --- a/examples/opencyphal/socketcan.c +++ b/examples/opencyphal/socketcan.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/opencyphal/socketcan.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/examples/opencyphal/socketcan.h b/examples/opencyphal/socketcan.h index 5df786c0159..8876813c712 100644 --- a/examples/opencyphal/socketcan.h +++ b/examples/opencyphal/socketcan.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/opencyphal/socketcan.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 diff --git a/examples/pca9635/CMakeLists.txt b/examples/pca9635/CMakeLists.txt index 016409d28df..459fe370a22 100644 --- a/examples/pca9635/CMakeLists.txt +++ b/examples/pca9635/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/pca9635/CMakeLists.txt # +# 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 diff --git a/examples/pca9635/Make.defs b/examples/pca9635/Make.defs index 5093e997cba..c9909027ec5 100644 --- a/examples/pca9635/Make.defs +++ b/examples/pca9635/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pca9635/Make.defs # +# 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/examples/pca9635/Makefile b/examples/pca9635/Makefile index 18f0de29863..1b399bde31f 100644 --- a/examples/pca9635/Makefile +++ b/examples/pca9635/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pca9635/Makefile # +# 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/examples/pca9635/pca9635_main.c b/examples/pca9635/pca9635_main.c index 2af21999f63..28ad428f148 100644 --- a/examples/pca9635/pca9635_main.c +++ b/examples/pca9635/pca9635_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pca9635/pca9635_main.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/examples/pdcurses/CMakeLists.txt b/examples/pdcurses/CMakeLists.txt index cfb74067cf6..462dad6b1a9 100644 --- a/examples/pdcurses/CMakeLists.txt +++ b/examples/pdcurses/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/pdcurses/CMakeLists.txt # +# 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 diff --git a/examples/pdcurses/Make.defs b/examples/pdcurses/Make.defs index bbd979834a1..119f3968367 100644 --- a/examples/pdcurses/Make.defs +++ b/examples/pdcurses/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pdcurses/Make.defs # +# 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/examples/pdcurses/Makefile b/examples/pdcurses/Makefile index 74348515271..0ebf82c3e4e 100644 --- a/examples/pdcurses/Makefile +++ b/examples/pdcurses/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pdcurses/Makefile # +# 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/examples/pdcurses/charset_main.c b/examples/pdcurses/charset_main.c index 46a4e8eb1b9..a7baceeaf61 100644 --- a/examples/pdcurses/charset_main.c +++ b/examples/pdcurses/charset_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pdcurses/charset_main.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/examples/pdcurses/firework_main.c b/examples/pdcurses/firework_main.c index b7c17992ec8..ec8034264b4 100644 --- a/examples/pdcurses/firework_main.c +++ b/examples/pdcurses/firework_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pdcurses/firework_main.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/examples/pdcurses/newdemo_main.c b/examples/pdcurses/newdemo_main.c index b6583a9b379..aea60acf5d2 100644 --- a/examples/pdcurses/newdemo_main.c +++ b/examples/pdcurses/newdemo_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pdcurses/newdemo_main.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/examples/pdcurses/panel_main.c b/examples/pdcurses/panel_main.c index 8c80959021c..e9b252c175d 100644 --- a/examples/pdcurses/panel_main.c +++ b/examples/pdcurses/panel_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pdcurses/panel_main.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/examples/pdcurses/rain_main.c b/examples/pdcurses/rain_main.c index 703afc2943d..dfd3ec776be 100644 --- a/examples/pdcurses/rain_main.c +++ b/examples/pdcurses/rain_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pdcurses/rain_main.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/examples/pdcurses/testcurs_main.c b/examples/pdcurses/testcurs_main.c index abec88a9d9d..759cee9e68c 100644 --- a/examples/pdcurses/testcurs_main.c +++ b/examples/pdcurses/testcurs_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pdcurses/testcurs_main.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/examples/pdcurses/tui.c b/examples/pdcurses/tui.c index ae08eabf7b5..70084a6ea17 100644 --- a/examples/pdcurses/tui.c +++ b/examples/pdcurses/tui.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pdcurses/tui.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/examples/pdcurses/tui.h b/examples/pdcurses/tui.h index c15db56101e..e989562d91b 100644 --- a/examples/pdcurses/tui.h +++ b/examples/pdcurses/tui.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pdcurses/tui.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 diff --git a/examples/pdcurses/tui_main.c b/examples/pdcurses/tui_main.c index c9a8c1b2f19..0a9ef0e3d57 100644 --- a/examples/pdcurses/tui_main.c +++ b/examples/pdcurses/tui_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pdcurses/tui_main.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/examples/pdcurses/worm_main.c b/examples/pdcurses/worm_main.c index 84bba04d5e3..7e3d0c488e0 100644 --- a/examples/pdcurses/worm_main.c +++ b/examples/pdcurses/worm_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pdcurses/rain_main.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/examples/pdcurses/xmas_main.c b/examples/pdcurses/xmas_main.c index 3168b509e20..83542d5921c 100644 --- a/examples/pdcurses/xmas_main.c +++ b/examples/pdcurses/xmas_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pdcurses/tui.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/examples/pf_ieee802154/CMakeLists.txt b/examples/pf_ieee802154/CMakeLists.txt index 376a55cd44f..e02fe47ceb3 100644 --- a/examples/pf_ieee802154/CMakeLists.txt +++ b/examples/pf_ieee802154/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/pf_ieee802154/CMakeLists.txt # +# 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 diff --git a/examples/pf_ieee802154/Make.defs b/examples/pf_ieee802154/Make.defs index 09c9f0bef00..db390a0a5e3 100644 --- a/examples/pf_ieee802154/Make.defs +++ b/examples/pf_ieee802154/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pf_ieee802154/Make.defs # +# 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/examples/pf_ieee802154/Makefile b/examples/pf_ieee802154/Makefile index 1c8929aa547..fab3910a96f 100644 --- a/examples/pf_ieee802154/Makefile +++ b/examples/pf_ieee802154/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pf_ieee802154/Makefile # +# 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/examples/pf_ieee802154/pf_client.c b/examples/pf_ieee802154/pf_client.c index b8cbbae9215..3c409229074 100644 --- a/examples/pf_ieee802154/pf_client.c +++ b/examples/pf_ieee802154/pf_client.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pf_ieee802154/pf_client.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/examples/pf_ieee802154/pf_cmdline.c b/examples/pf_ieee802154/pf_cmdline.c index 1fa694948b0..6dfb6890d94 100644 --- a/examples/pf_ieee802154/pf_cmdline.c +++ b/examples/pf_ieee802154/pf_cmdline.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pf_ieee802154/pf_cmdline.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/examples/pf_ieee802154/pf_server.c b/examples/pf_ieee802154/pf_server.c index 5996012a734..8b0ba87f5d6 100644 --- a/examples/pf_ieee802154/pf_server.c +++ b/examples/pf_ieee802154/pf_server.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pf_ieee802154/pf_server.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/examples/pf_ieee802154/pfieee802154.h b/examples/pf_ieee802154/pfieee802154.h index 86baf2c73f1..ee7a88b5c4a 100644 --- a/examples/pf_ieee802154/pfieee802154.h +++ b/examples/pf_ieee802154/pfieee802154.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pf_ieee802154/pfieee802154.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 diff --git a/examples/pipe/CMakeLists.txt b/examples/pipe/CMakeLists.txt index 9a63cbe32cb..505689e3eb5 100644 --- a/examples/pipe/CMakeLists.txt +++ b/examples/pipe/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/pipe/CMakeLists.txt # +# 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 diff --git a/examples/pipe/Make.defs b/examples/pipe/Make.defs index 08e63cfefdc..cc32907bd5e 100644 --- a/examples/pipe/Make.defs +++ b/examples/pipe/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pipe/Make.defs # +# 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/examples/pipe/Makefile b/examples/pipe/Makefile index 5358908fde3..cac461a6966 100644 --- a/examples/pipe/Makefile +++ b/examples/pipe/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pipe/Makefile # +# 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/examples/pipe/interlock_test.c b/examples/pipe/interlock_test.c index f666fbafc75..7d614e78af2 100644 --- a/examples/pipe/interlock_test.c +++ b/examples/pipe/interlock_test.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pipe/interlock_test.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/examples/pipe/pipe.h b/examples/pipe/pipe.h index 14931607ac8..9dc14b4c16d 100644 --- a/examples/pipe/pipe.h +++ b/examples/pipe/pipe.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pipe/pipe.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 diff --git a/examples/pipe/pipe_main.c b/examples/pipe/pipe_main.c index d34845ce794..c34f281f583 100644 --- a/examples/pipe/pipe_main.c +++ b/examples/pipe/pipe_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pipe/pipe_main.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/examples/pipe/redirect_test.c b/examples/pipe/redirect_test.c index 9f9a07dca9e..83892958881 100644 --- a/examples/pipe/redirect_test.c +++ b/examples/pipe/redirect_test.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pipe/redirect_test.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/examples/pipe/transfer_test.c b/examples/pipe/transfer_test.c index 2294558da93..5c929ca5145 100644 --- a/examples/pipe/transfer_test.c +++ b/examples/pipe/transfer_test.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pipe/transfer_test.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/examples/poll/CMakeLists.txt b/examples/poll/CMakeLists.txt index 9480486c4f1..6c66a9fe069 100644 --- a/examples/poll/CMakeLists.txt +++ b/examples/poll/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/poll/CMakeLists.txt # +# 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 diff --git a/examples/poll/Make.defs b/examples/poll/Make.defs index abf4f758510..c14ebf06fe7 100644 --- a/examples/poll/Make.defs +++ b/examples/poll/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/poll/Make.defs # +# 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/examples/poll/Makefile b/examples/poll/Makefile index 0d13c436d4d..48c9693c00e 100644 --- a/examples/poll/Makefile +++ b/examples/poll/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/poll/Makefile # +# 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/examples/poll/Makefile.host b/examples/poll/Makefile.host index 51ddc474532..36a34347b8a 100644 --- a/examples/poll/Makefile.host +++ b/examples/poll/Makefile.host @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/poll/Makefile.host # +# 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/examples/poll/host.c b/examples/poll/host.c index e3dbbc2ede2..740bccb2200 100644 --- a/examples/poll/host.c +++ b/examples/poll/host.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/poll/host.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/examples/poll/net_listener.c b/examples/poll/net_listener.c index 3f04ea771a7..9db855477f6 100644 --- a/examples/poll/net_listener.c +++ b/examples/poll/net_listener.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/poll/net_listener.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/examples/poll/net_reader.c b/examples/poll/net_reader.c index c60de47004f..5e22822e38d 100644 --- a/examples/poll/net_reader.c +++ b/examples/poll/net_reader.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/poll/net_reader.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/examples/poll/poll_internal.h b/examples/poll/poll_internal.h index 72579528dee..ba3a03fe6c9 100644 --- a/examples/poll/poll_internal.h +++ b/examples/poll/poll_internal.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/poll/poll_internal.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 diff --git a/examples/poll/poll_listener.c b/examples/poll/poll_listener.c index 1905a5e8230..5864c4222c0 100644 --- a/examples/poll/poll_listener.c +++ b/examples/poll/poll_listener.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/poll/poll_listener.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/examples/poll/poll_main.c b/examples/poll/poll_main.c index 888922c32ee..81791683967 100644 --- a/examples/poll/poll_main.c +++ b/examples/poll/poll_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/poll/poll_main.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/examples/poll/select_listener.c b/examples/poll/select_listener.c index 50697ec143a..69cfe92d619 100644 --- a/examples/poll/select_listener.c +++ b/examples/poll/select_listener.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/poll/select_listener.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/examples/popen/CMakeLists.txt b/examples/popen/CMakeLists.txt index e28072768ff..b256ae71713 100644 --- a/examples/popen/CMakeLists.txt +++ b/examples/popen/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/popen/CMakeLists.txt # +# 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 diff --git a/examples/popen/Make.defs b/examples/popen/Make.defs index a154c93e3fe..a91ae672cfa 100644 --- a/examples/popen/Make.defs +++ b/examples/popen/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/popen/Make.defs # +# 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/examples/popen/Makefile b/examples/popen/Makefile index a7a7cd89a34..73de35df649 100644 --- a/examples/popen/Makefile +++ b/examples/popen/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/popen/Makefile # +# 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/examples/popen/popen_main.c b/examples/popen/popen_main.c index d928629e1fe..c830085e54c 100644 --- a/examples/popen/popen_main.c +++ b/examples/popen/popen_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/popen/popen_main.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/examples/posix_spawn/CMakeLists.txt b/examples/posix_spawn/CMakeLists.txt index f9391d84e6f..453224edde6 100644 --- a/examples/posix_spawn/CMakeLists.txt +++ b/examples/posix_spawn/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/posix_spawn/CMakeLists.txt # +# 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 diff --git a/examples/posix_spawn/Make.defs b/examples/posix_spawn/Make.defs index e3f7eb9f67a..de98e6c38d7 100644 --- a/examples/posix_spawn/Make.defs +++ b/examples/posix_spawn/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/posix_spawn/Make.defs # +# 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/examples/posix_spawn/Makefile b/examples/posix_spawn/Makefile index 312d0437888..08e87cdf7f3 100644 --- a/examples/posix_spawn/Makefile +++ b/examples/posix_spawn/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/posix_spawn/Makefile # +# 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/examples/posix_spawn/filesystem/Makefile b/examples/posix_spawn/filesystem/Makefile index 45008e5e1b5..1632627addb 100644 --- a/examples/posix_spawn/filesystem/Makefile +++ b/examples/posix_spawn/filesystem/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/posix_spawn/filesystem/Makefile # +# 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/examples/posix_spawn/filesystem/hello/Makefile b/examples/posix_spawn/filesystem/hello/Makefile index f98419b377e..c4f0056ab5d 100644 --- a/examples/posix_spawn/filesystem/hello/Makefile +++ b/examples/posix_spawn/filesystem/hello/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/posix_spawn/filesystem/hello/Makefile # +# 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/examples/posix_spawn/filesystem/hello/hello.c b/examples/posix_spawn/filesystem/hello/hello.c index 5269d03594c..e460fa5575c 100644 --- a/examples/posix_spawn/filesystem/hello/hello.c +++ b/examples/posix_spawn/filesystem/hello/hello.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/posix_spawn/filesystem/hello/hello.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/examples/posix_spawn/filesystem/redirect/Makefile b/examples/posix_spawn/filesystem/redirect/Makefile index 38bf2c17b81..a570c24a058 100644 --- a/examples/posix_spawn/filesystem/redirect/Makefile +++ b/examples/posix_spawn/filesystem/redirect/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/posix_spawn/filesystem/redirect/Makefile # +# 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/examples/posix_spawn/filesystem/redirect/redirect.c b/examples/posix_spawn/filesystem/redirect/redirect.c index fd34d18f6d2..f8ecd48a8af 100644 --- a/examples/posix_spawn/filesystem/redirect/redirect.c +++ b/examples/posix_spawn/filesystem/redirect/redirect.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/posix_spawn/filesystem/redirect/redirect.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/examples/posix_spawn/spawn_main.c b/examples/posix_spawn/spawn_main.c index 4a62383d2f8..100030b6c7d 100644 --- a/examples/posix_spawn/spawn_main.c +++ b/examples/posix_spawn/spawn_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/posix_spawn/spawn_main.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/examples/powerled/CMakeLists.txt b/examples/powerled/CMakeLists.txt index b38e0f71fd1..700c2daa5f7 100644 --- a/examples/powerled/CMakeLists.txt +++ b/examples/powerled/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/powerled/CMakeLists.txt # +# 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 diff --git a/examples/powerled/Make.defs b/examples/powerled/Make.defs index 7015da2557e..a2e1b26bf47 100644 --- a/examples/powerled/Make.defs +++ b/examples/powerled/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/powerled/Make.defs # +# 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/examples/powerled/Makefile b/examples/powerled/Makefile index ca02d8011d1..7a489c932ae 100644 --- a/examples/powerled/Makefile +++ b/examples/powerled/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/powerled/Makefile # +# 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/examples/powerled/powerled_main.c b/examples/powerled/powerled_main.c index 1d2e2a6830d..4df021b4b1c 100644 --- a/examples/powerled/powerled_main.c +++ b/examples/powerled/powerled_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/powerled/powerled_main.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/examples/powermonitor/CMakeLists.txt b/examples/powermonitor/CMakeLists.txt index 107906b6fe0..522c2e27b98 100644 --- a/examples/powermonitor/CMakeLists.txt +++ b/examples/powermonitor/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/powermonitor/CMakeLists.txt # +# 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 diff --git a/examples/powermonitor/Make.defs b/examples/powermonitor/Make.defs index d383969eda4..9a0248feaba 100644 --- a/examples/powermonitor/Make.defs +++ b/examples/powermonitor/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/powermonitor/Make.defs # +# 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/examples/powermonitor/Makefile b/examples/powermonitor/Makefile index 2de62f9ab4a..05f669075f6 100644 --- a/examples/powermonitor/Makefile +++ b/examples/powermonitor/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/powermonitor/Makefile # +# 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/examples/powermonitor/powermonitor_main.c b/examples/powermonitor/powermonitor_main.c index e455420402d..3a335dd66a6 100644 --- a/examples/powermonitor/powermonitor_main.c +++ b/examples/powermonitor/powermonitor_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/powermonitor/powermonitor_main.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/examples/pppd/CMakeLists.txt b/examples/pppd/CMakeLists.txt index 5921a5a1c33..7b07f05c2df 100644 --- a/examples/pppd/CMakeLists.txt +++ b/examples/pppd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/pppd/CMakeLists.txt # +# 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 diff --git a/examples/pppd/Make.defs b/examples/pppd/Make.defs index 0adf2bf7c88..9497a83d798 100644 --- a/examples/pppd/Make.defs +++ b/examples/pppd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pppd/Make.defs # +# 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/examples/pppd/Makefile b/examples/pppd/Makefile index 3f341d0349a..a1c4c7e1ef5 100644 --- a/examples/pppd/Makefile +++ b/examples/pppd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pppd/Makefile # +# 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/examples/pppd/pppd_main.c b/examples/pppd/pppd_main.c index ce80ae90bbb..78af8d1fac6 100644 --- a/examples/pppd/pppd_main.c +++ b/examples/pppd/pppd_main.c @@ -1,8 +1,9 @@ /**************************************************************************** * apps/examples/pppd/pppd_main.c * - * Copyright (C) 2015 Brennan Ashton. All rights reserved. - * Author: Brennan Ashton + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2015 Brennan Ashton. All rights reserved. + * SPDX-FileContributor: Brennan Ashton * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/examples/pty_test/CMakeLists.txt b/examples/pty_test/CMakeLists.txt index 746f40a6ed4..0504a518de6 100644 --- a/examples/pty_test/CMakeLists.txt +++ b/examples/pty_test/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/pty_test/CMakeLists.txt # +# 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 diff --git a/examples/pty_test/Make.defs b/examples/pty_test/Make.defs index 870fc757c31..87017568871 100644 --- a/examples/pty_test/Make.defs +++ b/examples/pty_test/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pty_test/Make.defs # +# 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/examples/pty_test/Makefile b/examples/pty_test/Makefile index 1573c530f63..0fe41e9c789 100644 --- a/examples/pty_test/Makefile +++ b/examples/pty_test/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pty_test/Makefile # +# 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/examples/pty_test/pty_test.c b/examples/pty_test/pty_test.c index 731a9ff476a..25c4c9fe018 100644 --- a/examples/pty_test/pty_test.c +++ b/examples/pty_test/pty_test.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pty_test/pty_test.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/examples/pwfb/CMakeLists.txt b/examples/pwfb/CMakeLists.txt index 762e1ec88a4..584321e0fe1 100644 --- a/examples/pwfb/CMakeLists.txt +++ b/examples/pwfb/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/pwfb/CMakeLists.txt # +# 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 diff --git a/examples/pwfb/Make.defs b/examples/pwfb/Make.defs index 1b7e4a0a199..5c25ee26dc7 100644 --- a/examples/pwfb/Make.defs +++ b/examples/pwfb/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pwfb/Make.defs # +# 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/examples/pwfb/Makefile b/examples/pwfb/Makefile index 51bc62fb986..8403725b613 100644 --- a/examples/pwfb/Makefile +++ b/examples/pwfb/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pwfb/Makefile # +# 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/examples/pwfb/pwfb_events.c b/examples/pwfb/pwfb_events.c index 6f4441ccf03..142985ab717 100644 --- a/examples/pwfb/pwfb_events.c +++ b/examples/pwfb/pwfb_events.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pwfb/pwfb_events.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/examples/pwfb/pwfb_internal.h b/examples/pwfb/pwfb_internal.h index 8882009e538..f6742736e6b 100644 --- a/examples/pwfb/pwfb_internal.h +++ b/examples/pwfb/pwfb_internal.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pwfb/pwfb_internal.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 diff --git a/examples/pwfb/pwfb_main.c b/examples/pwfb/pwfb_main.c index 1683b600e1f..6a7bfc438db 100644 --- a/examples/pwfb/pwfb_main.c +++ b/examples/pwfb/pwfb_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pwfb/pwfb_main.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/examples/pwfb/pwfb_motion.c b/examples/pwfb/pwfb_motion.c index a44cae4ffc2..37ce79d86ca 100644 --- a/examples/pwfb/pwfb_motion.c +++ b/examples/pwfb/pwfb_motion.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pwfb/pwfb_motion.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/examples/pwlines/CMakeLists.txt b/examples/pwlines/CMakeLists.txt index 01b4c18a04e..9cbe1d2c39c 100644 --- a/examples/pwlines/CMakeLists.txt +++ b/examples/pwlines/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/pwlines/CMakeLists.txt # +# 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 diff --git a/examples/pwlines/Make.defs b/examples/pwlines/Make.defs index 3e6a64e9367..0454dc2ef71 100644 --- a/examples/pwlines/Make.defs +++ b/examples/pwlines/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pwlines/Make.defs # +# 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/examples/pwlines/Makefile b/examples/pwlines/Makefile index 342d9f2ca3b..fc85c7b861e 100644 --- a/examples/pwlines/Makefile +++ b/examples/pwlines/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pwlines/Makefile # +# 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/examples/pwlines/pwlines_events.c b/examples/pwlines/pwlines_events.c index 2441ae0918a..73a2b80a617 100644 --- a/examples/pwlines/pwlines_events.c +++ b/examples/pwlines/pwlines_events.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pwlines/pwlines_events.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/examples/pwlines/pwlines_internal.h b/examples/pwlines/pwlines_internal.h index 91f188dcd0c..9b830cabe01 100644 --- a/examples/pwlines/pwlines_internal.h +++ b/examples/pwlines/pwlines_internal.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pwlines/pwlines_internal.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 diff --git a/examples/pwlines/pwlines_main.c b/examples/pwlines/pwlines_main.c index 894fd5a3c84..dc776d74436 100644 --- a/examples/pwlines/pwlines_main.c +++ b/examples/pwlines/pwlines_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pwlines/pwlines_main.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/examples/pwlines/pwlines_motion.c b/examples/pwlines/pwlines_motion.c index cf33a6363d4..a812d4d7352 100644 --- a/examples/pwlines/pwlines_motion.c +++ b/examples/pwlines/pwlines_motion.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pwlines/pwlines_motion.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/examples/pwlines/pwlines_update.c b/examples/pwlines/pwlines_update.c index 54f7eefdf43..2dbe4e39ef0 100644 --- a/examples/pwlines/pwlines_update.c +++ b/examples/pwlines/pwlines_update.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pwlines/pwlines_update.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/examples/pwm/CMakeLists.txt b/examples/pwm/CMakeLists.txt index 8758605fa0c..2d39c573a40 100644 --- a/examples/pwm/CMakeLists.txt +++ b/examples/pwm/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/pwm/CMakeLists.txt # +# 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 diff --git a/examples/pwm/Make.defs b/examples/pwm/Make.defs index 065f656364f..999dcb59686 100644 --- a/examples/pwm/Make.defs +++ b/examples/pwm/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pwm/Make.defs # +# 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/examples/pwm/Makefile b/examples/pwm/Makefile index d2e44c072b4..785182d356c 100644 --- a/examples/pwm/Makefile +++ b/examples/pwm/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/pwm/Makefile # +# 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/examples/pwm/pwm.h b/examples/pwm/pwm.h index 133b1e5d5ee..e0447b9b374 100644 --- a/examples/pwm/pwm.h +++ b/examples/pwm/pwm.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pwm/pwm.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 diff --git a/examples/pwm/pwm_main.c b/examples/pwm/pwm_main.c index c5d4424a899..7a1a83c1610 100644 --- a/examples/pwm/pwm_main.c +++ b/examples/pwm/pwm_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/pwm/pwm_main.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/examples/qencoder/CMakeLists.txt b/examples/qencoder/CMakeLists.txt index 797f6b832cb..308f9e4ad44 100644 --- a/examples/qencoder/CMakeLists.txt +++ b/examples/qencoder/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/qencoder/CMakeLists.txt # +# 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 diff --git a/examples/qencoder/Make.defs b/examples/qencoder/Make.defs index 0778b6aadd9..46a43c14d2e 100644 --- a/examples/qencoder/Make.defs +++ b/examples/qencoder/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/qencoder/Make.defs # +# 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/examples/qencoder/Makefile b/examples/qencoder/Makefile index fe6b71cf6b9..1e0866175da 100644 --- a/examples/qencoder/Makefile +++ b/examples/qencoder/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/qencoder/Makefile # +# 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/examples/qencoder/qe.h b/examples/qencoder/qe.h index e233c8c4b76..2baa5de1e21 100644 --- a/examples/qencoder/qe.h +++ b/examples/qencoder/qe.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/qencoder/qe.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 diff --git a/examples/qencoder/qe_main.c b/examples/qencoder/qe_main.c index be9a5a26a34..2614fe7fb5f 100644 --- a/examples/qencoder/qe_main.c +++ b/examples/qencoder/qe_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/qencoder/qe_main.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/examples/random/CMakeLists.txt b/examples/random/CMakeLists.txt index 0f44dd7976b..e3385d489c4 100644 --- a/examples/random/CMakeLists.txt +++ b/examples/random/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/random/CMakeLists.txt # +# 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 diff --git a/examples/random/Make.defs b/examples/random/Make.defs index e761c29cef6..6771c5b6515 100644 --- a/examples/random/Make.defs +++ b/examples/random/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/random/Make.defs # +# 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/examples/random/Makefile b/examples/random/Makefile index b064f1fdfaf..ab02a154bce 100644 --- a/examples/random/Makefile +++ b/examples/random/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/random/Makefile # +# 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/examples/random/random_main.c b/examples/random/random_main.c index e6a13b48758..2b1be28275c 100644 --- a/examples/random/random_main.c +++ b/examples/random/random_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/random/random_main.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/examples/relays/CMakeLists.txt b/examples/relays/CMakeLists.txt index cc3c1ff26f3..cb1d9b72975 100644 --- a/examples/relays/CMakeLists.txt +++ b/examples/relays/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/relays/CMakeLists.txt # +# 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 diff --git a/examples/relays/Make.defs b/examples/relays/Make.defs index c762e8d7d1a..3a1d05f3e16 100644 --- a/examples/relays/Make.defs +++ b/examples/relays/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/relays/Make.defs # +# 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/examples/relays/Makefile b/examples/relays/Makefile index c1a1b3c9bfd..4390ceb5293 100644 --- a/examples/relays/Makefile +++ b/examples/relays/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/relays/Makefile # +# 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/examples/relays/relays_main.c b/examples/relays/relays_main.c index 33b62dcce86..1d6695027e6 100644 --- a/examples/relays/relays_main.c +++ b/examples/relays/relays_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/relays/relays_main.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/examples/rfid_readuid/CMakeLists.txt b/examples/rfid_readuid/CMakeLists.txt index d960590fd25..d655272edb5 100644 --- a/examples/rfid_readuid/CMakeLists.txt +++ b/examples/rfid_readuid/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/rfid_readuid/CMakeLists.txt # +# 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 diff --git a/examples/rfid_readuid/Make.defs b/examples/rfid_readuid/Make.defs index 3d61abc9123..ed720dbd509 100644 --- a/examples/rfid_readuid/Make.defs +++ b/examples/rfid_readuid/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/rfid_readuid/Make.defs # +# 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/examples/rfid_readuid/Makefile b/examples/rfid_readuid/Makefile index dd13c901e58..0a06297c5c0 100644 --- a/examples/rfid_readuid/Makefile +++ b/examples/rfid_readuid/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/rfid_readuid/Makefile # +# 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/examples/rfid_readuid/rfid_readuid.c b/examples/rfid_readuid/rfid_readuid.c index 2f8049ca76f..d97c058daf2 100644 --- a/examples/rfid_readuid/rfid_readuid.c +++ b/examples/rfid_readuid/rfid_readuid.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/rfid_readuid/rfid_readuid.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/examples/rgbled/CMakeLists.txt b/examples/rgbled/CMakeLists.txt index 29b1efbcade..edb6b62f22c 100644 --- a/examples/rgbled/CMakeLists.txt +++ b/examples/rgbled/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/rgbled/CMakeLists.txt # +# 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 diff --git a/examples/rgbled/Make.defs b/examples/rgbled/Make.defs index bea3eee00ad..e8c793757d0 100644 --- a/examples/rgbled/Make.defs +++ b/examples/rgbled/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/rgbled/Make.defs # +# 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/examples/rgbled/Makefile b/examples/rgbled/Makefile index 3611b032eaf..9f0511c6ab3 100644 --- a/examples/rgbled/Makefile +++ b/examples/rgbled/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/rgbled/Makefile # +# 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/examples/rgbled/rgbled.c b/examples/rgbled/rgbled.c index 5521383e5d6..4dd9aa2ec67 100644 --- a/examples/rgbled/rgbled.c +++ b/examples/rgbled/rgbled.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/rgbled/rgbled.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/examples/rmtchar/CMakeLists.txt b/examples/rmtchar/CMakeLists.txt index 0adae091397..0d03174f554 100644 --- a/examples/rmtchar/CMakeLists.txt +++ b/examples/rmtchar/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/rmtchar/CMakeLists.txt # +# 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 diff --git a/examples/rmtchar/Make.defs b/examples/rmtchar/Make.defs index e6550150c57..0b14b2487d1 100644 --- a/examples/rmtchar/Make.defs +++ b/examples/rmtchar/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/rmtchar/Make.defs # +# 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/examples/rmtchar/Makefile b/examples/rmtchar/Makefile index 342cb6ec465..2c6d454ddd9 100644 --- a/examples/rmtchar/Makefile +++ b/examples/rmtchar/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/rmtchar/Makefile # +# 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/examples/rmtchar/rmtchar.h b/examples/rmtchar/rmtchar.h index 2d89479bfd2..832b80a4ca5 100644 --- a/examples/rmtchar/rmtchar.h +++ b/examples/rmtchar/rmtchar.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/rmtchar/rmtchar.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 diff --git a/examples/rmtchar/rmtchar_common.c b/examples/rmtchar/rmtchar_common.c index f7d1a4d9d64..663f0abd5fd 100644 --- a/examples/rmtchar/rmtchar_common.c +++ b/examples/rmtchar/rmtchar_common.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/rmtchar/rmtchar_common.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/examples/rmtchar/rmtchar_main.c b/examples/rmtchar/rmtchar_main.c index d57c815becb..dcf2c54f22f 100644 --- a/examples/rmtchar/rmtchar_main.c +++ b/examples/rmtchar/rmtchar_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/rmtchar/rmtchar_main.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/examples/rmtchar/rmtchar_receiver.c b/examples/rmtchar/rmtchar_receiver.c index 1f1e16a5f52..b6d94800ed9 100644 --- a/examples/rmtchar/rmtchar_receiver.c +++ b/examples/rmtchar/rmtchar_receiver.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/rmtchar/rmtchar_receiver.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/examples/rmtchar/rmtchar_transmitter.c b/examples/rmtchar/rmtchar_transmitter.c index 249f877aeda..8c0528e2a3b 100644 --- a/examples/rmtchar/rmtchar_transmitter.c +++ b/examples/rmtchar/rmtchar_transmitter.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/rmtchar/rmtchar_transmitter.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/examples/romfs/CMakeLists.txt b/examples/romfs/CMakeLists.txt index 11e16fe042b..7bde993d9b1 100644 --- a/examples/romfs/CMakeLists.txt +++ b/examples/romfs/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/romfs/CMakeLists.txt # +# 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 diff --git a/examples/romfs/Make.defs b/examples/romfs/Make.defs index 8755a91f33b..9f06ff292e2 100644 --- a/examples/romfs/Make.defs +++ b/examples/romfs/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/romfs/Make.defs # +# 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/examples/romfs/Makefile b/examples/romfs/Makefile index 99c00bc4c31..ba19d237283 100644 --- a/examples/romfs/Makefile +++ b/examples/romfs/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/romfs/Makefile # +# 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/examples/romfs/romfs_main.c b/examples/romfs/romfs_main.c index 4ffdefe3304..fa957bbd7fc 100644 --- a/examples/romfs/romfs_main.c +++ b/examples/romfs/romfs_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/romfs/romfs_main.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/examples/rpmsgsocket/CMakeLists.txt b/examples/rpmsgsocket/CMakeLists.txt index 4654624c4a7..edb2dddc7f7 100644 --- a/examples/rpmsgsocket/CMakeLists.txt +++ b/examples/rpmsgsocket/CMakeLists.txt @@ -1,6 +1,8 @@ -# ############################################################################## +################################################################################ # apps/examples/rpmsgsocket/CMakeLists.txt # +# 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 @@ -16,7 +18,7 @@ # License for the specific language governing permissions and limitations under # the License. # -# ############################################################################## +################################################################################ if(CONFIG_EXAMPLES_RPMSGSOCKET) nuttx_add_application( diff --git a/examples/rpmsgsocket/Make.defs b/examples/rpmsgsocket/Make.defs index 924623950b3..e7ac2932848 100644 --- a/examples/rpmsgsocket/Make.defs +++ b/examples/rpmsgsocket/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/rpmsgsocket/Make.defs # +# 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/examples/rpmsgsocket/Makefile b/examples/rpmsgsocket/Makefile index acfc183bec0..dffe32a44ff 100644 --- a/examples/rpmsgsocket/Makefile +++ b/examples/rpmsgsocket/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/rpmsgsocket/Makefile # +# 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/examples/rpmsgsocket/rpsock_client.c b/examples/rpmsgsocket/rpsock_client.c index 335460b8395..447bf77735c 100644 --- a/examples/rpmsgsocket/rpsock_client.c +++ b/examples/rpmsgsocket/rpsock_client.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/rpmsgsocket/rpsock_client.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/examples/rpmsgsocket/rpsock_server.c b/examples/rpmsgsocket/rpsock_server.c index 477239cd053..a0ba62b7126 100644 --- a/examples/rpmsgsocket/rpsock_server.c +++ b/examples/rpmsgsocket/rpsock_server.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/rpmsgsocket/rpsock_server.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/examples/scd41/CMakeLists.txt b/examples/scd41/CMakeLists.txt index 885de570843..5f6d23f59c7 100644 --- a/examples/scd41/CMakeLists.txt +++ b/examples/scd41/CMakeLists.txt @@ -1,6 +1,8 @@ -# ############################################################################## +################################################################################ # apps/examples/scd41/CMakeLists.txt # +# 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 @@ -16,7 +18,7 @@ # License for the specific language governing permissions and limitations under # the License. # -# ############################################################################## +################################################################################ if(CONFIG_EXAMPLES_SCD41) nuttx_add_application( diff --git a/examples/scd41/Make.defs b/examples/scd41/Make.defs index a6a5ff7b8d7..94c31ce0b68 100644 --- a/examples/scd41/Make.defs +++ b/examples/scd41/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/scd41/Make.defs # +# 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/examples/scd41/Makefile b/examples/scd41/Makefile index e08598e9ebb..9b255a86693 100644 --- a/examples/scd41/Makefile +++ b/examples/scd41/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/scd41/Makefile # +# 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/examples/scd41/scd41_main.c b/examples/scd41/scd41_main.c index 433a2818fe4..b524ab55b12 100644 --- a/examples/scd41/scd41_main.c +++ b/examples/scd41/scd41_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/scd41/scd41_main.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/examples/sendmail/CMakeLists.txt b/examples/sendmail/CMakeLists.txt index 50dde6398c3..04f7f44454b 100644 --- a/examples/sendmail/CMakeLists.txt +++ b/examples/sendmail/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/sendmail/CMakeLists.txt # +# 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 diff --git a/examples/sendmail/Make.defs b/examples/sendmail/Make.defs index 32866071234..4d6e9b6e0e6 100644 --- a/examples/sendmail/Make.defs +++ b/examples/sendmail/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sendmail/Make.defs # +# 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/examples/sendmail/Makefile b/examples/sendmail/Makefile index 61191601d81..9013d24ead9 100644 --- a/examples/sendmail/Makefile +++ b/examples/sendmail/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sendmail/Makefile # +# 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/examples/sendmail/sendmail_main.c b/examples/sendmail/sendmail_main.c index 5cd868777e7..7a0abdf1af0 100644 --- a/examples/sendmail/sendmail_main.c +++ b/examples/sendmail/sendmail_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/sendmail/sendmail_main.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/examples/sensor_fusion/Make.defs b/examples/sensor_fusion/Make.defs index f7499a972b1..82c94795545 100644 --- a/examples/sensor_fusion/Make.defs +++ b/examples/sensor_fusion/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sensor_fusion/Make.defs # +# 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/examples/sensor_fusion/Makefile b/examples/sensor_fusion/Makefile index ce17e69dfe7..50a33cffcd4 100644 --- a/examples/sensor_fusion/Makefile +++ b/examples/sensor_fusion/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sensor_fusion/Makefile # +# 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/examples/sensor_fusion/sensor_fusion_main.c b/examples/sensor_fusion/sensor_fusion_main.c index a603c3c8216..cad5903325e 100644 --- a/examples/sensor_fusion/sensor_fusion_main.c +++ b/examples/sensor_fusion/sensor_fusion_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/sensor_fusion/sensor_fusion_main.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/examples/serialblaster/CMakeLists.txt b/examples/serialblaster/CMakeLists.txt index 4fa46688d5c..4e3847922b2 100644 --- a/examples/serialblaster/CMakeLists.txt +++ b/examples/serialblaster/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/serialblaster/CMakeLists.txt # +# 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 diff --git a/examples/serialblaster/Make.defs b/examples/serialblaster/Make.defs index c92ed53a781..a4178101084 100644 --- a/examples/serialblaster/Make.defs +++ b/examples/serialblaster/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/serialblaster/Make.defs # +# 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/examples/serialblaster/Makefile b/examples/serialblaster/Makefile index ce8fb45b266..79d849fa62e 100644 --- a/examples/serialblaster/Makefile +++ b/examples/serialblaster/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/serialblaster/Makefile # +# 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/examples/serialblaster/serialblaster_main.c b/examples/serialblaster/serialblaster_main.c index 106a26d367a..b028efa1844 100644 --- a/examples/serialblaster/serialblaster_main.c +++ b/examples/serialblaster/serialblaster_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/serialblaster/serialblaster_main.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/examples/serialrx/CMakeLists.txt b/examples/serialrx/CMakeLists.txt index 185359aea9a..dab565f6fc0 100644 --- a/examples/serialrx/CMakeLists.txt +++ b/examples/serialrx/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/serialrx/CMakeLists.txt # +# 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 diff --git a/examples/serialrx/Make.defs b/examples/serialrx/Make.defs index 942c94f840d..40359140c9b 100644 --- a/examples/serialrx/Make.defs +++ b/examples/serialrx/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/serialrx/Make.defs # +# 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/examples/serialrx/Makefile b/examples/serialrx/Makefile index 56cfa3ad2c5..fbb9ec1adc7 100644 --- a/examples/serialrx/Makefile +++ b/examples/serialrx/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/serialrx/Makefile # +# 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/examples/serialrx/serialrx_main.c b/examples/serialrx/serialrx_main.c index 0864805ce0e..af7468e4d8d 100644 --- a/examples/serialrx/serialrx_main.c +++ b/examples/serialrx/serialrx_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/serialrx/serialrx_main.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/examples/serloop/CMakeLists.txt b/examples/serloop/CMakeLists.txt index 182e9182f85..5a3c3e71578 100644 --- a/examples/serloop/CMakeLists.txt +++ b/examples/serloop/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/serloop/CMakeLists.txt # +# 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 diff --git a/examples/serloop/Make.defs b/examples/serloop/Make.defs index 2ea8de90af7..268fc5f9033 100644 --- a/examples/serloop/Make.defs +++ b/examples/serloop/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/serloop/Make.defs # +# 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/examples/serloop/Makefile b/examples/serloop/Makefile index 782613a023e..3fcdc6ba344 100644 --- a/examples/serloop/Makefile +++ b/examples/serloop/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/serloop/Makefile # +# 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/examples/serloop/serloop_main.c b/examples/serloop/serloop_main.c index a1e916e1f46..00bf322536c 100644 --- a/examples/serloop/serloop_main.c +++ b/examples/serloop/serloop_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/serloop/serloop_main.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/examples/settings/Make.defs b/examples/settings/Make.defs index 8198e28a302..6fac4077bfb 100644 --- a/examples/settings/Make.defs +++ b/examples/settings/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/settings/Make.defs # +# 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/examples/settings/Makefile b/examples/settings/Makefile index 53bf1f22d92..64856378578 100644 --- a/examples/settings/Makefile +++ b/examples/settings/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/settings/Makefile # +# 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/examples/settings/settings_main.c b/examples/settings/settings_main.c index 9312608360f..b284a48434c 100644 --- a/examples/settings/settings_main.c +++ b/examples/settings/settings_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/settings/settings_main.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/examples/shm_test/CMakeLists.txt b/examples/shm_test/CMakeLists.txt index 1985986d56a..19f5f849501 100644 --- a/examples/shm_test/CMakeLists.txt +++ b/examples/shm_test/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/shm_test/CMakeLists.txt # +# 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 diff --git a/examples/shm_test/Make.defs b/examples/shm_test/Make.defs index 5248c3f6eb1..a5e5e62caac 100644 --- a/examples/shm_test/Make.defs +++ b/examples/shm_test/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/shm_test/Make.defs # +# 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/examples/shm_test/Makefile b/examples/shm_test/Makefile index 1f3346868d7..1f1d900a0bc 100644 --- a/examples/shm_test/Makefile +++ b/examples/shm_test/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/shm_test/Makefile # +# 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/examples/shm_test/shm_main.c b/examples/shm_test/shm_main.c index 1fb1d0b0d15..e93758d59b5 100644 --- a/examples/shm_test/shm_main.c +++ b/examples/shm_test/shm_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/shm_test/shm_main.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/examples/sht3x/CMakeLists.txt b/examples/sht3x/CMakeLists.txt index 1c947a3f241..8c22be54f8e 100644 --- a/examples/sht3x/CMakeLists.txt +++ b/examples/sht3x/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/sht3x/CMakeLists.txt # +# 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 diff --git a/examples/sht3x/Make.defs b/examples/sht3x/Make.defs index cf752dca4a5..e4bec98324d 100644 --- a/examples/sht3x/Make.defs +++ b/examples/sht3x/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sht3x/Make.defs # +# 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/examples/sht3x/Makefile b/examples/sht3x/Makefile index e1d753b1e13..6acd0fe07f5 100644 --- a/examples/sht3x/Makefile +++ b/examples/sht3x/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sht3x/Makefile # +# 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/examples/sht3x/sht3x_main.c b/examples/sht3x/sht3x_main.c index bd0ef295fb2..078979c7a41 100644 --- a/examples/sht3x/sht3x_main.c +++ b/examples/sht3x/sht3x_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/sht3x/sht3x_main.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/examples/slcd/CMakeLists.txt b/examples/slcd/CMakeLists.txt index 9cd83621fe7..280cabdb6d6 100644 --- a/examples/slcd/CMakeLists.txt +++ b/examples/slcd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/slcd/CMakeLists.txt # +# 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 diff --git a/examples/slcd/Make.defs b/examples/slcd/Make.defs index 5346c20df56..24c71d0ad15 100644 --- a/examples/slcd/Make.defs +++ b/examples/slcd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/slcd/Make.defs # +# 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/examples/slcd/Makefile b/examples/slcd/Makefile index 8e3651ffb99..830fa2ead16 100644 --- a/examples/slcd/Makefile +++ b/examples/slcd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/slcd/Makefile # +# 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/examples/slcd/slcd_main.c b/examples/slcd/slcd_main.c index 1342ad14b25..e7aedd0c01c 100644 --- a/examples/slcd/slcd_main.c +++ b/examples/slcd/slcd_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/slcd/slcd_main.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/examples/smps/CMakeLists.txt b/examples/smps/CMakeLists.txt index fd3821aceb1..15344ae4aaa 100644 --- a/examples/smps/CMakeLists.txt +++ b/examples/smps/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/smps/CMakeLists.txt # +# 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 diff --git a/examples/smps/Make.defs b/examples/smps/Make.defs index 9cae2ef5546..bb06f35417d 100644 --- a/examples/smps/Make.defs +++ b/examples/smps/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/smps/Make.defs # +# 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/examples/smps/Makefile b/examples/smps/Makefile index 5c9799d5ed1..edbb6e5f8bb 100644 --- a/examples/smps/Makefile +++ b/examples/smps/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/smps/Makefile # +# 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/examples/smps/smps_main.c b/examples/smps/smps_main.c index f6815f54ce4..99433155887 100644 --- a/examples/smps/smps_main.c +++ b/examples/smps/smps_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/smps/smps_main.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/examples/sotest/CMakeLists.txt b/examples/sotest/CMakeLists.txt index bab18517a4b..9daecfb7402 100644 --- a/examples/sotest/CMakeLists.txt +++ b/examples/sotest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/sotest/CMakeLists.txt # +# 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 diff --git a/examples/sotest/Make.defs b/examples/sotest/Make.defs index 6f9fbe6f52f..c674e34e66e 100644 --- a/examples/sotest/Make.defs +++ b/examples/sotest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sotest/Make.defs # +# 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/examples/sotest/Makefile b/examples/sotest/Makefile index 6e7bb3af7b3..0d23750cf86 100644 --- a/examples/sotest/Makefile +++ b/examples/sotest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sotest/Makefile # +# 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/examples/sotest/main/CMakeLists.txt b/examples/sotest/main/CMakeLists.txt index de0fdd249d6..caca43d2212 100644 --- a/examples/sotest/main/CMakeLists.txt +++ b/examples/sotest/main/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/sotest/main/CMakeLists.txt # +# 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 diff --git a/examples/sotest/main/Make.defs b/examples/sotest/main/Make.defs index 1a382e924ea..a904d0ceff3 100644 --- a/examples/sotest/main/Make.defs +++ b/examples/sotest/main/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sotest/main/Make.defs # +# 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/examples/sotest/main/Makefile b/examples/sotest/main/Makefile index 17c90570324..064b0b434b7 100644 --- a/examples/sotest/main/Makefile +++ b/examples/sotest/main/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sotest/main/Makefile # +# 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/examples/sotest/main/sotest_main.c b/examples/sotest/main/sotest_main.c index 205ed397ccc..ccc7a325519 100644 --- a/examples/sotest/main/sotest_main.c +++ b/examples/sotest/main/sotest_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/sotest/main/sotest_main.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/examples/sotest/modprint/Make.defs b/examples/sotest/modprint/Make.defs index 2d6ae226b1f..07811511bd2 100644 --- a/examples/sotest/modprint/Make.defs +++ b/examples/sotest/modprint/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sotest/modprint/Make.defs # +# 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/examples/sotest/modprint/Makefile b/examples/sotest/modprint/Makefile index dca51c6f76d..81f5c2c5390 100644 --- a/examples/sotest/modprint/Makefile +++ b/examples/sotest/modprint/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sotest/modprint/Makefile # +# 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/examples/sotest/modprint/modprint.c b/examples/sotest/modprint/modprint.c index e5e89f79fd2..898899a24a4 100644 --- a/examples/sotest/modprint/modprint.c +++ b/examples/sotest/modprint/modprint.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/sotest/modprint/modprint.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/examples/sotest/sotest/Make.defs b/examples/sotest/sotest/Make.defs index 08c4edce18f..4a26bb1219b 100644 --- a/examples/sotest/sotest/Make.defs +++ b/examples/sotest/sotest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sotest/sotest/Make.defs # +# 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/examples/sotest/sotest/Makefile b/examples/sotest/sotest/Makefile index 94eb777a2ac..dfbec74a171 100644 --- a/examples/sotest/sotest/Makefile +++ b/examples/sotest/sotest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sotest/sotest/Makefile # +# 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/examples/sotest/sotest/sotest.c b/examples/sotest/sotest/sotest.c index 47d99b6213f..df9ab3201ae 100644 --- a/examples/sotest/sotest/sotest.c +++ b/examples/sotest/sotest/sotest.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/sotest/sotest/sotest.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/examples/spislv_test/CMakeLists.txt b/examples/spislv_test/CMakeLists.txt index d4406bae994..137bc91342e 100644 --- a/examples/spislv_test/CMakeLists.txt +++ b/examples/spislv_test/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/spislv_test/CMakeLists.txt # +# 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 diff --git a/examples/spislv_test/Make.defs b/examples/spislv_test/Make.defs index e8b23330ea0..14bb4852a9f 100644 --- a/examples/spislv_test/Make.defs +++ b/examples/spislv_test/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/spislv/Make.defs # +# 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/examples/spislv_test/Makefile b/examples/spislv_test/Makefile index 44b099d1d00..1fb3e54c57c 100644 --- a/examples/spislv_test/Makefile +++ b/examples/spislv_test/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/spislv_test/Makefile # +# 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/examples/spislv_test/spislv_test.c b/examples/spislv_test/spislv_test.c index 1ac4e5b3348..763bee76f7d 100644 --- a/examples/spislv_test/spislv_test.c +++ b/examples/spislv_test/spislv_test.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/spislv_test/spislv_test.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/examples/stat/CMakeLists.txt b/examples/stat/CMakeLists.txt index 32d10bb4e27..c355cfa7d55 100644 --- a/examples/stat/CMakeLists.txt +++ b/examples/stat/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/stat/CMakeLists.txt # +# 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 diff --git a/examples/stat/Make.defs b/examples/stat/Make.defs index 7532ebb254b..c965dbda01f 100644 --- a/examples/stat/Make.defs +++ b/examples/stat/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/stat/Make.defs # +# 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/examples/stat/Makefile b/examples/stat/Makefile index c86c9d03b18..afbb053a426 100644 --- a/examples/stat/Makefile +++ b/examples/stat/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/stat/Makefile # +# 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/examples/stat/stat_main.c b/examples/stat/stat_main.c index a4c9db4de52..fa04f7add7e 100644 --- a/examples/stat/stat_main.c +++ b/examples/stat/stat_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/stat/stat_main.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/examples/stepper/CMakeLists.txt b/examples/stepper/CMakeLists.txt index a86573c9246..d8e89647cc6 100644 --- a/examples/stepper/CMakeLists.txt +++ b/examples/stepper/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/stepper/CMakeLists.txt # +# 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 diff --git a/examples/stepper/Make.defs b/examples/stepper/Make.defs index e98fa345cfd..859b096373b 100644 --- a/examples/stepper/Make.defs +++ b/examples/stepper/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/stepper/Make.defs # +# 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/examples/stepper/Makefile b/examples/stepper/Makefile index 00fb19999b3..ae9bad0c27f 100644 --- a/examples/stepper/Makefile +++ b/examples/stepper/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/stepper/Makefile # +# 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/examples/stepper/stepper.c b/examples/stepper/stepper.c index 5aa43dd8a2c..2d9acdaff17 100644 --- a/examples/stepper/stepper.c +++ b/examples/stepper/stepper.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/stepper/stepper.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/examples/sx127x_demo/CMakeLists.txt b/examples/sx127x_demo/CMakeLists.txt index 0fa4bfee599..b9982b87c3c 100644 --- a/examples/sx127x_demo/CMakeLists.txt +++ b/examples/sx127x_demo/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/sx127x_demo/CMakeLists.txt # +# 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 diff --git a/examples/sx127x_demo/Make.defs b/examples/sx127x_demo/Make.defs index 226a0982042..f569360a66e 100644 --- a/examples/sx127x_demo/Make.defs +++ b/examples/sx127x_demo/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sx127x_demo/Make.defs # +# 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/examples/sx127x_demo/Makefile b/examples/sx127x_demo/Makefile index e97f14ebd1f..d24378ee6b9 100644 --- a/examples/sx127x_demo/Makefile +++ b/examples/sx127x_demo/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/sx127x_demo/Makefile # +# 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/examples/sx127x_demo/sx127x_demo.c b/examples/sx127x_demo/sx127x_demo.c index 79fc54a4da0..05175a6edb5 100644 --- a/examples/sx127x_demo/sx127x_demo.c +++ b/examples/sx127x_demo/sx127x_demo.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/sx127x_demo/sx127x_demo.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/examples/system/CMakeLists.txt b/examples/system/CMakeLists.txt index 22b29bb7533..23ad2681268 100644 --- a/examples/system/CMakeLists.txt +++ b/examples/system/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/system/CMakeLists.txt # +# 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 diff --git a/examples/system/Make.defs b/examples/system/Make.defs index 2e624e8fec9..ab6d63674a7 100644 --- a/examples/system/Make.defs +++ b/examples/system/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/system/Make.defs # +# 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/examples/system/Makefile b/examples/system/Makefile index 19aa8750c01..ad4d9ba1d9d 100644 --- a/examples/system/Makefile +++ b/examples/system/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/system/Makefile # +# 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/examples/system/system_main.c b/examples/system/system_main.c index 0783dda8c6a..b0ff68d9006 100644 --- a/examples/system/system_main.c +++ b/examples/system/system_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/system/system_main.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/examples/tcp_ipc_client/CMakeLists.txt b/examples/tcp_ipc_client/CMakeLists.txt index a146e630427..2a82875ba34 100644 --- a/examples/tcp_ipc_client/CMakeLists.txt +++ b/examples/tcp_ipc_client/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/tcp_ipc_client/CMakeLists.txt # +# 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 diff --git a/examples/tcp_ipc_client/Make.defs b/examples/tcp_ipc_client/Make.defs index 54053a4a217..e55733809e4 100644 --- a/examples/tcp_ipc_client/Make.defs +++ b/examples/tcp_ipc_client/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/tcp_ipc_client/Make.defs # +# 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/examples/tcp_ipc_client/Makefile b/examples/tcp_ipc_client/Makefile index 39fe487839f..fe60b4732ae 100644 --- a/examples/tcp_ipc_client/Makefile +++ b/examples/tcp_ipc_client/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/tcp_ipc_client/Makefile # +# 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/examples/tcp_ipc_client/protocol.h b/examples/tcp_ipc_client/protocol.h index ecd546bc0a1..7e8f188becf 100644 --- a/examples/tcp_ipc_client/protocol.h +++ b/examples/tcp_ipc_client/protocol.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcp_ipc_client/protocol.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 @@ -38,4 +40,4 @@ typedef struct void send_msg_to_lpwan (unsigned char *msg, protocolo_ipc *pt_protocol); -#endif /* __APPS_EXAMPLES_TCP_IPC_CLIENT_PROTOCOL_H */ \ No newline at end of file +#endif /* __APPS_EXAMPLES_TCP_IPC_CLIENT_PROTOCOL_H */ diff --git a/examples/tcp_ipc_client/tcp_ipc_client_main.c b/examples/tcp_ipc_client/tcp_ipc_client_main.c index 79822a5bffd..f1d5943ef0a 100644 --- a/examples/tcp_ipc_client/tcp_ipc_client_main.c +++ b/examples/tcp_ipc_client/tcp_ipc_client_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcp_ipc_client/tcp_ipc_client_main.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/examples/tcp_ipc_server/CMakeLists.txt b/examples/tcp_ipc_server/CMakeLists.txt index f8705ae6cc3..cf1174d9d81 100644 --- a/examples/tcp_ipc_server/CMakeLists.txt +++ b/examples/tcp_ipc_server/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/tcp_ipc_server/CMakeLists.txt # +# 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 diff --git a/examples/tcp_ipc_server/Make.defs b/examples/tcp_ipc_server/Make.defs index 09664c68d9c..ea9f3533c34 100644 --- a/examples/tcp_ipc_server/Make.defs +++ b/examples/tcp_ipc_server/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/tcp_ipc_server/Make.defs # +# 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/examples/tcp_ipc_server/Makefile b/examples/tcp_ipc_server/Makefile index ddf704d06f7..6a9fd922718 100644 --- a/examples/tcp_ipc_server/Makefile +++ b/examples/tcp_ipc_server/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/tcp_ipc_server/Makefile # +# 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/examples/tcp_ipc_server/lorawan/uart_lorawan_layer.h b/examples/tcp_ipc_server/lorawan/uart_lorawan_layer.h index dcd19516465..10f45ca6a5b 100644 --- a/examples/tcp_ipc_server/lorawan/uart_lorawan_layer.h +++ b/examples/tcp_ipc_server/lorawan/uart_lorawan_layer.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcp_ipc_server/lorawan/uart_lorawan_layer.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 @@ -55,4 +57,4 @@ int lorawan_radioenge_send_msg(unsigned char * pt_payload_uplink_hexstring, int max_size_downlink, int time_to_wait_ms); -#endif /* __APPS_EXAMPLES_TCP_IPC_SERVER_LORAWAN_H */ \ No newline at end of file +#endif /* __APPS_EXAMPLES_TCP_IPC_SERVER_LORAWAN_H */ diff --git a/examples/tcp_ipc_server/protocol.c b/examples/tcp_ipc_server/protocol.c index 710b3b34e6f..9449faf4bd8 100644 --- a/examples/tcp_ipc_server/protocol.c +++ b/examples/tcp_ipc_server/protocol.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcp_ipc_server/protocol.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/examples/tcp_ipc_server/protocol.h b/examples/tcp_ipc_server/protocol.h index a49cae10e36..5031977d279 100644 --- a/examples/tcp_ipc_server/protocol.h +++ b/examples/tcp_ipc_server/protocol.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcp_ipc_server/protocol.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 @@ -38,4 +40,4 @@ typedef struct void send_msg_to_lpwan (unsigned char *msg, protocolo_ipc *pt_protocol); -#endif /* __APPS_EXAMPLES_SERVER_TCP_PROTOCOL_H */ \ No newline at end of file +#endif /* __APPS_EXAMPLES_SERVER_TCP_PROTOCOL_H */ diff --git a/examples/tcp_ipc_server/tcp_ipc_server_main.c b/examples/tcp_ipc_server/tcp_ipc_server_main.c index e7d0b50b0e2..af9aff823cd 100644 --- a/examples/tcp_ipc_server/tcp_ipc_server_main.c +++ b/examples/tcp_ipc_server/tcp_ipc_server_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcp_ipc_server/tcp_ipc_server_main.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/examples/tcp_ipc_server/uart_lorawan_layer.c b/examples/tcp_ipc_server/uart_lorawan_layer.c index e38348e2ef2..dedafa08dd6 100644 --- a/examples/tcp_ipc_server/uart_lorawan_layer.c +++ b/examples/tcp_ipc_server/uart_lorawan_layer.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcp_ipc_server/uart_lorawan_layer.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/examples/tcpblaster/CMakeLists.txt b/examples/tcpblaster/CMakeLists.txt index 29f69d4f288..5e72826c14f 100644 --- a/examples/tcpblaster/CMakeLists.txt +++ b/examples/tcpblaster/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/tcpblaster/CMakeLists.txt # +# 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 diff --git a/examples/tcpblaster/Make.defs b/examples/tcpblaster/Make.defs index 8c834a90fc9..bde73b878a7 100644 --- a/examples/tcpblaster/Make.defs +++ b/examples/tcpblaster/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/tcpblaster/Make.defs # +# 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/examples/tcpblaster/Makefile b/examples/tcpblaster/Makefile index c4fb38f7d70..50efef93a17 100644 --- a/examples/tcpblaster/Makefile +++ b/examples/tcpblaster/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/tcpblaster/Makefile # +# 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/examples/tcpblaster/tcpblaster.h b/examples/tcpblaster/tcpblaster.h index 97d5bd37c98..9fc7c4dcce9 100644 --- a/examples/tcpblaster/tcpblaster.h +++ b/examples/tcpblaster/tcpblaster.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcpblaster/tcpblaster.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 diff --git a/examples/tcpblaster/tcpblaster_client.c b/examples/tcpblaster/tcpblaster_client.c index 9411f53abd5..940651e4d59 100644 --- a/examples/tcpblaster/tcpblaster_client.c +++ b/examples/tcpblaster/tcpblaster_client.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcpblaster/tcpblaster_client.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/examples/tcpblaster/tcpblaster_cmdline.c b/examples/tcpblaster/tcpblaster_cmdline.c index d4739596156..6033fafd295 100644 --- a/examples/tcpblaster/tcpblaster_cmdline.c +++ b/examples/tcpblaster/tcpblaster_cmdline.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcpblaster/tcpblaster_cmdline.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/examples/tcpblaster/tcpblaster_host.c b/examples/tcpblaster/tcpblaster_host.c index 78868c2a7b7..f1667cc418b 100644 --- a/examples/tcpblaster/tcpblaster_host.c +++ b/examples/tcpblaster/tcpblaster_host.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcpblaster/tcpblaster_host.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/examples/tcpblaster/tcpblaster_host.cmake b/examples/tcpblaster/tcpblaster_host.cmake index 467b81af70c..e2bf12e1a36 100644 --- a/examples/tcpblaster/tcpblaster_host.cmake +++ b/examples/tcpblaster/tcpblaster_host.cmake @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/tcpblaster/tcpblaster_host.cmake # +# 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 diff --git a/examples/tcpblaster/tcpblaster_netinit.c b/examples/tcpblaster/tcpblaster_netinit.c index 03fec0965ad..6007674f4b2 100644 --- a/examples/tcpblaster/tcpblaster_netinit.c +++ b/examples/tcpblaster/tcpblaster_netinit.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcpblaster/tcpblaster_netinit.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/examples/tcpblaster/tcpblaster_server.c b/examples/tcpblaster/tcpblaster_server.c index 74fb752d4cf..17f5244d7f7 100644 --- a/examples/tcpblaster/tcpblaster_server.c +++ b/examples/tcpblaster/tcpblaster_server.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcpblaster/tcpblaster_server.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/examples/tcpblaster/tcpblaster_target1.c b/examples/tcpblaster/tcpblaster_target1.c index fcfdae1126c..f46fd0da82b 100644 --- a/examples/tcpblaster/tcpblaster_target1.c +++ b/examples/tcpblaster/tcpblaster_target1.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcpblaster/tcpblaster_target1.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/examples/tcpblaster/tcpblaster_target2.c b/examples/tcpblaster/tcpblaster_target2.c index bd32f92a691..f14107c7d7a 100644 --- a/examples/tcpblaster/tcpblaster_target2.c +++ b/examples/tcpblaster/tcpblaster_target2.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcpblaster/tcpblaster_target2.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/examples/tcpecho/CMakeLists.txt b/examples/tcpecho/CMakeLists.txt index 8e5b9ff7a30..c39b5892a67 100644 --- a/examples/tcpecho/CMakeLists.txt +++ b/examples/tcpecho/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/tcpecho/CMakeLists.txt # +# 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 diff --git a/examples/tcpecho/Make.defs b/examples/tcpecho/Make.defs index fd6c24f69e9..8670a03ad0a 100644 --- a/examples/tcpecho/Make.defs +++ b/examples/tcpecho/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/tcpecho/Make.defs # +# 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/examples/tcpecho/Makefile b/examples/tcpecho/Makefile index 2ad89140e77..b1e2888bdf1 100644 --- a/examples/tcpecho/Makefile +++ b/examples/tcpecho/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/tcpecho/Makefile # +# 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/examples/tcpecho/tcpecho_main.c b/examples/tcpecho/tcpecho_main.c index 6ad687679b6..fac12f898c2 100644 --- a/examples/tcpecho/tcpecho_main.c +++ b/examples/tcpecho/tcpecho_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tcpecho/tcpecho_main.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/examples/telnetd/CMakeLists.txt b/examples/telnetd/CMakeLists.txt index 941b53524b8..2f128041719 100644 --- a/examples/telnetd/CMakeLists.txt +++ b/examples/telnetd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/telnetd/CMakeLists.txt # +# 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 diff --git a/examples/telnetd/Make.defs b/examples/telnetd/Make.defs index 4bbccca3ee9..59d1fe357f2 100644 --- a/examples/telnetd/Make.defs +++ b/examples/telnetd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/telnetd/Make.defs # +# 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/examples/telnetd/Makefile b/examples/telnetd/Makefile index 35ebef77cab..427cf3a7f8a 100644 --- a/examples/telnetd/Makefile +++ b/examples/telnetd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/telnetd/Makefile # +# 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/examples/telnetd/telnetd.c b/examples/telnetd/telnetd.c index 1716f145b1b..270e6d53b07 100644 --- a/examples/telnetd/telnetd.c +++ b/examples/telnetd/telnetd.c @@ -1,14 +1,11 @@ /**************************************************************************** * apps/examples/telnetd/telnetd.c * - * Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * This is a leverage of similar logic from uIP: - * - * Author: Adam Dunkels - * Copyright (c) 2003, Adam Dunkels. - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2012, 2017 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2003, Adam Dunkels. All rights reserved. + * SPDX-FileContributor: Gregory Nutt + * SPDX-FileContributor: Adam Dunkels * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/examples/telnetd/telnetd.h b/examples/telnetd/telnetd.h index 141ba3c5e6a..d3661537a66 100644 --- a/examples/telnetd/telnetd.h +++ b/examples/telnetd/telnetd.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/telnetd/telnetd.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 diff --git a/examples/termios/CMakeLists.txt b/examples/termios/CMakeLists.txt index e4bfb640210..186686694b7 100644 --- a/examples/termios/CMakeLists.txt +++ b/examples/termios/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/termios/CMakeLists.txt # +# 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 diff --git a/examples/termios/Make.defs b/examples/termios/Make.defs index 06ac9be4629..dc6dd3a5a5f 100644 --- a/examples/termios/Make.defs +++ b/examples/termios/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/termios/Make.defs # +# 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/examples/termios/Makefile b/examples/termios/Makefile index 1429523256d..84cb78ea359 100644 --- a/examples/termios/Makefile +++ b/examples/termios/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/termios/Makefile # +# 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/examples/termios/termios_main.c b/examples/termios/termios_main.c index 5f3039ee46a..91958a13246 100644 --- a/examples/termios/termios_main.c +++ b/examples/termios/termios_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/termios/termios_main.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/examples/thttpd/CMakeLists.txt b/examples/thttpd/CMakeLists.txt index 4150f1110d1..1e8a4336ced 100644 --- a/examples/thttpd/CMakeLists.txt +++ b/examples/thttpd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/thttpd/CMakeLists.txt # +# 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 diff --git a/examples/thttpd/Make.defs b/examples/thttpd/Make.defs index 162aa4cc2eb..4966689fc49 100644 --- a/examples/thttpd/Make.defs +++ b/examples/thttpd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/thttpd/Make.defs # +# 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/examples/thttpd/Makefile b/examples/thttpd/Makefile index 6ad986674bd..1891b10bf02 100644 --- a/examples/thttpd/Makefile +++ b/examples/thttpd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/thttpd/Makefile # +# 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/examples/thttpd/content/Makefile.binfs b/examples/thttpd/content/Makefile.binfs index 42dd1082571..60a6a74ed01 100644 --- a/examples/thttpd/content/Makefile.binfs +++ b/examples/thttpd/content/Makefile.binfs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/thttpd/content/Makefile.binfs # +# 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/examples/thttpd/content/Makefile.nxflat b/examples/thttpd/content/Makefile.nxflat index 7d4c91961c4..795c8caf0f1 100644 --- a/examples/thttpd/content/Makefile.nxflat +++ b/examples/thttpd/content/Makefile.nxflat @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/thttpd/content/Makefile.nxflat # +# 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/examples/thttpd/content/hello/Makefile b/examples/thttpd/content/hello/Makefile index fceb1c36612..67becfcf7d4 100644 --- a/examples/thttpd/content/hello/Makefile +++ b/examples/thttpd/content/hello/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/thttpd/content/hello/Makefile # +# 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/examples/thttpd/content/hello/hello.c b/examples/thttpd/content/hello/hello.c index 7c6b4b8e0bc..5a74ffeddd0 100644 --- a/examples/thttpd/content/hello/hello.c +++ b/examples/thttpd/content/hello/hello.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/thttpd/content/hello/hello.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/examples/thttpd/content/tasks/Makefile b/examples/thttpd/content/tasks/Makefile index b1a2f40355d..5fcec6df60e 100644 --- a/examples/thttpd/content/tasks/Makefile +++ b/examples/thttpd/content/tasks/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/thttpd/content/tasks/Makefile # +# 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/examples/thttpd/content/tasks/tasks.c b/examples/thttpd/content/tasks/tasks.c index 5edb15c08f3..da7347678a4 100644 --- a/examples/thttpd/content/tasks/tasks.c +++ b/examples/thttpd/content/tasks/tasks.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/thttpd/content/tasks/tasks.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/examples/thttpd/thttpd_main.c b/examples/thttpd/thttpd_main.c index 9ed04917f82..291e7552c75 100644 --- a/examples/thttpd/thttpd_main.c +++ b/examples/thttpd/thttpd_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/thttpd/thttpd_main.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/examples/tiff/CMakeLists.txt b/examples/tiff/CMakeLists.txt index ca3558f5a1c..1e3059a32d3 100644 --- a/examples/tiff/CMakeLists.txt +++ b/examples/tiff/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/tiff/CMakeLists.txt # +# 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 diff --git a/examples/tiff/Make.defs b/examples/tiff/Make.defs index 51e773d6394..8f8fa9eeb7a 100644 --- a/examples/tiff/Make.defs +++ b/examples/tiff/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/tiff/Make.defs # +# 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/examples/tiff/Makefile b/examples/tiff/Makefile index d04aa8906b9..a5afb58db4e 100644 --- a/examples/tiff/Makefile +++ b/examples/tiff/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/tiff/Makefile # +# 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/examples/tiff/tiff_main.c b/examples/tiff/tiff_main.c index 72d5afb1642..e72bc7482e1 100644 --- a/examples/tiff/tiff_main.c +++ b/examples/tiff/tiff_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/tiff/tiff_main.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/examples/timer/CMakeLists.txt b/examples/timer/CMakeLists.txt index ccd7c036d2c..897ff2ffa64 100644 --- a/examples/timer/CMakeLists.txt +++ b/examples/timer/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/timer/CMakeLists.txt # +# 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 diff --git a/examples/timer/Make.defs b/examples/timer/Make.defs index cc24845fafd..bb3ad4b0352 100644 --- a/examples/timer/Make.defs +++ b/examples/timer/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/timer/Make.defs # +# 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/examples/timer/Makefile b/examples/timer/Makefile index b2046da0b35..5e01ed5fb5d 100644 --- a/examples/timer/Makefile +++ b/examples/timer/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/timer/Makefile # +# 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/examples/timer/timer_main.c b/examples/timer/timer_main.c index 193202a9bb5..eec3cbd5a76 100644 --- a/examples/timer/timer_main.c +++ b/examples/timer/timer_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/timer/timer_main.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/examples/timer_gpio/CMakeLists.txt b/examples/timer_gpio/CMakeLists.txt index 14ef20b869a..2d64ec3531d 100644 --- a/examples/timer_gpio/CMakeLists.txt +++ b/examples/timer_gpio/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/timer_gpio/CMakeLists.txt # +# 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 diff --git a/examples/timer_gpio/Make.defs b/examples/timer_gpio/Make.defs index ed3769801ab..ca5e2034ec3 100644 --- a/examples/timer_gpio/Make.defs +++ b/examples/timer_gpio/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/timer_gpio/Make.defs # +# 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/examples/timer_gpio/Makefile b/examples/timer_gpio/Makefile index 6dd0841ed87..c324f17f3d2 100644 --- a/examples/timer_gpio/Makefile +++ b/examples/timer_gpio/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/timer_gpio/Makefile # +# 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/examples/timer_gpio/timer_gpio_main.c b/examples/timer_gpio/timer_gpio_main.c index 8ea830d06f7..f39fa125680 100644 --- a/examples/timer_gpio/timer_gpio_main.c +++ b/examples/timer_gpio/timer_gpio_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/timer_gpio/timer_gpio_main.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/examples/tlpi/Make.defs b/examples/tlpi/Make.defs index 2809debfe72..3177b58aa07 100644 --- a/examples/tlpi/Make.defs +++ b/examples/tlpi/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/tlpi/Make.defs # +# 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/examples/tlpi/Makefile b/examples/tlpi/Makefile index 972d35764ce..519c93d31d4 100644 --- a/examples/tlpi/Makefile +++ b/examples/tlpi/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/tlpi/Makefile # +# 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/examples/touchscreen/CMakeLists.txt b/examples/touchscreen/CMakeLists.txt index 3005693d1fc..f9630d8f473 100644 --- a/examples/touchscreen/CMakeLists.txt +++ b/examples/touchscreen/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/touchscreen/CMakeLists.txt # +# 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 diff --git a/examples/touchscreen/Make.defs b/examples/touchscreen/Make.defs index 37d5c93f514..10c7660894b 100644 --- a/examples/touchscreen/Make.defs +++ b/examples/touchscreen/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/touchscreen/Make.defs # +# 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/examples/touchscreen/Makefile b/examples/touchscreen/Makefile index 217cb5f0c6b..9102bc50ff0 100644 --- a/examples/touchscreen/Makefile +++ b/examples/touchscreen/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/touchscreen/Makefile # +# 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/examples/touchscreen/tc.h b/examples/touchscreen/tc.h index d525eee5f4e..20741783384 100644 --- a/examples/touchscreen/tc.h +++ b/examples/touchscreen/tc.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/touchscreen/tc.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 diff --git a/examples/touchscreen/tc_main.c b/examples/touchscreen/tc_main.c index cff8d9f516e..129de8d27f5 100644 --- a/examples/touchscreen/tc_main.c +++ b/examples/touchscreen/tc_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/touchscreen/tc_main.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/examples/udgram/CMakeLists.txt b/examples/udgram/CMakeLists.txt index c897cad3677..2cd497dcba9 100644 --- a/examples/udgram/CMakeLists.txt +++ b/examples/udgram/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/udgram/CMakeLists.txt # +# 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 diff --git a/examples/udgram/Make.defs b/examples/udgram/Make.defs index a2389ebfe52..7db4f826294 100644 --- a/examples/udgram/Make.defs +++ b/examples/udgram/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/udgram/Make.defs # +# 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/examples/udgram/Makefile b/examples/udgram/Makefile index 160dbe02542..57b32ba36dd 100644 --- a/examples/udgram/Makefile +++ b/examples/udgram/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/udgram/Makefile # +# 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/examples/udgram/udgram.h b/examples/udgram/udgram.h index 84c5adf0468..273dd4a996a 100644 --- a/examples/udgram/udgram.h +++ b/examples/udgram/udgram.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udgram/udgram.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 diff --git a/examples/udgram/udgram_client.c b/examples/udgram/udgram_client.c index c12d3f8994d..f60abedf619 100644 --- a/examples/udgram/udgram_client.c +++ b/examples/udgram/udgram_client.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udgram/udgram_client.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/examples/udgram/udgram_server.c b/examples/udgram/udgram_server.c index 703baffa15c..49674ff3619 100644 --- a/examples/udgram/udgram_server.c +++ b/examples/udgram/udgram_server.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udgram/udgram_server.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/examples/udp/CMakeLists.txt b/examples/udp/CMakeLists.txt index d5030a05c23..996b9a9be67 100644 --- a/examples/udp/CMakeLists.txt +++ b/examples/udp/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/udp/CMakeLists.txt # +# 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 diff --git a/examples/udp/Make.defs b/examples/udp/Make.defs index efdd724f19c..c8db5a639fa 100644 --- a/examples/udp/Make.defs +++ b/examples/udp/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/udp/Make.defs # +# 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/examples/udp/Makefile b/examples/udp/Makefile index a0cc07608d5..cb3f959336e 100644 --- a/examples/udp/Makefile +++ b/examples/udp/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/udp/Makefile # +# 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/examples/udp/udp.h b/examples/udp/udp.h index 77d1f928972..415317f50a0 100644 --- a/examples/udp/udp.h +++ b/examples/udp/udp.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udp/udp.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 diff --git a/examples/udp/udp_client.c b/examples/udp/udp_client.c index 220637b1c34..f3d3f19dc3f 100644 --- a/examples/udp/udp_client.c +++ b/examples/udp/udp_client.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udp/udp_client.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/examples/udp/udp_cmdline.c b/examples/udp/udp_cmdline.c index 64cb7142573..cefff358610 100644 --- a/examples/udp/udp_cmdline.c +++ b/examples/udp/udp_cmdline.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udp/udp_cmdline.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/examples/udp/udp_host.c b/examples/udp/udp_host.c index f0bf0a99bfb..5f4aac5f377 100644 --- a/examples/udp/udp_host.c +++ b/examples/udp/udp_host.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udp/udp_host.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/examples/udp/udp_netinit.c b/examples/udp/udp_netinit.c index e937b0c2e0d..3cd2625b7fd 100644 --- a/examples/udp/udp_netinit.c +++ b/examples/udp/udp_netinit.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udp/udp_netinit.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/examples/udp/udp_server.c b/examples/udp/udp_server.c index cd1369753bb..6e642e65410 100644 --- a/examples/udp/udp_server.c +++ b/examples/udp/udp_server.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udp/udp_server.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/examples/udp/udp_target1.c b/examples/udp/udp_target1.c index 3db14c05fe2..656213a291f 100644 --- a/examples/udp/udp_target1.c +++ b/examples/udp/udp_target1.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udp/udp_target1.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/examples/udp/udp_target2.c b/examples/udp/udp_target2.c index 03104ff92e9..d0abce67e58 100644 --- a/examples/udp/udp_target2.c +++ b/examples/udp/udp_target2.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udp/udp_target2.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/examples/udpblaster/CMakeLists.txt b/examples/udpblaster/CMakeLists.txt index 3c94fd9d778..7a7f612a3d2 100644 --- a/examples/udpblaster/CMakeLists.txt +++ b/examples/udpblaster/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/udpblaster/CMakeLists.txt # +# 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 diff --git a/examples/udpblaster/Make.defs b/examples/udpblaster/Make.defs index 3e8faec8aa5..4068015305b 100644 --- a/examples/udpblaster/Make.defs +++ b/examples/udpblaster/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/udpblaster/Make.defs # +# 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/examples/udpblaster/Makefile b/examples/udpblaster/Makefile index 0d4dce30d20..2db46b110e5 100644 --- a/examples/udpblaster/Makefile +++ b/examples/udpblaster/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/udpblaster/Makefile # +# 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/examples/udpblaster/udpblaster.h b/examples/udpblaster/udpblaster.h index 2f7c4a484b8..ff727bc58e9 100644 --- a/examples/udpblaster/udpblaster.h +++ b/examples/udpblaster/udpblaster.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udpblaster/udpblaster.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 diff --git a/examples/udpblaster/udpblaster_host.c b/examples/udpblaster/udpblaster_host.c index a39a506f5fd..d3609c734e3 100644 --- a/examples/udpblaster/udpblaster_host.c +++ b/examples/udpblaster/udpblaster_host.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udpblaster/udpblaster_host.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/examples/udpblaster/udpblaster_host.cmake b/examples/udpblaster/udpblaster_host.cmake index 3e5e2846cbb..2b132a694d1 100644 --- a/examples/udpblaster/udpblaster_host.cmake +++ b/examples/udpblaster/udpblaster_host.cmake @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/udpblaster/udpblaster.cmake # +# 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 diff --git a/examples/udpblaster/udpblaster_target.c b/examples/udpblaster/udpblaster_target.c index 1c12f10f03b..0df0072d4f9 100644 --- a/examples/udpblaster/udpblaster_target.c +++ b/examples/udpblaster/udpblaster_target.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udpblaster/udpblaster_target.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/examples/udpblaster/udpblaster_text.c b/examples/udpblaster/udpblaster_text.c index 0715f86f991..367dd5f0f99 100644 --- a/examples/udpblaster/udpblaster_text.c +++ b/examples/udpblaster/udpblaster_text.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/udpblaster/udpblaster_text.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/examples/uid/CMakeLists.txt b/examples/uid/CMakeLists.txt index 270ba9afbd5..7ec80a4861f 100644 --- a/examples/uid/CMakeLists.txt +++ b/examples/uid/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/uid/CMakeLists.txt # +# 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 diff --git a/examples/uid/Make.defs b/examples/uid/Make.defs index c4ea55340e4..aee047fcfab 100644 --- a/examples/uid/Make.defs +++ b/examples/uid/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/uid/Make.defs # +# 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/examples/uid/Makefile b/examples/uid/Makefile index e17848e81c2..fa1d79f96f4 100644 --- a/examples/uid/Makefile +++ b/examples/uid/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/uid/Makefile # +# 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/examples/uid/uid_main.c b/examples/uid/uid_main.c index f5f6e5fa0c3..cc4bfc6fd8a 100644 --- a/examples/uid/uid_main.c +++ b/examples/uid/uid_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/uid/uid_main.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/examples/unionfs/CMakeLists.txt b/examples/unionfs/CMakeLists.txt index ee83848e962..10471bfb932 100644 --- a/examples/unionfs/CMakeLists.txt +++ b/examples/unionfs/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/unionfs/CMakeLists.txt # +# 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 diff --git a/examples/unionfs/Make.defs b/examples/unionfs/Make.defs index 6912a1078cb..73c0d1772cd 100644 --- a/examples/unionfs/Make.defs +++ b/examples/unionfs/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/unionfs/Make.defs # +# 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/examples/unionfs/Makefile b/examples/unionfs/Makefile index ba95b901c51..30064e69ca2 100644 --- a/examples/unionfs/Makefile +++ b/examples/unionfs/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/unionfs/Makefile # +# 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/examples/unionfs/unionfs_main.c b/examples/unionfs/unionfs_main.c index 31397bc6183..b1a4a50209f 100644 --- a/examples/unionfs/unionfs_main.c +++ b/examples/unionfs/unionfs_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/unionfs/unionfs_main.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/examples/usbserial/CMakeLists.txt b/examples/usbserial/CMakeLists.txt index 09c04a72be2..6ddd3a4fbdb 100644 --- a/examples/usbserial/CMakeLists.txt +++ b/examples/usbserial/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/usbserial/CMakeLists.txt # +# 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 diff --git a/examples/usbserial/Make.defs b/examples/usbserial/Make.defs index 44905ce5966..8fd759570cf 100644 --- a/examples/usbserial/Make.defs +++ b/examples/usbserial/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/usbserial/Make.defs # +# 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/examples/usbserial/Makefile b/examples/usbserial/Makefile index 808a11de374..3146fd11621 100644 --- a/examples/usbserial/Makefile +++ b/examples/usbserial/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/usbserial/Makefile # +# 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/examples/usbserial/Makefile.host b/examples/usbserial/Makefile.host index 3f50bf1308d..d8bfb3eaacd 100644 --- a/examples/usbserial/Makefile.host +++ b/examples/usbserial/Makefile.host @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/usbserial/Makefile.host # +# 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/examples/usbserial/host.c b/examples/usbserial/host.c index 2b158a388d3..a001ef5eb7b 100644 --- a/examples/usbserial/host.c +++ b/examples/usbserial/host.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usbserial/host.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/examples/usbserial/usbserial_main.c b/examples/usbserial/usbserial_main.c index 443834a5428..66e4790b962 100644 --- a/examples/usbserial/usbserial_main.c +++ b/examples/usbserial/usbserial_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usbserial/usbserial_main.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/examples/userfs/CMakeLists.txt b/examples/userfs/CMakeLists.txt index 9f7f25e23e6..b594dbf7966 100644 --- a/examples/userfs/CMakeLists.txt +++ b/examples/userfs/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/userfs/CMakeLists.txt # +# 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 diff --git a/examples/userfs/Make.defs b/examples/userfs/Make.defs index b3f95459423..03ec72e7297 100644 --- a/examples/userfs/Make.defs +++ b/examples/userfs/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/userfs/Make.defs # +# 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/examples/userfs/Makefile b/examples/userfs/Makefile index 85cd484bac5..3b4e2e69bfc 100644 --- a/examples/userfs/Makefile +++ b/examples/userfs/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/userfs/Makefile # +# 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/examples/userfs/userfs_main.c b/examples/userfs/userfs_main.c index f76c04ed059..a2cf97ea579 100644 --- a/examples/userfs/userfs_main.c +++ b/examples/userfs/userfs_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/userfs/userfs_main.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/examples/usrsocktest/CMakeLists.txt b/examples/usrsocktest/CMakeLists.txt index 6a07dd6a7b3..a657ae2c8d3 100644 --- a/examples/usrsocktest/CMakeLists.txt +++ b/examples/usrsocktest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/usrsocktest/CMakeLists.txt # +# 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 diff --git a/examples/usrsocktest/Make.defs b/examples/usrsocktest/Make.defs index 0ae117ac205..d107b19c366 100644 --- a/examples/usrsocktest/Make.defs +++ b/examples/usrsocktest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/usrsocktest/Make.defs # +# 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/examples/usrsocktest/Makefile b/examples/usrsocktest/Makefile index 2840881fa5f..6d4a2b98bf6 100644 --- a/examples/usrsocktest/Makefile +++ b/examples/usrsocktest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/usrsocktest/Makefile # +# 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/examples/usrsocktest/defines.h b/examples/usrsocktest/defines.h index 84230f8b5d5..93814122343 100644 --- a/examples/usrsocktest/defines.h +++ b/examples/usrsocktest/defines.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/defines.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 diff --git a/examples/usrsocktest/usrsocktest_basic_connect.c b/examples/usrsocktest/usrsocktest_basic_connect.c index b6fef5afcd2..b3f651d122e 100644 --- a/examples/usrsocktest/usrsocktest_basic_connect.c +++ b/examples/usrsocktest/usrsocktest_basic_connect.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_basic_connect.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/examples/usrsocktest/usrsocktest_basic_daemon.c b/examples/usrsocktest/usrsocktest_basic_daemon.c index 05561dd0cfd..35f0568e3ef 100644 --- a/examples/usrsocktest/usrsocktest_basic_daemon.c +++ b/examples/usrsocktest/usrsocktest_basic_daemon.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_basic_daemon.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/examples/usrsocktest/usrsocktest_basic_getsockname.c b/examples/usrsocktest/usrsocktest_basic_getsockname.c index 91e0c6b9e44..ff6377c445f 100644 --- a/examples/usrsocktest/usrsocktest_basic_getsockname.c +++ b/examples/usrsocktest/usrsocktest_basic_getsockname.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_basic_getsockname.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/examples/usrsocktest/usrsocktest_basic_getsockopt.c b/examples/usrsocktest/usrsocktest_basic_getsockopt.c index b1802e4bb77..1c6300d6e9f 100644 --- a/examples/usrsocktest/usrsocktest_basic_getsockopt.c +++ b/examples/usrsocktest/usrsocktest_basic_getsockopt.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_basic_getsockopt.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/examples/usrsocktest/usrsocktest_basic_send.c b/examples/usrsocktest/usrsocktest_basic_send.c index d053e572e34..7a7fbb5a95f 100644 --- a/examples/usrsocktest/usrsocktest_basic_send.c +++ b/examples/usrsocktest/usrsocktest_basic_send.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_basic_send.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/examples/usrsocktest/usrsocktest_basic_setsockopt.c b/examples/usrsocktest/usrsocktest_basic_setsockopt.c index e0e2e2cedde..f38e57db922 100644 --- a/examples/usrsocktest/usrsocktest_basic_setsockopt.c +++ b/examples/usrsocktest/usrsocktest_basic_setsockopt.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_basic_setsockopt.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/examples/usrsocktest/usrsocktest_block_recv.c b/examples/usrsocktest/usrsocktest_block_recv.c index 6b534bdeecb..b3832724d30 100644 --- a/examples/usrsocktest/usrsocktest_block_recv.c +++ b/examples/usrsocktest/usrsocktest_block_recv.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_block_recv.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/examples/usrsocktest/usrsocktest_block_send.c b/examples/usrsocktest/usrsocktest_block_send.c index a51fadb13d8..87d9d9e30f9 100644 --- a/examples/usrsocktest/usrsocktest_block_send.c +++ b/examples/usrsocktest/usrsocktest_block_send.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_block_send.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/examples/usrsocktest/usrsocktest_chardev.c b/examples/usrsocktest/usrsocktest_chardev.c index 347944ebf24..9ba0eb41309 100644 --- a/examples/usrsocktest/usrsocktest_chardev.c +++ b/examples/usrsocktest/usrsocktest_chardev.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_chardev.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/examples/usrsocktest/usrsocktest_daemon.c b/examples/usrsocktest/usrsocktest_daemon.c index ef6da99b930..3d84d8396c5 100644 --- a/examples/usrsocktest/usrsocktest_daemon.c +++ b/examples/usrsocktest/usrsocktest_daemon.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_daemon.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/examples/usrsocktest/usrsocktest_main.c b/examples/usrsocktest/usrsocktest_main.c index 9545eac0733..d09036c386d 100644 --- a/examples/usrsocktest/usrsocktest_main.c +++ b/examples/usrsocktest/usrsocktest_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_main.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/examples/usrsocktest/usrsocktest_multi_thread.c b/examples/usrsocktest/usrsocktest_multi_thread.c index 7daaa78769e..8c37643109d 100644 --- a/examples/usrsocktest/usrsocktest_multi_thread.c +++ b/examples/usrsocktest/usrsocktest_multi_thread.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_multi_thread.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/examples/usrsocktest/usrsocktest_noblock_connect.c b/examples/usrsocktest/usrsocktest_noblock_connect.c index c534c7aa6fa..820ea9f50f4 100644 --- a/examples/usrsocktest/usrsocktest_noblock_connect.c +++ b/examples/usrsocktest/usrsocktest_noblock_connect.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_noblock_connect.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/examples/usrsocktest/usrsocktest_noblock_recv.c b/examples/usrsocktest/usrsocktest_noblock_recv.c index 2ebabf43b05..146471d6ffe 100644 --- a/examples/usrsocktest/usrsocktest_noblock_recv.c +++ b/examples/usrsocktest/usrsocktest_noblock_recv.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_noblock_recv.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/examples/usrsocktest/usrsocktest_noblock_send.c b/examples/usrsocktest/usrsocktest_noblock_send.c index ebde5fbbf09..7b039f3ae2b 100644 --- a/examples/usrsocktest/usrsocktest_noblock_send.c +++ b/examples/usrsocktest/usrsocktest_noblock_send.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_noblock_send.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/examples/usrsocktest/usrsocktest_nodaemon.c b/examples/usrsocktest/usrsocktest_nodaemon.c index d5a256ab364..59c58465bd8 100644 --- a/examples/usrsocktest/usrsocktest_nodaemon.c +++ b/examples/usrsocktest/usrsocktest_nodaemon.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_nodaemon.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/examples/usrsocktest/usrsocktest_poll.c b/examples/usrsocktest/usrsocktest_poll.c index 4203653c3eb..8ab7f6ce01e 100644 --- a/examples/usrsocktest/usrsocktest_poll.c +++ b/examples/usrsocktest/usrsocktest_poll.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_poll.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/examples/usrsocktest/usrsocktest_remote_disconnect.c b/examples/usrsocktest/usrsocktest_remote_disconnect.c index 7c817e3af2d..1e3681f9d95 100644 --- a/examples/usrsocktest/usrsocktest_remote_disconnect.c +++ b/examples/usrsocktest/usrsocktest_remote_disconnect.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_remote_disconnect.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/examples/usrsocktest/usrsocktest_wake_with_signal.c b/examples/usrsocktest/usrsocktest_wake_with_signal.c index 5a63b57f9e4..800eb571d43 100644 --- a/examples/usrsocktest/usrsocktest_wake_with_signal.c +++ b/examples/usrsocktest/usrsocktest_wake_with_signal.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/usrsocktest/usrsocktest_wake_with_signal.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/examples/ustream/CMakeLists.txt b/examples/ustream/CMakeLists.txt index a335e1ce7f7..262c4770a6d 100644 --- a/examples/ustream/CMakeLists.txt +++ b/examples/ustream/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/ustream/CMakeLists.txt # +# 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 diff --git a/examples/ustream/Make.defs b/examples/ustream/Make.defs index 4cf4021f398..ec06c89a0f7 100644 --- a/examples/ustream/Make.defs +++ b/examples/ustream/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ustream/Make.defs # +# 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/examples/ustream/Makefile b/examples/ustream/Makefile index 16206b21485..5be3c868664 100644 --- a/examples/ustream/Makefile +++ b/examples/ustream/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ustream/Makefile # +# 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/examples/ustream/ustream.h b/examples/ustream/ustream.h index f74bf48f410..193fa055179 100644 --- a/examples/ustream/ustream.h +++ b/examples/ustream/ustream.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ustream/ustream.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 diff --git a/examples/ustream/ustream_client.c b/examples/ustream/ustream_client.c index baad92d45b7..c7e69a56b34 100644 --- a/examples/ustream/ustream_client.c +++ b/examples/ustream/ustream_client.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ustream/ustream_client.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/examples/ustream/ustream_server.c b/examples/ustream/ustream_server.c index b1744a339b0..8f6fffe406c 100644 --- a/examples/ustream/ustream_server.c +++ b/examples/ustream/ustream_server.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ustream/ustream_server.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/examples/veml6070/CMakeLists.txt b/examples/veml6070/CMakeLists.txt index 47f513a2509..2edc1015d7b 100644 --- a/examples/veml6070/CMakeLists.txt +++ b/examples/veml6070/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/veml6070/CMakeLists.txt # +# 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 diff --git a/examples/veml6070/Make.defs b/examples/veml6070/Make.defs index a2e051e4017..4b4c59a9d5e 100644 --- a/examples/veml6070/Make.defs +++ b/examples/veml6070/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/veml6070/Make.defs # +# 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/examples/veml6070/Makefile b/examples/veml6070/Makefile index 32195bf7266..1a68781c311 100644 --- a/examples/veml6070/Makefile +++ b/examples/veml6070/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/veml6070/Makefile # +# 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/examples/veml6070/veml6070_main.c b/examples/veml6070/veml6070_main.c index facacce5e5f..da5f23b3270 100644 --- a/examples/veml6070/veml6070_main.c +++ b/examples/veml6070/veml6070_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/veml6070/veml6070_main.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/examples/wamr_module/CMakeLists.txt b/examples/wamr_module/CMakeLists.txt index 540ce7f4062..8319424a62d 100644 --- a/examples/wamr_module/CMakeLists.txt +++ b/examples/wamr_module/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/wamr_module/CMakeLists.txt # +# 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 diff --git a/examples/wamr_module/Make.defs b/examples/wamr_module/Make.defs index f4464946cc8..7d4e5e27423 100644 --- a/examples/wamr_module/Make.defs +++ b/examples/wamr_module/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/wamr_module/Make.defs # +# 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/examples/wamr_module/Makefile b/examples/wamr_module/Makefile index 56777bd4e38..448a5e066a3 100644 --- a/examples/wamr_module/Makefile +++ b/examples/wamr_module/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/wamr_module/Makefile # +# 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/examples/wamr_module/module_hello.c b/examples/wamr_module/module_hello.c index dde411f0bef..a406e297882 100644 --- a/examples/wamr_module/module_hello.c +++ b/examples/wamr_module/module_hello.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/wamr_module/module_hello.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/examples/watchdog/CMakeLists.txt b/examples/watchdog/CMakeLists.txt index 47ad53cd9b2..f879250e5e6 100644 --- a/examples/watchdog/CMakeLists.txt +++ b/examples/watchdog/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/watchdog/CMakeLists.txt # +# 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 diff --git a/examples/watchdog/Make.defs b/examples/watchdog/Make.defs index c18a8f2416b..fbf7ad3be68 100644 --- a/examples/watchdog/Make.defs +++ b/examples/watchdog/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/watchdog/Make.defs # +# 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/examples/watchdog/Makefile b/examples/watchdog/Makefile index b8fca35de3a..ccb004a44ff 100644 --- a/examples/watchdog/Makefile +++ b/examples/watchdog/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/watchdog/Makefile # +# 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/examples/watchdog/watchdog.h b/examples/watchdog/watchdog.h index 7c90ca6ff8e..45c66065d58 100644 --- a/examples/watchdog/watchdog.h +++ b/examples/watchdog/watchdog.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/watchdog/watchdog.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 diff --git a/examples/watchdog/watchdog_main.c b/examples/watchdog/watchdog_main.c index 61108870223..06a36c75d93 100644 --- a/examples/watchdog/watchdog_main.c +++ b/examples/watchdog/watchdog_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/watchdog/watchdog_main.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/examples/watched/CMakeLists.txt b/examples/watched/CMakeLists.txt index 05127529a3d..e6c89fa70c3 100644 --- a/examples/watched/CMakeLists.txt +++ b/examples/watched/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/watched/CMakeLists.txt # +# 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 diff --git a/examples/watched/Make.defs b/examples/watched/Make.defs index 62edd875750..530221fd02b 100644 --- a/examples/watched/Make.defs +++ b/examples/watched/Make.defs @@ -1,6 +1,7 @@ ############################################################################ # apps/examples/watched/Make.defs -# Adds selected applications to apps/ build +# +# 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 diff --git a/examples/watched/Makefile b/examples/watched/Makefile index 7d0a746ebe8..d3407607151 100644 --- a/examples/watched/Makefile +++ b/examples/watched/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/watched/Makefile # +# 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 @@ -32,4 +34,4 @@ MODULE = $(CONFIG_EXAMPLES_WATCHED) CSRCS = watched.c MAINSRC = watched_main.c -include $(APPDIR)/Application.mk \ No newline at end of file +include $(APPDIR)/Application.mk diff --git a/examples/watched/watched.c b/examples/watched/watched.c index 2f6a49df72a..cad7095c0e8 100644 --- a/examples/watched/watched.c +++ b/examples/watched/watched.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/watched/watched.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/examples/watched/watched.h b/examples/watched/watched.h index c49907b9d76..e483bd7e230 100644 --- a/examples/watched/watched.h +++ b/examples/watched/watched.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/watched/watched.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 diff --git a/examples/watched/watched_main.c b/examples/watched/watched_main.c index 80994f645ad..343f636fe0f 100644 --- a/examples/watched/watched_main.c +++ b/examples/watched/watched_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/watched/watched_main.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/examples/watcher/CMakeLists.txt b/examples/watcher/CMakeLists.txt index 4f4a526dbc4..daf17f48466 100644 --- a/examples/watcher/CMakeLists.txt +++ b/examples/watcher/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/watcher/CMakeLists.txt # +# 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 diff --git a/examples/watcher/Make.defs b/examples/watcher/Make.defs index 0b605297d54..6f929a790ff 100644 --- a/examples/watcher/Make.defs +++ b/examples/watcher/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/watcher/Make.defs # +# 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/examples/watcher/Makefile b/examples/watcher/Makefile index 90f885000ed..99f97f94391 100644 --- a/examples/watcher/Makefile +++ b/examples/watcher/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/watcher/Makefile # +# 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/examples/watcher/ramdisk.c b/examples/watcher/ramdisk.c index 717103eaf39..78dbf10da59 100644 --- a/examples/watcher/ramdisk.c +++ b/examples/watcher/ramdisk.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/watcher/ramdisk.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/examples/watcher/ramdisk.h b/examples/watcher/ramdisk.h index bf10ba65559..07d16ccc253 100644 --- a/examples/watcher/ramdisk.h +++ b/examples/watcher/ramdisk.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/watcher/ramdisk.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 diff --git a/examples/watcher/task_mn.c b/examples/watcher/task_mn.c index 973cdd1e5b7..1d402c7169b 100644 --- a/examples/watcher/task_mn.c +++ b/examples/watcher/task_mn.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/watcher/task_mn.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/examples/watcher/task_mn.h b/examples/watcher/task_mn.h index d2439fedcdc..f8d94075572 100644 --- a/examples/watcher/task_mn.h +++ b/examples/watcher/task_mn.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/watcher/task_mn.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 diff --git a/examples/watcher/watcher_main.c b/examples/watcher/watcher_main.c index 66811169dd9..1fa4b259a52 100644 --- a/examples/watcher/watcher_main.c +++ b/examples/watcher/watcher_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/watcher/watcher_main.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/examples/watcher/wdt.c b/examples/watcher/wdt.c index 0d055c52782..ccfbeaa9853 100644 --- a/examples/watcher/wdt.c +++ b/examples/watcher/wdt.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/watcher/wdt.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/examples/watcher/wdt.h b/examples/watcher/wdt.h index 2d203958d2e..9f86c22d40c 100644 --- a/examples/watcher/wdt.h +++ b/examples/watcher/wdt.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/watcher/wdt.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 diff --git a/examples/webserver/CMakeLists.txt b/examples/webserver/CMakeLists.txt index ea4d3999a9e..7020d25bf1a 100644 --- a/examples/webserver/CMakeLists.txt +++ b/examples/webserver/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/webserver/CMakeLists.txt # +# 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 diff --git a/examples/webserver/Make.defs b/examples/webserver/Make.defs index b4eee076c46..6150f426298 100644 --- a/examples/webserver/Make.defs +++ b/examples/webserver/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/webserver/Make.defs # +# 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/examples/webserver/Makefile b/examples/webserver/Makefile index 41bc984214a..d07ef23debd 100644 --- a/examples/webserver/Makefile +++ b/examples/webserver/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/webserver/Makefile # +# 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/examples/webserver/cgi.c b/examples/webserver/cgi.c index 46d2871e115..2b113d5b0ff 100644 --- a/examples/webserver/cgi.c +++ b/examples/webserver/cgi.c @@ -1,10 +1,9 @@ /**************************************************************************** * apps/examples/webserver/cgi.c - * Web server script interface - * Author: Adam Dunkels * - * Copyright (c) 2001-2006, Adam Dunkels. - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2001-2006, Adam Dunkels. All rights reserved. + * SPDX-FileContributor: Adam Dunkels * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/examples/webserver/cgi.h b/examples/webserver/cgi.h index 1f0dae9ed52..d1988782103 100644 --- a/examples/webserver/cgi.h +++ b/examples/webserver/cgi.h @@ -1,10 +1,9 @@ /**************************************************************************** * apps/examples/webserver/cgi.h - * Web server script interface header file - * Author: Adam Dunkels * - * Copyright (c) 2001, Adam Dunkels. - * All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2001-2006, Adam Dunkels. All rights reserved. + * SPDX-FileContributor: Adam Dunkels * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/examples/wget/CMakeLists.txt b/examples/wget/CMakeLists.txt index fdae9900597..f62ebb35580 100644 --- a/examples/wget/CMakeLists.txt +++ b/examples/wget/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/wget/CMakeLists.txt # +# 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 diff --git a/examples/wget/Make.defs b/examples/wget/Make.defs index 7ee796a10c7..ffdb661794c 100644 --- a/examples/wget/Make.defs +++ b/examples/wget/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/wget/Make.defs # +# 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/examples/wget/Makefile b/examples/wget/Makefile index 4cb01370c07..19309dfcbff 100644 --- a/examples/wget/Makefile +++ b/examples/wget/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/wget/Makefile # +# 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/examples/wget/wget_main.c b/examples/wget/wget_main.c index d8c8c29c888..53a970c6e94 100644 --- a/examples/wget/wget_main.c +++ b/examples/wget/wget_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/wget/wget_main.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/examples/wgetjson/CMakeLists.txt b/examples/wgetjson/CMakeLists.txt index 2574e3735ad..e131d013f23 100644 --- a/examples/wgetjson/CMakeLists.txt +++ b/examples/wgetjson/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/wgetjson/CMakeLists.txt # +# 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 diff --git a/examples/wgetjson/Make.defs b/examples/wgetjson/Make.defs index d0b2be3ce13..e3786b6998e 100644 --- a/examples/wgetjson/Make.defs +++ b/examples/wgetjson/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/wgetjson/Make.defs # +# 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/examples/wgetjson/Makefile b/examples/wgetjson/Makefile index a5cce7d9d39..5a87b9b7733 100644 --- a/examples/wgetjson/Makefile +++ b/examples/wgetjson/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/wgetjson/Makefile # +# 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/examples/wgetjson/wgetjson_main.c b/examples/wgetjson/wgetjson_main.c index 4e2dbe38b00..860a0fb5b4a 100644 --- a/examples/wgetjson/wgetjson_main.c +++ b/examples/wgetjson/wgetjson_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/wgetjson/wgetjson_main.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/examples/wiegand/Make.defs b/examples/wiegand/Make.defs index d509235d29c..3fc0ce9d1ca 100644 --- a/examples/wiegand/Make.defs +++ b/examples/wiegand/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/wiegand/Make.defs # +# 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/examples/wiegand/Makefile b/examples/wiegand/Makefile index 50c7a24e092..bc4c3ed8f83 100644 --- a/examples/wiegand/Makefile +++ b/examples/wiegand/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/wiegand/Makefile # +# 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/examples/wiegand/wiegand.c b/examples/wiegand/wiegand.c index 9c912f6716e..8beee23dad5 100644 --- a/examples/wiegand/wiegand.c +++ b/examples/wiegand/wiegand.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/wiegand/wiegand.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/examples/ws2812/CMakeLists.txt b/examples/ws2812/CMakeLists.txt index d80cb3b8456..8f6ad89043b 100644 --- a/examples/ws2812/CMakeLists.txt +++ b/examples/ws2812/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/ws2812/CMakeLists.txt # +# 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 diff --git a/examples/ws2812/Make.defs b/examples/ws2812/Make.defs index 8dbaa2b1390..888daea231e 100644 --- a/examples/ws2812/Make.defs +++ b/examples/ws2812/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ws2812/Make.defs # +# 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/examples/ws2812/Makefile b/examples/ws2812/Makefile index 47067476139..0abf2c590cb 100644 --- a/examples/ws2812/Makefile +++ b/examples/ws2812/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ws2812/Makefile # +# 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/examples/ws2812/ws2812_main.c b/examples/ws2812/ws2812_main.c index 0bef6d344c8..438e68f119d 100644 --- a/examples/ws2812/ws2812_main.c +++ b/examples/ws2812/ws2812_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ws2812/ws2812_main.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/examples/ws2812esp32rmt/CMakeLists.txt b/examples/ws2812esp32rmt/CMakeLists.txt index 11cb695b304..4834b46b692 100644 --- a/examples/ws2812esp32rmt/CMakeLists.txt +++ b/examples/ws2812esp32rmt/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/ws2812esp32rmt/CMakeLists.txt # +# 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 diff --git a/examples/ws2812esp32rmt/Make.defs b/examples/ws2812esp32rmt/Make.defs index ddb06ef5838..6216a183d5d 100644 --- a/examples/ws2812esp32rmt/Make.defs +++ b/examples/ws2812esp32rmt/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ws2812esp32rmt/Make.defs # +# 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/examples/ws2812esp32rmt/Makefile b/examples/ws2812esp32rmt/Makefile index fe1656cf8c8..27da0eb28bb 100644 --- a/examples/ws2812esp32rmt/Makefile +++ b/examples/ws2812esp32rmt/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/ws2812esp32rmt/Makefile # +# 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/examples/ws2812esp32rmt/ws2812esp32rmt_main.c b/examples/ws2812esp32rmt/ws2812esp32rmt_main.c index 892c135c8b7..3f451436e22 100644 --- a/examples/ws2812esp32rmt/ws2812esp32rmt_main.c +++ b/examples/ws2812esp32rmt/ws2812esp32rmt_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/ws2812esp32rmt/ws2812esp32rmt_main.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/examples/xbc_test/CMakeLists.txt b/examples/xbc_test/CMakeLists.txt index fc2689b505c..fac0a8c7712 100644 --- a/examples/xbc_test/CMakeLists.txt +++ b/examples/xbc_test/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/xbc_test/CMakeLists.txt # +# 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 @@ -18,10 +20,6 @@ # # ############################################################################## -# POSSIBILITY OF SUCH DAMAGE. -# -# ############################################################################## - if(CONFIG_EXAMPLES_XBC_TEST) nuttx_add_application( NAME diff --git a/examples/xbc_test/Make.defs b/examples/xbc_test/Make.defs index b0b6369fdd9..5e94cf0b6bd 100644 --- a/examples/xbc_test/Make.defs +++ b/examples/xbc_test/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/xbc_test/Make.defs # +# 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/examples/xbc_test/Makefile b/examples/xbc_test/Makefile index 25572ec6b37..75032b94219 100644 --- a/examples/xbc_test/Makefile +++ b/examples/xbc_test/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/xbc_test/Makefile # +# 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/examples/xbc_test/xbc_test_main.c b/examples/xbc_test/xbc_test_main.c index c8ce2108347..691747e069d 100644 --- a/examples/xbc_test/xbc_test_main.c +++ b/examples/xbc_test/xbc_test_main.c @@ -1,11 +1,11 @@ /**************************************************************************** * apps/examples/xbc_test/xbc_test_main.c * - * Copyright (C) 2008, 2011-2012 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Copyright (C) 2017 Brian Webb. All rights reserved. - * Author: Brian Webb + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2017 Brian Webb. All rights reserved. + * SPDX-FileCopyrightText: 2008, 2011-2012 Gregory Nutt. All rights reserved. + * SPDX-FileContributor: Gregory Nutt + * SPDX-FileContributor: Brian Webb * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/examples/xmlrpc/CMakeLists.txt b/examples/xmlrpc/CMakeLists.txt index 322d0c84ce5..9cd0df950ae 100644 --- a/examples/xmlrpc/CMakeLists.txt +++ b/examples/xmlrpc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/xmlrpc/CMakeLists.txt # +# 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 diff --git a/examples/xmlrpc/Make.defs b/examples/xmlrpc/Make.defs index c2c2435fbf5..9a3918d1589 100644 --- a/examples/xmlrpc/Make.defs +++ b/examples/xmlrpc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/xmlrpc/Make.defs # +# 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/examples/xmlrpc/Makefile b/examples/xmlrpc/Makefile index 4a4e7623e91..9951eb94993 100644 --- a/examples/xmlrpc/Makefile +++ b/examples/xmlrpc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/xmlrpc/Makefile # +# 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/examples/xmlrpc/calls.c b/examples/xmlrpc/calls.c index d7cef91722e..41ac1a5fed3 100644 --- a/examples/xmlrpc/calls.c +++ b/examples/xmlrpc/calls.c @@ -1,14 +1,10 @@ /**************************************************************************** * apps/examples/xmlrpc/calls.c * - * Copyright (C) 2012 Max Holtzberg. All rights reserved. - * Author: Max Holtzberg - * - * Based on the embeddable lightweight XML-RPC server code discussed - * in the article at: http://www.drdobbs.com/web-development/\ - * an-embeddable-lightweight-xml-rpc-server/184405364 - * - * Copyright (c) 2002 Cogito LLC. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2012 Max Holtzberg. All rights reserved. + * SPDX-FileCopyrightText: 2002 Cogito LLC. All rights reserved. + * SPDX-FileContributor: Max Holtzberg * * Redistribution and use in source and binary forms, with or * without modification, is hereby granted without fee provided @@ -40,6 +36,11 @@ * POSSIBILITY OF SUCH DAMAGE. ****************************************************************************/ +/* Based on the embeddable lightweight XML-RPC server code discussed + * in the article at: http://www.drdobbs.com/web-development/\ + * an-embeddable-lightweight-xml-rpc-server/184405364 + */ + /**************************************************************************** * Included Files ****************************************************************************/ diff --git a/examples/xmlrpc/xmlrpc_main.c b/examples/xmlrpc/xmlrpc_main.c index 9f9df54f4a8..2147e095f31 100644 --- a/examples/xmlrpc/xmlrpc_main.c +++ b/examples/xmlrpc/xmlrpc_main.c @@ -1,15 +1,11 @@ /**************************************************************************** * apps/examples/xmlrpc/xmlrpc_main.c * - * Copyright (C) 2012 Max Holtzberg. All rights reserved. - * Copyright (C) 2015 Gregory Nutt. All rights reserved. - * Author: Max Holtzberg - * - * Based on the embeddable lightweight XML-RPC server code discussed - * in the article at: http://www.drdobbs.com/web-development/\ - * an-embeddable-lightweight-xml-rpc-server/184405364 - * - * Copyright (c) 2002 Cogito LLC. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2012 Max Holtzberg. All rights reserved. + * SPDX-FileCopyrightText: 2015 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2002 Cogito LLC. All rights reserved. + * SPDX-FileContributor: Max Holtzberg * * Redistribution and use in source and binary forms, with or * without modification, is hereby granted without fee provided @@ -41,6 +37,10 @@ * POSSIBILITY OF SUCH DAMAGE. ****************************************************************************/ +/* Based on the embeddable lightweight XML-RPC server code discussed + * in the article at: http://www.drdobbs.com/web-development/\ + * an-embeddable-lightweight-xml-rpc-server/184405364 + */ /* Lightweight Embedded XML-RPC Server main * * mtj@cogitollc.com diff --git a/examples/zerocross/CMakeLists.txt b/examples/zerocross/CMakeLists.txt index 946ad7483fa..f77c12bfbbc 100644 --- a/examples/zerocross/CMakeLists.txt +++ b/examples/zerocross/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/examples/zerocross/CMakeLists.txt # +# 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 diff --git a/examples/zerocross/Make.defs b/examples/zerocross/Make.defs index f967a31886c..5ca4c7c1636 100644 --- a/examples/zerocross/Make.defs +++ b/examples/zerocross/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/zerocross/Make.defs # +# 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/examples/zerocross/Makefile b/examples/zerocross/Makefile index 62d83ef5eb8..773fa6eb1a8 100644 --- a/examples/zerocross/Makefile +++ b/examples/zerocross/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/examples/zerocross/Makefile # +# 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/examples/zerocross/zerocross_main.c b/examples/zerocross/zerocross_main.c index 0d9cb02bde3..d2f49fa5b8e 100644 --- a/examples/zerocross/zerocross_main.c +++ b/examples/zerocross/zerocross_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/examples/zerocross/zerocross_main.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 From 2e6ce64502ff08abf7b9dd74c07a57dd00da0ecf Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 12:20:13 +0100 Subject: [PATCH 27/38] apps: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- Application.mk | 2 ++ CMakeLists.txt | 2 ++ Directory.mk | 2 ++ Make.defs | 2 ++ Makefile | 2 ++ config.nims | 2 ++ 6 files changed, 12 insertions(+) diff --git a/Application.mk b/Application.mk index b73d1a68454..e993006441d 100644 --- a/Application.mk +++ b/Application.mk @@ -1,6 +1,8 @@ ############################################################################ # apps/Application.mk # +# 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/CMakeLists.txt b/CMakeLists.txt index f35203b3ee8..e36d9f68f6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/CMakeLists.txt # +# 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 diff --git a/Directory.mk b/Directory.mk index 87a80d7bd12..ff42d23907a 100644 --- a/Directory.mk +++ b/Directory.mk @@ -1,6 +1,8 @@ ############################################################################ # apps/Directory.mk # +# 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/Make.defs b/Make.defs index 695dfa2be7a..ab79ce71cb5 100644 --- a/Make.defs +++ b/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/Make.defs # +# 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/Makefile b/Makefile index b2b90c7c49e..5a357053891 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/Makefile # +# 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/config.nims b/config.nims index 1bf0ac25b05..2d96ca3905c 100644 --- a/config.nims +++ b/config.nims @@ -1,6 +1,8 @@ ############################################################################ # apps/config.nims # +# 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 From 3b3002dc996301465d7a05257bcf66d7e5d6621f Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 12:24:52 +0100 Subject: [PATCH 28/38] nshlib: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- nshlib/CMakeLists.txt | 2 ++ nshlib/Make.defs | 2 ++ nshlib/Makefile | 2 ++ nshlib/nsh.h | 2 ++ nshlib/nsh_alias.c | 2 ++ nshlib/nsh_altconsole.c | 2 ++ nshlib/nsh_builtin.c | 2 ++ nshlib/nsh_codeccmd.c | 2 ++ nshlib/nsh_command.c | 2 ++ nshlib/nsh_console.c | 2 ++ nshlib/nsh_console.h | 2 ++ nshlib/nsh_consolemain.c | 2 ++ nshlib/nsh_dbgcmds.c | 2 ++ nshlib/nsh_ddcmd.c | 2 ++ nshlib/nsh_envcmds.c | 2 ++ nshlib/nsh_fileapps.c | 2 ++ nshlib/nsh_fscmds.c | 2 ++ nshlib/nsh_fsutils.c | 2 ++ nshlib/nsh_init.c | 2 ++ nshlib/nsh_login.c | 2 ++ nshlib/nsh_mmcmds.c | 2 ++ nshlib/nsh_mntcmds.c | 2 ++ nshlib/nsh_modcmds.c | 2 ++ nshlib/nsh_netcmds.c | 2 ++ nshlib/nsh_parse.c | 2 ++ nshlib/nsh_passwdcmds.c | 2 ++ nshlib/nsh_printf.c | 2 ++ nshlib/nsh_proccmds.c | 2 ++ nshlib/nsh_prompt.c | 2 ++ nshlib/nsh_routecmds.c | 2 ++ nshlib/nsh_script.c | 2 ++ nshlib/nsh_session.c | 2 ++ nshlib/nsh_syscmds.c | 2 ++ nshlib/nsh_system.c | 2 ++ nshlib/nsh_telnetd.c | 2 ++ nshlib/nsh_telnetlogin.c | 2 ++ nshlib/nsh_test.c | 2 ++ nshlib/nsh_timcmds.c | 2 ++ nshlib/nsh_usbconsole.c | 2 ++ nshlib/nsh_usbtrace.c | 2 ++ nshlib/nsh_vars.c | 2 ++ nshlib/nsh_wait.c | 2 ++ 42 files changed, 84 insertions(+) diff --git a/nshlib/CMakeLists.txt b/nshlib/CMakeLists.txt index b7d3fc50d88..d09df277d7d 100644 --- a/nshlib/CMakeLists.txt +++ b/nshlib/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/nshlib/CMakeLists.txt # +# 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 diff --git a/nshlib/Make.defs b/nshlib/Make.defs index 8eae4359edc..6f10f0272e3 100644 --- a/nshlib/Make.defs +++ b/nshlib/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/nshlib/Make.defs # +# 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/nshlib/Makefile b/nshlib/Makefile index 808d63af500..917d8baeb28 100644 --- a/nshlib/Makefile +++ b/nshlib/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/nshlib/Makefile # +# 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/nshlib/nsh.h b/nshlib/nsh.h index 75c84f856ee..0a239939b55 100644 --- a/nshlib/nsh.h +++ b/nshlib/nsh.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh.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 diff --git a/nshlib/nsh_alias.c b/nshlib/nsh_alias.c index 0024548da63..6c800f6c2ad 100644 --- a/nshlib/nsh_alias.c +++ b/nshlib/nsh_alias.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_alias.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/nshlib/nsh_altconsole.c b/nshlib/nsh_altconsole.c index 3e2c9335b7a..7423fedf739 100644 --- a/nshlib/nsh_altconsole.c +++ b/nshlib/nsh_altconsole.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_altconsole.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/nshlib/nsh_builtin.c b/nshlib/nsh_builtin.c index cfd95120711..6ff8f99a6be 100644 --- a/nshlib/nsh_builtin.c +++ b/nshlib/nsh_builtin.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_builtin.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/nshlib/nsh_codeccmd.c b/nshlib/nsh_codeccmd.c index 859405d5c61..796bcffd9df 100644 --- a/nshlib/nsh_codeccmd.c +++ b/nshlib/nsh_codeccmd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_codeccmd.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/nshlib/nsh_command.c b/nshlib/nsh_command.c index c31a89b86e8..e9353b23aa1 100644 --- a/nshlib/nsh_command.c +++ b/nshlib/nsh_command.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_command.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/nshlib/nsh_console.c b/nshlib/nsh_console.c index ad1191df72e..da919f24cd1 100644 --- a/nshlib/nsh_console.c +++ b/nshlib/nsh_console.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_console.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/nshlib/nsh_console.h b/nshlib/nsh_console.h index 31edf27e689..65db9a9f26e 100644 --- a/nshlib/nsh_console.h +++ b/nshlib/nsh_console.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_console.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 diff --git a/nshlib/nsh_consolemain.c b/nshlib/nsh_consolemain.c index 23c650d878e..d58f457e309 100644 --- a/nshlib/nsh_consolemain.c +++ b/nshlib/nsh_consolemain.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_consolemain.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/nshlib/nsh_dbgcmds.c b/nshlib/nsh_dbgcmds.c index ada21293b1c..8f2f0e21520 100644 --- a/nshlib/nsh_dbgcmds.c +++ b/nshlib/nsh_dbgcmds.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_dbgcmds.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/nshlib/nsh_ddcmd.c b/nshlib/nsh_ddcmd.c index 4f43a1a4524..d24aac52bb8 100644 --- a/nshlib/nsh_ddcmd.c +++ b/nshlib/nsh_ddcmd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_ddcmd.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/nshlib/nsh_envcmds.c b/nshlib/nsh_envcmds.c index 7f06e48b322..f3334f05df1 100644 --- a/nshlib/nsh_envcmds.c +++ b/nshlib/nsh_envcmds.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_envcmds.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/nshlib/nsh_fileapps.c b/nshlib/nsh_fileapps.c index d49810a9d61..54efd6de2b4 100644 --- a/nshlib/nsh_fileapps.c +++ b/nshlib/nsh_fileapps.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_fileapps.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/nshlib/nsh_fscmds.c b/nshlib/nsh_fscmds.c index 88f76d1ee3f..34d5d2d2770 100644 --- a/nshlib/nsh_fscmds.c +++ b/nshlib/nsh_fscmds.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_fscmds.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/nshlib/nsh_fsutils.c b/nshlib/nsh_fsutils.c index 48ddf74c8c5..99e9487848d 100644 --- a/nshlib/nsh_fsutils.c +++ b/nshlib/nsh_fsutils.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_fsutils.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/nshlib/nsh_init.c b/nshlib/nsh_init.c index 5904269e466..4846ff15b97 100644 --- a/nshlib/nsh_init.c +++ b/nshlib/nsh_init.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_init.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/nshlib/nsh_login.c b/nshlib/nsh_login.c index 0b59963676b..74876fc3d74 100644 --- a/nshlib/nsh_login.c +++ b/nshlib/nsh_login.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_login.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/nshlib/nsh_mmcmds.c b/nshlib/nsh_mmcmds.c index e84f6f5999f..518702b0767 100644 --- a/nshlib/nsh_mmcmds.c +++ b/nshlib/nsh_mmcmds.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_mmcmds.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/nshlib/nsh_mntcmds.c b/nshlib/nsh_mntcmds.c index 305ffdd9365..62579d8b7da 100644 --- a/nshlib/nsh_mntcmds.c +++ b/nshlib/nsh_mntcmds.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_mntcmds.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/nshlib/nsh_modcmds.c b/nshlib/nsh_modcmds.c index 6b935e877c1..4c38dff7906 100644 --- a/nshlib/nsh_modcmds.c +++ b/nshlib/nsh_modcmds.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_modcmds.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/nshlib/nsh_netcmds.c b/nshlib/nsh_netcmds.c index cc49771c76a..791e1c922e3 100644 --- a/nshlib/nsh_netcmds.c +++ b/nshlib/nsh_netcmds.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_netcmds.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/nshlib/nsh_parse.c b/nshlib/nsh_parse.c index 96de181e32c..6c4ec8078d6 100644 --- a/nshlib/nsh_parse.c +++ b/nshlib/nsh_parse.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_parse.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/nshlib/nsh_passwdcmds.c b/nshlib/nsh_passwdcmds.c index 889f13f778c..5c7f86ed23f 100644 --- a/nshlib/nsh_passwdcmds.c +++ b/nshlib/nsh_passwdcmds.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_passwdcmds.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/nshlib/nsh_printf.c b/nshlib/nsh_printf.c index bb088e76464..dbd8f09a501 100644 --- a/nshlib/nsh_printf.c +++ b/nshlib/nsh_printf.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_printf.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/nshlib/nsh_proccmds.c b/nshlib/nsh_proccmds.c index 73f97aa111e..b56cf9b2b60 100644 --- a/nshlib/nsh_proccmds.c +++ b/nshlib/nsh_proccmds.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_proccmds.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/nshlib/nsh_prompt.c b/nshlib/nsh_prompt.c index 964534e1c10..4dfe24c3c30 100644 --- a/nshlib/nsh_prompt.c +++ b/nshlib/nsh_prompt.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_prompt.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/nshlib/nsh_routecmds.c b/nshlib/nsh_routecmds.c index 51c2a70612f..538b1105cf9 100644 --- a/nshlib/nsh_routecmds.c +++ b/nshlib/nsh_routecmds.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_routecmds.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/nshlib/nsh_script.c b/nshlib/nsh_script.c index b9a210dff06..52ab377a557 100644 --- a/nshlib/nsh_script.c +++ b/nshlib/nsh_script.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_script.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/nshlib/nsh_session.c b/nshlib/nsh_session.c index b9ac839c00e..761f84a04d2 100644 --- a/nshlib/nsh_session.c +++ b/nshlib/nsh_session.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_session.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/nshlib/nsh_syscmds.c b/nshlib/nsh_syscmds.c index 7c7156aadc3..7990a2b392d 100644 --- a/nshlib/nsh_syscmds.c +++ b/nshlib/nsh_syscmds.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_syscmds.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/nshlib/nsh_system.c b/nshlib/nsh_system.c index 26aaecbd268..902e8f5a5f7 100644 --- a/nshlib/nsh_system.c +++ b/nshlib/nsh_system.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_system.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/nshlib/nsh_telnetd.c b/nshlib/nsh_telnetd.c index 371993474ff..62f87e47966 100644 --- a/nshlib/nsh_telnetd.c +++ b/nshlib/nsh_telnetd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_telnetd.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/nshlib/nsh_telnetlogin.c b/nshlib/nsh_telnetlogin.c index 4fc2a4af0c1..9e23cbc26e0 100644 --- a/nshlib/nsh_telnetlogin.c +++ b/nshlib/nsh_telnetlogin.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_telnetlogin.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/nshlib/nsh_test.c b/nshlib/nsh_test.c index b04dfdbf282..242d730c2ff 100644 --- a/nshlib/nsh_test.c +++ b/nshlib/nsh_test.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_test.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/nshlib/nsh_timcmds.c b/nshlib/nsh_timcmds.c index 3c54ca538a6..cd1bbc378a3 100644 --- a/nshlib/nsh_timcmds.c +++ b/nshlib/nsh_timcmds.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_timcmds.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/nshlib/nsh_usbconsole.c b/nshlib/nsh_usbconsole.c index a111858409e..cc7f97005fa 100644 --- a/nshlib/nsh_usbconsole.c +++ b/nshlib/nsh_usbconsole.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_usbconsole.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/nshlib/nsh_usbtrace.c b/nshlib/nsh_usbtrace.c index 3faaae348c2..df05d45a396 100644 --- a/nshlib/nsh_usbtrace.c +++ b/nshlib/nsh_usbtrace.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_usbtrace.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/nshlib/nsh_vars.c b/nshlib/nsh_vars.c index 57ed512cf23..f940d64a319 100644 --- a/nshlib/nsh_vars.c +++ b/nshlib/nsh_vars.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_vars.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/nshlib/nsh_wait.c b/nshlib/nsh_wait.c index 08106736b23..d6d1de039ec 100644 --- a/nshlib/nsh_wait.c +++ b/nshlib/nsh_wait.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/nshlib/nsh_wait.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 From b7c6b0ae3ec9126289da42be9cba4b8d76512136 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 12:26:31 +0100 Subject: [PATCH 29/38] platform: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- platform/CMakeLists.txt | 2 ++ platform/Make.defs | 2 ++ platform/Makefile | 2 ++ platform/bin/Makefile | 2 ++ platform/dummy/Make.defs | 2 ++ platform/dummy/dummy.c | 2 ++ platform/mikroe-stm32f4/Make.defs | 2 ++ platform/mikroe-stm32f4/mikroe_configdata.c | 2 ++ 8 files changed, 16 insertions(+) diff --git a/platform/CMakeLists.txt b/platform/CMakeLists.txt index 847f5778723..91b1f751e76 100644 --- a/platform/CMakeLists.txt +++ b/platform/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/platform/CMakeLists.txt # +# 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 diff --git a/platform/Make.defs b/platform/Make.defs index 7e995f82d73..f72db3a4327 100644 --- a/platform/Make.defs +++ b/platform/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/platform/Make.defs # +# 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/platform/Makefile b/platform/Makefile index 8260ad92cd3..8faa82e6967 100644 --- a/platform/Makefile +++ b/platform/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/platform/Makefile # +# 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/platform/bin/Makefile b/platform/bin/Makefile index f3a01b1eae3..b0d16be83f2 100644 --- a/platform/bin/Makefile +++ b/platform/bin/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/platform/bin/Makefile # +# 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/platform/dummy/Make.defs b/platform/dummy/Make.defs index 78274ee33b7..aeb565e7791 100644 --- a/platform/dummy/Make.defs +++ b/platform/dummy/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/platform/dummy/Make.defs # +# 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/platform/dummy/dummy.c b/platform/dummy/dummy.c index 229d8eb4340..b3e127f358d 100644 --- a/platform/dummy/dummy.c +++ b/platform/dummy/dummy.c @@ -1,6 +1,8 @@ /*************************************************************************** * apps/platform/dummy/dummy.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/platform/mikroe-stm32f4/Make.defs b/platform/mikroe-stm32f4/Make.defs index 09dedc7b812..90662205dfc 100644 --- a/platform/mikroe-stm32f4/Make.defs +++ b/platform/mikroe-stm32f4/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/platform/mikroe-stm32f4/Make.defs # +# 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/platform/mikroe-stm32f4/mikroe_configdata.c b/platform/mikroe-stm32f4/mikroe_configdata.c index 79ebc1987d1..b6d9bb6fc3b 100644 --- a/platform/mikroe-stm32f4/mikroe_configdata.c +++ b/platform/mikroe-stm32f4/mikroe_configdata.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/platform/mikroe-stm32f4/mikroe_configdata.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 From eb200f5bd3eaf74ff700060a89846803810b64e4 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 12:27:55 +0100 Subject: [PATCH 30/38] sdr: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- sdr/CMakeLists.txt | 2 ++ sdr/Make.defs | 2 ++ sdr/Makefile | 2 ++ sdr/liquid_dsp/Make.defs | 3 ++- sdr/liquid_dsp/Makefile | 2 ++ sdr/liquid_dsp/config.h | 2 ++ 6 files changed, 12 insertions(+), 1 deletion(-) diff --git a/sdr/CMakeLists.txt b/sdr/CMakeLists.txt index 24eaf34d7e3..5f8bd4f2f36 100644 --- a/sdr/CMakeLists.txt +++ b/sdr/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/sdr/CMakeLists.txt # +# 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 diff --git a/sdr/Make.defs b/sdr/Make.defs index 0a48f77f29d..e78ed07c736 100644 --- a/sdr/Make.defs +++ b/sdr/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/sdr/Make.defs # +# 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/sdr/Makefile b/sdr/Makefile index 6a32e03fd70..9dbadc55f42 100644 --- a/sdr/Makefile +++ b/sdr/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/sdr/Makefile # +# 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/sdr/liquid_dsp/Make.defs b/sdr/liquid_dsp/Make.defs index eff26a4a857..f61ca389a3c 100644 --- a/sdr/liquid_dsp/Make.defs +++ b/sdr/liquid_dsp/Make.defs @@ -1,6 +1,7 @@ ############################################################################ # apps/sdr/liquid_dsp/Make.defs -# Adds selected applications to apps/ build +# +# 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 diff --git a/sdr/liquid_dsp/Makefile b/sdr/liquid_dsp/Makefile index 2da12bee3f1..8a257b30400 100644 --- a/sdr/liquid_dsp/Makefile +++ b/sdr/liquid_dsp/Makefile @@ -1,6 +1,8 @@ ########################################################################### # apps/sdr/liquid_dsp/Makefile # +# 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/sdr/liquid_dsp/config.h b/sdr/liquid_dsp/config.h index 50f7f44332c..50e5f1b7105 100644 --- a/sdr/liquid_dsp/config.h +++ b/sdr/liquid_dsp/config.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/sdr/liquid_dsp/config.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 From 8e3148d27085d0237d05d36348a512b5b75a7296 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 12:30:44 +0100 Subject: [PATCH 31/38] video: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- videoutils/CMakeLists.txt | 2 ++ videoutils/Make.defs | 2 ++ videoutils/Makefile | 2 ++ videoutils/openh264/CMakeLists.txt | 2 ++ videoutils/openh264/Make.defs | 2 ++ videoutils/openh264/Makefile | 2 ++ videoutils/openh264/include/sys/sysctl.h | 2 ++ 7 files changed, 14 insertions(+) diff --git a/videoutils/CMakeLists.txt b/videoutils/CMakeLists.txt index 440677ad936..afbdfd4550b 100644 --- a/videoutils/CMakeLists.txt +++ b/videoutils/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/videoutils/CMakeLists.txt # +# 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 diff --git a/videoutils/Make.defs b/videoutils/Make.defs index 9b1c12ad374..7a6c4aae8d8 100644 --- a/videoutils/Make.defs +++ b/videoutils/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/videoutils/Make.defs # +# 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/videoutils/Makefile b/videoutils/Makefile index bedc2d2bd4c..590e986ebcf 100644 --- a/videoutils/Makefile +++ b/videoutils/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/videoutils/Makefile # +# 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/videoutils/openh264/CMakeLists.txt b/videoutils/openh264/CMakeLists.txt index c3c3186f5fe..cffc2d4050a 100644 --- a/videoutils/openh264/CMakeLists.txt +++ b/videoutils/openh264/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/videoutils/openh264/CMakeLists.txt # +# 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 diff --git a/videoutils/openh264/Make.defs b/videoutils/openh264/Make.defs index e61072affa1..78932eeeb8c 100644 --- a/videoutils/openh264/Make.defs +++ b/videoutils/openh264/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/videoutils/openh264/Make.defs # +# 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/videoutils/openh264/Makefile b/videoutils/openh264/Makefile index c4f6bdf079b..e7d3bb7d5e9 100644 --- a/videoutils/openh264/Makefile +++ b/videoutils/openh264/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/videoutils/openh264/Makefile # +# 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/videoutils/openh264/include/sys/sysctl.h b/videoutils/openh264/include/sys/sysctl.h index 2f304e25ace..128d74982fc 100644 --- a/videoutils/openh264/include/sys/sysctl.h +++ b/videoutils/openh264/include/sys/sysctl.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/videoutils/openh264/include/sys/sysctl.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 From 26e1f1d43385b70c8d87ea7f8c54cdb6e14eb4a2 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 12:58:59 +0100 Subject: [PATCH 32/38] wireless: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- wireless/CMakeLists.txt | 2 ++ wireless/Make.defs | 2 ++ wireless/Makefile | 2 ++ wireless/bluetooth/CMakeLists.txt | 2 ++ wireless/bluetooth/Make.defs | 2 ++ wireless/bluetooth/Makefile | 2 ++ wireless/bluetooth/btsak/CMakeLists.txt | 2 ++ wireless/bluetooth/btsak/Make.defs | 2 ++ wireless/bluetooth/btsak/Makefile | 2 ++ wireless/bluetooth/btsak/btsak.h | 2 ++ wireless/bluetooth/btsak/btsak_advertise.c | 2 ++ wireless/bluetooth/btsak/btsak_features.c | 2 ++ wireless/bluetooth/btsak/btsak_gatt.c | 2 ++ wireless/bluetooth/btsak/btsak_info.c | 2 ++ wireless/bluetooth/btsak/btsak_main.c | 2 ++ wireless/bluetooth/btsak/btsak_scan.c | 2 ++ wireless/bluetooth/btsak/btsak_security.c | 2 ++ wireless/bluetooth/nimble/CMakeLists.txt | 2 ++ wireless/bluetooth/nimble/Make.defs | 2 ++ wireless/bluetooth/nimble/Makefile | 2 ++ wireless/bluetooth/nimble/Makefile.nimble | 2 ++ wireless/bluetooth/nimble/include/logcfg/logcfg.h | 2 ++ wireless/bluetooth/nimble/include/syscfg/syscfg.h | 2 ++ wireless/gs2200m/Make.defs | 2 ++ wireless/gs2200m/Makefile | 2 ++ wireless/gs2200m/gs2200m_main.c | 2 ++ wireless/ieee802154/CMakeLists.txt | 2 ++ wireless/ieee802154/Make.defs | 2 ++ wireless/ieee802154/Makefile | 2 ++ wireless/ieee802154/i8sak/CMakeLists.txt | 2 ++ wireless/ieee802154/i8sak/Make.defs | 2 ++ wireless/ieee802154/i8sak/Makefile | 2 ++ wireless/ieee802154/i8sak/i8sak.h | 2 ++ wireless/ieee802154/i8sak/i8sak_acceptassoc.c | 2 ++ wireless/ieee802154/i8sak/i8sak_assoc.c | 2 ++ wireless/ieee802154/i8sak/i8sak_blaster.c | 2 ++ wireless/ieee802154/i8sak/i8sak_events.c | 2 ++ wireless/ieee802154/i8sak/i8sak_events.h | 2 ++ wireless/ieee802154/i8sak/i8sak_get.c | 2 ++ wireless/ieee802154/i8sak/i8sak_main.c | 2 ++ wireless/ieee802154/i8sak/i8sak_poll.c | 2 ++ wireless/ieee802154/i8sak/i8sak_regdump.c | 2 ++ wireless/ieee802154/i8sak/i8sak_reset.c | 2 ++ wireless/ieee802154/i8sak/i8sak_scan.c | 2 ++ wireless/ieee802154/i8sak/i8sak_set.c | 2 ++ wireless/ieee802154/i8sak/i8sak_sniffer.c | 2 ++ wireless/ieee802154/i8sak/i8sak_startpan.c | 2 ++ wireless/ieee802154/i8sak/i8sak_tracedump.c | 2 ++ wireless/ieee802154/i8sak/i8sak_tx.c | 2 ++ wireless/ieee802154/i8shark/CMakeLists.txt | 2 ++ wireless/ieee802154/i8shark/Make.defs | 2 ++ wireless/ieee802154/i8shark/Makefile | 2 ++ wireless/ieee802154/i8shark/i8shark_main.c | 2 ++ wireless/ieee802154/libmac/CMakeLists.txt | 2 ++ wireless/ieee802154/libmac/Make.defs | 2 ++ wireless/ieee802154/libmac/Makefile | 2 ++ wireless/ieee802154/libmac/ieee802154_assocreq.c | 2 ++ wireless/ieee802154/libmac/ieee802154_assocresp.c | 2 ++ .../ieee802154/libmac/ieee802154_disassocreq.c | 2 ++ wireless/ieee802154/libmac/ieee802154_getreq.c | 2 ++ wireless/ieee802154/libmac/ieee802154_gtsreq.c | 2 ++ wireless/ieee802154/libmac/ieee802154_orphanresp.c | 2 ++ wireless/ieee802154/libmac/ieee802154_pollreq.c | 2 ++ wireless/ieee802154/libmac/ieee802154_resetreq.c | 2 ++ wireless/ieee802154/libmac/ieee802154_rxenabreq.c | 2 ++ wireless/ieee802154/libmac/ieee802154_scanreq.c | 2 ++ wireless/ieee802154/libmac/ieee802154_setreq.c | 2 ++ wireless/ieee802154/libmac/ieee802154_startreq.c | 2 ++ wireless/ieee802154/libmac/ieee802154_syncreq.c | 2 ++ wireless/ieee802154/libmac/sixlowpan_assocreq.c | 2 ++ wireless/ieee802154/libmac/sixlowpan_assocresp.c | 2 ++ wireless/ieee802154/libmac/sixlowpan_disassocreq.c | 2 ++ wireless/ieee802154/libmac/sixlowpan_getpromisc.c | 2 ++ wireless/ieee802154/libmac/sixlowpan_getreq.c | 2 ++ wireless/ieee802154/libmac/sixlowpan_gtsreq.c | 2 ++ wireless/ieee802154/libmac/sixlowpan_orphanresp.c | 2 ++ wireless/ieee802154/libmac/sixlowpan_pollreq.c | 2 ++ wireless/ieee802154/libmac/sixlowpan_resetreq.c | 2 ++ wireless/ieee802154/libmac/sixlowpan_rxenabreq.c | 2 ++ wireless/ieee802154/libmac/sixlowpan_scanreq.c | 2 ++ wireless/ieee802154/libmac/sixlowpan_setreq.c | 2 ++ wireless/ieee802154/libmac/sixlowpan_startreq.c | 2 ++ wireless/ieee802154/libmac/sixlowpan_syncreq.c | 2 ++ wireless/ieee802154/libutils/CMakeLists.txt | 2 ++ wireless/ieee802154/libutils/Make.defs | 2 ++ wireless/ieee802154/libutils/Makefile | 2 ++ .../ieee802154/libutils/ieee802154_addrtostr.c | 2 ++ wireless/iwpan/Make.defs | 2 ++ wireless/iwpan/Makefile | 2 ++ wireless/iwpan/src/Make.defs | 2 ++ wireless/iwpan/src/iwpan.c | 2 ++ wireless/wapi/CMakeLists.txt | 2 ++ wireless/wapi/Make.defs | 2 ++ wireless/wapi/Makefile | 2 ++ wireless/wapi/src/Make.defs | 2 ++ wireless/wapi/src/driver_wext.c | 14 +++++--------- wireless/wapi/src/network.c | 11 ++++------- wireless/wapi/src/util.c | 11 ++++------- wireless/wapi/src/util.h | 11 ++++------- wireless/wapi/src/wapi.c | 12 ++++-------- wireless/wapi/src/wireless.c | 11 ++++------- 101 files changed, 215 insertions(+), 45 deletions(-) diff --git a/wireless/CMakeLists.txt b/wireless/CMakeLists.txt index bf103671943..a812059c867 100644 --- a/wireless/CMakeLists.txt +++ b/wireless/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/wireless/CMakeLists.txt # +# 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 diff --git a/wireless/Make.defs b/wireless/Make.defs index 276c3edbbd9..dacc6fa3e8f 100644 --- a/wireless/Make.defs +++ b/wireless/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/Make.defs # +# 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/wireless/Makefile b/wireless/Makefile index 1e6af2a4204..55d0f7e87c3 100644 --- a/wireless/Makefile +++ b/wireless/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/Makefile # +# 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/wireless/bluetooth/CMakeLists.txt b/wireless/bluetooth/CMakeLists.txt index ef322d1da36..7f9ea25e3e0 100644 --- a/wireless/bluetooth/CMakeLists.txt +++ b/wireless/bluetooth/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/wireless/bluetooth/CMakeLists.txt # +# 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 diff --git a/wireless/bluetooth/Make.defs b/wireless/bluetooth/Make.defs index ec059f75c5d..78ddbcc3473 100644 --- a/wireless/bluetooth/Make.defs +++ b/wireless/bluetooth/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/bluetooth/Make.defs # +# 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/wireless/bluetooth/Makefile b/wireless/bluetooth/Makefile index fd9310f3555..f22646ddec9 100644 --- a/wireless/bluetooth/Makefile +++ b/wireless/bluetooth/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/bluetooth/Makefile # +# 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/wireless/bluetooth/btsak/CMakeLists.txt b/wireless/bluetooth/btsak/CMakeLists.txt index ee599fc02c1..adc34ce0d8b 100644 --- a/wireless/bluetooth/btsak/CMakeLists.txt +++ b/wireless/bluetooth/btsak/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/wireless/bluetooth/btsak/CMakeLists.txt # +# 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 diff --git a/wireless/bluetooth/btsak/Make.defs b/wireless/bluetooth/btsak/Make.defs index f8cad29b4d8..c33133d63da 100644 --- a/wireless/bluetooth/btsak/Make.defs +++ b/wireless/bluetooth/btsak/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/bluetooth/btsak/Make.defs # +# 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/wireless/bluetooth/btsak/Makefile b/wireless/bluetooth/btsak/Makefile index cd483f8f56e..4b244ac6d03 100644 --- a/wireless/bluetooth/btsak/Makefile +++ b/wireless/bluetooth/btsak/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/bluetooth/btsak/Makefile # +# 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/wireless/bluetooth/btsak/btsak.h b/wireless/bluetooth/btsak/btsak.h index a07b4cd2bed..d2601f5f0c3 100644 --- a/wireless/bluetooth/btsak/btsak.h +++ b/wireless/bluetooth/btsak/btsak.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/bluetooth/btsak/btsak.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 diff --git a/wireless/bluetooth/btsak/btsak_advertise.c b/wireless/bluetooth/btsak/btsak_advertise.c index c36ed029130..0418f0670fe 100644 --- a/wireless/bluetooth/btsak/btsak_advertise.c +++ b/wireless/bluetooth/btsak/btsak_advertise.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/bluetooth/btsak/btsak_advertise.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/wireless/bluetooth/btsak/btsak_features.c b/wireless/bluetooth/btsak/btsak_features.c index 5072d586c7d..5647f7b89c3 100644 --- a/wireless/bluetooth/btsak/btsak_features.c +++ b/wireless/bluetooth/btsak/btsak_features.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/bluetooth/btsak/btsak_features.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/wireless/bluetooth/btsak/btsak_gatt.c b/wireless/bluetooth/btsak/btsak_gatt.c index 641e42edc98..614782a9a23 100644 --- a/wireless/bluetooth/btsak/btsak_gatt.c +++ b/wireless/bluetooth/btsak/btsak_gatt.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/bluetooth/btsak/btsak_gatt.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/wireless/bluetooth/btsak/btsak_info.c b/wireless/bluetooth/btsak/btsak_info.c index 1175506e55c..13e30389e27 100644 --- a/wireless/bluetooth/btsak/btsak_info.c +++ b/wireless/bluetooth/btsak/btsak_info.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/bluetooth/btsak/btsak_info.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/wireless/bluetooth/btsak/btsak_main.c b/wireless/bluetooth/btsak/btsak_main.c index 3da320c82f1..c33f4256407 100644 --- a/wireless/bluetooth/btsak/btsak_main.c +++ b/wireless/bluetooth/btsak/btsak_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/bluetooth/btsak/btsak_main.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/wireless/bluetooth/btsak/btsak_scan.c b/wireless/bluetooth/btsak/btsak_scan.c index 69ead7a8392..a12d1a86ab7 100644 --- a/wireless/bluetooth/btsak/btsak_scan.c +++ b/wireless/bluetooth/btsak/btsak_scan.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/bluetooth/btsak/btsak_scan.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/wireless/bluetooth/btsak/btsak_security.c b/wireless/bluetooth/btsak/btsak_security.c index e177277e862..33967bc8b4a 100644 --- a/wireless/bluetooth/btsak/btsak_security.c +++ b/wireless/bluetooth/btsak/btsak_security.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/bluetooth/btsak/btsak_security.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/wireless/bluetooth/nimble/CMakeLists.txt b/wireless/bluetooth/nimble/CMakeLists.txt index 58601976732..177439447e2 100644 --- a/wireless/bluetooth/nimble/CMakeLists.txt +++ b/wireless/bluetooth/nimble/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/wireless/bluetooth/nimble/CMakeLists.txt # +# 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 diff --git a/wireless/bluetooth/nimble/Make.defs b/wireless/bluetooth/nimble/Make.defs index c3c32101109..61310c41d67 100644 --- a/wireless/bluetooth/nimble/Make.defs +++ b/wireless/bluetooth/nimble/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/bluetooth/nimble/Make.defs # +# 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/wireless/bluetooth/nimble/Makefile b/wireless/bluetooth/nimble/Makefile index 5aba9a4bec6..10133c2cd0e 100644 --- a/wireless/bluetooth/nimble/Makefile +++ b/wireless/bluetooth/nimble/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/bluetooth/nimble/Makefile # +# 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/wireless/bluetooth/nimble/Makefile.nimble b/wireless/bluetooth/nimble/Makefile.nimble index adef4563bcd..8a4281dfaf3 100644 --- a/wireless/bluetooth/nimble/Makefile.nimble +++ b/wireless/bluetooth/nimble/Makefile.nimble @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/bluetooth/nimble/Makefile.nimble # +# 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/wireless/bluetooth/nimble/include/logcfg/logcfg.h b/wireless/bluetooth/nimble/include/logcfg/logcfg.h index 458ea624c0b..419c1373dc3 100644 --- a/wireless/bluetooth/nimble/include/logcfg/logcfg.h +++ b/wireless/bluetooth/nimble/include/logcfg/logcfg.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/bluetooth/nimble/include/logcfg/logcfg.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 diff --git a/wireless/bluetooth/nimble/include/syscfg/syscfg.h b/wireless/bluetooth/nimble/include/syscfg/syscfg.h index e49e65cd0e8..a10f5f3d3b4 100644 --- a/wireless/bluetooth/nimble/include/syscfg/syscfg.h +++ b/wireless/bluetooth/nimble/include/syscfg/syscfg.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/bluetooth/nimble/include/syscfg/syscfg.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 diff --git a/wireless/gs2200m/Make.defs b/wireless/gs2200m/Make.defs index b2bf0012f67..8b989b1259e 100644 --- a/wireless/gs2200m/Make.defs +++ b/wireless/gs2200m/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/gs2200m/Make.defs # +# 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/wireless/gs2200m/Makefile b/wireless/gs2200m/Makefile index 7152fdecd4d..b52a7a06226 100644 --- a/wireless/gs2200m/Makefile +++ b/wireless/gs2200m/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/gs2200m/Makefile # +# 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/wireless/gs2200m/gs2200m_main.c b/wireless/gs2200m/gs2200m_main.c index 577d289faf3..f58cf882c48 100644 --- a/wireless/gs2200m/gs2200m_main.c +++ b/wireless/gs2200m/gs2200m_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/gs2200m/gs2200m_main.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/wireless/ieee802154/CMakeLists.txt b/wireless/ieee802154/CMakeLists.txt index ad006cbacbd..c4379afe070 100644 --- a/wireless/ieee802154/CMakeLists.txt +++ b/wireless/ieee802154/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/wireless/ieee802154/CMakeLists.txt # +# 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 diff --git a/wireless/ieee802154/Make.defs b/wireless/ieee802154/Make.defs index 6a6f8db5585..2c0cafe4439 100644 --- a/wireless/ieee802154/Make.defs +++ b/wireless/ieee802154/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/ieee802154/Make.defs # +# 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/wireless/ieee802154/Makefile b/wireless/ieee802154/Makefile index ce0b87c1445..1f6f8b98e7f 100644 --- a/wireless/ieee802154/Makefile +++ b/wireless/ieee802154/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/ieee802154/Makefile # +# 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/wireless/ieee802154/i8sak/CMakeLists.txt b/wireless/ieee802154/i8sak/CMakeLists.txt index 8a753bb7514..0eca9516c16 100644 --- a/wireless/ieee802154/i8sak/CMakeLists.txt +++ b/wireless/ieee802154/i8sak/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/wireless/ieee802154/i8sak/CMakeLists.txt # +# 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 diff --git a/wireless/ieee802154/i8sak/Make.defs b/wireless/ieee802154/i8sak/Make.defs index 6d35ba553f3..dadff85e133 100644 --- a/wireless/ieee802154/i8sak/Make.defs +++ b/wireless/ieee802154/i8sak/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/ieee802154/i8sak/Make.defs # +# 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/wireless/ieee802154/i8sak/Makefile b/wireless/ieee802154/i8sak/Makefile index d938a0e7886..f2d3b50b588 100644 --- a/wireless/ieee802154/i8sak/Makefile +++ b/wireless/ieee802154/i8sak/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/ieee802154/i8sak/Makefile # +# 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/wireless/ieee802154/i8sak/i8sak.h b/wireless/ieee802154/i8sak/i8sak.h index 8a6bd5ed51f..385d2c1b907 100644 --- a/wireless/ieee802154/i8sak/i8sak.h +++ b/wireless/ieee802154/i8sak/i8sak.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak.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 diff --git a/wireless/ieee802154/i8sak/i8sak_acceptassoc.c b/wireless/ieee802154/i8sak/i8sak_acceptassoc.c index e927f2d188f..42d54288dfb 100644 --- a/wireless/ieee802154/i8sak/i8sak_acceptassoc.c +++ b/wireless/ieee802154/i8sak/i8sak_acceptassoc.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_acceptassoc.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/wireless/ieee802154/i8sak/i8sak_assoc.c b/wireless/ieee802154/i8sak/i8sak_assoc.c index 934741a55eb..52894c0eccb 100644 --- a/wireless/ieee802154/i8sak/i8sak_assoc.c +++ b/wireless/ieee802154/i8sak/i8sak_assoc.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_assoc.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/wireless/ieee802154/i8sak/i8sak_blaster.c b/wireless/ieee802154/i8sak/i8sak_blaster.c index c5d89cd21f9..cbb403703cd 100644 --- a/wireless/ieee802154/i8sak/i8sak_blaster.c +++ b/wireless/ieee802154/i8sak/i8sak_blaster.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_blaster.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/wireless/ieee802154/i8sak/i8sak_events.c b/wireless/ieee802154/i8sak/i8sak_events.c index b6d22d1dcd5..12e4758b9ff 100644 --- a/wireless/ieee802154/i8sak/i8sak_events.c +++ b/wireless/ieee802154/i8sak/i8sak_events.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_events.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/wireless/ieee802154/i8sak/i8sak_events.h b/wireless/ieee802154/i8sak/i8sak_events.h index 71c95182050..49a9cb766c7 100644 --- a/wireless/ieee802154/i8sak/i8sak_events.h +++ b/wireless/ieee802154/i8sak/i8sak_events.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_events.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 diff --git a/wireless/ieee802154/i8sak/i8sak_get.c b/wireless/ieee802154/i8sak/i8sak_get.c index 5716562ff3f..2b04fb769f9 100644 --- a/wireless/ieee802154/i8sak/i8sak_get.c +++ b/wireless/ieee802154/i8sak/i8sak_get.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_get.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/wireless/ieee802154/i8sak/i8sak_main.c b/wireless/ieee802154/i8sak/i8sak_main.c index 315b931632f..1d48777a73b 100644 --- a/wireless/ieee802154/i8sak/i8sak_main.c +++ b/wireless/ieee802154/i8sak/i8sak_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_main.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/wireless/ieee802154/i8sak/i8sak_poll.c b/wireless/ieee802154/i8sak/i8sak_poll.c index 052cfc4a749..014c9daed2d 100644 --- a/wireless/ieee802154/i8sak/i8sak_poll.c +++ b/wireless/ieee802154/i8sak/i8sak_poll.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_poll.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/wireless/ieee802154/i8sak/i8sak_regdump.c b/wireless/ieee802154/i8sak/i8sak_regdump.c index 26f426f6b76..aa32767c09f 100644 --- a/wireless/ieee802154/i8sak/i8sak_regdump.c +++ b/wireless/ieee802154/i8sak/i8sak_regdump.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_regdump.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/wireless/ieee802154/i8sak/i8sak_reset.c b/wireless/ieee802154/i8sak/i8sak_reset.c index 15dfab3b8d0..f9f30ae5718 100644 --- a/wireless/ieee802154/i8sak/i8sak_reset.c +++ b/wireless/ieee802154/i8sak/i8sak_reset.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_reset.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/wireless/ieee802154/i8sak/i8sak_scan.c b/wireless/ieee802154/i8sak/i8sak_scan.c index e70aef073a9..2ed1bb64536 100644 --- a/wireless/ieee802154/i8sak/i8sak_scan.c +++ b/wireless/ieee802154/i8sak/i8sak_scan.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_scan.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/wireless/ieee802154/i8sak/i8sak_set.c b/wireless/ieee802154/i8sak/i8sak_set.c index d2759dcf4f7..2caf6b270ff 100644 --- a/wireless/ieee802154/i8sak/i8sak_set.c +++ b/wireless/ieee802154/i8sak/i8sak_set.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_set.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/wireless/ieee802154/i8sak/i8sak_sniffer.c b/wireless/ieee802154/i8sak/i8sak_sniffer.c index 5bca97cd2ac..2fea25678f1 100644 --- a/wireless/ieee802154/i8sak/i8sak_sniffer.c +++ b/wireless/ieee802154/i8sak/i8sak_sniffer.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_sniffer.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/wireless/ieee802154/i8sak/i8sak_startpan.c b/wireless/ieee802154/i8sak/i8sak_startpan.c index 61f271a96ba..0954d49d968 100644 --- a/wireless/ieee802154/i8sak/i8sak_startpan.c +++ b/wireless/ieee802154/i8sak/i8sak_startpan.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_startpan.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/wireless/ieee802154/i8sak/i8sak_tracedump.c b/wireless/ieee802154/i8sak/i8sak_tracedump.c index 3b1031c7ad4..e1253446e4b 100644 --- a/wireless/ieee802154/i8sak/i8sak_tracedump.c +++ b/wireless/ieee802154/i8sak/i8sak_tracedump.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_tracedump.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/wireless/ieee802154/i8sak/i8sak_tx.c b/wireless/ieee802154/i8sak/i8sak_tx.c index 59b99f46d2a..fe06614265d 100644 --- a/wireless/ieee802154/i8sak/i8sak_tx.c +++ b/wireless/ieee802154/i8sak/i8sak_tx.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8sak/i8sak_tx.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/wireless/ieee802154/i8shark/CMakeLists.txt b/wireless/ieee802154/i8shark/CMakeLists.txt index 6c43fa9eb75..fcb9b52b102 100644 --- a/wireless/ieee802154/i8shark/CMakeLists.txt +++ b/wireless/ieee802154/i8shark/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/wireless/ieee802154/i8shark/CMakeLists.txt # +# 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 diff --git a/wireless/ieee802154/i8shark/Make.defs b/wireless/ieee802154/i8shark/Make.defs index bae703e6db8..1420f250f95 100644 --- a/wireless/ieee802154/i8shark/Make.defs +++ b/wireless/ieee802154/i8shark/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/ieee802154/i8shark/Make.defs # +# 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/wireless/ieee802154/i8shark/Makefile b/wireless/ieee802154/i8shark/Makefile index 47cc8505b59..904bfb04dd7 100644 --- a/wireless/ieee802154/i8shark/Makefile +++ b/wireless/ieee802154/i8shark/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/ieee802154/i8shark/Makefile # +# 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/wireless/ieee802154/i8shark/i8shark_main.c b/wireless/ieee802154/i8shark/i8shark_main.c index d7992a9bd5c..8d7af6f7fa0 100644 --- a/wireless/ieee802154/i8shark/i8shark_main.c +++ b/wireless/ieee802154/i8shark/i8shark_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/i8shark/i8shark_main.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/wireless/ieee802154/libmac/CMakeLists.txt b/wireless/ieee802154/libmac/CMakeLists.txt index fe2c964c222..7a7c1d09f58 100644 --- a/wireless/ieee802154/libmac/CMakeLists.txt +++ b/wireless/ieee802154/libmac/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/wireless/ieee802154/libmac/CMakeLists.txt # +# 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 diff --git a/wireless/ieee802154/libmac/Make.defs b/wireless/ieee802154/libmac/Make.defs index 909dc7d2b7a..933a5f984d6 100644 --- a/wireless/ieee802154/libmac/Make.defs +++ b/wireless/ieee802154/libmac/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/ieee802154/libmac/Make.defs # +# 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/wireless/ieee802154/libmac/Makefile b/wireless/ieee802154/libmac/Makefile index 4508ff205ac..31dab62d141 100644 --- a/wireless/ieee802154/libmac/Makefile +++ b/wireless/ieee802154/libmac/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/ieee802154/libmac/Makefile # +# 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/wireless/ieee802154/libmac/ieee802154_assocreq.c b/wireless/ieee802154/libmac/ieee802154_assocreq.c index 8db5e677b84..0d392c4a55b 100644 --- a/wireless/ieee802154/libmac/ieee802154_assocreq.c +++ b/wireless/ieee802154/libmac/ieee802154_assocreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/ieee802154_assocreq.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/wireless/ieee802154/libmac/ieee802154_assocresp.c b/wireless/ieee802154/libmac/ieee802154_assocresp.c index 4c38de0769a..d695394a6d0 100644 --- a/wireless/ieee802154/libmac/ieee802154_assocresp.c +++ b/wireless/ieee802154/libmac/ieee802154_assocresp.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/ieee802154_assocresp.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/wireless/ieee802154/libmac/ieee802154_disassocreq.c b/wireless/ieee802154/libmac/ieee802154_disassocreq.c index 81cd90b18ff..2f459b8267c 100644 --- a/wireless/ieee802154/libmac/ieee802154_disassocreq.c +++ b/wireless/ieee802154/libmac/ieee802154_disassocreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/ieee802154_disassocreq.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/wireless/ieee802154/libmac/ieee802154_getreq.c b/wireless/ieee802154/libmac/ieee802154_getreq.c index 9d2bd211f79..6ea946c111e 100644 --- a/wireless/ieee802154/libmac/ieee802154_getreq.c +++ b/wireless/ieee802154/libmac/ieee802154_getreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/ieee802154_getreq.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/wireless/ieee802154/libmac/ieee802154_gtsreq.c b/wireless/ieee802154/libmac/ieee802154_gtsreq.c index 51bfdccea59..909e6fb7654 100644 --- a/wireless/ieee802154/libmac/ieee802154_gtsreq.c +++ b/wireless/ieee802154/libmac/ieee802154_gtsreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/ieee802154_gtsreq.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/wireless/ieee802154/libmac/ieee802154_orphanresp.c b/wireless/ieee802154/libmac/ieee802154_orphanresp.c index af63cc9ac5a..b997091d52e 100644 --- a/wireless/ieee802154/libmac/ieee802154_orphanresp.c +++ b/wireless/ieee802154/libmac/ieee802154_orphanresp.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/ieee802154_orphanresp.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/wireless/ieee802154/libmac/ieee802154_pollreq.c b/wireless/ieee802154/libmac/ieee802154_pollreq.c index 4a51074423d..49e64fd40d7 100644 --- a/wireless/ieee802154/libmac/ieee802154_pollreq.c +++ b/wireless/ieee802154/libmac/ieee802154_pollreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/ieee802154_pollreq.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/wireless/ieee802154/libmac/ieee802154_resetreq.c b/wireless/ieee802154/libmac/ieee802154_resetreq.c index 20175af99ea..f5c4e243405 100644 --- a/wireless/ieee802154/libmac/ieee802154_resetreq.c +++ b/wireless/ieee802154/libmac/ieee802154_resetreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/ieee802154_resetreq.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/wireless/ieee802154/libmac/ieee802154_rxenabreq.c b/wireless/ieee802154/libmac/ieee802154_rxenabreq.c index f83739cf43c..18e8e33f8f4 100644 --- a/wireless/ieee802154/libmac/ieee802154_rxenabreq.c +++ b/wireless/ieee802154/libmac/ieee802154_rxenabreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/ieee802154_rxenabreq.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/wireless/ieee802154/libmac/ieee802154_scanreq.c b/wireless/ieee802154/libmac/ieee802154_scanreq.c index 0744c9eae44..73f3ac7ff1d 100644 --- a/wireless/ieee802154/libmac/ieee802154_scanreq.c +++ b/wireless/ieee802154/libmac/ieee802154_scanreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/ieee802154_scanreq.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/wireless/ieee802154/libmac/ieee802154_setreq.c b/wireless/ieee802154/libmac/ieee802154_setreq.c index feaf4c77319..bb7d67d9531 100644 --- a/wireless/ieee802154/libmac/ieee802154_setreq.c +++ b/wireless/ieee802154/libmac/ieee802154_setreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/ieee802154_setreq.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/wireless/ieee802154/libmac/ieee802154_startreq.c b/wireless/ieee802154/libmac/ieee802154_startreq.c index 67ae849b4c7..dd94249198d 100644 --- a/wireless/ieee802154/libmac/ieee802154_startreq.c +++ b/wireless/ieee802154/libmac/ieee802154_startreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/ieee802154_startreq.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/wireless/ieee802154/libmac/ieee802154_syncreq.c b/wireless/ieee802154/libmac/ieee802154_syncreq.c index 18efd0beed6..7e2c834ce68 100644 --- a/wireless/ieee802154/libmac/ieee802154_syncreq.c +++ b/wireless/ieee802154/libmac/ieee802154_syncreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/ieee802154_syncreq.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/wireless/ieee802154/libmac/sixlowpan_assocreq.c b/wireless/ieee802154/libmac/sixlowpan_assocreq.c index d81a61e6f19..734d2aa351b 100644 --- a/wireless/ieee802154/libmac/sixlowpan_assocreq.c +++ b/wireless/ieee802154/libmac/sixlowpan_assocreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/sixlowpan_assocreq.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/wireless/ieee802154/libmac/sixlowpan_assocresp.c b/wireless/ieee802154/libmac/sixlowpan_assocresp.c index f6c325af4ac..e67f6c7b3f6 100644 --- a/wireless/ieee802154/libmac/sixlowpan_assocresp.c +++ b/wireless/ieee802154/libmac/sixlowpan_assocresp.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/sixlowpan_assocresp.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/wireless/ieee802154/libmac/sixlowpan_disassocreq.c b/wireless/ieee802154/libmac/sixlowpan_disassocreq.c index e17939fb4b5..8582379d3cf 100644 --- a/wireless/ieee802154/libmac/sixlowpan_disassocreq.c +++ b/wireless/ieee802154/libmac/sixlowpan_disassocreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/sixlowpan_disassocreq.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/wireless/ieee802154/libmac/sixlowpan_getpromisc.c b/wireless/ieee802154/libmac/sixlowpan_getpromisc.c index 893369831d7..e524d038cff 100644 --- a/wireless/ieee802154/libmac/sixlowpan_getpromisc.c +++ b/wireless/ieee802154/libmac/sixlowpan_getpromisc.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/sixlowpan_getpromisc.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/wireless/ieee802154/libmac/sixlowpan_getreq.c b/wireless/ieee802154/libmac/sixlowpan_getreq.c index 3d246a274b6..5bdad58d0ee 100644 --- a/wireless/ieee802154/libmac/sixlowpan_getreq.c +++ b/wireless/ieee802154/libmac/sixlowpan_getreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/sixlowpan_getreq.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/wireless/ieee802154/libmac/sixlowpan_gtsreq.c b/wireless/ieee802154/libmac/sixlowpan_gtsreq.c index d33742c2f83..e8d20539644 100644 --- a/wireless/ieee802154/libmac/sixlowpan_gtsreq.c +++ b/wireless/ieee802154/libmac/sixlowpan_gtsreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/sixlowpan_gtsreq.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/wireless/ieee802154/libmac/sixlowpan_orphanresp.c b/wireless/ieee802154/libmac/sixlowpan_orphanresp.c index 25116c421c3..decb4b58d7e 100644 --- a/wireless/ieee802154/libmac/sixlowpan_orphanresp.c +++ b/wireless/ieee802154/libmac/sixlowpan_orphanresp.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/sixlowpan_orphanresp.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/wireless/ieee802154/libmac/sixlowpan_pollreq.c b/wireless/ieee802154/libmac/sixlowpan_pollreq.c index 84dc31a53cd..4e8a4d60116 100644 --- a/wireless/ieee802154/libmac/sixlowpan_pollreq.c +++ b/wireless/ieee802154/libmac/sixlowpan_pollreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/sixlowpan_pollreq.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/wireless/ieee802154/libmac/sixlowpan_resetreq.c b/wireless/ieee802154/libmac/sixlowpan_resetreq.c index 84e182942ee..824c802e8a8 100644 --- a/wireless/ieee802154/libmac/sixlowpan_resetreq.c +++ b/wireless/ieee802154/libmac/sixlowpan_resetreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/sixlowpan_resetreq.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/wireless/ieee802154/libmac/sixlowpan_rxenabreq.c b/wireless/ieee802154/libmac/sixlowpan_rxenabreq.c index 4165661cced..d7fff034790 100644 --- a/wireless/ieee802154/libmac/sixlowpan_rxenabreq.c +++ b/wireless/ieee802154/libmac/sixlowpan_rxenabreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/sixlowpan_rxenabreq.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/wireless/ieee802154/libmac/sixlowpan_scanreq.c b/wireless/ieee802154/libmac/sixlowpan_scanreq.c index b39124bdc47..04061d8720d 100644 --- a/wireless/ieee802154/libmac/sixlowpan_scanreq.c +++ b/wireless/ieee802154/libmac/sixlowpan_scanreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/sixlowpan_scanreq.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/wireless/ieee802154/libmac/sixlowpan_setreq.c b/wireless/ieee802154/libmac/sixlowpan_setreq.c index f115a74bad8..86255930f76 100644 --- a/wireless/ieee802154/libmac/sixlowpan_setreq.c +++ b/wireless/ieee802154/libmac/sixlowpan_setreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/sixlowpan_setreq.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/wireless/ieee802154/libmac/sixlowpan_startreq.c b/wireless/ieee802154/libmac/sixlowpan_startreq.c index 36203e7bc82..8d4c529b9cc 100644 --- a/wireless/ieee802154/libmac/sixlowpan_startreq.c +++ b/wireless/ieee802154/libmac/sixlowpan_startreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/sixlowpan_startreq.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/wireless/ieee802154/libmac/sixlowpan_syncreq.c b/wireless/ieee802154/libmac/sixlowpan_syncreq.c index f3f5af81926..a4fe76517d5 100644 --- a/wireless/ieee802154/libmac/sixlowpan_syncreq.c +++ b/wireless/ieee802154/libmac/sixlowpan_syncreq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libmac/sixlowpan_syncreq.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/wireless/ieee802154/libutils/CMakeLists.txt b/wireless/ieee802154/libutils/CMakeLists.txt index 0a09e76af61..2c869dc8079 100644 --- a/wireless/ieee802154/libutils/CMakeLists.txt +++ b/wireless/ieee802154/libutils/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/wireless/ieee802154/libutils/CMakeLists.txt # +# 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 diff --git a/wireless/ieee802154/libutils/Make.defs b/wireless/ieee802154/libutils/Make.defs index 3963e4aa5c8..ed20e714da0 100644 --- a/wireless/ieee802154/libutils/Make.defs +++ b/wireless/ieee802154/libutils/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/ieee802154/libutils/Make.defs # +# 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/wireless/ieee802154/libutils/Makefile b/wireless/ieee802154/libutils/Makefile index 164379ef9e3..666e7c8428e 100644 --- a/wireless/ieee802154/libutils/Makefile +++ b/wireless/ieee802154/libutils/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/ieee802154/libutils/Makefile # +# 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/wireless/ieee802154/libutils/ieee802154_addrtostr.c b/wireless/ieee802154/libutils/ieee802154_addrtostr.c index 60b480431c8..2cf71afd0b2 100644 --- a/wireless/ieee802154/libutils/ieee802154_addrtostr.c +++ b/wireless/ieee802154/libutils/ieee802154_addrtostr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/ieee802154/libutils/ieee802154_addrtostr.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/wireless/iwpan/Make.defs b/wireless/iwpan/Make.defs index 97e6cd906e8..07667b5245b 100644 --- a/wireless/iwpan/Make.defs +++ b/wireless/iwpan/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/iwpan/Make.defs # +# 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/wireless/iwpan/Makefile b/wireless/iwpan/Makefile index f8f527043d6..2d50f223984 100644 --- a/wireless/iwpan/Makefile +++ b/wireless/iwpan/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/iwpan/Makefile # +# 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/wireless/iwpan/src/Make.defs b/wireless/iwpan/src/Make.defs index 3725a4110cd..bfc7937c644 100644 --- a/wireless/iwpan/src/Make.defs +++ b/wireless/iwpan/src/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/iwpan/src/Make.defs # +# 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/wireless/iwpan/src/iwpan.c b/wireless/iwpan/src/iwpan.c index d4114a03bf0..db13f251d25 100644 --- a/wireless/iwpan/src/iwpan.c +++ b/wireless/iwpan/src/iwpan.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/wireless/iwpan/src/iwpan.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/wireless/wapi/CMakeLists.txt b/wireless/wapi/CMakeLists.txt index 440e9a4773f..08980c461f8 100644 --- a/wireless/wapi/CMakeLists.txt +++ b/wireless/wapi/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # wireless/wapi/CMakeLists.txt # +# 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 diff --git a/wireless/wapi/Make.defs b/wireless/wapi/Make.defs index af7e33d434b..bec2872af39 100644 --- a/wireless/wapi/Make.defs +++ b/wireless/wapi/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/wapi/Make.defs # +# 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/wireless/wapi/Makefile b/wireless/wapi/Makefile index 0515c2a4b6f..4f5964cb7f9 100644 --- a/wireless/wapi/Makefile +++ b/wireless/wapi/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/wapi/Makefile # +# 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/wireless/wapi/src/Make.defs b/wireless/wapi/src/Make.defs index f8691e50b4f..57efc2f7cd8 100644 --- a/wireless/wapi/src/Make.defs +++ b/wireless/wapi/src/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/wireless/wapi/src/Make.defs # +# 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/wireless/wapi/src/driver_wext.c b/wireless/wapi/src/driver_wext.c index dc18610feec..23b1583281b 100644 --- a/wireless/wapi/src/driver_wext.c +++ b/wireless/wapi/src/driver_wext.c @@ -1,15 +1,11 @@ /**************************************************************************** * apps/wireless/wapi/src/driver_wext.c - * Driver interaction with generic Wireless Extensions * - * Copyright (C) 2017, 2019 Gregory Nutt. All rights reserved. - * Author: Simon Piriou - * Gregory Nutt - * - * Adapted for NuttX from the driver_ext.c of WPA suplicant written - * originally by Jouni Malinen - * - * Copyright (c) 2003-2015, Jouni Malinen + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2017, 2019 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2003-2015 Jouni Malinen + * SPDX-FileContributor: Simon Piriou + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/wireless/wapi/src/network.c b/wireless/wapi/src/network.c index 7a4141ef992..0521a45f325 100644 --- a/wireless/wapi/src/network.c +++ b/wireless/wapi/src/network.c @@ -1,13 +1,10 @@ /**************************************************************************** * apps/wireless/wapi/src/network.c * - * Copyright (C) 2011, 2017 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Adapted for NuttX from WAPI: - * - * Copyright (c) 2010, Volkan YAZICI - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2011, 2017 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2010, Volkan YAZICI + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are diff --git a/wireless/wapi/src/util.c b/wireless/wapi/src/util.c index e22b8c18e9f..b2c6b93d392 100644 --- a/wireless/wapi/src/util.c +++ b/wireless/wapi/src/util.c @@ -1,13 +1,10 @@ /**************************************************************************** * apps/wireless/wapi/src/util.c * - * Copyright (C) 2011, 2017Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Adapted for NuttX from WAPI: - * - * Copyright (c) 2010, Volkan YAZICI - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2011, 2017 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2010 Volkan YAZICI + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/wireless/wapi/src/util.h b/wireless/wapi/src/util.h index 56a513ab70a..4639d3159ae 100644 --- a/wireless/wapi/src/util.h +++ b/wireless/wapi/src/util.h @@ -1,13 +1,10 @@ /**************************************************************************** * apps/wireless/wapi/src/util.h * - * Copyright (C) 2011, 2017Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Adapted for NuttX from WAPI: - * - * Copyright (c) 2010, Volkan YAZICI - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2011, 2017 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2010 Volkan YAZICI + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are diff --git a/wireless/wapi/src/wapi.c b/wireless/wapi/src/wapi.c index 053d5069826..e61274c849c 100644 --- a/wireless/wapi/src/wapi.c +++ b/wireless/wapi/src/wapi.c @@ -1,14 +1,10 @@ /**************************************************************************** * apps/wireless/wapi/src/wapi.c * - * Copyright (C) 2011, 2017, 2019 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Largely and original work, but highly influenced by sampled code provided - * with WAPI: - * - * Copyright (c) 2010, Volkan YAZICI - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2011,2017,2019 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2010 Volkan YAZICI + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/wireless/wapi/src/wireless.c b/wireless/wapi/src/wireless.c index 56f67fc813f..fe31c7851c3 100644 --- a/wireless/wapi/src/wireless.c +++ b/wireless/wapi/src/wireless.c @@ -1,13 +1,10 @@ /**************************************************************************** * apps/wireless/wapi/src/wireless.c * - * Copyright (C) 2011, 2017, 2019 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Adapted for NuttX from WAPI: - * - * Copyright (c) 2010, Volkan YAZICI - * All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2011,2017,2019 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 2010, Volkan YAZICI + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are From ec897dfa0620919b80b4b1498cca4a25fcf52764 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 15:55:00 +0100 Subject: [PATCH 33/38] system: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- system/CMakeLists.txt | 2 + system/Make.defs | 2 + system/Makefile | 2 + system/adb/CMakeLists.txt | 2 + system/adb/Make.defs | 2 + system/adb/Makefile | 2 + system/adb/adb_banner.c | 2 + system/adb/adb_main.c | 2 + system/adb/logcat_service.c | 2 + system/argtable3/CMakeLists.txt | 2 + system/argtable3/Make.defs | 2 + system/argtable3/Makefile | 2 + system/batterydump/CMakeLists.txt | 2 + system/batterydump/Make.defs | 2 + system/batterydump/Makefile | 2 + system/batterydump/batterydump.c | 2 + system/cdcacm/CMakeLists.txt | 2 + system/cdcacm/Make.defs | 2 + system/cdcacm/Makefile | 2 + system/cdcacm/cdcacm.h | 2 + system/cdcacm/cdcacm_main.c | 2 + system/cfgdata/CMakeLists.txt | 2 + system/cfgdata/Make.defs | 2 + system/cfgdata/Makefile | 2 + system/cfgdata/cfgdata_main.c | 2 + system/cle/CMakeLists.txt | 2 + system/cle/Make.defs | 2 + system/cle/Makefile | 2 + system/cle/cle.c | 2 + system/composite/CMakeLists.txt | 2 + system/composite/Make.defs | 2 + system/composite/Makefile | 2 + system/composite/composite.h | 2 + system/composite/composite_main.c | 2 + system/conntrack/CMakeLists.txt | 2 + system/conntrack/Make.defs | 2 + system/conntrack/Makefile | 2 + system/conntrack/conntrack.c | 2 + system/coredump/CMakeLists.txt | 2 + system/coredump/Make.defs | 2 + system/coredump/Makefile | 2 + system/coredump/coredump.c | 2 + system/critmon/CMakeLists.txt | 2 + system/critmon/Make.defs | 2 + system/critmon/Makefile | 2 + system/critmon/critmon.c | 2 + system/cu/CMakeLists.txt | 2 + system/cu/Make.defs | 2 + system/cu/Makefile | 2 + system/cu/cu.h | 5 ++- system/cu/cu_main.c | 5 ++- system/dd/CMakeLists.txt | 2 + system/dd/Make.defs | 2 + system/dd/Makefile | 2 + system/dd/dd_main.c | 2 + system/debugpoint/CMakeLists.txt | 2 + system/debugpoint/Make.defs | 2 + system/debugpoint/Makefile | 2 + system/debugpoint/debug.c | 2 + system/dhcp6c/CMakeLists.txt | 2 + system/dhcp6c/Make.defs | 2 + system/dhcp6c/Makefile | 2 + system/dhcp6c/renew6_main.c | 2 + system/dhcpc/CMakeLists.txt | 2 + system/dhcpc/Make.defs | 2 + system/dhcpc/Makefile | 2 + system/dhcpc/renew_main.c | 2 + system/dumpstack/CMakeLists.txt | 2 + system/dumpstack/Make.defs | 2 + system/dumpstack/Makefile | 2 + system/dumpstack/dumpstack.c | 2 + system/fastboot/CMakeLists.txt | 2 + system/fastboot/Make.defs | 2 + system/fastboot/Makefile | 2 + system/fastboot/fastboot.c | 2 + system/fdt/CMakeLists.txt | 2 + system/fdt/Make.defs | 2 + system/fdt/Makefile | 2 + system/flash_eraseall/CMakeLists.txt | 2 + system/flash_eraseall/Make.defs | 2 + system/flash_eraseall/Makefile | 2 + system/flash_eraseall/flash_eraseall_main.c | 2 + system/flatbuffers/CMakeLists.txt | 2 + system/flatbuffers/Make.defs | 2 + system/flatbuffers/Makefile | 2 + system/gcov/CMakeLists.txt | 2 + system/gcov/Make.defs | 2 + system/gcov/Makefile | 2 + system/gcov/gcov.c | 2 + system/gdbstub/CMakeLists.txt | 2 + system/gdbstub/Make.defs | 2 + system/gdbstub/Makefile | 2 + system/gdbstub/gdbstub.c | 2 + system/gprof/CMakeLists.txt | 2 + system/gprof/Make.defs | 2 + system/gprof/Makefile | 2 + system/gprof/gprof.c | 2 + system/hex2bin/CMakeLists.txt | 2 + system/hex2bin/Make.defs | 2 + system/hex2bin/Makefile | 2 + system/hex2bin/hex2bin_main.c | 2 + system/hex2bin/hex2mem_main.c | 2 + system/hexed/CMakeLists.txt | 2 + system/hexed/Make.defs | 2 + system/hexed/Makefile | 2 + system/hexed/include/bfile.h | 4 +- system/hexed/include/cmdargs.h | 4 +- system/hexed/include/hexed.h | 4 +- system/hexed/src/bfile.c | 4 +- system/hexed/src/cmdargs.c | 4 +- system/hexed/src/hexcopy.c | 4 +- system/hexed/src/hexdump.c | 4 +- system/hexed/src/hexed.c | 4 +- system/hexed/src/hexenter.c | 4 +- system/hexed/src/hexhelp.c | 4 +- system/hexed/src/hexinsert.c | 4 +- system/hexed/src/hexmove.c | 4 +- system/hexed/src/hexremove.c | 4 +- system/hexed/src/hexword.c | 4 +- system/hostname/CMakeLists.txt | 2 + system/hostname/Make.defs | 2 + system/hostname/Makefile | 2 + system/hostname/hostname_main.c | 2 + system/i2c/CMakeLists.txt | 2 + system/i2c/Make.defs | 2 + system/i2c/Makefile | 2 + system/i2c/i2c_bus.c | 2 + system/i2c/i2c_common.c | 2 + system/i2c/i2c_dev.c | 2 + system/i2c/i2c_devif.c | 2 + system/i2c/i2c_dump.c | 2 + system/i2c/i2c_get.c | 2 + system/i2c/i2c_hexdump.c | 2 + system/i2c/i2c_main.c | 2 + system/i2c/i2c_reset.c | 2 + system/i2c/i2c_set.c | 2 + system/i2c/i2c_verf.c | 2 + system/i2c/i2ctool.h | 2 + system/input/CMakeLists.txt | 2 + system/input/Make.defs | 2 + system/input/Makefile | 2 + system/input/input.c | 2 + system/iptables/CMakeLists.txt | 2 + system/iptables/Make.defs | 2 + system/iptables/Makefile | 2 + system/iptables/ip6tables.c | 2 + system/iptables/iptables.c | 2 + system/iptables/iptables.h | 2 + system/iptables/iptables_utils.c | 2 + system/libuv/CMakeLists.txt | 2 + system/libuv/Make.defs | 2 + system/libuv/Makefile | 2 + system/lm75/CMakeLists.txt | 2 + system/lm75/Make.defs | 2 + system/lm75/Makefile | 2 + system/lm75/lm75.c | 2 + system/lsan/CMakeLists.txt | 2 + system/lsan/Make.defs | 2 + system/lsan/Makefile | 2 + system/lsan/lsan_main.c | 2 + system/lzf/CMakeLists.txt | 2 + system/lzf/Make.defs | 2 + system/lzf/Makefile | 2 + system/lzf/Makefile.host | 2 + system/lzf/lzf_main.c | 3 +- system/mdio/CMakeLists.txt | 2 + system/mdio/Make.defs | 2 + system/mdio/Makefile | 2 + system/mdio/mdio_main.c | 2 + system/netdb/CMakeLists.txt | 2 + system/netdb/Make.defs | 2 + system/netdb/Makefile | 2 + system/netdb/netdb_main.c | 2 + system/nsh/CMakeLists.txt | 2 + system/nsh/Make.defs | 2 + system/nsh/Makefile | 2 + system/nsh/nsh_main.c | 2 + system/nsh/sh_main.c | 2 + system/ntpc/CMakeLists.txt | 2 + system/ntpc/Make.defs | 2 + system/ntpc/Makefile | 2 + system/ntpc/ntpcstart_main.c | 2 + system/ntpc/ntpcstatus_main.c | 2 + system/ntpc/ntpcstop_main.c | 2 + system/nxcamera/CMakeLists.txt | 2 + system/nxcamera/Make.defs | 2 + system/nxcamera/Makefile | 2 + system/nxcamera/nxcamera.c | 2 + system/nxcamera/nxcamera_main.c | 2 + system/nxcodec/CMakeLists.txt | 2 + system/nxcodec/Make.defs | 2 + system/nxcodec/Makefile | 2 + system/nxcodec/nxcodec.c | 2 + system/nxcodec/nxcodec.h | 2 + system/nxcodec/nxcodec_context.c | 2 + system/nxcodec/nxcodec_context.h | 2 + system/nxcodec/nxcodec_main.c | 2 + system/nxdiag/Make.defs | 2 + system/nxdiag/Makefile | 2 + system/nxdiag/nxdiag.c | 2 + system/nxlooper/CMakeLists.txt | 2 + system/nxlooper/Make.defs | 2 + system/nxlooper/Makefile | 2 + system/nxlooper/nxlooper.c | 2 + system/nxlooper/nxlooper_main.c | 2 + system/nxplayer/CMakeLists.txt | 2 + system/nxplayer/Make.defs | 2 + system/nxplayer/Makefile | 2 + system/nxplayer/nxplayer.c | 2 + system/nxplayer/nxplayer_common.c | 2 + system/nxplayer/nxplayer_main.c | 2 + system/nxplayer/nxplayer_mp3.c | 2 + system/nxplayer/nxplayer_sbc.c | 2 + system/nxrecorder/CMakeLists.txt | 2 + system/nxrecorder/Make.defs | 2 + system/nxrecorder/Makefile | 2 + system/nxrecorder/nxrecorder.c | 2 + system/nxrecorder/nxrecorder_amr.c | 2 + system/nxrecorder/nxrecorder_common.c | 2 + system/nxrecorder/nxrecorder_main.c | 2 + system/ofloader/CMakeLists.txt | 2 + system/ofloader/Make.defs | 2 + system/ofloader/Makefile | 2 + system/ofloader/ofloader.c | 2 + system/ofloader/ofloader.h | 2 + system/ofloader/segger.c | 2 + system/ping/CMakeLists.txt | 2 + system/ping/Make.defs | 2 + system/ping/Makefile | 2 + system/ping/ping.c | 2 + system/ping6/CMakeLists.txt | 2 + system/ping6/Make.defs | 2 + system/ping6/Makefile | 2 + system/ping6/ping6.c | 2 + system/popen/CMakeLists.txt | 2 + system/popen/Make.defs | 2 + system/popen/Makefile | 2 + system/popen/popen.c | 2 + system/psmq/Make.defs | 2 + system/psmq/Makefile | 2 + system/ptpd/CMakeLists.txt | 2 + system/ptpd/Make.defs | 2 + system/ptpd/Makefile | 2 + system/ptpd/ptpd_main.c | 2 + system/readline/CMakeLists.txt | 2 + system/readline/Make.defs | 2 + system/readline/Makefile | 2 + system/readline/readline.c | 2 + system/readline/readline.h | 2 + system/readline/readline_common.c | 2 + system/readline/readline_fd.c | 2 + system/readline/readline_stream.c | 2 + system/sched_note/CMakeLists.txt | 2 + system/sched_note/Make.defs | 2 + system/sched_note/Makefile | 2 + system/sched_note/note_main.c | 2 + system/sensorscope/CMakeLists.txt | 2 + system/sensorscope/Make.defs | 2 + system/sensorscope/Makefile | 2 + system/sensorscope/sensorscope_main.c | 2 + system/setlogmask/CMakeLists.txt | 2 + system/setlogmask/Make.defs | 2 + system/setlogmask/Makefile | 2 + system/setlogmask/setlogmask.c | 2 + system/settings/Make.defs | 2 + system/settings/Makefile | 2 + system/settings/settings.c | 2 + system/settings/storage.h | 2 + system/settings/storage_bin.c | 2 + system/settings/storage_text.c | 2 + system/spi/CMakeLists.txt | 2 + system/spi/Make.defs | 2 + system/spi/Makefile | 2 + system/spi/spi_bus.c | 2 + system/spi/spi_common.c | 2 + system/spi/spi_devif.c | 2 + system/spi/spi_exch.c | 2 + system/spi/spi_main.c | 2 + system/spi/spitool.h | 2 + system/stackmonitor/CMakeLists.txt | 2 + system/stackmonitor/Make.defs | 2 + system/stackmonitor/Makefile | 2 + system/stackmonitor/stackmonitor.c | 2 + system/system/CMakeLists.txt | 2 + system/system/Make.defs | 2 + system/system/Makefile | 2 + system/system/system.c | 2 + system/taskset/CMakeLists.txt | 2 + system/taskset/Make.defs | 2 + system/taskset/Makefile | 2 + system/taskset/taskset.c | 2 + system/tcpdump/CMakeLists.txt | 2 + system/tcpdump/Make.defs | 2 + system/tcpdump/Makefile | 2 + system/tcpdump/tcpdump.c | 2 + system/tee/CMakeLists.txt | 2 + system/tee/Make.defs | 2 + system/tee/Makefile | 2 + system/telnet/CMakeLists.txt | 2 + system/telnet/Make.defs | 2 + system/telnet/Makefile | 2 + system/telnet/telnet_chatd.c | 38 ++++++++++--------- system/telnet/telnet_client.c | 38 ++++++++++--------- system/telnetd/CMakeLists.txt | 2 + system/telnetd/Make.defs | 2 + system/telnetd/Makefile | 2 + system/telnetd/telnetd.c | 2 + system/termcurses/CMakeLists.txt | 2 + system/termcurses/Make.defs | 2 + system/termcurses/Makefile | 2 + system/termcurses/tcurses_priv.h | 2 + system/termcurses/tcurses_vt100.c | 2 + system/termcurses/termcurses.c | 2 + system/trace/CMakeLists.txt | 2 + system/trace/Make.defs | 2 + system/trace/Makefile | 2 + system/trace/trace.c | 2 + system/trace/trace.h | 2 + system/trace/trace_dump.c | 2 + system/ubloxmodem/CMakeLists.txt | 2 + system/ubloxmodem/Make.defs | 2 + system/ubloxmodem/Makefile | 2 + system/ubloxmodem/ubloxmodem.h | 5 ++- system/ubloxmodem/ubloxmodem_main.c | 5 ++- system/uniqueid/CMakeLists.txt | 2 + system/uniqueid/Make.defs | 2 + system/uniqueid/Makefile | 2 + system/uniqueid/uniqueid_main.c | 2 + system/uorb/CMakeLists.txt | 2 + system/uorb/Make.defs | 2 + system/uorb/Makefile | 2 + system/uorb/listener.c | 2 + system/uorb/sensor/accel.c | 2 + system/uorb/sensor/accel.h | 2 + system/uorb/sensor/angle.c | 2 + system/uorb/sensor/angle.h | 2 + system/uorb/sensor/baro.c | 2 + system/uorb/sensor/baro.h | 2 + system/uorb/sensor/cap.c | 2 + system/uorb/sensor/cap.h | 2 + system/uorb/sensor/co2.c | 2 + system/uorb/sensor/co2.h | 2 + system/uorb/sensor/dust.c | 2 + system/uorb/sensor/dust.h | 2 + system/uorb/sensor/ecg.c | 2 + system/uorb/sensor/ecg.h | 2 + system/uorb/sensor/force.c | 2 + system/uorb/sensor/force.h | 2 + system/uorb/sensor/gas.c | 2 + system/uorb/sensor/gas.h | 2 + system/uorb/sensor/gesture.c | 2 + system/uorb/sensor/gesture.h | 2 + system/uorb/sensor/gnss.c | 2 + system/uorb/sensor/gnss.h | 2 + system/uorb/sensor/gyro.c | 2 + system/uorb/sensor/gyro.h | 2 + system/uorb/sensor/hall.c | 2 + system/uorb/sensor/hall.h | 2 + system/uorb/sensor/hbeat.c | 2 + system/uorb/sensor/hbeat.h | 2 + system/uorb/sensor/hcho.c | 2 + system/uorb/sensor/hcho.h | 2 + system/uorb/sensor/hrate.c | 2 + system/uorb/sensor/hrate.h | 2 + system/uorb/sensor/humi.c | 2 + system/uorb/sensor/humi.h | 2 + system/uorb/sensor/impd.c | 2 + system/uorb/sensor/impd.h | 2 + system/uorb/sensor/ir.c | 2 + system/uorb/sensor/ir.h | 2 + system/uorb/sensor/light.c | 2 + system/uorb/sensor/light.h | 2 + system/uorb/sensor/mag.c | 2 + system/uorb/sensor/mag.h | 2 + system/uorb/sensor/motion.c | 2 + system/uorb/sensor/motion.h | 2 + system/uorb/sensor/noise.c | 2 + system/uorb/sensor/noise.h | 2 + system/uorb/sensor/ots.c | 2 + system/uorb/sensor/ots.h | 2 + system/uorb/sensor/ph.c | 2 + system/uorb/sensor/ph.h | 2 + system/uorb/sensor/pm10.c | 2 + system/uorb/sensor/pm10.h | 2 + system/uorb/sensor/pm1p0.c | 2 + system/uorb/sensor/pm1p0.h | 2 + system/uorb/sensor/pm25.c | 2 + system/uorb/sensor/pm25.h | 2 + system/uorb/sensor/pose_6dof.c | 2 + system/uorb/sensor/pose_6dof.h | 2 + system/uorb/sensor/ppgd.c | 2 + system/uorb/sensor/ppgd.h | 2 + system/uorb/sensor/ppgq.c | 2 + system/uorb/sensor/ppgq.h | 2 + system/uorb/sensor/prox.c | 2 + system/uorb/sensor/prox.h | 2 + system/uorb/sensor/rgb.c | 2 + system/uorb/sensor/rgb.h | 2 + system/uorb/sensor/rotation.c | 2 + system/uorb/sensor/rotation.h | 2 + system/uorb/sensor/step_counter.c | 2 + system/uorb/sensor/step_counter.h | 2 + system/uorb/sensor/temp.c | 2 + system/uorb/sensor/temp.h | 2 + system/uorb/sensor/topics.c | 2 + system/uorb/sensor/tvoc.c | 2 + system/uorb/sensor/tvoc.h | 2 + system/uorb/sensor/uv.c | 2 + system/uorb/sensor/uv.h | 2 + system/uorb/test/unit_test.c | 2 + system/uorb/test/utility.c | 2 + system/uorb/test/utility.h | 2 + system/uorb/uORB/epoll.c | 2 + system/uorb/uORB/internal.h | 2 + system/uorb/uORB/loop.c | 2 + system/uorb/uORB/uORB.c | 2 + system/uorb/uORB/uORB.h | 2 + system/usbmsc/CMakeLists.txt | 2 + system/usbmsc/Make.defs | 2 + system/usbmsc/Makefile | 2 + system/usbmsc/usbmsc.h | 2 + system/usbmsc/usbmsc_main.c | 2 + system/vi/CMakeLists.txt | 2 + system/vi/Make.defs | 2 + system/vi/Makefile | 2 + system/vi/vi.c | 2 + system/ymodem/CMakeLists.txt | 2 + system/ymodem/Make.defs | 2 + system/ymodem/Makefile | 2 + system/ymodem/rb_main.c | 2 + system/ymodem/sb_main.c | 2 + system/ymodem/sbrb.py | 2 + system/ymodem/ymodem.c | 2 + system/ymodem/ymodem.h | 2 + system/zlib/CMakeLists.txt | 2 + system/zlib/Make.defs | 2 + system/zlib/Makefile | 2 + system/zmodem/CMakeLists.txt | 2 + system/zmodem/Make.defs | 2 + system/zmodem/Makefile | 2 + system/zmodem/Makefile.host | 2 + system/zmodem/host/crc16.c | 36 +++++++++--------- system/zmodem/host/crc32.c | 41 ++++++++++++++++++--- system/zmodem/host/debug.h | 2 + system/zmodem/host/nuttx/ascii.h | 2 + system/zmodem/host/nuttx/compiler.h | 2 + system/zmodem/host/nuttx/config.h | 2 + system/zmodem/host/nuttx/crc16.h | 2 + system/zmodem/host/nuttx/crc32.h | 2 + system/zmodem/rz_main.c | 2 + system/zmodem/sz_main.c | 2 + system/zmodem/zm.h | 2 + system/zmodem/zm_proto.c | 2 + system/zmodem/zm_receive.c | 2 + system/zmodem/zm_send.c | 2 + system/zmodem/zm_state.c | 2 + system/zmodem/zm_utils.c | 2 + system/zmodem/zm_watchdog.c | 2 + 458 files changed, 1008 insertions(+), 94 deletions(-) diff --git a/system/CMakeLists.txt b/system/CMakeLists.txt index 62ca957cb3c..0294b494f0c 100644 --- a/system/CMakeLists.txt +++ b/system/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/CMakeLists.txt # +# 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 diff --git a/system/Make.defs b/system/Make.defs index e3d5126dc24..11390919145 100644 --- a/system/Make.defs +++ b/system/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/Make.defs # +# 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/system/Makefile b/system/Makefile index da623e26411..12d2610c12e 100644 --- a/system/Makefile +++ b/system/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/Makefile # +# 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/system/adb/CMakeLists.txt b/system/adb/CMakeLists.txt index 97ab2754a35..7d1f9234180 100644 --- a/system/adb/CMakeLists.txt +++ b/system/adb/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/adb/CMakeLists.txt # +# 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 diff --git a/system/adb/Make.defs b/system/adb/Make.defs index 83c0d7d5565..d2ba03d0e2c 100644 --- a/system/adb/Make.defs +++ b/system/adb/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/adb/Make.defs # +# 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/system/adb/Makefile b/system/adb/Makefile index 266b1a16866..d8ed87b7b06 100644 --- a/system/adb/Makefile +++ b/system/adb/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/adb/Makefile # +# 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/system/adb/adb_banner.c b/system/adb/adb_banner.c index 5228abc0909..f45c22186c8 100644 --- a/system/adb/adb_banner.c +++ b/system/adb/adb_banner.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/adb/adb_banner.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/system/adb/adb_main.c b/system/adb/adb_main.c index 93a97d373ac..3895001d50b 100644 --- a/system/adb/adb_main.c +++ b/system/adb/adb_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/adb/adb_main.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/system/adb/logcat_service.c b/system/adb/logcat_service.c index 15e9a3bff69..7d4cb1a7595 100644 --- a/system/adb/logcat_service.c +++ b/system/adb/logcat_service.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/adb/logcat_service.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/system/argtable3/CMakeLists.txt b/system/argtable3/CMakeLists.txt index cb38247c842..fee506f42a0 100644 --- a/system/argtable3/CMakeLists.txt +++ b/system/argtable3/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/argtable3/CMakeLists.txt # +# 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 diff --git a/system/argtable3/Make.defs b/system/argtable3/Make.defs index 8ee8179728b..4b325613dfe 100644 --- a/system/argtable3/Make.defs +++ b/system/argtable3/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/argtable3/Make.defs # +# 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/system/argtable3/Makefile b/system/argtable3/Makefile index d2daf46aa50..592026f31c6 100644 --- a/system/argtable3/Makefile +++ b/system/argtable3/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/argtable3/Makefile # +# 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/system/batterydump/CMakeLists.txt b/system/batterydump/CMakeLists.txt index e822fb237ea..ebb5893a473 100644 --- a/system/batterydump/CMakeLists.txt +++ b/system/batterydump/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/batterydump/CMakeLists.txt # +# 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 diff --git a/system/batterydump/Make.defs b/system/batterydump/Make.defs index 07126ab10bd..d42a961c925 100644 --- a/system/batterydump/Make.defs +++ b/system/batterydump/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/batterydump/Make.defs # +# 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/system/batterydump/Makefile b/system/batterydump/Makefile index 5f4a4a1ad08..16a1e841317 100644 --- a/system/batterydump/Makefile +++ b/system/batterydump/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/batterydump/Makefile # +# 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/system/batterydump/batterydump.c b/system/batterydump/batterydump.c index 0649c0f6c3f..d317058f45f 100644 --- a/system/batterydump/batterydump.c +++ b/system/batterydump/batterydump.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/batterydump/batterydump.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/system/cdcacm/CMakeLists.txt b/system/cdcacm/CMakeLists.txt index d29b7bad817..c6a12d5b5e7 100644 --- a/system/cdcacm/CMakeLists.txt +++ b/system/cdcacm/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/cdcacm/CMakeLists.txt # +# 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 diff --git a/system/cdcacm/Make.defs b/system/cdcacm/Make.defs index b0bb2f65087..08dc10ed2e6 100644 --- a/system/cdcacm/Make.defs +++ b/system/cdcacm/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/cdcacm/Make.defs # +# 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/system/cdcacm/Makefile b/system/cdcacm/Makefile index 91db35c0acd..3c306337f2c 100644 --- a/system/cdcacm/Makefile +++ b/system/cdcacm/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/cdcacm/Makefile # +# 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/system/cdcacm/cdcacm.h b/system/cdcacm/cdcacm.h index bc255a03f1d..cd2651e8401 100644 --- a/system/cdcacm/cdcacm.h +++ b/system/cdcacm/cdcacm.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/cdcacm/cdcacm.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 diff --git a/system/cdcacm/cdcacm_main.c b/system/cdcacm/cdcacm_main.c index e3f08b19b93..fcaaf4593fa 100644 --- a/system/cdcacm/cdcacm_main.c +++ b/system/cdcacm/cdcacm_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/cdcacm/cdcacm_main.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/system/cfgdata/CMakeLists.txt b/system/cfgdata/CMakeLists.txt index 6a7b8e2dc01..b3aff9de530 100644 --- a/system/cfgdata/CMakeLists.txt +++ b/system/cfgdata/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/cfgdata/CMakeLists.txt # +# 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 diff --git a/system/cfgdata/Make.defs b/system/cfgdata/Make.defs index 8108766005d..133518362ce 100644 --- a/system/cfgdata/Make.defs +++ b/system/cfgdata/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/cfgdata/Make.defs # +# 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/system/cfgdata/Makefile b/system/cfgdata/Makefile index 4958030b82a..439ad567652 100644 --- a/system/cfgdata/Makefile +++ b/system/cfgdata/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/cfgdata/Makefile # +# 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/system/cfgdata/cfgdata_main.c b/system/cfgdata/cfgdata_main.c index 83776a555c0..ac218dc48fd 100644 --- a/system/cfgdata/cfgdata_main.c +++ b/system/cfgdata/cfgdata_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/cfgdata/cfgdata_main.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/system/cle/CMakeLists.txt b/system/cle/CMakeLists.txt index ee4f22a7e6a..43c69cfdd2e 100644 --- a/system/cle/CMakeLists.txt +++ b/system/cle/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/cle/CMakeLists.txt # +# 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 diff --git a/system/cle/Make.defs b/system/cle/Make.defs index 561e882cfc9..2f3938a42ed 100644 --- a/system/cle/Make.defs +++ b/system/cle/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/cle/Make.defs # +# 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/system/cle/Makefile b/system/cle/Makefile index e9ecfa81131..d888d722b20 100644 --- a/system/cle/Makefile +++ b/system/cle/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/cle/Makefile # +# 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/system/cle/cle.c b/system/cle/cle.c index 06bdb0b5362..cf11f7097f2 100644 --- a/system/cle/cle.c +++ b/system/cle/cle.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/cle/cle.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/system/composite/CMakeLists.txt b/system/composite/CMakeLists.txt index eb2b55bc678..9ca2f72ca38 100644 --- a/system/composite/CMakeLists.txt +++ b/system/composite/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/composite/CMakeLists.txt # +# 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 diff --git a/system/composite/Make.defs b/system/composite/Make.defs index 6d591b78150..bede538dd7f 100644 --- a/system/composite/Make.defs +++ b/system/composite/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/composite/Make.defs # +# 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/system/composite/Makefile b/system/composite/Makefile index a9aa682b1b9..4411d807e2e 100644 --- a/system/composite/Makefile +++ b/system/composite/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/composite/Makefile # +# 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/system/composite/composite.h b/system/composite/composite.h index 0bef05ec077..1320748d126 100644 --- a/system/composite/composite.h +++ b/system/composite/composite.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/composite/composite.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 diff --git a/system/composite/composite_main.c b/system/composite/composite_main.c index 0a99b022f86..9dc4399e881 100644 --- a/system/composite/composite_main.c +++ b/system/composite/composite_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/composite/composite_main.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/system/conntrack/CMakeLists.txt b/system/conntrack/CMakeLists.txt index 72fc176963a..b79daec8acd 100644 --- a/system/conntrack/CMakeLists.txt +++ b/system/conntrack/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/conntrack/CMakeLists.txt # +# 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 diff --git a/system/conntrack/Make.defs b/system/conntrack/Make.defs index 9c746c6adca..5c9ec716e29 100644 --- a/system/conntrack/Make.defs +++ b/system/conntrack/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/conntrack/Make.defs # +# 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/system/conntrack/Makefile b/system/conntrack/Makefile index 31efea8e04f..700a7c32298 100644 --- a/system/conntrack/Makefile +++ b/system/conntrack/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/conntrack/Makefile # +# 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/system/conntrack/conntrack.c b/system/conntrack/conntrack.c index c58784b0dee..f8a48302aad 100644 --- a/system/conntrack/conntrack.c +++ b/system/conntrack/conntrack.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/conntrack/conntrack.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/system/coredump/CMakeLists.txt b/system/coredump/CMakeLists.txt index 5782629e128..ccb43391a0e 100644 --- a/system/coredump/CMakeLists.txt +++ b/system/coredump/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/coredump/CMakeLists.txt # +# 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 diff --git a/system/coredump/Make.defs b/system/coredump/Make.defs index c149e863b31..a4e640c115a 100644 --- a/system/coredump/Make.defs +++ b/system/coredump/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/coredump/Make.defs # +# 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/system/coredump/Makefile b/system/coredump/Makefile index 4fbd693ee97..ec485903602 100644 --- a/system/coredump/Makefile +++ b/system/coredump/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/coredump/Makefile # +# 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/system/coredump/coredump.c b/system/coredump/coredump.c index 1846dc9ee88..d859e074563 100644 --- a/system/coredump/coredump.c +++ b/system/coredump/coredump.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/coredump/coredump.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/system/critmon/CMakeLists.txt b/system/critmon/CMakeLists.txt index 9271f0b0df9..b826f0987e6 100644 --- a/system/critmon/CMakeLists.txt +++ b/system/critmon/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/critmon/CMakeLists.txt # +# 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 diff --git a/system/critmon/Make.defs b/system/critmon/Make.defs index 864fa768f91..6a893b2e80c 100644 --- a/system/critmon/Make.defs +++ b/system/critmon/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/critmon/Make.defs # +# 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/system/critmon/Makefile b/system/critmon/Makefile index ec1c3cc9c2c..d0bbeba0e98 100644 --- a/system/critmon/Makefile +++ b/system/critmon/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/critmon/Makefile # +# 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/system/critmon/critmon.c b/system/critmon/critmon.c index e5761fa1ee5..6b9f948609b 100644 --- a/system/critmon/critmon.c +++ b/system/critmon/critmon.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/critmon/critmon.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/system/cu/CMakeLists.txt b/system/cu/CMakeLists.txt index b3121fb5f79..ce84a313e8b 100644 --- a/system/cu/CMakeLists.txt +++ b/system/cu/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/cu/CMakeLists.txt # +# 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 diff --git a/system/cu/Make.defs b/system/cu/Make.defs index a4c20a6e68a..4ebb0f2cabc 100644 --- a/system/cu/Make.defs +++ b/system/cu/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/cu/Make.defs # +# 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/system/cu/Makefile b/system/cu/Makefile index 3869413cd49..8769a360fac 100644 --- a/system/cu/Makefile +++ b/system/cu/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/cu/Makefile # +# 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/system/cu/cu.h b/system/cu/cu.h index 89267b470be..be9b31fb321 100644 --- a/system/cu/cu.h +++ b/system/cu/cu.h @@ -1,8 +1,9 @@ /**************************************************************************** * apps/system/cu/cu.h * - * Copyright (C) 2014 sysmocom - s.f.m.c. GmbH. All rights reserved. - * Author: Harald Welte + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2014 sysmocom - s.f.m.c. GmbH. All rights reserved. + * SPDX-FileContributor: Harald Welte * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/system/cu/cu_main.c b/system/cu/cu_main.c index 0997014cb20..2b8fabda181 100644 --- a/system/cu/cu_main.c +++ b/system/cu/cu_main.c @@ -1,8 +1,9 @@ /**************************************************************************** * apps/system/cu/cu_main.c * - * Copyright (C) 2014 sysmocom - s.f.m.c. GmbH. All rights reserved. - * Author: Harald Welte + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2014 sysmocom - s.f.m.c. GmbH. All rights reserved. + * SPDX-FileContributor: Harald Welte * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/system/dd/CMakeLists.txt b/system/dd/CMakeLists.txt index 945319502f7..4b060867bfd 100644 --- a/system/dd/CMakeLists.txt +++ b/system/dd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/dd/CMakeLists.txt # +# 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 diff --git a/system/dd/Make.defs b/system/dd/Make.defs index ac47b11c230..f64243ed1f7 100644 --- a/system/dd/Make.defs +++ b/system/dd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/dd/Make.defs # +# 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/system/dd/Makefile b/system/dd/Makefile index 0b11782152b..5bfafdca0f2 100644 --- a/system/dd/Makefile +++ b/system/dd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/dd/Makefile # +# 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/system/dd/dd_main.c b/system/dd/dd_main.c index a5e6a13ebe3..ca9e3c7b6f6 100644 --- a/system/dd/dd_main.c +++ b/system/dd/dd_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/dd/dd_main.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/system/debugpoint/CMakeLists.txt b/system/debugpoint/CMakeLists.txt index 2741ebf877c..d353425fc15 100644 --- a/system/debugpoint/CMakeLists.txt +++ b/system/debugpoint/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/debugpoint/CMakeLists.txt # +# 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 diff --git a/system/debugpoint/Make.defs b/system/debugpoint/Make.defs index 590a9aa62f6..d452e0c6052 100644 --- a/system/debugpoint/Make.defs +++ b/system/debugpoint/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/debugpoint/Make.defs # +# 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/system/debugpoint/Makefile b/system/debugpoint/Makefile index 9a6b6506bed..13f5d1f6580 100644 --- a/system/debugpoint/Makefile +++ b/system/debugpoint/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/debugpoint/Makefile # +# 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/system/debugpoint/debug.c b/system/debugpoint/debug.c index b4f951ec460..b9696f6f51d 100644 --- a/system/debugpoint/debug.c +++ b/system/debugpoint/debug.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/debugpoint/debug.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/system/dhcp6c/CMakeLists.txt b/system/dhcp6c/CMakeLists.txt index 0b1a218442f..18e310f07e7 100644 --- a/system/dhcp6c/CMakeLists.txt +++ b/system/dhcp6c/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/dhcp6c/CMakeLists.txt # +# 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 diff --git a/system/dhcp6c/Make.defs b/system/dhcp6c/Make.defs index 336ac6ed0a2..e144517afa1 100644 --- a/system/dhcp6c/Make.defs +++ b/system/dhcp6c/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/dhcp6c/Make.defs # +# 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/system/dhcp6c/Makefile b/system/dhcp6c/Makefile index dcd4c852a03..d4e67c57fa0 100644 --- a/system/dhcp6c/Makefile +++ b/system/dhcp6c/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/dhcp6c/Makefile # +# 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/system/dhcp6c/renew6_main.c b/system/dhcp6c/renew6_main.c index 99e1ac84e81..d0f44382bee 100644 --- a/system/dhcp6c/renew6_main.c +++ b/system/dhcp6c/renew6_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/dhcp6c/renew6_main.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/system/dhcpc/CMakeLists.txt b/system/dhcpc/CMakeLists.txt index 63d8c7613b2..76600635980 100644 --- a/system/dhcpc/CMakeLists.txt +++ b/system/dhcpc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/dhcpc/CMakeLists.txt # +# 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 diff --git a/system/dhcpc/Make.defs b/system/dhcpc/Make.defs index c92e6fa7406..91b1923f22e 100644 --- a/system/dhcpc/Make.defs +++ b/system/dhcpc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/dhcpc/Make.defs # +# 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/system/dhcpc/Makefile b/system/dhcpc/Makefile index 88c1f19b6f1..97ba0fda376 100644 --- a/system/dhcpc/Makefile +++ b/system/dhcpc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/dhcpc/Makefile # +# 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/system/dhcpc/renew_main.c b/system/dhcpc/renew_main.c index 33200f52e65..cbd10aa28f3 100644 --- a/system/dhcpc/renew_main.c +++ b/system/dhcpc/renew_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/dhcpc/renew_main.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/system/dumpstack/CMakeLists.txt b/system/dumpstack/CMakeLists.txt index f7e4eb800b0..fb0f1b38220 100644 --- a/system/dumpstack/CMakeLists.txt +++ b/system/dumpstack/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/dumpstack/CMakeLists.txt # +# 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 diff --git a/system/dumpstack/Make.defs b/system/dumpstack/Make.defs index e7d51a1dd23..df336e3334a 100644 --- a/system/dumpstack/Make.defs +++ b/system/dumpstack/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/dumpstack/Make.defs # +# 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/system/dumpstack/Makefile b/system/dumpstack/Makefile index b76243cab1a..8a26abe7151 100644 --- a/system/dumpstack/Makefile +++ b/system/dumpstack/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/dumpstack/Makefile # +# 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/system/dumpstack/dumpstack.c b/system/dumpstack/dumpstack.c index d779f808427..4c77317401e 100644 --- a/system/dumpstack/dumpstack.c +++ b/system/dumpstack/dumpstack.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/dumpstack/dumpstack.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/system/fastboot/CMakeLists.txt b/system/fastboot/CMakeLists.txt index 96a6713f04a..c565caa2687 100644 --- a/system/fastboot/CMakeLists.txt +++ b/system/fastboot/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/fastboot/CMakeLists.txt # +# 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 diff --git a/system/fastboot/Make.defs b/system/fastboot/Make.defs index 441591b4b82..b2ddc28ec82 100644 --- a/system/fastboot/Make.defs +++ b/system/fastboot/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/fastboot/Make.defs # +# 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/system/fastboot/Makefile b/system/fastboot/Makefile index 9a4793da7ee..866234e5222 100644 --- a/system/fastboot/Makefile +++ b/system/fastboot/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/fastboot/Makefile # +# 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/system/fastboot/fastboot.c b/system/fastboot/fastboot.c index 377b37402fc..550ea18c25c 100644 --- a/system/fastboot/fastboot.c +++ b/system/fastboot/fastboot.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/fastboot/fastboot.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/system/fdt/CMakeLists.txt b/system/fdt/CMakeLists.txt index b11f732ca85..cb1d1dfcca0 100644 --- a/system/fdt/CMakeLists.txt +++ b/system/fdt/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/fdt/CMakeLists.txt # +# 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 diff --git a/system/fdt/Make.defs b/system/fdt/Make.defs index 6958c01f9ce..56b2203d9ef 100644 --- a/system/fdt/Make.defs +++ b/system/fdt/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/fdt/Make.defs # +# 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/system/fdt/Makefile b/system/fdt/Makefile index a0e656e1888..58329c89aa2 100644 --- a/system/fdt/Makefile +++ b/system/fdt/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/fdt/Makefile # +# 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/system/flash_eraseall/CMakeLists.txt b/system/flash_eraseall/CMakeLists.txt index 47b4360cc40..56a8e4e7ce3 100644 --- a/system/flash_eraseall/CMakeLists.txt +++ b/system/flash_eraseall/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/flash_eraseall/CMakeLists.txt # +# 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 diff --git a/system/flash_eraseall/Make.defs b/system/flash_eraseall/Make.defs index e12bb89a480..61ce70fbf04 100644 --- a/system/flash_eraseall/Make.defs +++ b/system/flash_eraseall/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/flash_eraseall/Make.defs # +# 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/system/flash_eraseall/Makefile b/system/flash_eraseall/Makefile index 77e388f382e..33257a3bf80 100644 --- a/system/flash_eraseall/Makefile +++ b/system/flash_eraseall/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/flash_eraseall/Makefile # +# 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/system/flash_eraseall/flash_eraseall_main.c b/system/flash_eraseall/flash_eraseall_main.c index 3381529252c..aabdfab08d7 100644 --- a/system/flash_eraseall/flash_eraseall_main.c +++ b/system/flash_eraseall/flash_eraseall_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/flash_eraseall/flash_eraseall_main.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/system/flatbuffers/CMakeLists.txt b/system/flatbuffers/CMakeLists.txt index 82fad521b7b..bbfc684219e 100644 --- a/system/flatbuffers/CMakeLists.txt +++ b/system/flatbuffers/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/flatbuffers/CMakeLists.txt # +# 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 diff --git a/system/flatbuffers/Make.defs b/system/flatbuffers/Make.defs index 7c313e524ad..88f5f6ce12e 100644 --- a/system/flatbuffers/Make.defs +++ b/system/flatbuffers/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/flatbuffers/Make.defs # +# 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/system/flatbuffers/Makefile b/system/flatbuffers/Makefile index 3b01f6bac29..a0e78caca5f 100644 --- a/system/flatbuffers/Makefile +++ b/system/flatbuffers/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/flatbuffers/Makefile # +# 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/system/gcov/CMakeLists.txt b/system/gcov/CMakeLists.txt index 0aadc69ca4b..1902490b58f 100644 --- a/system/gcov/CMakeLists.txt +++ b/system/gcov/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/gcov/CMakeLists.txt # +# 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 diff --git a/system/gcov/Make.defs b/system/gcov/Make.defs index bd791d37b65..35672ceb6ee 100644 --- a/system/gcov/Make.defs +++ b/system/gcov/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/gcov/Make.defs # +# 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/system/gcov/Makefile b/system/gcov/Makefile index c839707e278..b9e34802082 100644 --- a/system/gcov/Makefile +++ b/system/gcov/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/gcov/Makefile # +# 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/system/gcov/gcov.c b/system/gcov/gcov.c index d96cf6f9ca1..31797a997f6 100644 --- a/system/gcov/gcov.c +++ b/system/gcov/gcov.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/gcov/gcov.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/system/gdbstub/CMakeLists.txt b/system/gdbstub/CMakeLists.txt index b03b657235b..4faa13fb931 100644 --- a/system/gdbstub/CMakeLists.txt +++ b/system/gdbstub/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/gdbstub/CMakeLists.txt # +# 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 diff --git a/system/gdbstub/Make.defs b/system/gdbstub/Make.defs index 9324d49a129..77a270b6b24 100644 --- a/system/gdbstub/Make.defs +++ b/system/gdbstub/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/gdbstub/Make.defs # +# 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/system/gdbstub/Makefile b/system/gdbstub/Makefile index 75df5cdf65f..1d98bf093ee 100644 --- a/system/gdbstub/Makefile +++ b/system/gdbstub/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/gdbstub/Makefile # +# 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/system/gdbstub/gdbstub.c b/system/gdbstub/gdbstub.c index 9fe1b7c033e..e928c7b14dd 100644 --- a/system/gdbstub/gdbstub.c +++ b/system/gdbstub/gdbstub.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/gdbstub/gdbstub.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/system/gprof/CMakeLists.txt b/system/gprof/CMakeLists.txt index c789c883979..75ea91d57db 100644 --- a/system/gprof/CMakeLists.txt +++ b/system/gprof/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/gprof/CMakeLists.txt # +# 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 diff --git a/system/gprof/Make.defs b/system/gprof/Make.defs index ee8214abbd0..02bd5be0bf4 100644 --- a/system/gprof/Make.defs +++ b/system/gprof/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/gprof/Make.defs # +# 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/system/gprof/Makefile b/system/gprof/Makefile index 432a735d552..dd6e775d347 100644 --- a/system/gprof/Makefile +++ b/system/gprof/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/gprof/Makefile # +# 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/system/gprof/gprof.c b/system/gprof/gprof.c index 61f4637f644..ad75ee7510f 100644 --- a/system/gprof/gprof.c +++ b/system/gprof/gprof.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/gprof/gprof.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/system/hex2bin/CMakeLists.txt b/system/hex2bin/CMakeLists.txt index c870249041e..d30f9a3e686 100644 --- a/system/hex2bin/CMakeLists.txt +++ b/system/hex2bin/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/hex2bin/CMakeLists.txt # +# 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 diff --git a/system/hex2bin/Make.defs b/system/hex2bin/Make.defs index a2d25e58e8a..5856b5a80e7 100644 --- a/system/hex2bin/Make.defs +++ b/system/hex2bin/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/hex2bin/Make.defs # +# 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/system/hex2bin/Makefile b/system/hex2bin/Makefile index dde9100fd00..c8b7a1c42a7 100644 --- a/system/hex2bin/Makefile +++ b/system/hex2bin/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/hex2bin/Makefile # +# 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/system/hex2bin/hex2bin_main.c b/system/hex2bin/hex2bin_main.c index 1f376f72df0..b83d211b9d0 100644 --- a/system/hex2bin/hex2bin_main.c +++ b/system/hex2bin/hex2bin_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/hex2bin/hex2bin_main.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/system/hex2bin/hex2mem_main.c b/system/hex2bin/hex2mem_main.c index 9cd3af2e69f..45a61aade37 100644 --- a/system/hex2bin/hex2mem_main.c +++ b/system/hex2bin/hex2mem_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/hex2bin/hex2mem_main.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/system/hexed/CMakeLists.txt b/system/hexed/CMakeLists.txt index a304b7cc0f6..79528bb78c0 100644 --- a/system/hexed/CMakeLists.txt +++ b/system/hexed/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/hexed/CMakeLists.txt # +# 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 diff --git a/system/hexed/Make.defs b/system/hexed/Make.defs index 69dd716f87f..54e9717663d 100644 --- a/system/hexed/Make.defs +++ b/system/hexed/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/hexed/Make.defs # +# 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/system/hexed/Makefile b/system/hexed/Makefile index aa80b4ad633..4d6caa43603 100644 --- a/system/hexed/Makefile +++ b/system/hexed/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/hexed/Makefile # +# 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/system/hexed/include/bfile.h b/system/hexed/include/bfile.h index c517d364408..6fd533d68c4 100644 --- a/system/hexed/include/bfile.h +++ b/system/hexed/include/bfile.h @@ -1,8 +1,8 @@ /**************************************************************************** * apps/system/hexed/include/bfile.h - * Buffered file control header * - * Copyright (c) 2010, B.ZaaR, All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2010, B.ZaaR, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff --git a/system/hexed/include/cmdargs.h b/system/hexed/include/cmdargs.h index 267b153a5c3..04c928f55d0 100644 --- a/system/hexed/include/cmdargs.h +++ b/system/hexed/include/cmdargs.h @@ -1,8 +1,8 @@ /**************************************************************************** * apps/system/hexed/include/cmdargs.h - * Command line argument parsing header * - * Copyright (c) 2010, B.ZaaR, All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2010, B.ZaaR, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff --git a/system/hexed/include/hexed.h b/system/hexed/include/hexed.h index 38265e46068..bf0489bd0e8 100644 --- a/system/hexed/include/hexed.h +++ b/system/hexed/include/hexed.h @@ -1,8 +1,8 @@ /**************************************************************************** * apps/system/hexed/include/hexed.h - * Command line HEXadecimal file EDitor header * - * Copyright (c) 2011, B.ZaaR, All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2010, B.ZaaR, 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/system/hexed/src/bfile.c b/system/hexed/src/bfile.c index 5039f0c9ef2..75cb6b0de26 100644 --- a/system/hexed/src/bfile.c +++ b/system/hexed/src/bfile.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/system/hexed/src/bfile.c - * Buffered file control * - * Copyright (c) 2011, B.ZaaR, All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2011, B.ZaaR, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/system/hexed/src/cmdargs.c b/system/hexed/src/cmdargs.c index a1180dd6fbd..ca8f0b4f5db 100644 --- a/system/hexed/src/cmdargs.c +++ b/system/hexed/src/cmdargs.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/system/hexed/src/cmdargs.c - * Command line argument parsing * - * Copyright (c) 2011, B.ZaaR, All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2011, B.ZaaR, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff --git a/system/hexed/src/hexcopy.c b/system/hexed/src/hexcopy.c index 99b94c5f521..c6ba192ec30 100644 --- a/system/hexed/src/hexcopy.c +++ b/system/hexed/src/hexcopy.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/system/hexed/src/hexcopy.c - * hexed copy command * - * Copyright (c) 2011, B.ZaaR, All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2011, B.ZaaR, 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/system/hexed/src/hexdump.c b/system/hexed/src/hexdump.c index c4e0dea2a80..063544cc8ca 100644 --- a/system/hexed/src/hexdump.c +++ b/system/hexed/src/hexdump.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/system/hexed/src/hexdump.c - * hexed dump command * - * Copyright (c) 2010, B.ZaaR, All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2010, B.ZaaR, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff --git a/system/hexed/src/hexed.c b/system/hexed/src/hexed.c index 646faea2486..cb0fdd07b73 100644 --- a/system/hexed/src/hexed.c +++ b/system/hexed/src/hexed.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/system/hexed/src/hexed.c - * Command line HEXadecimal file EDitor * - * Copyright (c) 2010, B.ZaaR, All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2010, B.ZaaR, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff --git a/system/hexed/src/hexenter.c b/system/hexed/src/hexenter.c index 3fec1c302fc..e53610ccd7d 100644 --- a/system/hexed/src/hexenter.c +++ b/system/hexed/src/hexenter.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/system/hexed/src/hexenter.c - * hexed enter command * - * Copyright (c) 2011, B.ZaaR, All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2011, B.ZaaR, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff --git a/system/hexed/src/hexhelp.c b/system/hexed/src/hexhelp.c index 6622ed2d7b1..250dbcf8073 100644 --- a/system/hexed/src/hexhelp.c +++ b/system/hexed/src/hexhelp.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/system/hexed/src/hexhelp.c - * hexed help command * - * Copyright (c) 2011, B.ZaaR, All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2011, B.ZaaR, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff --git a/system/hexed/src/hexinsert.c b/system/hexed/src/hexinsert.c index 377ea1a0138..caf6fdc9f6d 100644 --- a/system/hexed/src/hexinsert.c +++ b/system/hexed/src/hexinsert.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/system/hexed/src/hexinsert.c - * hexed insert command * - * Copyright (c) 2011, B.ZaaR, All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2011, B.ZaaR, 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/system/hexed/src/hexmove.c b/system/hexed/src/hexmove.c index d3e1c609f3b..4edea1a873c 100644 --- a/system/hexed/src/hexmove.c +++ b/system/hexed/src/hexmove.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/system/hexed/src/hexmove.c - * hexed move command * - * Copyright (c) 2011, B.ZaaR, All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2011, B.ZaaR, 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/system/hexed/src/hexremove.c b/system/hexed/src/hexremove.c index 69f9e52a356..d282c6db574 100644 --- a/system/hexed/src/hexremove.c +++ b/system/hexed/src/hexremove.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/system/hexed/src/hexremove.c - * hexed remove command * - * Copyright (c) 2011, B.ZaaR, All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2011, B.ZaaR, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff --git a/system/hexed/src/hexword.c b/system/hexed/src/hexword.c index 660e0baa87d..1ab978d268e 100644 --- a/system/hexed/src/hexword.c +++ b/system/hexed/src/hexword.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/system/hexed/src/hexword.c - * hexed word command * - * Copyright (c) 2011, B.ZaaR, All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2011, B.ZaaR, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: diff --git a/system/hostname/CMakeLists.txt b/system/hostname/CMakeLists.txt index 1fbf13cfd9e..15ae7a0a72b 100644 --- a/system/hostname/CMakeLists.txt +++ b/system/hostname/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/hostname/CMakeLists.txt # +# 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 diff --git a/system/hostname/Make.defs b/system/hostname/Make.defs index 92080eef667..028c805255e 100644 --- a/system/hostname/Make.defs +++ b/system/hostname/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/hostname/Make.defs # +# 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/system/hostname/Makefile b/system/hostname/Makefile index c745113a562..8fe15ef4277 100644 --- a/system/hostname/Makefile +++ b/system/hostname/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/hostname/Makefile # +# 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/system/hostname/hostname_main.c b/system/hostname/hostname_main.c index 6a597cf7245..be6d101d886 100644 --- a/system/hostname/hostname_main.c +++ b/system/hostname/hostname_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/hostname/hostname_main.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/system/i2c/CMakeLists.txt b/system/i2c/CMakeLists.txt index 39d807dc78e..efe540405d5 100644 --- a/system/i2c/CMakeLists.txt +++ b/system/i2c/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/i2c/CMakeLists.txt # +# 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 diff --git a/system/i2c/Make.defs b/system/i2c/Make.defs index 2d901fc1dd4..fada8ad1fda 100644 --- a/system/i2c/Make.defs +++ b/system/i2c/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/i2c/Make.defs # +# 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/system/i2c/Makefile b/system/i2c/Makefile index 0e6846aef4c..eaf5eda1796 100644 --- a/system/i2c/Makefile +++ b/system/i2c/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/i2c/Makefile # +# 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/system/i2c/i2c_bus.c b/system/i2c/i2c_bus.c index 9c87f9c8d78..b50a7ce62cb 100644 --- a/system/i2c/i2c_bus.c +++ b/system/i2c/i2c_bus.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/i2c/i2c_bus.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/system/i2c/i2c_common.c b/system/i2c/i2c_common.c index 2ede5323274..96224290bd0 100644 --- a/system/i2c/i2c_common.c +++ b/system/i2c/i2c_common.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/i2c/i2c_common.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/system/i2c/i2c_dev.c b/system/i2c/i2c_dev.c index a06742febf6..cd83ec965f1 100644 --- a/system/i2c/i2c_dev.c +++ b/system/i2c/i2c_dev.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/i2c/i2c_dev.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/system/i2c/i2c_devif.c b/system/i2c/i2c_devif.c index 2f72a42adbf..dcf1c2ea640 100644 --- a/system/i2c/i2c_devif.c +++ b/system/i2c/i2c_devif.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/i2c/i2c_devif.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/system/i2c/i2c_dump.c b/system/i2c/i2c_dump.c index c26c5f333ae..940f2529e79 100644 --- a/system/i2c/i2c_dump.c +++ b/system/i2c/i2c_dump.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/i2c/i2c_dump.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/system/i2c/i2c_get.c b/system/i2c/i2c_get.c index 569ac50bf2a..57644e895ae 100644 --- a/system/i2c/i2c_get.c +++ b/system/i2c/i2c_get.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/i2c/i2c_get.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/system/i2c/i2c_hexdump.c b/system/i2c/i2c_hexdump.c index da843ee6563..2046274781f 100644 --- a/system/i2c/i2c_hexdump.c +++ b/system/i2c/i2c_hexdump.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/i2c/i2c_hexdump.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/system/i2c/i2c_main.c b/system/i2c/i2c_main.c index 2ad9e3a35a4..7abe9bdd1ad 100644 --- a/system/i2c/i2c_main.c +++ b/system/i2c/i2c_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/i2c/i2c_main.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/system/i2c/i2c_reset.c b/system/i2c/i2c_reset.c index 550d5607a2c..98177b79319 100644 --- a/system/i2c/i2c_reset.c +++ b/system/i2c/i2c_reset.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/i2c/i2c_reset.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/system/i2c/i2c_set.c b/system/i2c/i2c_set.c index 883b287de9a..4eb0548d0fd 100644 --- a/system/i2c/i2c_set.c +++ b/system/i2c/i2c_set.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/i2c/i2c_set.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/system/i2c/i2c_verf.c b/system/i2c/i2c_verf.c index 1c2080921cf..e0e4c921843 100644 --- a/system/i2c/i2c_verf.c +++ b/system/i2c/i2c_verf.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/i2c/i2c_verf.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/system/i2c/i2ctool.h b/system/i2c/i2ctool.h index 27553866da5..062307c2eab 100644 --- a/system/i2c/i2ctool.h +++ b/system/i2c/i2ctool.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/i2c/i2ctool.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 diff --git a/system/input/CMakeLists.txt b/system/input/CMakeLists.txt index 38385960135..17d07e6a5e6 100644 --- a/system/input/CMakeLists.txt +++ b/system/input/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/input/CMakeLists.txt # +# 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 diff --git a/system/input/Make.defs b/system/input/Make.defs index 2edb506bd8f..e1fe92b7ecd 100644 --- a/system/input/Make.defs +++ b/system/input/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/input/Make.defs # +# 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/system/input/Makefile b/system/input/Makefile index 81407a103e2..75c5c6bdac7 100644 --- a/system/input/Makefile +++ b/system/input/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/input/Makefile # +# 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/system/input/input.c b/system/input/input.c index de7022caa8d..94004af930e 100644 --- a/system/input/input.c +++ b/system/input/input.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/input/input.c * + * SPDX-License-Identifier: Apache-2.0 + * * Licensed 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 diff --git a/system/iptables/CMakeLists.txt b/system/iptables/CMakeLists.txt index 6f51fa79fa4..39572f6c021 100644 --- a/system/iptables/CMakeLists.txt +++ b/system/iptables/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/iptables/CMakeLists.txt # +# 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 diff --git a/system/iptables/Make.defs b/system/iptables/Make.defs index 52469d42be0..ccd3c189394 100644 --- a/system/iptables/Make.defs +++ b/system/iptables/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/iptables/Make.defs # +# 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/system/iptables/Makefile b/system/iptables/Makefile index 5f62b5518b5..1f0155e7516 100644 --- a/system/iptables/Makefile +++ b/system/iptables/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/iptables/Makefile # +# 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/system/iptables/ip6tables.c b/system/iptables/ip6tables.c index 4e404a6c9c0..e29d9230151 100644 --- a/system/iptables/ip6tables.c +++ b/system/iptables/ip6tables.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/iptables/ip6tables.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/system/iptables/iptables.c b/system/iptables/iptables.c index ba957707939..7072ed96820 100644 --- a/system/iptables/iptables.c +++ b/system/iptables/iptables.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/iptables/iptables.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/system/iptables/iptables.h b/system/iptables/iptables.h index 0f2d269cca4..a5dedbb9f54 100644 --- a/system/iptables/iptables.h +++ b/system/iptables/iptables.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/iptables/iptables.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 diff --git a/system/iptables/iptables_utils.c b/system/iptables/iptables_utils.c index 89c9aa61152..9428e0feaaf 100644 --- a/system/iptables/iptables_utils.c +++ b/system/iptables/iptables_utils.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/iptables/iptables_utils.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/system/libuv/CMakeLists.txt b/system/libuv/CMakeLists.txt index 125185f6595..4685da12fb9 100644 --- a/system/libuv/CMakeLists.txt +++ b/system/libuv/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/libuv/CMakeLists.txt # +# 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 diff --git a/system/libuv/Make.defs b/system/libuv/Make.defs index fb9419308b5..d0ca87bf741 100644 --- a/system/libuv/Make.defs +++ b/system/libuv/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/libuv/Make.defs # +# 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/system/libuv/Makefile b/system/libuv/Makefile index 5adc1f8d7e0..b8d4e0d8b93 100644 --- a/system/libuv/Makefile +++ b/system/libuv/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/libuv/Makefile # +# 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/system/lm75/CMakeLists.txt b/system/lm75/CMakeLists.txt index 1dbc8bf1b80..3b68b1307de 100644 --- a/system/lm75/CMakeLists.txt +++ b/system/lm75/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/lm75/CMakeLists.txt # +# 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 diff --git a/system/lm75/Make.defs b/system/lm75/Make.defs index cde71746560..54e09038fa6 100644 --- a/system/lm75/Make.defs +++ b/system/lm75/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/lm75/Make.defs # +# 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/system/lm75/Makefile b/system/lm75/Makefile index c581c706533..342077710b8 100644 --- a/system/lm75/Makefile +++ b/system/lm75/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/lm75/Makefile # +# 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/system/lm75/lm75.c b/system/lm75/lm75.c index 57595fcbe6d..cf9f87f9ebc 100644 --- a/system/lm75/lm75.c +++ b/system/lm75/lm75.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/lm75/lm75.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/system/lsan/CMakeLists.txt b/system/lsan/CMakeLists.txt index 0e2ded3c5d7..6fbdee370cb 100644 --- a/system/lsan/CMakeLists.txt +++ b/system/lsan/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/lsan/CMakeLists.txt # +# 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 diff --git a/system/lsan/Make.defs b/system/lsan/Make.defs index 10fd558e527..06328232078 100644 --- a/system/lsan/Make.defs +++ b/system/lsan/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/lsan/Make.defs # +# 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/system/lsan/Makefile b/system/lsan/Makefile index 749ed3ee7f8..ecf8884538e 100644 --- a/system/lsan/Makefile +++ b/system/lsan/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/lsan/Makefile # +# 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/system/lsan/lsan_main.c b/system/lsan/lsan_main.c index 3b5003cb0e1..d0c8a06eac9 100644 --- a/system/lsan/lsan_main.c +++ b/system/lsan/lsan_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/lsan/lsan_main.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/system/lzf/CMakeLists.txt b/system/lzf/CMakeLists.txt index 5747d844602..6f97cd3a7b6 100644 --- a/system/lzf/CMakeLists.txt +++ b/system/lzf/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/lzf/CMakeLists.txt # +# 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 diff --git a/system/lzf/Make.defs b/system/lzf/Make.defs index ea59457c13a..df8cdac0575 100644 --- a/system/lzf/Make.defs +++ b/system/lzf/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/lzf/Make.defs # +# 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/system/lzf/Makefile b/system/lzf/Makefile index 140c2f30b0c..40b1df04429 100644 --- a/system/lzf/Makefile +++ b/system/lzf/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/lzf/Makefile # +# 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/system/lzf/Makefile.host b/system/lzf/Makefile.host index d0693f0dc73..fa29854c931 100644 --- a/system/lzf/Makefile.host +++ b/system/lzf/Makefile.host @@ -1,6 +1,8 @@ ############################################################################ # apps/system/lzf/Makefile.host # +# 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/system/lzf/lzf_main.c b/system/lzf/lzf_main.c index f76935f9c0c..5e6fcbe9424 100644 --- a/system/lzf/lzf_main.c +++ b/system/lzf/lzf_main.c @@ -1,7 +1,8 @@ /**************************************************************************** * apps/system/lzf/lzf_main.c * - * Copyright (c) 2006 Stefan Traby + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2006 Stefan Traby * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/system/mdio/CMakeLists.txt b/system/mdio/CMakeLists.txt index 0af71533da9..5013ec045e4 100644 --- a/system/mdio/CMakeLists.txt +++ b/system/mdio/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/mdio/CMakeLists.txt # +# 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 diff --git a/system/mdio/Make.defs b/system/mdio/Make.defs index 49ece556f2c..313b4531f76 100644 --- a/system/mdio/Make.defs +++ b/system/mdio/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/mdio/Make.defs # +# 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/system/mdio/Makefile b/system/mdio/Makefile index f04348dee4e..03813a8659f 100644 --- a/system/mdio/Makefile +++ b/system/mdio/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/mdio/Makefile # +# 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/system/mdio/mdio_main.c b/system/mdio/mdio_main.c index 2346a05027e..860d4c3178e 100644 --- a/system/mdio/mdio_main.c +++ b/system/mdio/mdio_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/mdio/mdio_main.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/system/netdb/CMakeLists.txt b/system/netdb/CMakeLists.txt index 4bd8d2319f4..525e96d7b2b 100644 --- a/system/netdb/CMakeLists.txt +++ b/system/netdb/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/netdb/CMakeLists.txt # +# 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 diff --git a/system/netdb/Make.defs b/system/netdb/Make.defs index b76d9a9d141..4a2f743a992 100644 --- a/system/netdb/Make.defs +++ b/system/netdb/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/netdb/Make.defs # +# 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/system/netdb/Makefile b/system/netdb/Makefile index e0c685b87f1..60f50235fcc 100644 --- a/system/netdb/Makefile +++ b/system/netdb/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/netdb/Makefile # +# 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/system/netdb/netdb_main.c b/system/netdb/netdb_main.c index 9252011c78e..8260de35d11 100644 --- a/system/netdb/netdb_main.c +++ b/system/netdb/netdb_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/netdb/netdb_main.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/system/nsh/CMakeLists.txt b/system/nsh/CMakeLists.txt index 8cf5902ee09..d58dc75b78c 100644 --- a/system/nsh/CMakeLists.txt +++ b/system/nsh/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/nsh/CMakeLists.txt # +# 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 diff --git a/system/nsh/Make.defs b/system/nsh/Make.defs index 1606f757932..401d26d49ee 100644 --- a/system/nsh/Make.defs +++ b/system/nsh/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/nsh/Make.defs # +# 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/system/nsh/Makefile b/system/nsh/Makefile index d6f14490ac0..fed2f156710 100644 --- a/system/nsh/Makefile +++ b/system/nsh/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/nsh/Makefile # +# 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/system/nsh/nsh_main.c b/system/nsh/nsh_main.c index 6a82938eec1..3a68afbfe0c 100644 --- a/system/nsh/nsh_main.c +++ b/system/nsh/nsh_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nsh/nsh_main.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/system/nsh/sh_main.c b/system/nsh/sh_main.c index 38e45920d39..4a324155f6d 100644 --- a/system/nsh/sh_main.c +++ b/system/nsh/sh_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nsh/sh_main.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/system/ntpc/CMakeLists.txt b/system/ntpc/CMakeLists.txt index aaacd50bcd9..6c36cb3495a 100644 --- a/system/ntpc/CMakeLists.txt +++ b/system/ntpc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/ntpc/CMakeLists.txt # +# 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 diff --git a/system/ntpc/Make.defs b/system/ntpc/Make.defs index 9573fdd2bc6..64949f08db4 100644 --- a/system/ntpc/Make.defs +++ b/system/ntpc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/ntpc/Make.defs # +# 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/system/ntpc/Makefile b/system/ntpc/Makefile index 4f25e358865..8a6fb0856cd 100644 --- a/system/ntpc/Makefile +++ b/system/ntpc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/ntpc/Makefile # +# 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/system/ntpc/ntpcstart_main.c b/system/ntpc/ntpcstart_main.c index 3812c130284..dc69a6abe8e 100644 --- a/system/ntpc/ntpcstart_main.c +++ b/system/ntpc/ntpcstart_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/ntpc/ntpcstart_main.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/system/ntpc/ntpcstatus_main.c b/system/ntpc/ntpcstatus_main.c index 73c251db57c..457f9f974d8 100644 --- a/system/ntpc/ntpcstatus_main.c +++ b/system/ntpc/ntpcstatus_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/ntpc/ntpcstatus_main.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/system/ntpc/ntpcstop_main.c b/system/ntpc/ntpcstop_main.c index be1e911a9ae..89cb397e897 100644 --- a/system/ntpc/ntpcstop_main.c +++ b/system/ntpc/ntpcstop_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/ntpc/ntpcstop_main.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/system/nxcamera/CMakeLists.txt b/system/nxcamera/CMakeLists.txt index 4f7aad5dc9f..55aba0df01b 100644 --- a/system/nxcamera/CMakeLists.txt +++ b/system/nxcamera/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/nxcamera/CMakeLists.txt # +# 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 diff --git a/system/nxcamera/Make.defs b/system/nxcamera/Make.defs index bb3931b445e..fe2b92cd521 100644 --- a/system/nxcamera/Make.defs +++ b/system/nxcamera/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/nxcamera/Make.defs # +# 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/system/nxcamera/Makefile b/system/nxcamera/Makefile index 88cbffe73c5..204e5a48375 100644 --- a/system/nxcamera/Makefile +++ b/system/nxcamera/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/nxcamera/Makefile # +# 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/system/nxcamera/nxcamera.c b/system/nxcamera/nxcamera.c index ed68caf533d..d2070e966e6 100644 --- a/system/nxcamera/nxcamera.c +++ b/system/nxcamera/nxcamera.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxcamera/nxcamera.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/system/nxcamera/nxcamera_main.c b/system/nxcamera/nxcamera_main.c index e834932f41b..c5fd52d9ede 100644 --- a/system/nxcamera/nxcamera_main.c +++ b/system/nxcamera/nxcamera_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxcamera/nxcamera_main.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/system/nxcodec/CMakeLists.txt b/system/nxcodec/CMakeLists.txt index fcb19d80e05..a640dc1dd65 100644 --- a/system/nxcodec/CMakeLists.txt +++ b/system/nxcodec/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/nxcodec/CMakeLists.txt # +# 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 diff --git a/system/nxcodec/Make.defs b/system/nxcodec/Make.defs index ba076854981..2e60809a0cd 100644 --- a/system/nxcodec/Make.defs +++ b/system/nxcodec/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/nxcodec/Make.defs # +# 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/system/nxcodec/Makefile b/system/nxcodec/Makefile index 220e4f82c89..33722be01cc 100644 --- a/system/nxcodec/Makefile +++ b/system/nxcodec/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/nxcodec/Makefile # +# 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/system/nxcodec/nxcodec.c b/system/nxcodec/nxcodec.c index ddcc64bb931..729676fcef7 100644 --- a/system/nxcodec/nxcodec.c +++ b/system/nxcodec/nxcodec.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxcodec/nxcodec.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/system/nxcodec/nxcodec.h b/system/nxcodec/nxcodec.h index a3e89217bf8..eb6d5f2916b 100644 --- a/system/nxcodec/nxcodec.h +++ b/system/nxcodec/nxcodec.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxcodec/nxcodec.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 diff --git a/system/nxcodec/nxcodec_context.c b/system/nxcodec/nxcodec_context.c index 258c3c3e80a..025627d362f 100644 --- a/system/nxcodec/nxcodec_context.c +++ b/system/nxcodec/nxcodec_context.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxcodec/nxcodec_context.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/system/nxcodec/nxcodec_context.h b/system/nxcodec/nxcodec_context.h index 854fc67aa53..b679380ffa5 100644 --- a/system/nxcodec/nxcodec_context.h +++ b/system/nxcodec/nxcodec_context.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxcodec/nxcodec_context.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 diff --git a/system/nxcodec/nxcodec_main.c b/system/nxcodec/nxcodec_main.c index 06f9f910c77..b4aab313142 100644 --- a/system/nxcodec/nxcodec_main.c +++ b/system/nxcodec/nxcodec_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxcodec/nxcodec_main.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/system/nxdiag/Make.defs b/system/nxdiag/Make.defs index 8ba171698d8..8a8c1a0399e 100644 --- a/system/nxdiag/Make.defs +++ b/system/nxdiag/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/nxdiag/Make.defs # +# 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/system/nxdiag/Makefile b/system/nxdiag/Makefile index 0da0a0a84b1..05606e82c7b 100644 --- a/system/nxdiag/Makefile +++ b/system/nxdiag/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/nxdiag/Makefile # +# 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/system/nxdiag/nxdiag.c b/system/nxdiag/nxdiag.c index b7d94ff7e94..1e1e9720155 100644 --- a/system/nxdiag/nxdiag.c +++ b/system/nxdiag/nxdiag.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxdiag/nxdiag.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/system/nxlooper/CMakeLists.txt b/system/nxlooper/CMakeLists.txt index 76ab06f07c7..07851911532 100644 --- a/system/nxlooper/CMakeLists.txt +++ b/system/nxlooper/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/nxlooper/CMakeLists.txt # +# 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 diff --git a/system/nxlooper/Make.defs b/system/nxlooper/Make.defs index e2e3c8ec05d..edae44f8dca 100644 --- a/system/nxlooper/Make.defs +++ b/system/nxlooper/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/nxlooper/Make.defs # +# 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/system/nxlooper/Makefile b/system/nxlooper/Makefile index d3e733767a9..6e32465d6e6 100644 --- a/system/nxlooper/Makefile +++ b/system/nxlooper/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/nxlooper/Makefile # +# 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/system/nxlooper/nxlooper.c b/system/nxlooper/nxlooper.c index a55b0285929..d8a5ec19809 100644 --- a/system/nxlooper/nxlooper.c +++ b/system/nxlooper/nxlooper.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxlooper/nxlooper.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/system/nxlooper/nxlooper_main.c b/system/nxlooper/nxlooper_main.c index 39be125ed7d..82a7ec50df6 100644 --- a/system/nxlooper/nxlooper_main.c +++ b/system/nxlooper/nxlooper_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxlooper/nxlooper_main.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/system/nxplayer/CMakeLists.txt b/system/nxplayer/CMakeLists.txt index 82ef6d13192..f167991d605 100644 --- a/system/nxplayer/CMakeLists.txt +++ b/system/nxplayer/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/nxplayer/CMakeLists.txt # +# 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 diff --git a/system/nxplayer/Make.defs b/system/nxplayer/Make.defs index 2f22783a8b2..5c7e2ed1e96 100644 --- a/system/nxplayer/Make.defs +++ b/system/nxplayer/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/nxplayer/Make.defs # +# 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/system/nxplayer/Makefile b/system/nxplayer/Makefile index 02e77446f73..777a77b7b09 100644 --- a/system/nxplayer/Makefile +++ b/system/nxplayer/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/nxplayer/Makefile # +# 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/system/nxplayer/nxplayer.c b/system/nxplayer/nxplayer.c index 1221935b7fd..38f252c1a76 100644 --- a/system/nxplayer/nxplayer.c +++ b/system/nxplayer/nxplayer.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxplayer/nxplayer.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/system/nxplayer/nxplayer_common.c b/system/nxplayer/nxplayer_common.c index 47e0b288ae8..94b794c2c3a 100644 --- a/system/nxplayer/nxplayer_common.c +++ b/system/nxplayer/nxplayer_common.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxplayer/nxplayer_common.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/system/nxplayer/nxplayer_main.c b/system/nxplayer/nxplayer_main.c index dc9d60152cc..e4869cf64bd 100644 --- a/system/nxplayer/nxplayer_main.c +++ b/system/nxplayer/nxplayer_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxplayer/nxplayer_main.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/system/nxplayer/nxplayer_mp3.c b/system/nxplayer/nxplayer_mp3.c index 445fe29dda5..7bf324f4727 100644 --- a/system/nxplayer/nxplayer_mp3.c +++ b/system/nxplayer/nxplayer_mp3.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxplayer/nxplayer_mp3.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/system/nxplayer/nxplayer_sbc.c b/system/nxplayer/nxplayer_sbc.c index c3851f4164a..50b7b82a27f 100644 --- a/system/nxplayer/nxplayer_sbc.c +++ b/system/nxplayer/nxplayer_sbc.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxplayer/nxplayer_sbc.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/system/nxrecorder/CMakeLists.txt b/system/nxrecorder/CMakeLists.txt index 5f43d4e7501..91412f89c33 100644 --- a/system/nxrecorder/CMakeLists.txt +++ b/system/nxrecorder/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/nxrecorder/CMakeLists.txt # +# 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 diff --git a/system/nxrecorder/Make.defs b/system/nxrecorder/Make.defs index ca583d4f48c..3f1d4beac8d 100644 --- a/system/nxrecorder/Make.defs +++ b/system/nxrecorder/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/nxrecorder/Make.defs # +# 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/system/nxrecorder/Makefile b/system/nxrecorder/Makefile index 2a2f6d09f0e..9d83b6dd466 100644 --- a/system/nxrecorder/Makefile +++ b/system/nxrecorder/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/nxrecorder/Makefile # +# 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/system/nxrecorder/nxrecorder.c b/system/nxrecorder/nxrecorder.c index 10f4806e964..882632a3765 100644 --- a/system/nxrecorder/nxrecorder.c +++ b/system/nxrecorder/nxrecorder.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxrecorder/nxrecorder.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/system/nxrecorder/nxrecorder_amr.c b/system/nxrecorder/nxrecorder_amr.c index 646be196fa4..2f03d06aff6 100644 --- a/system/nxrecorder/nxrecorder_amr.c +++ b/system/nxrecorder/nxrecorder_amr.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxrecorder/nxrecorder_amr.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/system/nxrecorder/nxrecorder_common.c b/system/nxrecorder/nxrecorder_common.c index 04d3ce94104..d063f140cca 100644 --- a/system/nxrecorder/nxrecorder_common.c +++ b/system/nxrecorder/nxrecorder_common.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxrecorder/nxrecorder_common.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/system/nxrecorder/nxrecorder_main.c b/system/nxrecorder/nxrecorder_main.c index bdfc2c3ebcd..3406116962a 100644 --- a/system/nxrecorder/nxrecorder_main.c +++ b/system/nxrecorder/nxrecorder_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/nxrecorder/nxrecorder_main.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/system/ofloader/CMakeLists.txt b/system/ofloader/CMakeLists.txt index b706f9074eb..7346856cfb4 100644 --- a/system/ofloader/CMakeLists.txt +++ b/system/ofloader/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/ofloader/CMakeLists.txt # +# 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 diff --git a/system/ofloader/Make.defs b/system/ofloader/Make.defs index e7b79a4fa5b..e54ca70c19f 100644 --- a/system/ofloader/Make.defs +++ b/system/ofloader/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/ofloader/Make.defs # +# 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/system/ofloader/Makefile b/system/ofloader/Makefile index 8145e53c6e3..25160bb41ee 100644 --- a/system/ofloader/Makefile +++ b/system/ofloader/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/ofloader/Makefile # +# 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/system/ofloader/ofloader.c b/system/ofloader/ofloader.c index 62e52bc0bea..f68e4a96459 100644 --- a/system/ofloader/ofloader.c +++ b/system/ofloader/ofloader.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/ofloader/ofloader.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/system/ofloader/ofloader.h b/system/ofloader/ofloader.h index 37efff62419..4d42e3dc8ea 100644 --- a/system/ofloader/ofloader.h +++ b/system/ofloader/ofloader.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/ofloader/ofloader.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 diff --git a/system/ofloader/segger.c b/system/ofloader/segger.c index 0e4d6c6aedb..9308454ae13 100644 --- a/system/ofloader/segger.c +++ b/system/ofloader/segger.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/ofloader/segger.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/system/ping/CMakeLists.txt b/system/ping/CMakeLists.txt index ede8dc31a9b..e640aa2d32c 100644 --- a/system/ping/CMakeLists.txt +++ b/system/ping/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/ping/CMakeLists.txt # +# 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 diff --git a/system/ping/Make.defs b/system/ping/Make.defs index 72c33608f1d..7f03389ac25 100644 --- a/system/ping/Make.defs +++ b/system/ping/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/ping/Make.defs # +# 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/system/ping/Makefile b/system/ping/Makefile index 037216226c9..9f82c530418 100644 --- a/system/ping/Makefile +++ b/system/ping/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/ping/Makefile # +# 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/system/ping/ping.c b/system/ping/ping.c index 22399c48caa..804522112b7 100644 --- a/system/ping/ping.c +++ b/system/ping/ping.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/ping/ping.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/system/ping6/CMakeLists.txt b/system/ping6/CMakeLists.txt index 944901a58ee..38589a2b3a3 100644 --- a/system/ping6/CMakeLists.txt +++ b/system/ping6/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/ping6/CMakeLists.txt # +# 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 diff --git a/system/ping6/Make.defs b/system/ping6/Make.defs index ae05cdf5077..e1e6cfcc09a 100644 --- a/system/ping6/Make.defs +++ b/system/ping6/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/ping6/Make.defs # +# 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/system/ping6/Makefile b/system/ping6/Makefile index d3c6e9eafb7..ce79578adfd 100644 --- a/system/ping6/Makefile +++ b/system/ping6/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/ping6/Makefile # +# 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/system/ping6/ping6.c b/system/ping6/ping6.c index edd04eb42c4..5d18637b832 100644 --- a/system/ping6/ping6.c +++ b/system/ping6/ping6.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/ping6/ping6.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/system/popen/CMakeLists.txt b/system/popen/CMakeLists.txt index 6a15c0a4180..78add77e62a 100644 --- a/system/popen/CMakeLists.txt +++ b/system/popen/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/popen/CMakeLists.txt # +# 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 diff --git a/system/popen/Make.defs b/system/popen/Make.defs index d1aac4c1411..9ecee32e9be 100644 --- a/system/popen/Make.defs +++ b/system/popen/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/popen/Make.defs # +# 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/system/popen/Makefile b/system/popen/Makefile index 3a25aceaf89..fbd9582745d 100644 --- a/system/popen/Makefile +++ b/system/popen/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/popen/Makefile # +# 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/system/popen/popen.c b/system/popen/popen.c index d4dd63cf175..5da6cadf1d0 100644 --- a/system/popen/popen.c +++ b/system/popen/popen.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/popen/popen.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/system/psmq/Make.defs b/system/psmq/Make.defs index fcf7effede2..dbff8aa2c2a 100644 --- a/system/psmq/Make.defs +++ b/system/psmq/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/psmq/Make.defs # +# 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/system/psmq/Makefile b/system/psmq/Makefile index 72afd35a2d7..b414da61e48 100644 --- a/system/psmq/Makefile +++ b/system/psmq/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/psmq/Makefile # +# 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/system/ptpd/CMakeLists.txt b/system/ptpd/CMakeLists.txt index 318fa485815..d98b30c83a9 100644 --- a/system/ptpd/CMakeLists.txt +++ b/system/ptpd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/ptpd/CMakeLists.txt # +# 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 diff --git a/system/ptpd/Make.defs b/system/ptpd/Make.defs index 065a6c94bc7..5be56aa89ca 100644 --- a/system/ptpd/Make.defs +++ b/system/ptpd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/ptpd/Make.defs # +# 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/system/ptpd/Makefile b/system/ptpd/Makefile index 31c8355fc58..d8eec82d2a6 100644 --- a/system/ptpd/Makefile +++ b/system/ptpd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/ptpd/Makefile # +# 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/system/ptpd/ptpd_main.c b/system/ptpd/ptpd_main.c index 46d24339e83..503300bcef5 100644 --- a/system/ptpd/ptpd_main.c +++ b/system/ptpd/ptpd_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/ptpd/ptpd_main.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/system/readline/CMakeLists.txt b/system/readline/CMakeLists.txt index e298f77abb7..09fbd9ae66c 100644 --- a/system/readline/CMakeLists.txt +++ b/system/readline/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/readline/CMakeLists.txt # +# 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 diff --git a/system/readline/Make.defs b/system/readline/Make.defs index 6f6f49ce250..5ebf7ea47ad 100644 --- a/system/readline/Make.defs +++ b/system/readline/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/readline/Make.defs # +# 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/system/readline/Makefile b/system/readline/Makefile index d14e4f003de..7f529b171a0 100644 --- a/system/readline/Makefile +++ b/system/readline/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/readline/Makefile # +# 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/system/readline/readline.c b/system/readline/readline.c index b077b4e8619..b8032e1ee6a 100644 --- a/system/readline/readline.c +++ b/system/readline/readline.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/readline/readline.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/system/readline/readline.h b/system/readline/readline.h index 58ebc1caae7..b4b5927f839 100644 --- a/system/readline/readline.h +++ b/system/readline/readline.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/readline/readline.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 diff --git a/system/readline/readline_common.c b/system/readline/readline_common.c index 3e63681b241..273821357fd 100644 --- a/system/readline/readline_common.c +++ b/system/readline/readline_common.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/readline/readline_common.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/system/readline/readline_fd.c b/system/readline/readline_fd.c index 914cafdde5e..d3822becfc1 100644 --- a/system/readline/readline_fd.c +++ b/system/readline/readline_fd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/readline/readline_fd.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/system/readline/readline_stream.c b/system/readline/readline_stream.c index e2f4aeab9b0..3445d65a60f 100644 --- a/system/readline/readline_stream.c +++ b/system/readline/readline_stream.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/readline/readline_stream.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/system/sched_note/CMakeLists.txt b/system/sched_note/CMakeLists.txt index 4319a662023..df59a5011bc 100644 --- a/system/sched_note/CMakeLists.txt +++ b/system/sched_note/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/sched_note/CMakeLists.txt # +# 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 diff --git a/system/sched_note/Make.defs b/system/sched_note/Make.defs index b9658e92a49..42eb65048d5 100644 --- a/system/sched_note/Make.defs +++ b/system/sched_note/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/sched_note/Make.defs # +# 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/system/sched_note/Makefile b/system/sched_note/Makefile index 9b92e3bba30..f0db5a6b27f 100644 --- a/system/sched_note/Makefile +++ b/system/sched_note/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/sched_note/Makefile # +# 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/system/sched_note/note_main.c b/system/sched_note/note_main.c index 2f0691796bb..4abe3b424b8 100644 --- a/system/sched_note/note_main.c +++ b/system/sched_note/note_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/sched_note/note_main.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/system/sensorscope/CMakeLists.txt b/system/sensorscope/CMakeLists.txt index 554114ff239..d1aaa286705 100644 --- a/system/sensorscope/CMakeLists.txt +++ b/system/sensorscope/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/sensorscope/CMakeLists.txt # +# 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 diff --git a/system/sensorscope/Make.defs b/system/sensorscope/Make.defs index 2e766477195..d4b84a72152 100644 --- a/system/sensorscope/Make.defs +++ b/system/sensorscope/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/systen/sensorscope/Make.defs # +# 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/system/sensorscope/Makefile b/system/sensorscope/Makefile index 18ee6313332..815e72208a3 100644 --- a/system/sensorscope/Makefile +++ b/system/sensorscope/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/sensorscope/Makefile # +# 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/system/sensorscope/sensorscope_main.c b/system/sensorscope/sensorscope_main.c index ab80be5270b..fa194b39e65 100644 --- a/system/sensorscope/sensorscope_main.c +++ b/system/sensorscope/sensorscope_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/sensorscope/sensorscope_main.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/system/setlogmask/CMakeLists.txt b/system/setlogmask/CMakeLists.txt index 062bdb34714..9a38c0bbfcc 100644 --- a/system/setlogmask/CMakeLists.txt +++ b/system/setlogmask/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/setlogmask/CMakeLists.txt # +# 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 diff --git a/system/setlogmask/Make.defs b/system/setlogmask/Make.defs index 753e357720f..3892070db93 100644 --- a/system/setlogmask/Make.defs +++ b/system/setlogmask/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/setlogmask/Make.defs # +# 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/system/setlogmask/Makefile b/system/setlogmask/Makefile index 886709fcd08..a5d10ebb6e8 100644 --- a/system/setlogmask/Makefile +++ b/system/setlogmask/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/setlogmask/Makefile # +# 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/system/setlogmask/setlogmask.c b/system/setlogmask/setlogmask.c index 83c09174131..c405be5a91f 100644 --- a/system/setlogmask/setlogmask.c +++ b/system/setlogmask/setlogmask.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/setlogmask/setlogmask.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/system/settings/Make.defs b/system/settings/Make.defs index 9092af73f9e..532ed0e7016 100644 --- a/system/settings/Make.defs +++ b/system/settings/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/settings/Make.defs # +# 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/system/settings/Makefile b/system/settings/Makefile index 318b2278dcf..cd586572373 100644 --- a/system/settings/Makefile +++ b/system/settings/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/settings/Makefile # +# 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/system/settings/settings.c b/system/settings/settings.c index 3af4e4961f7..d6a6673af91 100644 --- a/system/settings/settings.c +++ b/system/settings/settings.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/settings/settings.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/system/settings/storage.h b/system/settings/storage.h index dd6672baa15..1190d2939e7 100644 --- a/system/settings/storage.h +++ b/system/settings/storage.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/settings/storage.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 diff --git a/system/settings/storage_bin.c b/system/settings/storage_bin.c index 6c6ed6777cf..dff17f6fa22 100644 --- a/system/settings/storage_bin.c +++ b/system/settings/storage_bin.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/settings/storage_bin.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/system/settings/storage_text.c b/system/settings/storage_text.c index d1d4f85fe4e..de48a60a2f6 100644 --- a/system/settings/storage_text.c +++ b/system/settings/storage_text.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/settings/storage_text.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/system/spi/CMakeLists.txt b/system/spi/CMakeLists.txt index 162c86c14bc..691dbfc7655 100644 --- a/system/spi/CMakeLists.txt +++ b/system/spi/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/spi/CMakeLists.txt # +# 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 diff --git a/system/spi/Make.defs b/system/spi/Make.defs index fab66e59cb9..09ff246fc16 100644 --- a/system/spi/Make.defs +++ b/system/spi/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/spi/Make.defs # +# 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/system/spi/Makefile b/system/spi/Makefile index f9fd9b03a1c..a800ed0e011 100644 --- a/system/spi/Makefile +++ b/system/spi/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/spi/Makefile # +# 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/system/spi/spi_bus.c b/system/spi/spi_bus.c index db167afa7d1..d3765009d81 100644 --- a/system/spi/spi_bus.c +++ b/system/spi/spi_bus.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/spi/spi_bus.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/system/spi/spi_common.c b/system/spi/spi_common.c index 906b4d1f0f3..bb35063af63 100644 --- a/system/spi/spi_common.c +++ b/system/spi/spi_common.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/spi/spi_common.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/system/spi/spi_devif.c b/system/spi/spi_devif.c index 4243e608b42..e4c270578eb 100644 --- a/system/spi/spi_devif.c +++ b/system/spi/spi_devif.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/spi/spi_devif.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/system/spi/spi_exch.c b/system/spi/spi_exch.c index f229bf238c3..df2c81b38f1 100644 --- a/system/spi/spi_exch.c +++ b/system/spi/spi_exch.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/spi/spi_exch.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/system/spi/spi_main.c b/system/spi/spi_main.c index b9a698142a8..b09796db830 100644 --- a/system/spi/spi_main.c +++ b/system/spi/spi_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/spi/spi_main.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/system/spi/spitool.h b/system/spi/spitool.h index 8db21821f0e..cf6f4bbc99d 100644 --- a/system/spi/spitool.h +++ b/system/spi/spitool.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/spi/spitool.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 diff --git a/system/stackmonitor/CMakeLists.txt b/system/stackmonitor/CMakeLists.txt index ad231b60bd3..932cf42340f 100644 --- a/system/stackmonitor/CMakeLists.txt +++ b/system/stackmonitor/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/stackmonitor/CMakeLists.txt # +# 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 diff --git a/system/stackmonitor/Make.defs b/system/stackmonitor/Make.defs index ba3bc06ac7a..d244a2722c0 100644 --- a/system/stackmonitor/Make.defs +++ b/system/stackmonitor/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/stackmonitor/Make.defs # +# 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/system/stackmonitor/Makefile b/system/stackmonitor/Makefile index 824b96b41e3..7cc81663aea 100644 --- a/system/stackmonitor/Makefile +++ b/system/stackmonitor/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/stackmonitor/Makefile # +# 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/system/stackmonitor/stackmonitor.c b/system/stackmonitor/stackmonitor.c index 2aca2c17bd1..7fb316933cd 100644 --- a/system/stackmonitor/stackmonitor.c +++ b/system/stackmonitor/stackmonitor.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/stackmonitor/stackmonitor.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/system/system/CMakeLists.txt b/system/system/CMakeLists.txt index 97c7e55f712..56136a01b64 100644 --- a/system/system/CMakeLists.txt +++ b/system/system/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/system/CMakeLists.txt # +# 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 diff --git a/system/system/Make.defs b/system/system/Make.defs index bd4b484a99b..00faabf1a15 100644 --- a/system/system/Make.defs +++ b/system/system/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/system/Make.defs # +# 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/system/system/Makefile b/system/system/Makefile index 73daf2c3321..c3463df93d8 100644 --- a/system/system/Makefile +++ b/system/system/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/system/Makefile # +# 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/system/system/system.c b/system/system/system.c index 096f99718ab..3fd9850d729 100644 --- a/system/system/system.c +++ b/system/system/system.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/system/system.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/system/taskset/CMakeLists.txt b/system/taskset/CMakeLists.txt index 4954b822068..b274f534df9 100644 --- a/system/taskset/CMakeLists.txt +++ b/system/taskset/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/taskset/CMakeLists.txt # +# 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 diff --git a/system/taskset/Make.defs b/system/taskset/Make.defs index b0f5e40dd33..a0c30459042 100644 --- a/system/taskset/Make.defs +++ b/system/taskset/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/taskset/Make.defs # +# 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/system/taskset/Makefile b/system/taskset/Makefile index 45fec5d2109..82e53853e99 100644 --- a/system/taskset/Makefile +++ b/system/taskset/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/taskset/Makefile # +# 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/system/taskset/taskset.c b/system/taskset/taskset.c index 3cffd2e282c..af74a407667 100644 --- a/system/taskset/taskset.c +++ b/system/taskset/taskset.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/taskset/taskset.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/system/tcpdump/CMakeLists.txt b/system/tcpdump/CMakeLists.txt index f01276cc18c..3728da8257b 100644 --- a/system/tcpdump/CMakeLists.txt +++ b/system/tcpdump/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/tcpdump/CMakeLists.txt # +# 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 diff --git a/system/tcpdump/Make.defs b/system/tcpdump/Make.defs index 37e90067e6f..4f863923074 100644 --- a/system/tcpdump/Make.defs +++ b/system/tcpdump/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/tcpdump/Make.defs # +# 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/system/tcpdump/Makefile b/system/tcpdump/Makefile index 4968b15ec7d..39edc8da245 100644 --- a/system/tcpdump/Makefile +++ b/system/tcpdump/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/tcpdump/Makefile # +# 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/system/tcpdump/tcpdump.c b/system/tcpdump/tcpdump.c index 2daac913ada..0220ae8bd02 100644 --- a/system/tcpdump/tcpdump.c +++ b/system/tcpdump/tcpdump.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/tcpdump/tcpdump.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/system/tee/CMakeLists.txt b/system/tee/CMakeLists.txt index 0e4af638bfa..a333dcc0e17 100644 --- a/system/tee/CMakeLists.txt +++ b/system/tee/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/tee/CMakeLists.txt # +# 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 diff --git a/system/tee/Make.defs b/system/tee/Make.defs index 6548b82b9b3..42811df1a1c 100644 --- a/system/tee/Make.defs +++ b/system/tee/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/tee/Make.defs # +# 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/system/tee/Makefile b/system/tee/Makefile index 09ba9b92891..3dd8394f781 100644 --- a/system/tee/Makefile +++ b/system/tee/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/tee/Makefile # +# 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/system/telnet/CMakeLists.txt b/system/telnet/CMakeLists.txt index a9d9590524a..7f2eefb2e4a 100644 --- a/system/telnet/CMakeLists.txt +++ b/system/telnet/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/telnet/CMakeLists.txt # +# 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 diff --git a/system/telnet/Make.defs b/system/telnet/Make.defs index 97ec7b226c3..bf732b51c80 100644 --- a/system/telnet/Make.defs +++ b/system/telnet/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/telnet/Make.defs # +# 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/system/telnet/Makefile b/system/telnet/Makefile index 659fac16f68..f7a9ba0feea 100644 --- a/system/telnet/Makefile +++ b/system/telnet/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/telnet/Makefile # +# 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/system/telnet/telnet_chatd.c b/system/telnet/telnet_chatd.c index 5a7ca4fe5b4..5ab503092c7 100644 --- a/system/telnet/telnet_chatd.c +++ b/system/telnet/telnet_chatd.c @@ -1,23 +1,12 @@ /**************************************************************************** * apps/system/telnet/telnet_chatd.c * - * Leveraged from libtelnet, https://github.com/seanmiddleditch/libtelnet. - * Modified and re-released under the BSD license: - * - * Copyright (C) 2017 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * The original authors of libtelnet are listed below. Per their licesne, - * "The author or authors of this code dedicate any and all copyright - * interest in this code to the public domain. We make this dedication for - * the benefit of the public at large and to the detriment of our heirs and - * successors. We intend this dedication to be an overt act of - * relinquishment in perpetuity of all present and future rights to this - * code under copyright law." - * - * Author: Sean Middleditch - * (Also listed in the AUTHORS file are Jack Kelly - * and Katherine Flavel ) + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2017 Gregory Nutt. All rights reserved. + * SPDX-FileContributor: Sean Middleditch + * SPDX-FileContributor: Jack Kelly + * SPDX-FileContributor: Katherine Flavel + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -48,6 +37,21 @@ * ****************************************************************************/ +/* Leveraged from libtelnet, https://github.com/seanmiddleditch/libtelnet. + * Modified and re-released under the BSD license. + * + * The original authors of libtelnet are listed below. Per their licesne, + * "The author or authors of this code dedicate any and all copyright + * interest in this code to the public domain. We make this dedication for + * the benefit of the public at large and to the detriment of our heirs and + * successors. We intend this dedication to be an overt act of + * relinquishment in perpetuity of all present and future rights to this + * code under copyright law." + * + * Author: Sean Middleditch + * (Also listed in the AUTHORS file are Jack Kelly + * and Katherine Flavel ) + */ /**************************************************************************** * Included Files ****************************************************************************/ diff --git a/system/telnet/telnet_client.c b/system/telnet/telnet_client.c index 14ef9f923cd..7104d905396 100644 --- a/system/telnet/telnet_client.c +++ b/system/telnet/telnet_client.c @@ -1,23 +1,12 @@ /**************************************************************************** * apps/system/telnet/telnet_client.c * - * Leveraged from libtelnet, https://github.com/seanmiddleditch/libtelnet. - * Modified and re-released under the BSD license: - * - * Copyright (C) 2017 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * The original authors of libtelnet are listed below. Per their licesne, - * "The author or authors of this code dedicate any and all copyright - * interest in this code to the public domain. We make this dedication for - * the benefit of the public at large and to the detriment of our heirs and - * successors. We intend this dedication to be an overt act of - * relinquishment in perpetuity of all present and future rights to this - * code under copyright law." - * - * Author: Sean Middleditch - * (Also listed in the AUTHORS file are Jack Kelly - * and Katherine Flavel ) + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2017 Gregory Nutt. All rights reserved. + * SPDX-FileContributor: Sean Middleditch + * SPDX-FileContributor: Jack Kelly + * SPDX-FileContributor: Katherine Flavel + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -48,6 +37,21 @@ * ****************************************************************************/ +/* Leveraged from libtelnet, https://github.com/seanmiddleditch/libtelnet. + * Modified and re-released under the BSD license. + * + * The original authors of libtelnet are listed below. Per their licesne, + * "The author or authors of this code dedicate any and all copyright + * interest in this code to the public domain. We make this dedication for + * the benefit of the public at large and to the detriment of our heirs and + * successors. We intend this dedication to be an overt act of + * relinquishment in perpetuity of all present and future rights to this + * code under copyright law." + * + * Author: Sean Middleditch + * (Also listed in the AUTHORS file are Jack Kelly + * and Katherine Flavel ) + */ /**************************************************************************** * Included Files ****************************************************************************/ diff --git a/system/telnetd/CMakeLists.txt b/system/telnetd/CMakeLists.txt index 79b56967788..73990048caf 100644 --- a/system/telnetd/CMakeLists.txt +++ b/system/telnetd/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/telnetd/CMakeLists.txt # +# 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 diff --git a/system/telnetd/Make.defs b/system/telnetd/Make.defs index dceb475ea56..0c3e7a43f19 100644 --- a/system/telnetd/Make.defs +++ b/system/telnetd/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/telnetd/Make.defs # +# 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/system/telnetd/Makefile b/system/telnetd/Makefile index 414e90ca552..1c7bc749497 100644 --- a/system/telnetd/Makefile +++ b/system/telnetd/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/telnetd/Makefile # +# 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/system/telnetd/telnetd.c b/system/telnetd/telnetd.c index 8f536f2eb0b..5d861b1b114 100644 --- a/system/telnetd/telnetd.c +++ b/system/telnetd/telnetd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/telnetd/telnetd.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/system/termcurses/CMakeLists.txt b/system/termcurses/CMakeLists.txt index 733250012eb..b38f8216b6e 100644 --- a/system/termcurses/CMakeLists.txt +++ b/system/termcurses/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/termcurses/CMakeLists.txt # +# 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 diff --git a/system/termcurses/Make.defs b/system/termcurses/Make.defs index 9e532aa1335..8a4bbfaefd1 100644 --- a/system/termcurses/Make.defs +++ b/system/termcurses/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/termcurses/Make.defs # +# 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/system/termcurses/Makefile b/system/termcurses/Makefile index e6e4ccc6b9c..7d42cb50068 100644 --- a/system/termcurses/Makefile +++ b/system/termcurses/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/termcurses/Makefile # +# 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/system/termcurses/tcurses_priv.h b/system/termcurses/tcurses_priv.h index 853d45c3ae1..44f708739d6 100644 --- a/system/termcurses/tcurses_priv.h +++ b/system/termcurses/tcurses_priv.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/termcurses/tcurses_priv.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 diff --git a/system/termcurses/tcurses_vt100.c b/system/termcurses/tcurses_vt100.c index 2cd3c215a56..84c369cce7e 100644 --- a/system/termcurses/tcurses_vt100.c +++ b/system/termcurses/tcurses_vt100.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/termcurses/tcurses_vt100.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/system/termcurses/termcurses.c b/system/termcurses/termcurses.c index 1b6c6d3929f..4d042b6eb56 100644 --- a/system/termcurses/termcurses.c +++ b/system/termcurses/termcurses.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/termcurses/termcurses.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/system/trace/CMakeLists.txt b/system/trace/CMakeLists.txt index acb26ba7278..9b192b43d1f 100644 --- a/system/trace/CMakeLists.txt +++ b/system/trace/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/trace/CMakeLists.txt # +# 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 diff --git a/system/trace/Make.defs b/system/trace/Make.defs index 048217064dd..81726f26f95 100644 --- a/system/trace/Make.defs +++ b/system/trace/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/trace/Make.defs # +# 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/system/trace/Makefile b/system/trace/Makefile index 685c92d1f90..e768d74394b 100644 --- a/system/trace/Makefile +++ b/system/trace/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/trace/Makefile # +# 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/system/trace/trace.c b/system/trace/trace.c index e41bf8e8b1e..46126b9e253 100644 --- a/system/trace/trace.c +++ b/system/trace/trace.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/trace/trace.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/system/trace/trace.h b/system/trace/trace.h index c71df4cb42f..5ac10484174 100644 --- a/system/trace/trace.h +++ b/system/trace/trace.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/trace/trace.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 diff --git a/system/trace/trace_dump.c b/system/trace/trace_dump.c index b78867a84c0..d51453da125 100644 --- a/system/trace/trace_dump.c +++ b/system/trace/trace_dump.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/trace/trace_dump.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/system/ubloxmodem/CMakeLists.txt b/system/ubloxmodem/CMakeLists.txt index 7354b5d5fc0..aa794771032 100644 --- a/system/ubloxmodem/CMakeLists.txt +++ b/system/ubloxmodem/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/ubloxmodem/CMakeLists.txt # +# 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 diff --git a/system/ubloxmodem/Make.defs b/system/ubloxmodem/Make.defs index 4b709b8d2a5..3d6a3c28cef 100644 --- a/system/ubloxmodem/Make.defs +++ b/system/ubloxmodem/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/ubloxmodem/Make.defs # +# 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/system/ubloxmodem/Makefile b/system/ubloxmodem/Makefile index d7a0c928fb7..14ef922a30a 100644 --- a/system/ubloxmodem/Makefile +++ b/system/ubloxmodem/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/ubloxmodem/Makefile # +# 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/system/ubloxmodem/ubloxmodem.h b/system/ubloxmodem/ubloxmodem.h index 7c9f99df3c0..c45bef8dd92 100644 --- a/system/ubloxmodem/ubloxmodem.h +++ b/system/ubloxmodem/ubloxmodem.h @@ -1,8 +1,9 @@ /**************************************************************************** * apps/system/ubloxmodem/ubloxmodem.h * - * Copyright (C) 2016 Vladimir Komendantskiy. All rights reserved. - * Author: Vladimir Komendantskiy + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2016 Vladimir Komendantskiy. All rights reserved. + * SPDX-FileContributor: Vladimir Komendantskiy * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/system/ubloxmodem/ubloxmodem_main.c b/system/ubloxmodem/ubloxmodem_main.c index 76f827f62a6..0a54b92400e 100644 --- a/system/ubloxmodem/ubloxmodem_main.c +++ b/system/ubloxmodem/ubloxmodem_main.c @@ -1,8 +1,9 @@ /**************************************************************************** * apps/system/ubloxmodem/ubloxmodem_main.c * - * Copyright (C) 2016 Vladimir Komendantskiy. All rights reserved. - * Author: Vladimir Komendantskiy + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2016 Vladimir Komendantskiy. All rights reserved. + * SPDX-FileContributor: Vladimir Komendantskiy * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/system/uniqueid/CMakeLists.txt b/system/uniqueid/CMakeLists.txt index d0a8c3d2add..633c410fb26 100644 --- a/system/uniqueid/CMakeLists.txt +++ b/system/uniqueid/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/uniqueid/CMakeLists.txt # +# 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 diff --git a/system/uniqueid/Make.defs b/system/uniqueid/Make.defs index 1968d725acd..0a9dac4ccaf 100644 --- a/system/uniqueid/Make.defs +++ b/system/uniqueid/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/uniqueid/Make.defs # +# 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/system/uniqueid/Makefile b/system/uniqueid/Makefile index 80b71444409..1d6b5553bda 100644 --- a/system/uniqueid/Makefile +++ b/system/uniqueid/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/uniqueid/Makefile # +# 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/system/uniqueid/uniqueid_main.c b/system/uniqueid/uniqueid_main.c index 1568d4a9c57..8f4337f297c 100644 --- a/system/uniqueid/uniqueid_main.c +++ b/system/uniqueid/uniqueid_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uniqueid/uniqueid_main.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/system/uorb/CMakeLists.txt b/system/uorb/CMakeLists.txt index 0242039c37d..18656add337 100644 --- a/system/uorb/CMakeLists.txt +++ b/system/uorb/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/uorb/CMakeLists.txt # +# 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 diff --git a/system/uorb/Make.defs b/system/uorb/Make.defs index 5d4e230ce46..f09e19c5c0c 100644 --- a/system/uorb/Make.defs +++ b/system/uorb/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/uorb/Make.defs # +# 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/system/uorb/Makefile b/system/uorb/Makefile index 764ae9ac1f8..3b36622080f 100644 --- a/system/uorb/Makefile +++ b/system/uorb/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/uorb/Makefile # +# 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/system/uorb/listener.c b/system/uorb/listener.c index 9479cb2dd99..08b57e6e128 100644 --- a/system/uorb/listener.c +++ b/system/uorb/listener.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/listener.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/system/uorb/sensor/accel.c b/system/uorb/sensor/accel.c index 6e3d3139104..f2c67a34d06 100644 --- a/system/uorb/sensor/accel.c +++ b/system/uorb/sensor/accel.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/accel.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/system/uorb/sensor/accel.h b/system/uorb/sensor/accel.h index d4ac1c4bb68..6ee89ee76fd 100644 --- a/system/uorb/sensor/accel.h +++ b/system/uorb/sensor/accel.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/accel.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 diff --git a/system/uorb/sensor/angle.c b/system/uorb/sensor/angle.c index 03cd5aff652..e80404142c7 100644 --- a/system/uorb/sensor/angle.c +++ b/system/uorb/sensor/angle.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/angle.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/system/uorb/sensor/angle.h b/system/uorb/sensor/angle.h index cc7fd65fbec..984b31556b0 100644 --- a/system/uorb/sensor/angle.h +++ b/system/uorb/sensor/angle.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/angle.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 diff --git a/system/uorb/sensor/baro.c b/system/uorb/sensor/baro.c index 5ee66133e4f..d56cc9b87b6 100644 --- a/system/uorb/sensor/baro.c +++ b/system/uorb/sensor/baro.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/baro.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/system/uorb/sensor/baro.h b/system/uorb/sensor/baro.h index b5c8f930b28..579a3e6544b 100644 --- a/system/uorb/sensor/baro.h +++ b/system/uorb/sensor/baro.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/baro.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 diff --git a/system/uorb/sensor/cap.c b/system/uorb/sensor/cap.c index b2dd05310ec..b0e662160a0 100644 --- a/system/uorb/sensor/cap.c +++ b/system/uorb/sensor/cap.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/cap.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/system/uorb/sensor/cap.h b/system/uorb/sensor/cap.h index b4dd55372f3..092799ea273 100644 --- a/system/uorb/sensor/cap.h +++ b/system/uorb/sensor/cap.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/cap.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 diff --git a/system/uorb/sensor/co2.c b/system/uorb/sensor/co2.c index 9e23f73b2cc..50a5bf9312e 100644 --- a/system/uorb/sensor/co2.c +++ b/system/uorb/sensor/co2.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/co2.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/system/uorb/sensor/co2.h b/system/uorb/sensor/co2.h index a4692f9fa76..e22035025c4 100644 --- a/system/uorb/sensor/co2.h +++ b/system/uorb/sensor/co2.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/co2.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 diff --git a/system/uorb/sensor/dust.c b/system/uorb/sensor/dust.c index b8f55152d22..7e5097eb6ec 100644 --- a/system/uorb/sensor/dust.c +++ b/system/uorb/sensor/dust.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/dust.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/system/uorb/sensor/dust.h b/system/uorb/sensor/dust.h index 0be558d1505..07f37f9514b 100644 --- a/system/uorb/sensor/dust.h +++ b/system/uorb/sensor/dust.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/dust.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 diff --git a/system/uorb/sensor/ecg.c b/system/uorb/sensor/ecg.c index 99f51854add..7fbc4b6cafe 100644 --- a/system/uorb/sensor/ecg.c +++ b/system/uorb/sensor/ecg.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/ecg.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/system/uorb/sensor/ecg.h b/system/uorb/sensor/ecg.h index c190e24075b..021d2b7e95f 100644 --- a/system/uorb/sensor/ecg.h +++ b/system/uorb/sensor/ecg.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/ecg.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 diff --git a/system/uorb/sensor/force.c b/system/uorb/sensor/force.c index 4761ff82a7b..ed03c4801ba 100644 --- a/system/uorb/sensor/force.c +++ b/system/uorb/sensor/force.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/force.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/system/uorb/sensor/force.h b/system/uorb/sensor/force.h index 21ad64a9d5f..e566c1b5303 100644 --- a/system/uorb/sensor/force.h +++ b/system/uorb/sensor/force.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/force.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 diff --git a/system/uorb/sensor/gas.c b/system/uorb/sensor/gas.c index 72fd0e51ccd..24e10076d2e 100644 --- a/system/uorb/sensor/gas.c +++ b/system/uorb/sensor/gas.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/gas.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/system/uorb/sensor/gas.h b/system/uorb/sensor/gas.h index 62515040632..b6f4cea3763 100644 --- a/system/uorb/sensor/gas.h +++ b/system/uorb/sensor/gas.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/gas.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 diff --git a/system/uorb/sensor/gesture.c b/system/uorb/sensor/gesture.c index 5d50d42e1a0..0848b6fbb32 100644 --- a/system/uorb/sensor/gesture.c +++ b/system/uorb/sensor/gesture.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/gesture.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/system/uorb/sensor/gesture.h b/system/uorb/sensor/gesture.h index 8ea55688579..fa9d56d5218 100644 --- a/system/uorb/sensor/gesture.h +++ b/system/uorb/sensor/gesture.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/gesture.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 diff --git a/system/uorb/sensor/gnss.c b/system/uorb/sensor/gnss.c index 6a8a6e50a53..c1b5ab15920 100644 --- a/system/uorb/sensor/gnss.c +++ b/system/uorb/sensor/gnss.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/gnss.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/system/uorb/sensor/gnss.h b/system/uorb/sensor/gnss.h index 4ca00dff8ba..d03e2f95dee 100644 --- a/system/uorb/sensor/gnss.h +++ b/system/uorb/sensor/gnss.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/gnss.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 diff --git a/system/uorb/sensor/gyro.c b/system/uorb/sensor/gyro.c index d28e1ab5bd3..d1988f56d16 100644 --- a/system/uorb/sensor/gyro.c +++ b/system/uorb/sensor/gyro.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/gyro.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/system/uorb/sensor/gyro.h b/system/uorb/sensor/gyro.h index aeb6b93614f..1a235e2647c 100644 --- a/system/uorb/sensor/gyro.h +++ b/system/uorb/sensor/gyro.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/gyro.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 diff --git a/system/uorb/sensor/hall.c b/system/uorb/sensor/hall.c index 54be044140a..ab58b712b17 100644 --- a/system/uorb/sensor/hall.c +++ b/system/uorb/sensor/hall.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/hall.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/system/uorb/sensor/hall.h b/system/uorb/sensor/hall.h index 01792d70f87..1acb48301a0 100644 --- a/system/uorb/sensor/hall.h +++ b/system/uorb/sensor/hall.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/hall.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 diff --git a/system/uorb/sensor/hbeat.c b/system/uorb/sensor/hbeat.c index 45a317b64d8..77e3abb2799 100644 --- a/system/uorb/sensor/hbeat.c +++ b/system/uorb/sensor/hbeat.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/hbeat.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/system/uorb/sensor/hbeat.h b/system/uorb/sensor/hbeat.h index 493743fc16f..75478be95a2 100644 --- a/system/uorb/sensor/hbeat.h +++ b/system/uorb/sensor/hbeat.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/hbeat.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 diff --git a/system/uorb/sensor/hcho.c b/system/uorb/sensor/hcho.c index dea34d3b0d7..64db42f7f2e 100644 --- a/system/uorb/sensor/hcho.c +++ b/system/uorb/sensor/hcho.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/hcho.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/system/uorb/sensor/hcho.h b/system/uorb/sensor/hcho.h index d52d0b8d67a..22b1e421662 100644 --- a/system/uorb/sensor/hcho.h +++ b/system/uorb/sensor/hcho.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/hcho.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 diff --git a/system/uorb/sensor/hrate.c b/system/uorb/sensor/hrate.c index 2eb1df8de30..8616d88e192 100644 --- a/system/uorb/sensor/hrate.c +++ b/system/uorb/sensor/hrate.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/hrate.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/system/uorb/sensor/hrate.h b/system/uorb/sensor/hrate.h index d7b5e5266a2..53eec563171 100644 --- a/system/uorb/sensor/hrate.h +++ b/system/uorb/sensor/hrate.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/hrate.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 diff --git a/system/uorb/sensor/humi.c b/system/uorb/sensor/humi.c index b381dad42ca..951114413fb 100644 --- a/system/uorb/sensor/humi.c +++ b/system/uorb/sensor/humi.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/humi.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/system/uorb/sensor/humi.h b/system/uorb/sensor/humi.h index 32eaf4c0baf..d6cdb8c7d23 100644 --- a/system/uorb/sensor/humi.h +++ b/system/uorb/sensor/humi.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/humi.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 diff --git a/system/uorb/sensor/impd.c b/system/uorb/sensor/impd.c index 680f3c9f7b1..b398694ae75 100644 --- a/system/uorb/sensor/impd.c +++ b/system/uorb/sensor/impd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/impd.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/system/uorb/sensor/impd.h b/system/uorb/sensor/impd.h index b2bedb62cda..8c9408f7ad8 100644 --- a/system/uorb/sensor/impd.h +++ b/system/uorb/sensor/impd.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/impd.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 diff --git a/system/uorb/sensor/ir.c b/system/uorb/sensor/ir.c index 1f5233bc1c9..a06f624c483 100644 --- a/system/uorb/sensor/ir.c +++ b/system/uorb/sensor/ir.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/ir.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/system/uorb/sensor/ir.h b/system/uorb/sensor/ir.h index 2fba176070a..c3049eb123a 100644 --- a/system/uorb/sensor/ir.h +++ b/system/uorb/sensor/ir.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/ir.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 diff --git a/system/uorb/sensor/light.c b/system/uorb/sensor/light.c index 27365f4c6ca..58b031a3065 100644 --- a/system/uorb/sensor/light.c +++ b/system/uorb/sensor/light.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/light.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/system/uorb/sensor/light.h b/system/uorb/sensor/light.h index c2a7c6f7b5a..bb71827b369 100644 --- a/system/uorb/sensor/light.h +++ b/system/uorb/sensor/light.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/light.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 diff --git a/system/uorb/sensor/mag.c b/system/uorb/sensor/mag.c index dd4e4985ccf..97077975b55 100644 --- a/system/uorb/sensor/mag.c +++ b/system/uorb/sensor/mag.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/mag.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/system/uorb/sensor/mag.h b/system/uorb/sensor/mag.h index 972e3f83e89..24fc2a72053 100644 --- a/system/uorb/sensor/mag.h +++ b/system/uorb/sensor/mag.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/mag.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 diff --git a/system/uorb/sensor/motion.c b/system/uorb/sensor/motion.c index fedaca04c6a..773e39edd04 100644 --- a/system/uorb/sensor/motion.c +++ b/system/uorb/sensor/motion.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/motion.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/system/uorb/sensor/motion.h b/system/uorb/sensor/motion.h index 313e9f57813..cbdd7c81e7b 100644 --- a/system/uorb/sensor/motion.h +++ b/system/uorb/sensor/motion.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/motion.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 diff --git a/system/uorb/sensor/noise.c b/system/uorb/sensor/noise.c index a87303bc4ac..bcb1fa25c9c 100644 --- a/system/uorb/sensor/noise.c +++ b/system/uorb/sensor/noise.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/noise.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/system/uorb/sensor/noise.h b/system/uorb/sensor/noise.h index 5f050416455..f07e72d0a18 100644 --- a/system/uorb/sensor/noise.h +++ b/system/uorb/sensor/noise.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/noise.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 diff --git a/system/uorb/sensor/ots.c b/system/uorb/sensor/ots.c index 913e7036629..b808a23cf6b 100644 --- a/system/uorb/sensor/ots.c +++ b/system/uorb/sensor/ots.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/ots.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/system/uorb/sensor/ots.h b/system/uorb/sensor/ots.h index 9a8c1ecb710..c2499a99deb 100644 --- a/system/uorb/sensor/ots.h +++ b/system/uorb/sensor/ots.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/ots.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 diff --git a/system/uorb/sensor/ph.c b/system/uorb/sensor/ph.c index 35d51e03a94..c8504209191 100644 --- a/system/uorb/sensor/ph.c +++ b/system/uorb/sensor/ph.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/ph.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/system/uorb/sensor/ph.h b/system/uorb/sensor/ph.h index 57d1e79e4a2..8153ed6a788 100644 --- a/system/uorb/sensor/ph.h +++ b/system/uorb/sensor/ph.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/ph.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 diff --git a/system/uorb/sensor/pm10.c b/system/uorb/sensor/pm10.c index 6ebb6ba47bd..b7feb5290ba 100644 --- a/system/uorb/sensor/pm10.c +++ b/system/uorb/sensor/pm10.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/pm10.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/system/uorb/sensor/pm10.h b/system/uorb/sensor/pm10.h index 6cba6edd70d..48bbcec3339 100644 --- a/system/uorb/sensor/pm10.h +++ b/system/uorb/sensor/pm10.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/pm10.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 diff --git a/system/uorb/sensor/pm1p0.c b/system/uorb/sensor/pm1p0.c index 4689d660f55..ad8476e40c4 100644 --- a/system/uorb/sensor/pm1p0.c +++ b/system/uorb/sensor/pm1p0.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/pm1p0.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/system/uorb/sensor/pm1p0.h b/system/uorb/sensor/pm1p0.h index dca018507eb..244646831c8 100644 --- a/system/uorb/sensor/pm1p0.h +++ b/system/uorb/sensor/pm1p0.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/pm1p0.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 diff --git a/system/uorb/sensor/pm25.c b/system/uorb/sensor/pm25.c index c64e56c0dbd..3e489036907 100644 --- a/system/uorb/sensor/pm25.c +++ b/system/uorb/sensor/pm25.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/pm25.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/system/uorb/sensor/pm25.h b/system/uorb/sensor/pm25.h index b62fb9d7ce8..f2140649ca0 100644 --- a/system/uorb/sensor/pm25.h +++ b/system/uorb/sensor/pm25.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/pm25.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 diff --git a/system/uorb/sensor/pose_6dof.c b/system/uorb/sensor/pose_6dof.c index 2e1741f1202..9eb4395d309 100644 --- a/system/uorb/sensor/pose_6dof.c +++ b/system/uorb/sensor/pose_6dof.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/pose_6dof.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/system/uorb/sensor/pose_6dof.h b/system/uorb/sensor/pose_6dof.h index 4601b927ed7..db451d044ca 100644 --- a/system/uorb/sensor/pose_6dof.h +++ b/system/uorb/sensor/pose_6dof.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/pose_6dof.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 diff --git a/system/uorb/sensor/ppgd.c b/system/uorb/sensor/ppgd.c index 574f8928b04..c547f0d4e26 100644 --- a/system/uorb/sensor/ppgd.c +++ b/system/uorb/sensor/ppgd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/ppgd.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/system/uorb/sensor/ppgd.h b/system/uorb/sensor/ppgd.h index d326c50bdb4..e1621d1a455 100644 --- a/system/uorb/sensor/ppgd.h +++ b/system/uorb/sensor/ppgd.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/ppgd.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 diff --git a/system/uorb/sensor/ppgq.c b/system/uorb/sensor/ppgq.c index 108710533d8..13bcf1761f7 100644 --- a/system/uorb/sensor/ppgq.c +++ b/system/uorb/sensor/ppgq.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/ppgq.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/system/uorb/sensor/ppgq.h b/system/uorb/sensor/ppgq.h index 9816fcc8e28..a70fecb89fc 100644 --- a/system/uorb/sensor/ppgq.h +++ b/system/uorb/sensor/ppgq.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/ppgq.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 diff --git a/system/uorb/sensor/prox.c b/system/uorb/sensor/prox.c index 33d12d24ddb..ebe90626801 100644 --- a/system/uorb/sensor/prox.c +++ b/system/uorb/sensor/prox.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/prox.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/system/uorb/sensor/prox.h b/system/uorb/sensor/prox.h index b4d8eb9a3e4..350c3564546 100644 --- a/system/uorb/sensor/prox.h +++ b/system/uorb/sensor/prox.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/prox.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 diff --git a/system/uorb/sensor/rgb.c b/system/uorb/sensor/rgb.c index 0f4830570f8..658bfe4bdcd 100644 --- a/system/uorb/sensor/rgb.c +++ b/system/uorb/sensor/rgb.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/rgb.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/system/uorb/sensor/rgb.h b/system/uorb/sensor/rgb.h index 3eee8ec21cb..e28374a7854 100644 --- a/system/uorb/sensor/rgb.h +++ b/system/uorb/sensor/rgb.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/rgb.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 diff --git a/system/uorb/sensor/rotation.c b/system/uorb/sensor/rotation.c index 05777b8f133..03b9a4abb2c 100644 --- a/system/uorb/sensor/rotation.c +++ b/system/uorb/sensor/rotation.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/rotation.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/system/uorb/sensor/rotation.h b/system/uorb/sensor/rotation.h index e660beb60b6..49602310696 100644 --- a/system/uorb/sensor/rotation.h +++ b/system/uorb/sensor/rotation.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/rotation.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 diff --git a/system/uorb/sensor/step_counter.c b/system/uorb/sensor/step_counter.c index 36092254731..706b4f6a654 100644 --- a/system/uorb/sensor/step_counter.c +++ b/system/uorb/sensor/step_counter.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/step_counter.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/system/uorb/sensor/step_counter.h b/system/uorb/sensor/step_counter.h index 2e14a48eff9..addace32d0c 100644 --- a/system/uorb/sensor/step_counter.h +++ b/system/uorb/sensor/step_counter.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/step_counter.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 diff --git a/system/uorb/sensor/temp.c b/system/uorb/sensor/temp.c index e24089d23e9..8c8153e8348 100644 --- a/system/uorb/sensor/temp.c +++ b/system/uorb/sensor/temp.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/temp.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/system/uorb/sensor/temp.h b/system/uorb/sensor/temp.h index 3d0f9301e3f..2ee401af3b6 100644 --- a/system/uorb/sensor/temp.h +++ b/system/uorb/sensor/temp.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/temp.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 diff --git a/system/uorb/sensor/topics.c b/system/uorb/sensor/topics.c index f12db068f8d..02666a5f013 100644 --- a/system/uorb/sensor/topics.c +++ b/system/uorb/sensor/topics.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/topics.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/system/uorb/sensor/tvoc.c b/system/uorb/sensor/tvoc.c index 2ffb8314117..8fa7a1629c2 100644 --- a/system/uorb/sensor/tvoc.c +++ b/system/uorb/sensor/tvoc.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/tvoc.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/system/uorb/sensor/tvoc.h b/system/uorb/sensor/tvoc.h index 9c8f9889e60..7f9ed14cdfe 100644 --- a/system/uorb/sensor/tvoc.h +++ b/system/uorb/sensor/tvoc.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/tvoc.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 diff --git a/system/uorb/sensor/uv.c b/system/uorb/sensor/uv.c index 7c4cd205be3..748eafea32c 100644 --- a/system/uorb/sensor/uv.c +++ b/system/uorb/sensor/uv.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/uv.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/system/uorb/sensor/uv.h b/system/uorb/sensor/uv.h index fbdd6ddf929..29f6a9d0958 100644 --- a/system/uorb/sensor/uv.h +++ b/system/uorb/sensor/uv.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/sensor/uv.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 diff --git a/system/uorb/test/unit_test.c b/system/uorb/test/unit_test.c index 901d0a7945c..fc28daee573 100644 --- a/system/uorb/test/unit_test.c +++ b/system/uorb/test/unit_test.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/test/unit_test.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/system/uorb/test/utility.c b/system/uorb/test/utility.c index 2b65258deff..6e36edf2f30 100644 --- a/system/uorb/test/utility.c +++ b/system/uorb/test/utility.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/test/utility.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/system/uorb/test/utility.h b/system/uorb/test/utility.h index 76b9a406819..512413ab6a2 100644 --- a/system/uorb/test/utility.h +++ b/system/uorb/test/utility.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/test/utility.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 diff --git a/system/uorb/uORB/epoll.c b/system/uorb/uORB/epoll.c index f2972fe8473..28237acc8b9 100644 --- a/system/uorb/uORB/epoll.c +++ b/system/uorb/uORB/epoll.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/uORB/epoll.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/system/uorb/uORB/internal.h b/system/uorb/uORB/internal.h index fc2e2f5201c..7766ca1c417 100644 --- a/system/uorb/uORB/internal.h +++ b/system/uorb/uORB/internal.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/uORB/internal.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 diff --git a/system/uorb/uORB/loop.c b/system/uorb/uORB/loop.c index 62795f9bf62..772e37d40fb 100644 --- a/system/uorb/uORB/loop.c +++ b/system/uorb/uORB/loop.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/uORB/loop.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/system/uorb/uORB/uORB.c b/system/uorb/uORB/uORB.c index c5df8a78e5f..fd3f704af31 100644 --- a/system/uorb/uORB/uORB.c +++ b/system/uorb/uORB/uORB.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/uORB/uORB.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/system/uorb/uORB/uORB.h b/system/uorb/uORB/uORB.h index 212789918c8..69cffd08ac6 100644 --- a/system/uorb/uORB/uORB.h +++ b/system/uorb/uORB/uORB.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/uorb/uORB/uORB.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 diff --git a/system/usbmsc/CMakeLists.txt b/system/usbmsc/CMakeLists.txt index 86f984db67f..8c3c96edf6d 100644 --- a/system/usbmsc/CMakeLists.txt +++ b/system/usbmsc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/usbmsc/CMakeLists.txt # +# 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 diff --git a/system/usbmsc/Make.defs b/system/usbmsc/Make.defs index dce55e1c986..b313829e023 100644 --- a/system/usbmsc/Make.defs +++ b/system/usbmsc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/usbmsc/Make.defs # +# 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/system/usbmsc/Makefile b/system/usbmsc/Makefile index 2b3a852655f..8b53f7ce243 100644 --- a/system/usbmsc/Makefile +++ b/system/usbmsc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/usbmsc/Makefile # +# 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/system/usbmsc/usbmsc.h b/system/usbmsc/usbmsc.h index 70a47970463..f931a427d2d 100644 --- a/system/usbmsc/usbmsc.h +++ b/system/usbmsc/usbmsc.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/usbmsc/usbmsc.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 diff --git a/system/usbmsc/usbmsc_main.c b/system/usbmsc/usbmsc_main.c index 0da82e6ce47..6b08e4da059 100644 --- a/system/usbmsc/usbmsc_main.c +++ b/system/usbmsc/usbmsc_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/usbmsc/usbmsc_main.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/system/vi/CMakeLists.txt b/system/vi/CMakeLists.txt index d0e0c6c11bd..b321cd498b5 100644 --- a/system/vi/CMakeLists.txt +++ b/system/vi/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/vi/CMakeLists.txt # +# 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 diff --git a/system/vi/Make.defs b/system/vi/Make.defs index ab490db2fb5..37857e49aec 100644 --- a/system/vi/Make.defs +++ b/system/vi/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/vi/Make.defs # +# 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/system/vi/Makefile b/system/vi/Makefile index 0c044c5e636..4da7fa812f5 100644 --- a/system/vi/Makefile +++ b/system/vi/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/vi/Makefile # +# 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/system/vi/vi.c b/system/vi/vi.c index 77aab8d7915..be4abbd84e0 100644 --- a/system/vi/vi.c +++ b/system/vi/vi.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/vi/vi.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/system/ymodem/CMakeLists.txt b/system/ymodem/CMakeLists.txt index 1922def8981..297b891a14d 100644 --- a/system/ymodem/CMakeLists.txt +++ b/system/ymodem/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/ymodem/CMakeLists.txt # +# 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 diff --git a/system/ymodem/Make.defs b/system/ymodem/Make.defs index a18826be2c8..ec31227cea9 100644 --- a/system/ymodem/Make.defs +++ b/system/ymodem/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/ymodem/Make.defs # +# 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/system/ymodem/Makefile b/system/ymodem/Makefile index f0ebc262eb6..c64726df0d7 100644 --- a/system/ymodem/Makefile +++ b/system/ymodem/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/ymodem/Makefile # +# 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/system/ymodem/rb_main.c b/system/ymodem/rb_main.c index 28fa4ee92d5..373e597fe96 100644 --- a/system/ymodem/rb_main.c +++ b/system/ymodem/rb_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/ymodem/rb_main.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/system/ymodem/sb_main.c b/system/ymodem/sb_main.c index b58a443af42..4453752e596 100644 --- a/system/ymodem/sb_main.c +++ b/system/ymodem/sb_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/ymodem/sb_main.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/system/ymodem/sbrb.py b/system/ymodem/sbrb.py index ee91767ec1e..0b97673842a 100755 --- a/system/ymodem/sbrb.py +++ b/system/ymodem/sbrb.py @@ -1,6 +1,8 @@ #!/bin/python3 # apps/system/ymodem/sbrb.py # +# 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/system/ymodem/ymodem.c b/system/ymodem/ymodem.c index 0a717030e1b..48d1320dccb 100644 --- a/system/ymodem/ymodem.c +++ b/system/ymodem/ymodem.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/ymodem/ymodem.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/system/ymodem/ymodem.h b/system/ymodem/ymodem.h index d52b4934e3d..e8a6a12b4a4 100644 --- a/system/ymodem/ymodem.h +++ b/system/ymodem/ymodem.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/ymodem/ymodem.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 diff --git a/system/zlib/CMakeLists.txt b/system/zlib/CMakeLists.txt index 89c39b58c88..c326aef5775 100644 --- a/system/zlib/CMakeLists.txt +++ b/system/zlib/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/zlib/CMakeLists.txt # +# 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 diff --git a/system/zlib/Make.defs b/system/zlib/Make.defs index 87e7a148e35..c828dbe3d19 100644 --- a/system/zlib/Make.defs +++ b/system/zlib/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/zlib/Make.defs # +# 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/system/zlib/Makefile b/system/zlib/Makefile index b750f78b2a4..7c978a55295 100644 --- a/system/zlib/Makefile +++ b/system/zlib/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/zlib/Makefile # +# 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/system/zmodem/CMakeLists.txt b/system/zmodem/CMakeLists.txt index ee8ed7f624f..e35e470ed14 100644 --- a/system/zmodem/CMakeLists.txt +++ b/system/zmodem/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/system/zmodem/CMakeLists.txt # +# 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 diff --git a/system/zmodem/Make.defs b/system/zmodem/Make.defs index 625976fafee..d4f60197e0c 100644 --- a/system/zmodem/Make.defs +++ b/system/zmodem/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/zmodem/Make.defs # +# 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/system/zmodem/Makefile b/system/zmodem/Makefile index ca5a2485190..f9b33079ab2 100644 --- a/system/zmodem/Makefile +++ b/system/zmodem/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/system/zmodem/Makefile # +# 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/system/zmodem/Makefile.host b/system/zmodem/Makefile.host index f9697d8ba73..969ba85d823 100644 --- a/system/zmodem/Makefile.host +++ b/system/zmodem/Makefile.host @@ -1,6 +1,8 @@ ############################################################################ # apps/system/zmodem/Makefile.host # +# 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/system/zmodem/host/crc16.c b/system/zmodem/host/crc16.c index 0f353001ce8..9d16ae285a0 100644 --- a/system/zmodem/host/crc16.c +++ b/system/zmodem/host/crc16.c @@ -1,24 +1,10 @@ /************************************************************************************************ * apps/system/zmodem/host/crc16.c * - * This file is a part of NuttX: - * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * References: - * - * crc16_tab calculated by Mark G. Mendel, Network Systems Corporation. - * crc16part() logic derived from article Copyright (C) 1986 Stephen Satchell. - * - * "Programmers may incorporate any or all code into their programs, - * giving proper credit within the source. Publication of the - * source routines is permitted so long as proper credit is given - * to Stephen Satchell, Satchell Evaluations and Chuck Forsberg, - * Omen Technology." - * - * Re-released under the Modified BSD license which, I believe, is consistent with the - * original authors' intent: + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2013 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 1986 Stephen Satchell. + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -49,6 +35,20 @@ * ************************************************************************************************/ +/* References: + * + * crc16_tab calculated by Mark G. Mendel, Network Systems Corporation. + * crc16part() logic derived from article Copyright (C) 1986 Stephen Satchell. + * + * "Programmers may incorporate any or all code into their programs, + * giving proper credit within the source. Publication of the + * source routines is permitted so long as proper credit is given + * to Stephen Satchell, Satchell Evaluations and Chuck Forsberg, + * Omen Technology." + * + * Re-released under the Modified BSD license which, I believe, is consistent with the + * original authors' intent. + */ /************************************************************************************************ * Included Files ************************************************************************************************/ diff --git a/system/zmodem/host/crc32.c b/system/zmodem/host/crc32.c index d2b8815ff13..940f8158a40 100644 --- a/system/zmodem/host/crc32.c +++ b/system/zmodem/host/crc32.c @@ -1,16 +1,47 @@ /************************************************************************************************ * apps/system/zmodem/host/crc32.c * - * This file is a part of NuttX: + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2013 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 1986 Gary S. Brown + * SPDX-FileContributor: Gregory Nutt * - * Copyright (C) 2013 Gregory Nutt. All rights reserved. + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: * - * The logic in this file was developed by Gary S. Brown: + * 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 + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * 3. Neither the name NuttX nor the names of its contributors may be + * used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 OWNER 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. + * + ************************************************************************************************/ + +/* The logic in this file was developed by Gary S. Brown: * * COPYRIGHT (C) 1986 Gary S. Brown. You may use this program, or code or tables * extracted from it, as desired without restriction. - * - * First, the polynomial itself and its table of feedback terms. The polynomial is: + */ + +/* First, the polynomial itself and its table of feedback terms. The polynomial is: * * X^32+X^26+X^23+X^22+X^16+X^12+X^11+X^10+X^8+X^7+X^5+X^4+X^2+X^1+X^0 * diff --git a/system/zmodem/host/debug.h b/system/zmodem/host/debug.h index 81605421e16..5f9f0a0f886 100644 --- a/system/zmodem/host/debug.h +++ b/system/zmodem/host/debug.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/host/debug.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 diff --git a/system/zmodem/host/nuttx/ascii.h b/system/zmodem/host/nuttx/ascii.h index a1e55cccdcf..db18b947843 100644 --- a/system/zmodem/host/nuttx/ascii.h +++ b/system/zmodem/host/nuttx/ascii.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/host/nuttx/ascii.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 diff --git a/system/zmodem/host/nuttx/compiler.h b/system/zmodem/host/nuttx/compiler.h index b8b42b9bbbf..d2a4ff0f90b 100644 --- a/system/zmodem/host/nuttx/compiler.h +++ b/system/zmodem/host/nuttx/compiler.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/host/nuttx/compiler.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 diff --git a/system/zmodem/host/nuttx/config.h b/system/zmodem/host/nuttx/config.h index 4b6a21b2676..3e526ba0c77 100644 --- a/system/zmodem/host/nuttx/config.h +++ b/system/zmodem/host/nuttx/config.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/host/nuttx/config.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 diff --git a/system/zmodem/host/nuttx/crc16.h b/system/zmodem/host/nuttx/crc16.h index 6abfb738766..b27f68f19e9 100644 --- a/system/zmodem/host/nuttx/crc16.h +++ b/system/zmodem/host/nuttx/crc16.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/host/nuttx/crc16.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 diff --git a/system/zmodem/host/nuttx/crc32.h b/system/zmodem/host/nuttx/crc32.h index fd48786071e..c899f789609 100644 --- a/system/zmodem/host/nuttx/crc32.h +++ b/system/zmodem/host/nuttx/crc32.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/host/nuttx/crc32.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 diff --git a/system/zmodem/rz_main.c b/system/zmodem/rz_main.c index 16099411f7a..af752ebc4dc 100644 --- a/system/zmodem/rz_main.c +++ b/system/zmodem/rz_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/rz_main.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/system/zmodem/sz_main.c b/system/zmodem/sz_main.c index ca9d25a1aee..0b3251de587 100644 --- a/system/zmodem/sz_main.c +++ b/system/zmodem/sz_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/sz_main.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/system/zmodem/zm.h b/system/zmodem/zm.h index 8cf460c8785..a7971c00e6a 100644 --- a/system/zmodem/zm.h +++ b/system/zmodem/zm.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/zm.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 diff --git a/system/zmodem/zm_proto.c b/system/zmodem/zm_proto.c index 09131da6c35..c5600de62ee 100644 --- a/system/zmodem/zm_proto.c +++ b/system/zmodem/zm_proto.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/zm_proto.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/system/zmodem/zm_receive.c b/system/zmodem/zm_receive.c index b93b9508593..6818a1fabe0 100644 --- a/system/zmodem/zm_receive.c +++ b/system/zmodem/zm_receive.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/zm_receive.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/system/zmodem/zm_send.c b/system/zmodem/zm_send.c index 507df00831c..059a7d14a21 100644 --- a/system/zmodem/zm_send.c +++ b/system/zmodem/zm_send.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/zm_send.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/system/zmodem/zm_state.c b/system/zmodem/zm_state.c index 5f8b6d92d34..4b7f4cfaf95 100644 --- a/system/zmodem/zm_state.c +++ b/system/zmodem/zm_state.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/zm_state.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/system/zmodem/zm_utils.c b/system/zmodem/zm_utils.c index 3c130f7fd96..e0969a59154 100644 --- a/system/zmodem/zm_utils.c +++ b/system/zmodem/zm_utils.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/zm_utils.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/system/zmodem/zm_watchdog.c b/system/zmodem/zm_watchdog.c index 606b9af9950..3749ea72acf 100644 --- a/system/zmodem/zm_watchdog.c +++ b/system/zmodem/zm_watchdog.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/system/zmodem/zm_watchdog.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 From f84193d0a9368e97dc7a1f9a695c759094406114 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 16:00:17 +0100 Subject: [PATCH 34/38] tee: remove the advertising clause 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the University of California, Berkeley and its contributors. permitted by Berkley amendment https://ipira.berkeley.edu/sites/default/files/amendment_of_4-clause_bsd_software_license.pdf following example from NETBSD and OPENBSD https://github.com/NetBSD/src/commit/eb7c1594f145c931049e1fd9eb056a5987e87e59 https://github.com/openbsd/src/commit/6580fee3295c971a919cc04bfc3598c5f8bcd2b1 Signed-off-by: Alin Jerpelea --- system/tee/tee.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/system/tee/tee.c b/system/tee/tee.c index 5a1b377ece3..99ed8386e6a 100644 --- a/system/tee/tee.c +++ b/system/tee/tee.c @@ -19,11 +19,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by the University of - * California, Berkeley and its contributors. - * 4. Neither the name of the University nor the names of its contributors + * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * From dd59c9bc9509ec51b56ffaab9509b8230cd2e486 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 16:03:05 +0100 Subject: [PATCH 35/38] system/tee: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- system/tee/tee.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/system/tee/tee.c b/system/tee/tee.c index 99ed8386e6a..3adab918fae 100644 --- a/system/tee/tee.c +++ b/system/tee/tee.c @@ -1,14 +1,11 @@ /**************************************************************************** * apps/system/tee/tee.c - * $NetBSD: tee.c,v 1.6 1997/10/20 00:37:11 lukem Exp $ * - * Copyright (c) 2016. Gregory Nutt. All rights reserved. - * Author: Gregory Nutt - * - * Leveraged from NetBSD: - * - * Copyright (c) 1988, 1993 - * The Regents of the University of California. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2016 Gregory Nutt. All rights reserved. + * SPDX-FileCopyrightText: 1993 The Regents of the University of California. + * SPDX-FileCopyrightText: 1993 The Regents of the University of California. + * SPDX-FileContributor: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions From be985147ed6b0a8ff5c3c6b2aab96b427784b344 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 16:26:09 +0100 Subject: [PATCH 36/38] testing: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- testing/CMakeLists.txt | 2 + testing/Make.defs | 2 + testing/Makefile | 2 + testing/arch_libc/CMakeLists.txt | 2 + testing/arch_libc/Make.defs | 2 + testing/arch_libc/Makefile | 2 + testing/arch_libc/arch_libc_test_main.c | 2 + testing/atomic/CMakeLists.txt | 2 + testing/atomic/Make.defs | 2 + testing/atomic/Makefile | 2 + testing/atomic/atomic_main.c | 2 + testing/cachetest/CMakeLists.txt | 2 + testing/cachetest/Make.defs | 2 + testing/cachetest/Makefile | 2 + testing/cachetest/cachetest_main.c | 2 + testing/cmocka/CMakeLists.txt | 2 + testing/cmocka/Make.defs | 2 + testing/cmocka/Makefile | 2 + testing/cmocka/cmocka_main.c | 2 + testing/cmocka/cmocka_platform.h | 2 + testing/cmocka/tools/cmocka_implement.py | 23 +++++++++ testing/cmocka/tools/cmocka_report.py | 2 + .../cmocka/tools/junit2htmlreport/parser.py | 22 +++++++++ .../cmocka/tools/junit2htmlreport/render.py | 22 +++++++++ .../tools/junit2htmlreport/textutils.py | 22 +++++++++ testing/cpuload/CMakeLists.txt | 2 + testing/cpuload/Make.defs | 2 + testing/cpuload/Makefile | 2 + testing/cpuload/cpuload_main.c | 2 + testing/crypto/3descbc.c | 4 +- testing/crypto/CMakeLists.txt | 2 + testing/crypto/Make.defs | 2 + testing/crypto/Makefile | 2 + testing/crypto/aescbc.c | 4 +- testing/crypto/aescmac.c | 2 + testing/crypto/aesctr.c | 4 +- testing/crypto/aesxts.c | 6 +-- testing/crypto/crc32.c | 2 + testing/crypto/dhm.c | 3 +- testing/crypto/ecdsa.c | 2 + testing/crypto/hash.c | 2 + testing/crypto/hmac.c | 4 +- testing/crypto/rsa.c | 2 + testing/cxxsize/CMakeLists.txt | 2 + testing/cxxsize/Make.defs | 2 + testing/cxxsize/Makefile | 2 + testing/cxxsize/array.cxx | 2 + testing/cxxsize/condition_variable.cxx | 2 + testing/cxxsize/deque.cxx | 2 + testing/cxxsize/exception.cxx | 2 + testing/cxxsize/forward_list.cxx | 2 + testing/cxxsize/future.cxx | 2 + testing/cxxsize/iostream.cxx | 2 + testing/cxxsize/list.cxx | 2 + testing/cxxsize/map.cxx | 2 + testing/cxxsize/multiset.cxx | 2 + testing/cxxsize/mutex.cxx | 2 + testing/cxxsize/rtti.cxx | 2 + testing/cxxsize/semaphore.cxx | 2 + testing/cxxsize/set.cxx | 2 + testing/cxxsize/shared_ptr.cxx | 2 + testing/cxxsize/string.cxx | 2 + testing/cxxsize/string_view.cxx | 2 + testing/cxxsize/thread.cxx | 2 + testing/cxxsize/unordered_map.cxx | 2 + testing/cxxsize/unordered_multimap.cxx | 2 + testing/cxxsize/unordered_multiset.cxx | 2 + testing/cxxsize/unordered_set.cxx | 2 + testing/cxxsize/vector.cxx | 2 + testing/cxxsize/weak_ptr.cxx | 2 + testing/cxxtest/CMakeLists.txt | 2 + testing/cxxtest/Make.defs | 2 + testing/cxxtest/Makefile | 2 + testing/cxxtest/cxxtest_main.cxx | 2 + testing/drivertest/CMakeLists.txt | 2 + testing/drivertest/Make.defs | 2 + testing/drivertest/Makefile | 2 + testing/drivertest/drivertest_adc.c | 2 + testing/drivertest/drivertest_audio.c | 2 + testing/drivertest/drivertest_block.c | 2 + testing/drivertest/drivertest_framebuffer.c | 2 + testing/drivertest/drivertest_gpio.c | 2 + testing/drivertest/drivertest_i2c_read.c | 2 + testing/drivertest/drivertest_i2c_spi.c | 2 + testing/drivertest/drivertest_i2c_write.c | 2 + testing/drivertest/drivertest_lcd.c | 2 + testing/drivertest/drivertest_mps2.c | 2 + .../drivertest/drivertest_mps2_isr_signal.c | 2 + .../drivertest_mps2_zerointerrupt.c | 2 + testing/drivertest/drivertest_oneshot.c | 2 + testing/drivertest/drivertest_pm.c | 2 + testing/drivertest/drivertest_pm_runtime.c | 2 + testing/drivertest/drivertest_pm_smp.c | 2 + testing/drivertest/drivertest_posix_timer.c | 2 + testing/drivertest/drivertest_pwm.c | 2 + testing/drivertest/drivertest_regulator.c | 2 + testing/drivertest/drivertest_relay.c | 2 + testing/drivertest/drivertest_rtc.c | 2 + testing/drivertest/drivertest_simple.c | 2 + testing/drivertest/drivertest_timer.c | 2 + testing/drivertest/drivertest_touchpanel.c | 2 + testing/drivertest/drivertest_uart.c | 2 + testing/drivertest/drivertest_watchdog.c | 2 + testing/drivertest/test_content_gen.py | 8 ++-- testing/epoll/CMakeLists.txt | 2 + testing/epoll/Make.defs | 2 + testing/epoll/Makefile | 2 + testing/epoll/epoll.c | 2 + testing/fatutf8/CMakeLists.txt | 2 + testing/fatutf8/Make.defs | 2 + testing/fatutf8/Makefile | 2 + testing/fatutf8/fatutf8_main.c | 2 + testing/fdsantest/CMakeLists.txt | 2 + testing/fdsantest/Make.defs | 2 + testing/fdsantest/Makefile | 2 + testing/fdsantest/fdsantest_simple.c | 2 + testing/fff/CMakeLists.txt | 2 + testing/fff/Make.defs | 2 + testing/fff/Makefile | 2 + testing/fftest/CMakeLists.txt | 2 + testing/fftest/Make.defs | 2 + testing/fftest/Makefile | 2 + testing/fftest/fftest.c | 2 + testing/fmemopen/CMakeLists.txt | 2 + testing/fmemopen/Make.defs | 2 + testing/fmemopen/Makefile | 2 + testing/fmemopen/fmemopen.c | 2 + testing/fopencookie/Make.defs | 2 + testing/fopencookie/Makefile | 2 + testing/fopencookie/fopencookie.c | 2 + testing/fstest/CMakeLists.txt | 2 + testing/fstest/Make.defs | 2 + testing/fstest/Makefile | 2 + testing/fstest/fstest_main.c | 2 + testing/getprime/CMakeLists.txt | 2 + testing/getprime/Make.defs | 2 + testing/getprime/Makefile | 2 + testing/getprime/getprime_main.c | 2 + testing/himem_test/LibIncludes.mk | 2 + testing/himem_test/Make.defs | 2 + testing/himem_test/Makefile | 2 + testing/himem_test/himem_chardev_test.c | 2 + testing/iob/CMakeLists.txt | 2 + testing/iob/Make.defs | 2 + testing/iob/Makefile | 2 + testing/iob/iob_main.c | 2 + testing/irtest/CMakeLists.txt | 2 + testing/irtest/Make.defs | 2 + testing/irtest/Makefile | 2 + testing/irtest/cmd.cxx | 2 + testing/irtest/cmd.hpp | 2 + testing/irtest/enum.cxx | 2 + testing/irtest/enum.hpp | 2 + testing/irtest/main.cxx | 2 + testing/kasantest/CMakeLists.txt | 2 + testing/kasantest/Make.defs | 2 + testing/kasantest/Makefile | 2 + testing/kasantest/kasantest.c | 2 + testing/ltp/Make.defs | 2 + testing/ltp/Makefile | 2 + testing/ltp/config.h | 2 + testing/memstress/CMakeLists.txt | 2 + testing/memstress/Make.defs | 2 + testing/memstress/Makefile | 2 + testing/memstress/memorystress_main.c | 2 + testing/memtester/CMakeLists.txt | 2 + testing/memtester/Make.defs | 2 + testing/memtester/Makefile | 2 + testing/mm/CMakeLists.txt | 2 + testing/mm/Make.defs | 2 + testing/mm/Makefile | 2 + testing/mm/mm_main.c | 2 + testing/monkey/CMakeLists.txt | 2 + testing/monkey/Make.defs | 2 + testing/monkey/Makefile | 2 + testing/monkey/monkey.c | 2 + testing/monkey/monkey.h | 2 + testing/monkey/monkey_assert.h | 2 + testing/monkey/monkey_dev.c | 2 + testing/monkey/monkey_dev.h | 2 + testing/monkey/monkey_event.c | 2 + testing/monkey/monkey_event.h | 2 + testing/monkey/monkey_log.c | 2 + testing/monkey/monkey_log.h | 2 + testing/monkey/monkey_main.c | 2 + testing/monkey/monkey_proc.c | 2 + testing/monkey/monkey_recorder.c | 2 + testing/monkey/monkey_recorder.h | 2 + testing/monkey/monkey_type.h | 2 + testing/monkey/monkey_utils.c | 2 + testing/monkey/monkey_utils.h | 2 + testing/mtd_config_fs/CMakeLists.txt | 2 + testing/mtd_config_fs/Make.defs | 2 + testing/mtd_config_fs/Makefile | 2 + .../mtd_config_fs/mtd_config_fs_test_main.c | 2 + testing/mtetest/CMakeLists.txt | 2 + testing/mtetest/Make.defs | 2 + testing/mtetest/Makefile | 2 + testing/mtetest/mtetest.c | 2 + testing/nand_sim/CMakeLists.txt | 2 + testing/nand_sim/Make.defs | 2 + testing/nand_sim/Makefile | 2 + testing/nand_sim/nand_sim_main.c | 1 + testing/nist-sts/CMakeLists.txt | 2 + testing/nist-sts/Make.defs | 2 + testing/nist-sts/Makefile | 2 + testing/nxffs/CMakeLists.txt | 2 + testing/nxffs/Make.defs | 2 + testing/nxffs/Makefile | 2 + testing/nxffs/nxffs_main.c | 2 + testing/open_memstream/CMakeLists.txt | 2 + testing/open_memstream/Make.defs | 2 + testing/open_memstream/Makefile | 2 + testing/open_memstream/open_memstream.c | 2 + testing/ostest/CMakeLists.txt | 2 + testing/ostest/Make.defs | 2 + testing/ostest/Makefile | 2 + testing/ostest/aio.c | 2 + testing/ostest/barrier.c | 2 + testing/ostest/cancel.c | 2 + testing/ostest/cond.c | 2 + testing/ostest/dev_null.c | 2 + testing/ostest/fpu.c | 2 + testing/ostest/getopt.c | 2 + testing/ostest/libc_memmem.c | 2 + testing/ostest/mqueue.c | 2 + testing/ostest/mutex.c | 2 + testing/ostest/nsem.c | 2 + testing/ostest/nxevent.c | 2 + testing/ostest/ostest.h | 2 + testing/ostest/ostest_main.c | 2 + testing/ostest/posixtimer.c | 2 + testing/ostest/prioinherit.c | 2 + testing/ostest/pthread_cleanup.c | 2 + testing/ostest/pthread_exit.c | 2 + testing/ostest/pthread_rwlock.c | 2 + testing/ostest/pthread_rwlock_cancel.c | 2 + testing/ostest/restart.c | 2 + testing/ostest/rmutex.c | 2 + testing/ostest/robust.c | 2 + testing/ostest/roundrobin.c | 2 + testing/ostest/sched_thread_local.c | 2 + testing/ostest/schedlock.c | 2 + testing/ostest/sem.c | 2 + testing/ostest/semtimed.c | 2 + testing/ostest/setjmp.c | 2 + testing/ostest/setvbuf.c | 2 + testing/ostest/sigev_thread.c | 2 + testing/ostest/sighand.c | 2 + testing/ostest/sighelper.c | 2 + testing/ostest/signest.c | 2 + testing/ostest/sigprocmask.c | 2 + testing/ostest/smp_call.c | 2 + testing/ostest/specific.c | 2 + testing/ostest/sporadic.c | 2 + testing/ostest/sporadic2.c | 2 + testing/ostest/suspend.c | 2 + testing/ostest/timedmqueue.c | 2 + testing/ostest/timedmutex.c | 2 + testing/ostest/timedwait.c | 2 + testing/ostest/tls.c | 2 + testing/ostest/vfork.c | 2 + testing/ostest/waitpid.c | 2 + testing/ostest/wdog.c | 2 + testing/ostest/wqueue.c | 2 + testing/pcitest/Make.defs | 2 + testing/pcitest/Makefile | 2 + testing/pcitest/pcitest.c | 2 + testing/ramtest/CMakeLists.txt | 2 + testing/ramtest/Make.defs | 2 + testing/ramtest/Makefile | 2 + testing/ramtest/ramtest.c | 2 + testing/resmonitor/CMakeLists.txt | 2 + testing/resmonitor/Make.defs | 3 +- testing/resmonitor/Makefile | 28 +++++++---- testing/resmonitor/fillcpu.c | 2 + testing/resmonitor/filldisk.c | 2 + testing/resmonitor/fillmem.c | 2 + testing/resmonitor/showinfo.c | 2 + testing/scanftest/CMakeLists.txt | 2 + testing/scanftest/Make.defs | 2 + testing/scanftest/Makefile | 2 + testing/scanftest/scanftest_main.c | 47 ++++++++++--------- testing/sd_bench/Make.defs | 2 + testing/sd_bench/Makefile | 2 + testing/sd_bench/sd_bench_main.c | 5 +- testing/sd_stress/Make.defs | 2 + testing/sd_stress/Makefile | 2 + testing/sd_stress/sd_stress_main.c | 5 +- testing/sensortest/CMakeLists.txt | 2 + testing/sensortest/Make.defs | 2 + testing/sensortest/Makefile | 2 + testing/sensortest/sensortest.c | 2 + testing/setest/CMakeLists.txt | 2 + testing/setest/Make.defs | 2 + testing/setest/Makefile | 2 + testing/setest/setest.c | 2 + testing/smart/CMakeLists.txt | 2 + testing/smart/Make.defs | 2 + testing/smart/Makefile | 2 + testing/smart/smart_main.c | 2 + testing/smart_test/CMakeLists.txt | 2 + testing/smart_test/Make.defs | 2 + testing/smart_test/Makefile | 2 + testing/smart_test/smart_test.c | 2 + testing/smp/CMakeLists.txt | 2 + testing/smp/Make.defs | 2 + testing/smp/Makefile | 2 + testing/smp/smp_main.c | 2 + testing/stressapptest/CMakeLists.txt | 2 + testing/stressapptest/Make.defs | 2 + testing/stressapptest/Makefile | 2 + testing/testsuites/Make.defs | 2 + testing/testsuites/Makefile | 2 + .../kernel/fs/cases/fs_append_test.c | 18 +++---- .../kernel/fs/cases/fs_creat_test.c | 18 +++---- .../testsuites/kernel/fs/cases/fs_dup2_test.c | 18 +++---- .../testsuites/kernel/fs/cases/fs_dup_test.c | 18 +++---- .../kernel/fs/cases/fs_eventfd_test.c | 18 +++---- .../kernel/fs/cases/fs_fcntl_test.c | 18 +++---- .../kernel/fs/cases/fs_fstat_test.c | 18 +++---- .../kernel/fs/cases/fs_fstatfs_test.c | 18 +++---- .../kernel/fs/cases/fs_fsync_test.c | 18 +++---- .../kernel/fs/cases/fs_getfilep_test.c | 18 +++---- .../kernel/fs/cases/fs_mkdir_test.c | 18 +++---- .../testsuites/kernel/fs/cases/fs_open_test.c | 18 +++---- .../kernel/fs/cases/fs_opendir_test.c | 18 +++---- .../testsuites/kernel/fs/cases/fs_poll_test.c | 18 +++---- .../kernel/fs/cases/fs_pread_test.c | 18 +++---- .../kernel/fs/cases/fs_pwrite_test.c | 18 +++---- .../testsuites/kernel/fs/cases/fs_read_test.c | 18 +++---- .../kernel/fs/cases/fs_readdir_test.c | 18 +++---- .../kernel/fs/cases/fs_readlink_test.c | 18 +++---- .../kernel/fs/cases/fs_rename_test.c | 18 +++---- .../kernel/fs/cases/fs_rewinddir_test.c | 18 +++---- .../kernel/fs/cases/fs_rmdir_test.c | 18 +++---- .../testsuites/kernel/fs/cases/fs_seek_test.c | 18 +++---- .../kernel/fs/cases/fs_sendfile_test.c | 18 +++---- .../testsuites/kernel/fs/cases/fs_stat_test.c | 18 +++---- .../kernel/fs/cases/fs_statfs_test.c | 18 +++---- .../kernel/fs/cases/fs_stream_test.c | 18 +++---- .../kernel/fs/cases/fs_symlink_test.c | 18 +++---- .../kernel/fs/cases/fs_truncate_test.c | 18 +++---- .../kernel/fs/cases/fs_unlink_test.c | 18 +++---- .../kernel/fs/cases/fs_write_test.c | 18 +++---- testing/testsuites/kernel/fs/cmocka_fs_test.c | 18 +++---- .../kernel/fs/common/test_fs_common.c | 18 +++---- testing/testsuites/kernel/fs/include/fstest.h | 18 +++---- .../testsuites/kernel/mm/cases/mm_test_001.c | 18 +++---- .../testsuites/kernel/mm/cases/mm_test_002.c | 18 +++---- .../testsuites/kernel/mm/cases/mm_test_003.c | 18 +++---- .../testsuites/kernel/mm/cases/mm_test_004.c | 18 +++---- .../testsuites/kernel/mm/cases/mm_test_005.c | 18 +++---- .../testsuites/kernel/mm/cases/mm_test_006.c | 18 +++---- .../testsuites/kernel/mm/cases/mm_test_007.c | 18 +++---- .../testsuites/kernel/mm/cases/mm_test_008.c | 18 +++---- testing/testsuites/kernel/mm/cmocka_mm_test.c | 18 +++---- .../kernel/mm/common/test_mm_common.c | 18 +++---- testing/testsuites/kernel/mm/include/MmTest.h | 20 ++++---- .../kernel/mm/tool/mem_batch_opt_perf_test.c | 18 +++---- .../kernel/mm/tool/mem_cycle_opt_perf_test.c | 18 +++---- .../kernel/mutex/cases/posix_mutex_test_001.c | 18 +++---- .../kernel/mutex/cases/posix_mutex_test_019.c | 18 +++---- .../kernel/mutex/cases/posix_mutex_test_020.c | 18 +++---- .../kernel/mutex/cmocka_mutex_test.c | 18 +++---- .../kernel/mutex/include/MutexTest.h | 19 ++++---- .../pthread/cases/posix_pthread_test_003.c | 18 +++---- .../pthread/cases/posix_pthread_test_004.c | 18 +++---- .../pthread/cases/posix_pthread_test_005.c | 18 +++---- .../pthread/cases/posix_pthread_test_006.c | 18 +++---- .../pthread/cases/posix_pthread_test_009.c | 18 +++---- .../pthread/cases/posix_pthread_test_018.c | 18 +++---- .../pthread/cases/posix_pthread_test_019.c | 18 +++---- .../pthread/cases/posix_pthread_test_021.c | 18 +++---- .../kernel/pthread/cmocka_pthread_test.c | 18 +++---- .../pthread/common/test_pthread_common.c | 18 +++---- .../kernel/pthread/include/PthreadTest.h | 19 ++++---- .../kernel/sched/cases/api_pthread_test_001.c | 18 +++---- .../kernel/sched/cases/api_pthread_test_002.c | 18 +++---- .../kernel/sched/cases/api_pthread_test_003.c | 18 +++---- .../kernel/sched/cases/api_pthread_test_004.c | 18 +++---- .../kernel/sched/cases/api_pthread_test_005.c | 18 +++---- .../kernel/sched/cases/api_pthread_test_006.c | 18 +++---- .../kernel/sched/cases/api_pthread_test_007.c | 18 +++---- .../kernel/sched/cases/api_pthread_test_008.c | 18 +++---- .../kernel/sched/cases/api_pthread_test_009.c | 18 +++---- .../kernel/sched/cases/api_task_test_001.c | 18 +++---- .../kernel/sched/cases/api_task_test_002.c | 18 +++---- .../kernel/sched/cases/api_task_test_003.c | 18 +++---- .../kernel/sched/cases/api_task_test_004.c | 18 +++---- .../kernel/sched/cases/api_task_test_005.c | 18 +++---- .../kernel/sched/cases/api_task_test_006.c | 18 +++---- .../kernel/sched/cases/api_task_test_007.c | 18 +++---- .../kernel/sched/cmocka_sched_test.c | 18 +++---- .../kernel/sched/common/test_sched_common.c | 18 +++---- .../kernel/sched/include/SchedTest.h | 20 ++++---- .../kernel/socket/cases/net_socket_test_005.c | 18 +++---- .../kernel/socket/cases/net_socket_test_006.c | 18 +++---- .../kernel/socket/cases/net_socket_test_008.c | 18 +++---- .../kernel/socket/cases/net_socket_test_009.c | 18 +++---- .../kernel/socket/cases/net_socket_test_010.c | 18 +++---- .../kernel/socket/cases/net_socket_test_011.c | 18 +++---- .../kernel/socket/cmocka_socket_test.c | 18 +++---- .../kernel/socket/include/SocketTest.h | 18 +++---- .../kernel/syscall/cases/Fstatfs_test.c | 18 +++---- .../kernel/syscall/cases/accept_test.c | 18 +++---- .../kernel/syscall/cases/bind_test.c | 18 +++---- .../kernel/syscall/cases/chdir_test.c | 18 +++---- .../kernel/syscall/cases/clock_gettime_test.c | 18 +++---- .../syscall/cases/clock_nanosleep_test.c | 18 +++---- .../kernel/syscall/cases/clock_settime_test.c | 18 +++---- .../kernel/syscall/cases/close_test.c | 18 +++---- .../kernel/syscall/cases/connect_test.c | 18 +++---- .../kernel/syscall/cases/creat_test.c | 18 +++---- .../kernel/syscall/cases/dup2_test.c | 18 +++---- .../kernel/syscall/cases/dup_test.c | 18 +++---- .../kernel/syscall/cases/fcntl_test.c | 18 +++---- .../kernel/syscall/cases/fpathconf_test.c | 18 +++---- .../kernel/syscall/cases/fsync_test.c | 18 +++---- .../kernel/syscall/cases/ftruncate_test.c | 18 +++---- .../kernel/syscall/cases/getTimeofday_test.c | 18 +++---- .../kernel/syscall/cases/getcwd_test.c | 18 +++---- .../kernel/syscall/cases/getegid_test.c | 18 +++---- .../kernel/syscall/cases/geteuid_test.c | 18 +++---- .../kernel/syscall/cases/getgid_test.c | 18 +++---- .../kernel/syscall/cases/gethostname_test.c | 18 +++---- .../kernel/syscall/cases/getitimer_test.c | 18 +++---- .../kernel/syscall/cases/getpeername_test.c | 18 +++---- .../kernel/syscall/cases/getpid_test.c | 18 +++---- .../kernel/syscall/cases/getppid_test.c | 18 +++---- .../kernel/syscall/cases/getsocketopt_test.c | 18 +++---- .../kernel/syscall/cases/getuid_test.c | 18 +++---- .../kernel/syscall/cases/listen_test.c | 18 +++---- .../kernel/syscall/cases/lseek_test.c | 18 +++---- .../kernel/syscall/cases/lstat_test.c | 18 +++---- .../kernel/syscall/cases/memcmp_test.c | 18 +++---- .../kernel/syscall/cases/memcpy_test.c | 18 +++---- .../kernel/syscall/cases/memset_test.c | 18 +++---- .../kernel/syscall/cases/mkdir_test.c | 18 +++---- .../kernel/syscall/cases/nansleep_test.c | 18 +++---- .../kernel/syscall/cases/pathconf_test.c | 18 +++---- .../kernel/syscall/cases/pipe_test.c | 18 +++---- .../kernel/syscall/cases/pread_test.c | 18 +++---- .../kernel/syscall/cases/pwrite_test.c | 18 +++---- .../kernel/syscall/cases/read_test.c | 18 +++---- .../kernel/syscall/cases/readdir_test.c | 18 +++---- .../kernel/syscall/cases/recvfrom_test.c | 18 +++---- .../kernel/syscall/cases/rmdir_test.c | 18 +++---- .../kernel/syscall/cases/sched_test.c | 18 +++---- .../syscall/cases/setsocketopt01_test.c | 18 +++---- .../kernel/syscall/cases/socket_test.c | 18 +++---- .../kernel/syscall/cases/socketpair_test.c | 20 ++++---- .../kernel/syscall/cases/symlink_test.c | 18 +++---- .../kernel/syscall/cases/time_test.c | 18 +++---- .../kernel/syscall/cases/timer_create_test.c | 18 +++---- .../kernel/syscall/cases/timer_delete_test.c | 18 +++---- .../kernel/syscall/cases/timer_gettime_test.c | 18 +++---- .../kernel/syscall/cases/truncate_test.c | 18 +++---- .../kernel/syscall/cases/unlink_test.c | 18 +++---- .../kernel/syscall/cases/write_test.c | 18 +++---- .../kernel/syscall/cmocka_syscall_test.c | 18 +++---- .../syscall/common/test_syscall_common.c | 20 ++++---- .../kernel/syscall/include/SyscallTest.h | 18 +++---- .../kernel/time/cases/clock_test_clock01.c | 18 +++---- .../kernel/time/cases/clock_test_clock02.c | 18 +++---- .../kernel/time/cases/clock_test_smoke.c | 18 +++---- .../kernel/time/cases/clock_test_timer01.c | 18 +++---- .../kernel/time/cases/clock_test_timer03.c | 18 +++---- .../kernel/time/cases/clock_test_timer04.c | 18 +++---- .../kernel/time/cases/clock_test_timer05.c | 18 +++---- .../testsuites/kernel/time/cmocka_time_test.c | 18 +++---- .../testsuites/kernel/time/include/TimeTest.h | 2 + testing/timerjitter/CMakeLists.txt | 2 +- testing/timerjitter/Make.defs | 2 +- testing/timerjitter/Makefile | 24 ++++++---- testing/timerjitter/timerjitter.c | 2 + testing/uclibcxx_test/Make.defs | 2 + testing/uclibcxx_test/Makefile | 2 + testing/unity/CMakeLists.txt | 2 + testing/unity/Make.defs | 2 + testing/unity/Makefile | 2 + testing/x86-64-ABI/Make.defs | 2 + testing/x86-64-ABI/Makefile | 2 + 483 files changed, 2362 insertions(+), 1325 deletions(-) diff --git a/testing/CMakeLists.txt b/testing/CMakeLists.txt index 217971327c1..dcccb6f0983 100644 --- a/testing/CMakeLists.txt +++ b/testing/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/CMakeLists.txt # +# 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 diff --git a/testing/Make.defs b/testing/Make.defs index c97e547782c..10d16e26057 100644 --- a/testing/Make.defs +++ b/testing/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/Make.defs # +# 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/testing/Makefile b/testing/Makefile index 0f0927d9de2..21d1e757f30 100644 --- a/testing/Makefile +++ b/testing/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/Makefile # +# 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/testing/arch_libc/CMakeLists.txt b/testing/arch_libc/CMakeLists.txt index 52dcd1eab5a..38224f1752e 100644 --- a/testing/arch_libc/CMakeLists.txt +++ b/testing/arch_libc/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/arch_libc/CMakeLists.txt # +# 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 diff --git a/testing/arch_libc/Make.defs b/testing/arch_libc/Make.defs index 4b4d205a116..38c935ec2da 100644 --- a/testing/arch_libc/Make.defs +++ b/testing/arch_libc/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/arch_libc/Make.defs # +# 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/testing/arch_libc/Makefile b/testing/arch_libc/Makefile index bd376459d64..ecd4f543474 100644 --- a/testing/arch_libc/Makefile +++ b/testing/arch_libc/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/arch_libc/Makefile # +# 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/testing/arch_libc/arch_libc_test_main.c b/testing/arch_libc/arch_libc_test_main.c index 770e2773cdc..a053b7a1a9f 100644 --- a/testing/arch_libc/arch_libc_test_main.c +++ b/testing/arch_libc/arch_libc_test_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/arch_libc/arch_libc_test_main.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/testing/atomic/CMakeLists.txt b/testing/atomic/CMakeLists.txt index 7e0d9193ad9..5ae8d006b33 100644 --- a/testing/atomic/CMakeLists.txt +++ b/testing/atomic/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/atomic/CMakeLists.txt # +# 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 diff --git a/testing/atomic/Make.defs b/testing/atomic/Make.defs index d9d848810d3..be5f4eb465c 100644 --- a/testing/atomic/Make.defs +++ b/testing/atomic/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/atomic/Make.defs # +# 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/testing/atomic/Makefile b/testing/atomic/Makefile index 39584aee079..19f4d48a3fd 100644 --- a/testing/atomic/Makefile +++ b/testing/atomic/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/atomic/Makefile # +# 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/testing/atomic/atomic_main.c b/testing/atomic/atomic_main.c index 90314190d37..7d3985fd99e 100644 --- a/testing/atomic/atomic_main.c +++ b/testing/atomic/atomic_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/atomic/atomic_main.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/testing/cachetest/CMakeLists.txt b/testing/cachetest/CMakeLists.txt index 661887ab545..5eb87601db2 100644 --- a/testing/cachetest/CMakeLists.txt +++ b/testing/cachetest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/cachetest/CMakeLists.txt # +# 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 diff --git a/testing/cachetest/Make.defs b/testing/cachetest/Make.defs index 875f334d297..70bbd75aa43 100644 --- a/testing/cachetest/Make.defs +++ b/testing/cachetest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/cachetest/Make.defs # +# 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/testing/cachetest/Makefile b/testing/cachetest/Makefile index 7d84880f968..544e1da4894 100644 --- a/testing/cachetest/Makefile +++ b/testing/cachetest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/cachetest/Makefile # +# 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/testing/cachetest/cachetest_main.c b/testing/cachetest/cachetest_main.c index 9496432dc44..ec1653a5904 100644 --- a/testing/cachetest/cachetest_main.c +++ b/testing/cachetest/cachetest_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/cachetest/cachetest_main.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/testing/cmocka/CMakeLists.txt b/testing/cmocka/CMakeLists.txt index 11568513eeb..3a9fabd8578 100644 --- a/testing/cmocka/CMakeLists.txt +++ b/testing/cmocka/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/cmocka/CMakeLists.txt # +# 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 diff --git a/testing/cmocka/Make.defs b/testing/cmocka/Make.defs index 3086f8fcb1a..396365e9666 100644 --- a/testing/cmocka/Make.defs +++ b/testing/cmocka/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/cmocka/Make.defs # +# 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/testing/cmocka/Makefile b/testing/cmocka/Makefile index c2694f6c527..ac2d177b5ed 100644 --- a/testing/cmocka/Makefile +++ b/testing/cmocka/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/cmocka/Makefile # +# 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/testing/cmocka/cmocka_main.c b/testing/cmocka/cmocka_main.c index 00b0189940a..dd251fddcaf 100644 --- a/testing/cmocka/cmocka_main.c +++ b/testing/cmocka/cmocka_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/cmocka/cmocka_main.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/testing/cmocka/cmocka_platform.h b/testing/cmocka/cmocka_platform.h index e452615dba4..70d26250002 100644 --- a/testing/cmocka/cmocka_platform.h +++ b/testing/cmocka/cmocka_platform.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/cmocka/cmocka_platform.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 diff --git a/testing/cmocka/tools/cmocka_implement.py b/testing/cmocka/tools/cmocka_implement.py index aa80f1d6275..71931da76c5 100644 --- a/testing/cmocka/tools/cmocka_implement.py +++ b/testing/cmocka/tools/cmocka_implement.py @@ -1,3 +1,26 @@ +#!/usr/bin/env python3 +############################################################################ +# apps/testing/cmocka/tools/cmocka_implement.py +# +# 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. +# +############################################################################ + # -*- coding: utf-8 -*- import copy import os diff --git a/testing/cmocka/tools/cmocka_report.py b/testing/cmocka/tools/cmocka_report.py index 7d518d0b604..e9c953aae8d 100644 --- a/testing/cmocka/tools/cmocka_report.py +++ b/testing/cmocka/tools/cmocka_report.py @@ -2,6 +2,8 @@ ############################################################################ # apps/testing/cmocka/tools/cmocka_report.py # +# 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/testing/cmocka/tools/junit2htmlreport/parser.py b/testing/cmocka/tools/junit2htmlreport/parser.py index f580b952409..aa31adef142 100644 --- a/testing/cmocka/tools/junit2htmlreport/parser.py +++ b/testing/cmocka/tools/junit2htmlreport/parser.py @@ -1,3 +1,25 @@ +#!/usr/bin/env python3 +############################################################################ +# apps/testing/cmocka/tools/junit2htmlreport/parser.py +# +# 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. +# +############################################################################ """ Parse a junit report file into a family of objects """ diff --git a/testing/cmocka/tools/junit2htmlreport/render.py b/testing/cmocka/tools/junit2htmlreport/render.py index a6179af70f9..e2068226e7d 100644 --- a/testing/cmocka/tools/junit2htmlreport/render.py +++ b/testing/cmocka/tools/junit2htmlreport/render.py @@ -1,3 +1,25 @@ +#!/usr/bin/env python3 +############################################################################ +# apps/testing/cmocka/tools/junit2htmlreport/render.py +# +# 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. +# +############################################################################ """ Render junit reports as HTML """ diff --git a/testing/cmocka/tools/junit2htmlreport/textutils.py b/testing/cmocka/tools/junit2htmlreport/textutils.py index cb42ca44d48..46673acbe2a 100644 --- a/testing/cmocka/tools/junit2htmlreport/textutils.py +++ b/testing/cmocka/tools/junit2htmlreport/textutils.py @@ -1,3 +1,25 @@ +#!/usr/bin/env python3 +############################################################################ +# apps/testing/cmocka/tools/junit2htmlreport/textutils.py +# +# 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. +# +############################################################################ """ Stringify to unicode """ diff --git a/testing/cpuload/CMakeLists.txt b/testing/cpuload/CMakeLists.txt index 533ddbc464c..60d8e2e6444 100644 --- a/testing/cpuload/CMakeLists.txt +++ b/testing/cpuload/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/cpuload/CMakeLists.txt # +# 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 diff --git a/testing/cpuload/Make.defs b/testing/cpuload/Make.defs index a8b0cd6ee77..c43feb47912 100644 --- a/testing/cpuload/Make.defs +++ b/testing/cpuload/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/cpuload/Make.defs # +# 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/testing/cpuload/Makefile b/testing/cpuload/Makefile index 9ffc6394edc..45fcb82c266 100644 --- a/testing/cpuload/Makefile +++ b/testing/cpuload/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/cpuload/Makefile # +# 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/testing/cpuload/cpuload_main.c b/testing/cpuload/cpuload_main.c index 09cbf10e64a..daa56dd8567 100644 --- a/testing/cpuload/cpuload_main.c +++ b/testing/cpuload/cpuload_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/cpuload/cpuload_main.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/testing/crypto/3descbc.c b/testing/crypto/3descbc.c index 2e2d0c2fe94..7bf1c836fc6 100644 --- a/testing/crypto/3descbc.c +++ b/testing/crypto/3descbc.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/testing/crypto/3descbc.c - * $OpenBSD: des3.c,v 1.8 2010/10/15 10:39:12 jsg Exp $ * - * Copyright (c) 2002 Markus Friedl. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2002 Markus Friedl. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/testing/crypto/CMakeLists.txt b/testing/crypto/CMakeLists.txt index 84b0f008ddb..76df6e7a63d 100644 --- a/testing/crypto/CMakeLists.txt +++ b/testing/crypto/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/crypto/CMakeLists.txt # +# 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 diff --git a/testing/crypto/Make.defs b/testing/crypto/Make.defs index 7c92864b367..5d0dee36116 100644 --- a/testing/crypto/Make.defs +++ b/testing/crypto/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/crypto/Make.defs # +# 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/testing/crypto/Makefile b/testing/crypto/Makefile index 00a1ab03e29..825eac40782 100644 --- a/testing/crypto/Makefile +++ b/testing/crypto/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/crypto/Makefile # +# 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/testing/crypto/aescbc.c b/testing/crypto/aescbc.c index 2bbe408d67b..0c9f464ebdb 100644 --- a/testing/crypto/aescbc.c +++ b/testing/crypto/aescbc.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/testing/crypto/aescbc.c - * $OpenBSD: aesctr.c,v 1.1 2005/05/25 05:47:53 markus Exp $ * - * Copyright (c) 2005 Markus Friedl + * SPDX-License-Identifier: ISC + * SPDX-FileCopyrightText: 2005 Markus Friedl. All rights reserved. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above diff --git a/testing/crypto/aescmac.c b/testing/crypto/aescmac.c index abf5cf83f07..0e0f57838ba 100644 --- a/testing/crypto/aescmac.c +++ b/testing/crypto/aescmac.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/crypto/aescmac.c * + * SPDX-License-Identifier: ISC + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. diff --git a/testing/crypto/aesctr.c b/testing/crypto/aesctr.c index 6992a29fe36..bf1d9914488 100644 --- a/testing/crypto/aesctr.c +++ b/testing/crypto/aesctr.c @@ -1,8 +1,8 @@ /**************************************************************************** * apps/testing/crypto/aesctr.c - * $OpenBSD: aesctr.c,v 1.1 2005/05/25 05:47:53 markus Exp $ * - * Copyright (c) 2005 Markus Friedl + * SPDX-License-Identifier: ISC + * SPDX-FileCopyrightText: 2005 Markus Friedl * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above diff --git a/testing/crypto/aesxts.c b/testing/crypto/aesxts.c index dce7a9166e6..1692af6bf32 100644 --- a/testing/crypto/aesxts.c +++ b/testing/crypto/aesxts.c @@ -1,9 +1,9 @@ /**************************************************************************** * apps/testing/crypto/aesxts.c - * $OpenBSD: aes_xts.c,v 1.2 2013/10/06 16:59:34 jsing Exp $ * - * Copyright (c) 2002 Markus Friedl. All rights reserved. - * Copyright (c) 2008 Damien Miller. All rights reserved. + * SPDX-License-Identifier: BSD-2-Clause + * SPDX-FileCopyrightText: 2002 Markus Friedl. All rights reserved. + * SPDX-FileCopyrightText: 2008 Damien Miller. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/testing/crypto/crc32.c b/testing/crypto/crc32.c index 6e7cde53af0..9fa227c5d3d 100644 --- a/testing/crypto/crc32.c +++ b/testing/crypto/crc32.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/crypto/crc32.c * + * SPDX-License-Identifier: ISC + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. diff --git a/testing/crypto/dhm.c b/testing/crypto/dhm.c index efb483f66d2..038376104d3 100644 --- a/testing/crypto/dhm.c +++ b/testing/crypto/dhm.c @@ -1,6 +1,7 @@ /**************************************************************************** * apps/testing/crypto/dhm.c - * Copyright (C) 2023 Xiaomi Corporation + * + * 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 diff --git a/testing/crypto/ecdsa.c b/testing/crypto/ecdsa.c index c0ef261a44b..007b93b778f 100644 --- a/testing/crypto/ecdsa.c +++ b/testing/crypto/ecdsa.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/crypto/ecdsa.c * + * SPDX-License-Identifier: ISC + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. diff --git a/testing/crypto/hash.c b/testing/crypto/hash.c index 6d8df707b69..1c3d6e6eecd 100644 --- a/testing/crypto/hash.c +++ b/testing/crypto/hash.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/crypto/hash.c * + * SPDX-License-Identifier: ISC + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. diff --git a/testing/crypto/hmac.c b/testing/crypto/hmac.c index a90762da519..48ea6ae460f 100644 --- a/testing/crypto/hmac.c +++ b/testing/crypto/hmac.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/crypto/hmac.c - * Copyright (c) 2008 Damien Bergamini + * + * SPDX-License-Identifier: ISC + * SPDX-FileCopyrightText: 2008 Damien Bergamini * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above diff --git a/testing/crypto/rsa.c b/testing/crypto/rsa.c index 32a93866bb5..e4fe7778a10 100644 --- a/testing/crypto/rsa.c +++ b/testing/crypto/rsa.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/crypto/rsa.c * + * SPDX-License-Identifier: ISC + * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. diff --git a/testing/cxxsize/CMakeLists.txt b/testing/cxxsize/CMakeLists.txt index 6588f089b7d..ddf8f43fd82 100644 --- a/testing/cxxsize/CMakeLists.txt +++ b/testing/cxxsize/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/cxxsize/CMakeLists.txt # +# 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 diff --git a/testing/cxxsize/Make.defs b/testing/cxxsize/Make.defs index 6dcca3b48a5..4b3c7cb95be 100644 --- a/testing/cxxsize/Make.defs +++ b/testing/cxxsize/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/cxxtest/Make.defs # +# 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/testing/cxxsize/Makefile b/testing/cxxsize/Makefile index b822abfdea9..04560e0654f 100644 --- a/testing/cxxsize/Makefile +++ b/testing/cxxsize/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/cxxtest/Makefile # +# 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/testing/cxxsize/array.cxx b/testing/cxxsize/array.cxx index 13b3730c610..6b4deb2cf4b 100644 --- a/testing/cxxsize/array.cxx +++ b/testing/cxxsize/array.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/array.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 diff --git a/testing/cxxsize/condition_variable.cxx b/testing/cxxsize/condition_variable.cxx index 2b9b2e1889b..a9ddf12883d 100644 --- a/testing/cxxsize/condition_variable.cxx +++ b/testing/cxxsize/condition_variable.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/condition_variable.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 diff --git a/testing/cxxsize/deque.cxx b/testing/cxxsize/deque.cxx index a50309e576b..2fbffc1bdc4 100644 --- a/testing/cxxsize/deque.cxx +++ b/testing/cxxsize/deque.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/deque.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 diff --git a/testing/cxxsize/exception.cxx b/testing/cxxsize/exception.cxx index 2e0a66ab54c..baa07dc80d4 100644 --- a/testing/cxxsize/exception.cxx +++ b/testing/cxxsize/exception.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/exception.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 diff --git a/testing/cxxsize/forward_list.cxx b/testing/cxxsize/forward_list.cxx index 9488b84cf05..02512e35a45 100644 --- a/testing/cxxsize/forward_list.cxx +++ b/testing/cxxsize/forward_list.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/forward_list.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 diff --git a/testing/cxxsize/future.cxx b/testing/cxxsize/future.cxx index 3c09862f281..3ecb8cb093f 100644 --- a/testing/cxxsize/future.cxx +++ b/testing/cxxsize/future.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/future.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 diff --git a/testing/cxxsize/iostream.cxx b/testing/cxxsize/iostream.cxx index 038344f5ce5..2b57140c387 100644 --- a/testing/cxxsize/iostream.cxx +++ b/testing/cxxsize/iostream.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/iostream.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 diff --git a/testing/cxxsize/list.cxx b/testing/cxxsize/list.cxx index fa389828ba9..9a83eca727d 100644 --- a/testing/cxxsize/list.cxx +++ b/testing/cxxsize/list.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/list.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 diff --git a/testing/cxxsize/map.cxx b/testing/cxxsize/map.cxx index 5f0f55b5462..f4c5cd09576 100644 --- a/testing/cxxsize/map.cxx +++ b/testing/cxxsize/map.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/map.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 diff --git a/testing/cxxsize/multiset.cxx b/testing/cxxsize/multiset.cxx index 5ad8eefa5d8..a859ec214c2 100644 --- a/testing/cxxsize/multiset.cxx +++ b/testing/cxxsize/multiset.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/multiset.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 diff --git a/testing/cxxsize/mutex.cxx b/testing/cxxsize/mutex.cxx index e831c7dcd5c..4d7b5162db9 100644 --- a/testing/cxxsize/mutex.cxx +++ b/testing/cxxsize/mutex.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/mutex.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 diff --git a/testing/cxxsize/rtti.cxx b/testing/cxxsize/rtti.cxx index 47a574838c4..39590e92578 100644 --- a/testing/cxxsize/rtti.cxx +++ b/testing/cxxsize/rtti.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/rtti.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 diff --git a/testing/cxxsize/semaphore.cxx b/testing/cxxsize/semaphore.cxx index 379f08fb4f0..a1b3a29a8cc 100644 --- a/testing/cxxsize/semaphore.cxx +++ b/testing/cxxsize/semaphore.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/semaphore.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 diff --git a/testing/cxxsize/set.cxx b/testing/cxxsize/set.cxx index 7e9b6bdede3..1285a12fbfc 100644 --- a/testing/cxxsize/set.cxx +++ b/testing/cxxsize/set.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/set.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 diff --git a/testing/cxxsize/shared_ptr.cxx b/testing/cxxsize/shared_ptr.cxx index 9d2defaf684..9e519e11a16 100644 --- a/testing/cxxsize/shared_ptr.cxx +++ b/testing/cxxsize/shared_ptr.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/shared_ptr.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 diff --git a/testing/cxxsize/string.cxx b/testing/cxxsize/string.cxx index 3ad0d005ef4..04988820fd0 100644 --- a/testing/cxxsize/string.cxx +++ b/testing/cxxsize/string.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/string.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 diff --git a/testing/cxxsize/string_view.cxx b/testing/cxxsize/string_view.cxx index 07f7fb9f56f..c415262d064 100644 --- a/testing/cxxsize/string_view.cxx +++ b/testing/cxxsize/string_view.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/string_view.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 diff --git a/testing/cxxsize/thread.cxx b/testing/cxxsize/thread.cxx index 98ed6157ec4..e646c22eb2e 100644 --- a/testing/cxxsize/thread.cxx +++ b/testing/cxxsize/thread.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/thread.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 diff --git a/testing/cxxsize/unordered_map.cxx b/testing/cxxsize/unordered_map.cxx index 8b1a5e1bd43..2d604070116 100644 --- a/testing/cxxsize/unordered_map.cxx +++ b/testing/cxxsize/unordered_map.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/unordered_map.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 diff --git a/testing/cxxsize/unordered_multimap.cxx b/testing/cxxsize/unordered_multimap.cxx index 50034714ebe..153b5f60a7a 100644 --- a/testing/cxxsize/unordered_multimap.cxx +++ b/testing/cxxsize/unordered_multimap.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/unordered_multimap.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 diff --git a/testing/cxxsize/unordered_multiset.cxx b/testing/cxxsize/unordered_multiset.cxx index ecdf7787cd0..f19ae3fcbba 100644 --- a/testing/cxxsize/unordered_multiset.cxx +++ b/testing/cxxsize/unordered_multiset.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/unordered_multiset.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 diff --git a/testing/cxxsize/unordered_set.cxx b/testing/cxxsize/unordered_set.cxx index 5ce56f6e745..c5b606509e7 100644 --- a/testing/cxxsize/unordered_set.cxx +++ b/testing/cxxsize/unordered_set.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/unordered_set.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 diff --git a/testing/cxxsize/vector.cxx b/testing/cxxsize/vector.cxx index a2182b3cecc..5f916d928ec 100644 --- a/testing/cxxsize/vector.cxx +++ b/testing/cxxsize/vector.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/vector.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 diff --git a/testing/cxxsize/weak_ptr.cxx b/testing/cxxsize/weak_ptr.cxx index d93e6b917a2..1ccd95bd2b7 100644 --- a/testing/cxxsize/weak_ptr.cxx +++ b/testing/cxxsize/weak_ptr.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxsize/weak_ptr.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 diff --git a/testing/cxxtest/CMakeLists.txt b/testing/cxxtest/CMakeLists.txt index b191a01cfa7..962b7f09798 100644 --- a/testing/cxxtest/CMakeLists.txt +++ b/testing/cxxtest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/cxxtest/CMakeLists.txt # +# 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 diff --git a/testing/cxxtest/Make.defs b/testing/cxxtest/Make.defs index b742b05bacc..5a06bbbf901 100644 --- a/testing/cxxtest/Make.defs +++ b/testing/cxxtest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/cxxtest/Make.defs # +# 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/testing/cxxtest/Makefile b/testing/cxxtest/Makefile index 1c3b82d367f..5690c59f9e4 100644 --- a/testing/cxxtest/Makefile +++ b/testing/cxxtest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/cxxtest/Makefile # +# 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/testing/cxxtest/cxxtest_main.cxx b/testing/cxxtest/cxxtest_main.cxx index 08cd36227eb..48e0d014187 100644 --- a/testing/cxxtest/cxxtest_main.cxx +++ b/testing/cxxtest/cxxtest_main.cxx @@ -1,6 +1,8 @@ //*************************************************************************** // apps/testing/cxxtest/cxxtest_main.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 diff --git a/testing/drivertest/CMakeLists.txt b/testing/drivertest/CMakeLists.txt index 0f36f09320b..a3add4dca40 100644 --- a/testing/drivertest/CMakeLists.txt +++ b/testing/drivertest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/drivertest/CMakeLists.txt # +# 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 diff --git a/testing/drivertest/Make.defs b/testing/drivertest/Make.defs index 4c397380ea2..a68b7e050e6 100644 --- a/testing/drivertest/Make.defs +++ b/testing/drivertest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/drivertest/Make.defs # +# 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/testing/drivertest/Makefile b/testing/drivertest/Makefile index 50a0a56131d..aa25dfa8381 100644 --- a/testing/drivertest/Makefile +++ b/testing/drivertest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/drivertest/Makefile # +# 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/testing/drivertest/drivertest_adc.c b/testing/drivertest/drivertest_adc.c index 0a9bd6d582a..267ed770ac4 100644 --- a/testing/drivertest/drivertest_adc.c +++ b/testing/drivertest/drivertest_adc.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_adc.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/testing/drivertest/drivertest_audio.c b/testing/drivertest/drivertest_audio.c index 556a15f6064..2f019fcdd32 100644 --- a/testing/drivertest/drivertest_audio.c +++ b/testing/drivertest/drivertest_audio.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_audio.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/testing/drivertest/drivertest_block.c b/testing/drivertest/drivertest_block.c index 7c65ab9269a..daa655378d2 100644 --- a/testing/drivertest/drivertest_block.c +++ b/testing/drivertest/drivertest_block.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_block.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/testing/drivertest/drivertest_framebuffer.c b/testing/drivertest/drivertest_framebuffer.c index 7d2ac1afe3d..1436d779d30 100644 --- a/testing/drivertest/drivertest_framebuffer.c +++ b/testing/drivertest/drivertest_framebuffer.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_framebuffer.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/testing/drivertest/drivertest_gpio.c b/testing/drivertest/drivertest_gpio.c index 25291b2e946..a84acf20dcf 100644 --- a/testing/drivertest/drivertest_gpio.c +++ b/testing/drivertest/drivertest_gpio.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_gpio.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/testing/drivertest/drivertest_i2c_read.c b/testing/drivertest/drivertest_i2c_read.c index fc130cdd984..9e87b0bdf56 100644 --- a/testing/drivertest/drivertest_i2c_read.c +++ b/testing/drivertest/drivertest_i2c_read.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_i2c_read.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/testing/drivertest/drivertest_i2c_spi.c b/testing/drivertest/drivertest_i2c_spi.c index 93698010cb3..1157a2a4ef1 100644 --- a/testing/drivertest/drivertest_i2c_spi.c +++ b/testing/drivertest/drivertest_i2c_spi.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_i2c_spi.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/testing/drivertest/drivertest_i2c_write.c b/testing/drivertest/drivertest_i2c_write.c index ba219396402..959e8b62fcd 100644 --- a/testing/drivertest/drivertest_i2c_write.c +++ b/testing/drivertest/drivertest_i2c_write.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_i2c_write.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/testing/drivertest/drivertest_lcd.c b/testing/drivertest/drivertest_lcd.c index e9ca3713f8f..2a4519cb24e 100644 --- a/testing/drivertest/drivertest_lcd.c +++ b/testing/drivertest/drivertest_lcd.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_lcd.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/testing/drivertest/drivertest_mps2.c b/testing/drivertest/drivertest_mps2.c index 57bda24ab71..7ccbc1f2142 100644 --- a/testing/drivertest/drivertest_mps2.c +++ b/testing/drivertest/drivertest_mps2.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_mps2.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/testing/drivertest/drivertest_mps2_isr_signal.c b/testing/drivertest/drivertest_mps2_isr_signal.c index 2c5785694c1..5157b679a35 100644 --- a/testing/drivertest/drivertest_mps2_isr_signal.c +++ b/testing/drivertest/drivertest_mps2_isr_signal.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_mps2_isr_signal.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/testing/drivertest/drivertest_mps2_zerointerrupt.c b/testing/drivertest/drivertest_mps2_zerointerrupt.c index 013fccf0c1e..852404dec5d 100644 --- a/testing/drivertest/drivertest_mps2_zerointerrupt.c +++ b/testing/drivertest/drivertest_mps2_zerointerrupt.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_mps2_zerointerrupt.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/testing/drivertest/drivertest_oneshot.c b/testing/drivertest/drivertest_oneshot.c index 99b96d0614f..6d7afcc75ca 100644 --- a/testing/drivertest/drivertest_oneshot.c +++ b/testing/drivertest/drivertest_oneshot.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_oneshot.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/testing/drivertest/drivertest_pm.c b/testing/drivertest/drivertest_pm.c index 0abbc32478f..fc8ee4bdc38 100644 --- a/testing/drivertest/drivertest_pm.c +++ b/testing/drivertest/drivertest_pm.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_pm.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/testing/drivertest/drivertest_pm_runtime.c b/testing/drivertest/drivertest_pm_runtime.c index 3b8aa9a900a..a0db9947c9f 100644 --- a/testing/drivertest/drivertest_pm_runtime.c +++ b/testing/drivertest/drivertest_pm_runtime.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_pm_runtime.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/testing/drivertest/drivertest_pm_smp.c b/testing/drivertest/drivertest_pm_smp.c index 6f9f967d733..6edbb66948a 100644 --- a/testing/drivertest/drivertest_pm_smp.c +++ b/testing/drivertest/drivertest_pm_smp.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_pm_smp.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/testing/drivertest/drivertest_posix_timer.c b/testing/drivertest/drivertest_posix_timer.c index fed2f0ce117..b52b1887de1 100644 --- a/testing/drivertest/drivertest_posix_timer.c +++ b/testing/drivertest/drivertest_posix_timer.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_posix_timer.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/testing/drivertest/drivertest_pwm.c b/testing/drivertest/drivertest_pwm.c index fd2fcee3ab2..18475184d5e 100644 --- a/testing/drivertest/drivertest_pwm.c +++ b/testing/drivertest/drivertest_pwm.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_pwm.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/testing/drivertest/drivertest_regulator.c b/testing/drivertest/drivertest_regulator.c index aa53a693eee..bff19677c6e 100644 --- a/testing/drivertest/drivertest_regulator.c +++ b/testing/drivertest/drivertest_regulator.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_regulator.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/testing/drivertest/drivertest_relay.c b/testing/drivertest/drivertest_relay.c index 9eed2d7b479..7a1671f88fc 100644 --- a/testing/drivertest/drivertest_relay.c +++ b/testing/drivertest/drivertest_relay.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_relay.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/testing/drivertest/drivertest_rtc.c b/testing/drivertest/drivertest_rtc.c index 01ce8ee70df..53ed2a5d11f 100644 --- a/testing/drivertest/drivertest_rtc.c +++ b/testing/drivertest/drivertest_rtc.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_rtc.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/testing/drivertest/drivertest_simple.c b/testing/drivertest/drivertest_simple.c index 0ba0a5db0cc..485b592e203 100644 --- a/testing/drivertest/drivertest_simple.c +++ b/testing/drivertest/drivertest_simple.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_simple.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/testing/drivertest/drivertest_timer.c b/testing/drivertest/drivertest_timer.c index cd29d90d196..4478eda0f4e 100644 --- a/testing/drivertest/drivertest_timer.c +++ b/testing/drivertest/drivertest_timer.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_timer.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/testing/drivertest/drivertest_touchpanel.c b/testing/drivertest/drivertest_touchpanel.c index 9a68b283bf0..9f0255ec6ce 100644 --- a/testing/drivertest/drivertest_touchpanel.c +++ b/testing/drivertest/drivertest_touchpanel.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_touchpanel.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/testing/drivertest/drivertest_uart.c b/testing/drivertest/drivertest_uart.c index d26d07005cf..7963eee014c 100644 --- a/testing/drivertest/drivertest_uart.c +++ b/testing/drivertest/drivertest_uart.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_uart.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/testing/drivertest/drivertest_watchdog.c b/testing/drivertest/drivertest_watchdog.c index b55cd0c6a23..865c381edff 100644 --- a/testing/drivertest/drivertest_watchdog.c +++ b/testing/drivertest/drivertest_watchdog.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/drivertest/drivertest_watchdog.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/testing/drivertest/test_content_gen.py b/testing/drivertest/test_content_gen.py index 8c3b2fcc250..3045252d1e9 100644 --- a/testing/drivertest/test_content_gen.py +++ b/testing/drivertest/test_content_gen.py @@ -1,8 +1,9 @@ #!/bin/python3 - -# **************************************************************************** +############################################################################# # apps/testing/drivertest/cmocka_driver_uart/test_content_gen.py # +# 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 @@ -17,7 +18,8 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. -# +############################################################################# + import argparse import sys import time diff --git a/testing/epoll/CMakeLists.txt b/testing/epoll/CMakeLists.txt index 082f421f6f5..3839141e1d4 100644 --- a/testing/epoll/CMakeLists.txt +++ b/testing/epoll/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/epoll/CMakeLists.txt # +# 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 diff --git a/testing/epoll/Make.defs b/testing/epoll/Make.defs index 00467a4f932..fbabd40594a 100644 --- a/testing/epoll/Make.defs +++ b/testing/epoll/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/epoll/Make.defs # +# 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/testing/epoll/Makefile b/testing/epoll/Makefile index 6d79215ccff..2a78ea7ac8f 100644 --- a/testing/epoll/Makefile +++ b/testing/epoll/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/epoll/Makefile # +# 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/testing/epoll/epoll.c b/testing/epoll/epoll.c index ad6ab09feb0..970a7ad4cbb 100644 --- a/testing/epoll/epoll.c +++ b/testing/epoll/epoll.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/epoll/epoll.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/testing/fatutf8/CMakeLists.txt b/testing/fatutf8/CMakeLists.txt index 6facb8a67bc..276ae93a91a 100644 --- a/testing/fatutf8/CMakeLists.txt +++ b/testing/fatutf8/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/fatutf8/CMakeLists.txt # +# 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 diff --git a/testing/fatutf8/Make.defs b/testing/fatutf8/Make.defs index 039638d4d1a..2c62dc1fa8d 100644 --- a/testing/fatutf8/Make.defs +++ b/testing/fatutf8/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/fatutf8/Make.defs # +# 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/testing/fatutf8/Makefile b/testing/fatutf8/Makefile index be384e57117..e43198ec30a 100644 --- a/testing/fatutf8/Makefile +++ b/testing/fatutf8/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/fatutf8/Makefile # +# 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/testing/fatutf8/fatutf8_main.c b/testing/fatutf8/fatutf8_main.c index 8f895ed0d41..6975294e83c 100644 --- a/testing/fatutf8/fatutf8_main.c +++ b/testing/fatutf8/fatutf8_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/fatutf8/fatutf8_main.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/testing/fdsantest/CMakeLists.txt b/testing/fdsantest/CMakeLists.txt index f83dadb9c7d..f6a5f7be15e 100644 --- a/testing/fdsantest/CMakeLists.txt +++ b/testing/fdsantest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/fdsantest/CMakeLists.txt # +# 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 diff --git a/testing/fdsantest/Make.defs b/testing/fdsantest/Make.defs index 3cab033dfd1..4be99c97550 100644 --- a/testing/fdsantest/Make.defs +++ b/testing/fdsantest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/fdsantest/Make.defs # +# 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/testing/fdsantest/Makefile b/testing/fdsantest/Makefile index 3dc7f4a126f..cddf85651f5 100644 --- a/testing/fdsantest/Makefile +++ b/testing/fdsantest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/fdsantest/Makefile # +# 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/testing/fdsantest/fdsantest_simple.c b/testing/fdsantest/fdsantest_simple.c index 4f8c802e69b..ab4068c7f8b 100644 --- a/testing/fdsantest/fdsantest_simple.c +++ b/testing/fdsantest/fdsantest_simple.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/fdsantest/fdsantest_simple.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/testing/fff/CMakeLists.txt b/testing/fff/CMakeLists.txt index d69a69d79a2..fdd1ccd58f7 100644 --- a/testing/fff/CMakeLists.txt +++ b/testing/fff/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/fff/CMakeLists.txt # +# 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 diff --git a/testing/fff/Make.defs b/testing/fff/Make.defs index 64be55f8a98..8c53d7685dc 100644 --- a/testing/fff/Make.defs +++ b/testing/fff/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/fff/Make.defs # +# 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/testing/fff/Makefile b/testing/fff/Makefile index 6f1686d499b..0a87831750e 100644 --- a/testing/fff/Makefile +++ b/testing/fff/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/fff/Makefile # +# 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/testing/fftest/CMakeLists.txt b/testing/fftest/CMakeLists.txt index b91f1c3ac92..77513c6012b 100644 --- a/testing/fftest/CMakeLists.txt +++ b/testing/fftest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/fftest/CMakeLists.txt # +# 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 diff --git a/testing/fftest/Make.defs b/testing/fftest/Make.defs index 871b20f8cbd..0190fb4f21e 100644 --- a/testing/fftest/Make.defs +++ b/testing/fftest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/fftest/Make.defs # +# 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/testing/fftest/Makefile b/testing/fftest/Makefile index b19fb40cd19..981d502f136 100644 --- a/testing/fftest/Makefile +++ b/testing/fftest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/fftest/Makefile # +# 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/testing/fftest/fftest.c b/testing/fftest/fftest.c index f444d3d5d2b..51700914ab9 100644 --- a/testing/fftest/fftest.c +++ b/testing/fftest/fftest.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/fftest/fftest.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/testing/fmemopen/CMakeLists.txt b/testing/fmemopen/CMakeLists.txt index 65e69e6524c..28f688dc123 100644 --- a/testing/fmemopen/CMakeLists.txt +++ b/testing/fmemopen/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/fmemopen/CMakeLists.txt # +# 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 diff --git a/testing/fmemopen/Make.defs b/testing/fmemopen/Make.defs index 03c3981fe14..8082235174a 100644 --- a/testing/fmemopen/Make.defs +++ b/testing/fmemopen/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/fmemopen/Make.defs # +# 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/testing/fmemopen/Makefile b/testing/fmemopen/Makefile index 4b712aef1c6..e62c0c9ad7f 100644 --- a/testing/fmemopen/Makefile +++ b/testing/fmemopen/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/fmemopen/Makefile # +# 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/testing/fmemopen/fmemopen.c b/testing/fmemopen/fmemopen.c index ab332b03c65..06b396e038b 100644 --- a/testing/fmemopen/fmemopen.c +++ b/testing/fmemopen/fmemopen.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/fmemopen/fmemopen.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/testing/fopencookie/Make.defs b/testing/fopencookie/Make.defs index e9ff32601e7..778de83a9e2 100644 --- a/testing/fopencookie/Make.defs +++ b/testing/fopencookie/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/fopencookie/Make.defs # +# 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/testing/fopencookie/Makefile b/testing/fopencookie/Makefile index e1c364c650e..4af65d1f923 100644 --- a/testing/fopencookie/Makefile +++ b/testing/fopencookie/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/fopencookie/Makefile # +# 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/testing/fopencookie/fopencookie.c b/testing/fopencookie/fopencookie.c index c692778995a..0c35a40da6c 100644 --- a/testing/fopencookie/fopencookie.c +++ b/testing/fopencookie/fopencookie.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/fopencookie/fopencookie.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/testing/fstest/CMakeLists.txt b/testing/fstest/CMakeLists.txt index e9213987a4e..5b938a337dd 100644 --- a/testing/fstest/CMakeLists.txt +++ b/testing/fstest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/fstest/CMakeLists.txt # +# 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 diff --git a/testing/fstest/Make.defs b/testing/fstest/Make.defs index 3572d38c970..4545509e9a4 100644 --- a/testing/fstest/Make.defs +++ b/testing/fstest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/fstest/Make.defs # +# 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/testing/fstest/Makefile b/testing/fstest/Makefile index 2bbde94c381..4a845eb7995 100644 --- a/testing/fstest/Makefile +++ b/testing/fstest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/fstest/Makefile # +# 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/testing/fstest/fstest_main.c b/testing/fstest/fstest_main.c index 17b5b904e83..0579dff36b1 100644 --- a/testing/fstest/fstest_main.c +++ b/testing/fstest/fstest_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/fstest/fstest_main.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/testing/getprime/CMakeLists.txt b/testing/getprime/CMakeLists.txt index cb6002d9cc9..407ae9649f8 100644 --- a/testing/getprime/CMakeLists.txt +++ b/testing/getprime/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/getprime/CMakeLists.txt # +# 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 diff --git a/testing/getprime/Make.defs b/testing/getprime/Make.defs index e4069859740..d990dc0ba81 100644 --- a/testing/getprime/Make.defs +++ b/testing/getprime/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/getprime/Make.defs # +# 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/testing/getprime/Makefile b/testing/getprime/Makefile index a4c7a57e9f7..b7605743c21 100644 --- a/testing/getprime/Makefile +++ b/testing/getprime/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/getprime/Makefile # +# 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/testing/getprime/getprime_main.c b/testing/getprime/getprime_main.c index 39ba94feb41..710f07dac28 100644 --- a/testing/getprime/getprime_main.c +++ b/testing/getprime/getprime_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/getprime/getprime_main.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/testing/himem_test/LibIncludes.mk b/testing/himem_test/LibIncludes.mk index 08bbfa63d3b..3ad3e8cedc2 100644 --- a/testing/himem_test/LibIncludes.mk +++ b/testing/himem_test/LibIncludes.mk @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/himem_test/LibIncludes.mk # +# 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/testing/himem_test/Make.defs b/testing/himem_test/Make.defs index 03f0aec7d2b..2e2b03d6378 100644 --- a/testing/himem_test/Make.defs +++ b/testing/himem_test/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/himem_test/Make.defs # +# 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/testing/himem_test/Makefile b/testing/himem_test/Makefile index 33a0dd094c2..76568df31f5 100644 --- a/testing/himem_test/Makefile +++ b/testing/himem_test/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/himem_test/Makefile # +# 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/testing/himem_test/himem_chardev_test.c b/testing/himem_test/himem_chardev_test.c index fe10637bcf9..118a9ca69e2 100644 --- a/testing/himem_test/himem_chardev_test.c +++ b/testing/himem_test/himem_chardev_test.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/himem_test/himem_chardev_test.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/testing/iob/CMakeLists.txt b/testing/iob/CMakeLists.txt index ca423c42a94..e569423b9e3 100644 --- a/testing/iob/CMakeLists.txt +++ b/testing/iob/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/iob/CMakeLists.txt # +# 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 diff --git a/testing/iob/Make.defs b/testing/iob/Make.defs index 8cd27f45029..3c51ff18f9a 100644 --- a/testing/iob/Make.defs +++ b/testing/iob/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/iob/Make.defs # +# 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/testing/iob/Makefile b/testing/iob/Makefile index 4ba4252b5ed..3ebb8a27fb9 100644 --- a/testing/iob/Makefile +++ b/testing/iob/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/iob/Makefile # +# 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/testing/iob/iob_main.c b/testing/iob/iob_main.c index 236a0e19d49..7e6e1991d76 100644 --- a/testing/iob/iob_main.c +++ b/testing/iob/iob_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/iob/iob_main.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/testing/irtest/CMakeLists.txt b/testing/irtest/CMakeLists.txt index 98d4e8c8ec9..6975046ff2f 100644 --- a/testing/irtest/CMakeLists.txt +++ b/testing/irtest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/irtest/CMakeLists.txt # +# 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 diff --git a/testing/irtest/Make.defs b/testing/irtest/Make.defs index d259bad4307..4bd5f37e7da 100644 --- a/testing/irtest/Make.defs +++ b/testing/irtest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/irtest/Make.defs # +# 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/testing/irtest/Makefile b/testing/irtest/Makefile index b07e77cef2a..28d7b20c11d 100644 --- a/testing/irtest/Makefile +++ b/testing/irtest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/irtest/Makefile # +# 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/testing/irtest/cmd.cxx b/testing/irtest/cmd.cxx index 70a93906593..867864a47b0 100644 --- a/testing/irtest/cmd.cxx +++ b/testing/irtest/cmd.cxx @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/irtest/cmd.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 diff --git a/testing/irtest/cmd.hpp b/testing/irtest/cmd.hpp index 7a8a9820f52..d1f96fcdf74 100644 --- a/testing/irtest/cmd.hpp +++ b/testing/irtest/cmd.hpp @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/irtest/cmd.hpp * + * 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/testing/irtest/enum.cxx b/testing/irtest/enum.cxx index dcc5305d913..1c3b58afdf4 100644 --- a/testing/irtest/enum.cxx +++ b/testing/irtest/enum.cxx @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/irtest/enum.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 diff --git a/testing/irtest/enum.hpp b/testing/irtest/enum.hpp index 43d962133b3..77c7120216b 100644 --- a/testing/irtest/enum.hpp +++ b/testing/irtest/enum.hpp @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/irtest/enum.hpp * + * 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/testing/irtest/main.cxx b/testing/irtest/main.cxx index 521110fd40a..9ea7a144745 100644 --- a/testing/irtest/main.cxx +++ b/testing/irtest/main.cxx @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/irtest/main.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 diff --git a/testing/kasantest/CMakeLists.txt b/testing/kasantest/CMakeLists.txt index 8a06a10eafb..ff1c65a4ada 100644 --- a/testing/kasantest/CMakeLists.txt +++ b/testing/kasantest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/kasantest/CMakeLists.txt # +# 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 diff --git a/testing/kasantest/Make.defs b/testing/kasantest/Make.defs index 58d797739b0..6760568e9c3 100644 --- a/testing/kasantest/Make.defs +++ b/testing/kasantest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/kasantest/Make.defs # +# 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/testing/kasantest/Makefile b/testing/kasantest/Makefile index 21b766a1027..5f2669ebe6a 100644 --- a/testing/kasantest/Makefile +++ b/testing/kasantest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/kasantest/Makefile # +# 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/testing/kasantest/kasantest.c b/testing/kasantest/kasantest.c index da3de9a3d9f..cdb8b5cecdc 100644 --- a/testing/kasantest/kasantest.c +++ b/testing/kasantest/kasantest.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/kasantest/kasantest.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/testing/ltp/Make.defs b/testing/ltp/Make.defs index a8e12b4c250..50dac21f9f4 100644 --- a/testing/ltp/Make.defs +++ b/testing/ltp/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/ltp/Make.defs # +# 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/testing/ltp/Makefile b/testing/ltp/Makefile index 8d77bda1ee1..1fc2c943d99 100644 --- a/testing/ltp/Makefile +++ b/testing/ltp/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/ltp/Makefile # +# 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/testing/ltp/config.h b/testing/ltp/config.h index 7bd8c1000b1..253a2363d70 100644 --- a/testing/ltp/config.h +++ b/testing/ltp/config.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ltp/config.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 diff --git a/testing/memstress/CMakeLists.txt b/testing/memstress/CMakeLists.txt index e10d721d990..5247fbd5739 100644 --- a/testing/memstress/CMakeLists.txt +++ b/testing/memstress/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/memstress/CMakeLists.txt # +# 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 diff --git a/testing/memstress/Make.defs b/testing/memstress/Make.defs index e2ac44a38ed..583cf30668e 100644 --- a/testing/memstress/Make.defs +++ b/testing/memstress/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/memstress/Make.defs # +# 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/testing/memstress/Makefile b/testing/memstress/Makefile index aa8e85c4bc5..ae4729d146e 100644 --- a/testing/memstress/Makefile +++ b/testing/memstress/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/memstress/Makefile # +# 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/testing/memstress/memorystress_main.c b/testing/memstress/memorystress_main.c index dbf77222db7..b37c943659a 100644 --- a/testing/memstress/memorystress_main.c +++ b/testing/memstress/memorystress_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/memstress/memorystress_main.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/testing/memtester/CMakeLists.txt b/testing/memtester/CMakeLists.txt index 93f0e176d88..e7a1d72df41 100644 --- a/testing/memtester/CMakeLists.txt +++ b/testing/memtester/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/memtester/CMakeLists.txt # +# 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 diff --git a/testing/memtester/Make.defs b/testing/memtester/Make.defs index f697e2aed62..315646b8b06 100644 --- a/testing/memtester/Make.defs +++ b/testing/memtester/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/memtester/Make.defs # +# 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/testing/memtester/Makefile b/testing/memtester/Makefile index 98a926862ed..e577d5829e0 100644 --- a/testing/memtester/Makefile +++ b/testing/memtester/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/memtester/Makefile # +# 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/testing/mm/CMakeLists.txt b/testing/mm/CMakeLists.txt index 2c6f069fefa..043685f330f 100644 --- a/testing/mm/CMakeLists.txt +++ b/testing/mm/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/mm/CMakeLists.txt # +# 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 diff --git a/testing/mm/Make.defs b/testing/mm/Make.defs index 389fbcdbd32..a82b81f5655 100644 --- a/testing/mm/Make.defs +++ b/testing/mm/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/mm/Make.defs # +# 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/testing/mm/Makefile b/testing/mm/Makefile index c3220fc813f..bf202717c68 100644 --- a/testing/mm/Makefile +++ b/testing/mm/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/mm/Makefile # +# 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/testing/mm/mm_main.c b/testing/mm/mm_main.c index 0b9b53dfa35..d1d8367ca4d 100644 --- a/testing/mm/mm_main.c +++ b/testing/mm/mm_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/mm/mm_main.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/testing/monkey/CMakeLists.txt b/testing/monkey/CMakeLists.txt index e97ca78e0b7..d3649c24f90 100644 --- a/testing/monkey/CMakeLists.txt +++ b/testing/monkey/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/monkey/CMakeLists.txt # +# 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 diff --git a/testing/monkey/Make.defs b/testing/monkey/Make.defs index 4ecff2edd70..dbad681de85 100644 --- a/testing/monkey/Make.defs +++ b/testing/monkey/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/monkey/Make.defs # +# 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/testing/monkey/Makefile b/testing/monkey/Makefile index ce70f2a1a6d..0f572a3545f 100644 --- a/testing/monkey/Makefile +++ b/testing/monkey/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/monkey/Makefile # +# 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/testing/monkey/monkey.c b/testing/monkey/monkey.c index d01a216a6aa..770c59d51e0 100644 --- a/testing/monkey/monkey.c +++ b/testing/monkey/monkey.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey.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/testing/monkey/monkey.h b/testing/monkey/monkey.h index 39139f19a62..b53771a1c2b 100644 --- a/testing/monkey/monkey.h +++ b/testing/monkey/monkey.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey.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 diff --git a/testing/monkey/monkey_assert.h b/testing/monkey/monkey_assert.h index 50e5ae4b9af..51d4fd07ced 100644 --- a/testing/monkey/monkey_assert.h +++ b/testing/monkey/monkey_assert.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey_assert.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 diff --git a/testing/monkey/monkey_dev.c b/testing/monkey/monkey_dev.c index a6f88fc0973..7f196684028 100644 --- a/testing/monkey/monkey_dev.c +++ b/testing/monkey/monkey_dev.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey_dev.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/testing/monkey/monkey_dev.h b/testing/monkey/monkey_dev.h index 87c1c80dd70..b7b61944e4f 100644 --- a/testing/monkey/monkey_dev.h +++ b/testing/monkey/monkey_dev.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey_dev.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 diff --git a/testing/monkey/monkey_event.c b/testing/monkey/monkey_event.c index 5e19d3a1965..745d452468a 100644 --- a/testing/monkey/monkey_event.c +++ b/testing/monkey/monkey_event.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey_event.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/testing/monkey/monkey_event.h b/testing/monkey/monkey_event.h index 2ee31ce5903..60ff88ac072 100644 --- a/testing/monkey/monkey_event.h +++ b/testing/monkey/monkey_event.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey_event.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 diff --git a/testing/monkey/monkey_log.c b/testing/monkey/monkey_log.c index a726f766dfd..cd3aaa3d653 100644 --- a/testing/monkey/monkey_log.c +++ b/testing/monkey/monkey_log.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey_log.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/testing/monkey/monkey_log.h b/testing/monkey/monkey_log.h index 931fb9cc205..4071e4c95f8 100644 --- a/testing/monkey/monkey_log.h +++ b/testing/monkey/monkey_log.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey_log.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 diff --git a/testing/monkey/monkey_main.c b/testing/monkey/monkey_main.c index eab79705304..d9b61a21732 100644 --- a/testing/monkey/monkey_main.c +++ b/testing/monkey/monkey_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey_main.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/testing/monkey/monkey_proc.c b/testing/monkey/monkey_proc.c index 4574a626863..8040401fee4 100644 --- a/testing/monkey/monkey_proc.c +++ b/testing/monkey/monkey_proc.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey_proc.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/testing/monkey/monkey_recorder.c b/testing/monkey/monkey_recorder.c index 261c0849c14..cc497e8f8c1 100644 --- a/testing/monkey/monkey_recorder.c +++ b/testing/monkey/monkey_recorder.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey_recorder.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/testing/monkey/monkey_recorder.h b/testing/monkey/monkey_recorder.h index 0d69bd19362..756e1a870c0 100644 --- a/testing/monkey/monkey_recorder.h +++ b/testing/monkey/monkey_recorder.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey_recorder.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 diff --git a/testing/monkey/monkey_type.h b/testing/monkey/monkey_type.h index 1312a82e7bd..ed4f8684f99 100644 --- a/testing/monkey/monkey_type.h +++ b/testing/monkey/monkey_type.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey_type.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 diff --git a/testing/monkey/monkey_utils.c b/testing/monkey/monkey_utils.c index 9e322c7560f..5e54731ac3d 100644 --- a/testing/monkey/monkey_utils.c +++ b/testing/monkey/monkey_utils.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey_utils.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/testing/monkey/monkey_utils.h b/testing/monkey/monkey_utils.h index 342f87c907a..d559600a366 100644 --- a/testing/monkey/monkey_utils.h +++ b/testing/monkey/monkey_utils.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/monkey/monkey_utils.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 diff --git a/testing/mtd_config_fs/CMakeLists.txt b/testing/mtd_config_fs/CMakeLists.txt index 75397385dde..30056c35f7d 100644 --- a/testing/mtd_config_fs/CMakeLists.txt +++ b/testing/mtd_config_fs/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/mtd_config_fs/CMakeLists.txt # +# 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 diff --git a/testing/mtd_config_fs/Make.defs b/testing/mtd_config_fs/Make.defs index 7d8926c1850..424b907fd0b 100644 --- a/testing/mtd_config_fs/Make.defs +++ b/testing/mtd_config_fs/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/mtd_config_fs/Make.defs # +# 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/testing/mtd_config_fs/Makefile b/testing/mtd_config_fs/Makefile index 85d1aa8a58e..601e42f616a 100644 --- a/testing/mtd_config_fs/Makefile +++ b/testing/mtd_config_fs/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/mtd_config_fs/Makefile # +# 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/testing/mtd_config_fs/mtd_config_fs_test_main.c b/testing/mtd_config_fs/mtd_config_fs_test_main.c index e4bbf1bcf9a..5ebc2f99057 100644 --- a/testing/mtd_config_fs/mtd_config_fs_test_main.c +++ b/testing/mtd_config_fs/mtd_config_fs_test_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/mtd_config_fs/mtd_config_fs_test_main.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/testing/mtetest/CMakeLists.txt b/testing/mtetest/CMakeLists.txt index a3a9737b812..fed326f2210 100644 --- a/testing/mtetest/CMakeLists.txt +++ b/testing/mtetest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/mtetest/CMakeLists.txt # +# 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 diff --git a/testing/mtetest/Make.defs b/testing/mtetest/Make.defs index e927e21187a..94339a5ce1e 100644 --- a/testing/mtetest/Make.defs +++ b/testing/mtetest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/mtetest/Make.defs # +# 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/testing/mtetest/Makefile b/testing/mtetest/Makefile index b95a2a04fb7..9d9a3239f97 100644 --- a/testing/mtetest/Makefile +++ b/testing/mtetest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/mtetest/Makefile # +# 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/testing/mtetest/mtetest.c b/testing/mtetest/mtetest.c index a08ef382583..351c38b220e 100644 --- a/testing/mtetest/mtetest.c +++ b/testing/mtetest/mtetest.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/mtetest/mtetest.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/testing/nand_sim/CMakeLists.txt b/testing/nand_sim/CMakeLists.txt index 68994ebd3ae..4f9b4021c60 100644 --- a/testing/nand_sim/CMakeLists.txt +++ b/testing/nand_sim/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/nand_sim/CMakeLists.txt # +# 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 diff --git a/testing/nand_sim/Make.defs b/testing/nand_sim/Make.defs index 1330d5d5aec..05557f6de6c 100644 --- a/testing/nand_sim/Make.defs +++ b/testing/nand_sim/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/nand_sim/Make.defs # +# 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/testing/nand_sim/Makefile b/testing/nand_sim/Makefile index f0b6f1c84c0..a665792095e 100644 --- a/testing/nand_sim/Makefile +++ b/testing/nand_sim/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/nand_sim/Makefile # +# 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/testing/nand_sim/nand_sim_main.c b/testing/nand_sim/nand_sim_main.c index 5e0893558d0..63e64b91faf 100644 --- a/testing/nand_sim/nand_sim_main.c +++ b/testing/nand_sim/nand_sim_main.c @@ -1,6 +1,7 @@ /**************************************************************************** * apps/testing/nand_sim/nand_sim_main.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 diff --git a/testing/nist-sts/CMakeLists.txt b/testing/nist-sts/CMakeLists.txt index a0a6cf5f0dc..e61b2b19118 100644 --- a/testing/nist-sts/CMakeLists.txt +++ b/testing/nist-sts/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/nist-sts/CMakeLists.txt # +# 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 diff --git a/testing/nist-sts/Make.defs b/testing/nist-sts/Make.defs index ba3894344e3..3bb4a2e35b3 100644 --- a/testing/nist-sts/Make.defs +++ b/testing/nist-sts/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/nist-sts/Make.defs # +# 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/testing/nist-sts/Makefile b/testing/nist-sts/Makefile index 66e83c2a676..4240db96883 100644 --- a/testing/nist-sts/Makefile +++ b/testing/nist-sts/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/nist-sts/Makefile # +# 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/testing/nxffs/CMakeLists.txt b/testing/nxffs/CMakeLists.txt index 17b18b2b14b..493b2c29e7e 100644 --- a/testing/nxffs/CMakeLists.txt +++ b/testing/nxffs/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/nxffs/CMakeLists.txt # +# 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 diff --git a/testing/nxffs/Make.defs b/testing/nxffs/Make.defs index 61cd77248e9..6fb1fd54e6d 100644 --- a/testing/nxffs/Make.defs +++ b/testing/nxffs/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/nxffs/Make.defs # +# 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/testing/nxffs/Makefile b/testing/nxffs/Makefile index d5da0ad1104..c03d5d05dec 100644 --- a/testing/nxffs/Makefile +++ b/testing/nxffs/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/nxffs/Makefile # +# 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/testing/nxffs/nxffs_main.c b/testing/nxffs/nxffs_main.c index 79389510bd7..46f2fb2a582 100644 --- a/testing/nxffs/nxffs_main.c +++ b/testing/nxffs/nxffs_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/nxffs/nxffs_main.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/testing/open_memstream/CMakeLists.txt b/testing/open_memstream/CMakeLists.txt index fad47958e10..67a764030ff 100644 --- a/testing/open_memstream/CMakeLists.txt +++ b/testing/open_memstream/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/open_memstream/CMakeLists.txt # +# 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 diff --git a/testing/open_memstream/Make.defs b/testing/open_memstream/Make.defs index 8500076c4fc..f16c7d494fd 100644 --- a/testing/open_memstream/Make.defs +++ b/testing/open_memstream/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/open_memstream/Make.defs # +# 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/testing/open_memstream/Makefile b/testing/open_memstream/Makefile index 223ea2c9a49..5759cac9f21 100644 --- a/testing/open_memstream/Makefile +++ b/testing/open_memstream/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/open_memstream/Makefile # +# 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/testing/open_memstream/open_memstream.c b/testing/open_memstream/open_memstream.c index 0cc0efdf75b..b6f9d59c925 100644 --- a/testing/open_memstream/open_memstream.c +++ b/testing/open_memstream/open_memstream.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/open_memstream/open_memstream.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/testing/ostest/CMakeLists.txt b/testing/ostest/CMakeLists.txt index 47db29f77a1..d3286f02366 100644 --- a/testing/ostest/CMakeLists.txt +++ b/testing/ostest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/ostest/CMakeLists.txt # +# 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 diff --git a/testing/ostest/Make.defs b/testing/ostest/Make.defs index 4d40300b522..4f80d35df35 100644 --- a/testing/ostest/Make.defs +++ b/testing/ostest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/ostest/Make.defs # +# 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/testing/ostest/Makefile b/testing/ostest/Makefile index 18fc1c19d80..c631fb3b878 100644 --- a/testing/ostest/Makefile +++ b/testing/ostest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/ostest/Makefile # +# 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/testing/ostest/aio.c b/testing/ostest/aio.c index 775b56aa54c..8a6fe96372d 100644 --- a/testing/ostest/aio.c +++ b/testing/ostest/aio.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/aio.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/testing/ostest/barrier.c b/testing/ostest/barrier.c index 541c1b55e22..022aebb40a6 100644 --- a/testing/ostest/barrier.c +++ b/testing/ostest/barrier.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/barrier.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/testing/ostest/cancel.c b/testing/ostest/cancel.c index 752ed747a69..907a69354d6 100644 --- a/testing/ostest/cancel.c +++ b/testing/ostest/cancel.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/cancel.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/testing/ostest/cond.c b/testing/ostest/cond.c index f797471d9a8..aee88377868 100644 --- a/testing/ostest/cond.c +++ b/testing/ostest/cond.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/cond.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/testing/ostest/dev_null.c b/testing/ostest/dev_null.c index 4720a049947..439dd93f51a 100644 --- a/testing/ostest/dev_null.c +++ b/testing/ostest/dev_null.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/dev_null.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/testing/ostest/fpu.c b/testing/ostest/fpu.c index 65545b00b8f..841d458c7d9 100644 --- a/testing/ostest/fpu.c +++ b/testing/ostest/fpu.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/fpu.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/testing/ostest/getopt.c b/testing/ostest/getopt.c index c8966753956..8406f08fdba 100644 --- a/testing/ostest/getopt.c +++ b/testing/ostest/getopt.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/getopt.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/testing/ostest/libc_memmem.c b/testing/ostest/libc_memmem.c index 25d38c7b796..60d5194b01e 100644 --- a/testing/ostest/libc_memmem.c +++ b/testing/ostest/libc_memmem.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/libc_memmem.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/testing/ostest/mqueue.c b/testing/ostest/mqueue.c index 000b426796e..afd178644f3 100644 --- a/testing/ostest/mqueue.c +++ b/testing/ostest/mqueue.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/mqueue.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/testing/ostest/mutex.c b/testing/ostest/mutex.c index 11781c94527..4e01166eb27 100644 --- a/testing/ostest/mutex.c +++ b/testing/ostest/mutex.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/mutex.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/testing/ostest/nsem.c b/testing/ostest/nsem.c index 7f8815214e7..a12a162ece4 100644 --- a/testing/ostest/nsem.c +++ b/testing/ostest/nsem.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/nsem.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/testing/ostest/nxevent.c b/testing/ostest/nxevent.c index 058c942dd39..e77309d16b6 100644 --- a/testing/ostest/nxevent.c +++ b/testing/ostest/nxevent.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/nxevent.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/testing/ostest/ostest.h b/testing/ostest/ostest.h index 02ed90c7b16..fec7f81c282 100644 --- a/testing/ostest/ostest.h +++ b/testing/ostest/ostest.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/ostest.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 diff --git a/testing/ostest/ostest_main.c b/testing/ostest/ostest_main.c index 4a3902c8b55..201d52e389f 100644 --- a/testing/ostest/ostest_main.c +++ b/testing/ostest/ostest_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/ostest_main.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/testing/ostest/posixtimer.c b/testing/ostest/posixtimer.c index 9ae0a1f8d19..ea47261b2ae 100644 --- a/testing/ostest/posixtimer.c +++ b/testing/ostest/posixtimer.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/posixtimer.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/testing/ostest/prioinherit.c b/testing/ostest/prioinherit.c index 0704de829f3..a9ffe3d4fe9 100644 --- a/testing/ostest/prioinherit.c +++ b/testing/ostest/prioinherit.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/prioinherit.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/testing/ostest/pthread_cleanup.c b/testing/ostest/pthread_cleanup.c index f10912d9b77..00a6b91d429 100644 --- a/testing/ostest/pthread_cleanup.c +++ b/testing/ostest/pthread_cleanup.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/pthread_cleanup.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/testing/ostest/pthread_exit.c b/testing/ostest/pthread_exit.c index 1a95fa75c63..bc4ca5eac5e 100644 --- a/testing/ostest/pthread_exit.c +++ b/testing/ostest/pthread_exit.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/pthread_exit.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/testing/ostest/pthread_rwlock.c b/testing/ostest/pthread_rwlock.c index 67febadc1d1..ed4159d80af 100644 --- a/testing/ostest/pthread_rwlock.c +++ b/testing/ostest/pthread_rwlock.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/pthread_rwlock.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/testing/ostest/pthread_rwlock_cancel.c b/testing/ostest/pthread_rwlock_cancel.c index e0c826a9c7b..ab8e84c0c02 100644 --- a/testing/ostest/pthread_rwlock_cancel.c +++ b/testing/ostest/pthread_rwlock_cancel.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/pthread_rwlock_cancel.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/testing/ostest/restart.c b/testing/ostest/restart.c index ecd336dac43..891a5b5d663 100644 --- a/testing/ostest/restart.c +++ b/testing/ostest/restart.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/restart.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/testing/ostest/rmutex.c b/testing/ostest/rmutex.c index 5ae872c94cc..5ad1e056be6 100644 --- a/testing/ostest/rmutex.c +++ b/testing/ostest/rmutex.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/rmutex.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/testing/ostest/robust.c b/testing/ostest/robust.c index e71c0f2d2c2..9a2baa20fe4 100644 --- a/testing/ostest/robust.c +++ b/testing/ostest/robust.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/robust.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/testing/ostest/roundrobin.c b/testing/ostest/roundrobin.c index f38d81c2144..c74bbc1f0c7 100644 --- a/testing/ostest/roundrobin.c +++ b/testing/ostest/roundrobin.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/roundrobin.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/testing/ostest/sched_thread_local.c b/testing/ostest/sched_thread_local.c index d2fc08a3104..f36d119da8c 100644 --- a/testing/ostest/sched_thread_local.c +++ b/testing/ostest/sched_thread_local.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/sched_thread_local.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/testing/ostest/schedlock.c b/testing/ostest/schedlock.c index 6eea5005529..b6e60f8d088 100644 --- a/testing/ostest/schedlock.c +++ b/testing/ostest/schedlock.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/schedlock.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/testing/ostest/sem.c b/testing/ostest/sem.c index 6a3bc1385a6..4de91c49bf2 100644 --- a/testing/ostest/sem.c +++ b/testing/ostest/sem.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/sem.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/testing/ostest/semtimed.c b/testing/ostest/semtimed.c index 62b128354c4..ce3f163c111 100644 --- a/testing/ostest/semtimed.c +++ b/testing/ostest/semtimed.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/semtimed.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/testing/ostest/setjmp.c b/testing/ostest/setjmp.c index 75ee4295821..09635324edc 100644 --- a/testing/ostest/setjmp.c +++ b/testing/ostest/setjmp.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/setjmp.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/testing/ostest/setvbuf.c b/testing/ostest/setvbuf.c index b2d198b264e..41210d25c0c 100644 --- a/testing/ostest/setvbuf.c +++ b/testing/ostest/setvbuf.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/setvbuf.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/testing/ostest/sigev_thread.c b/testing/ostest/sigev_thread.c index 930379ea63d..89b1cc8d1a7 100644 --- a/testing/ostest/sigev_thread.c +++ b/testing/ostest/sigev_thread.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/sigev_thread.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/testing/ostest/sighand.c b/testing/ostest/sighand.c index 72b6538905b..e7f3f5318b5 100644 --- a/testing/ostest/sighand.c +++ b/testing/ostest/sighand.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/sighand.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/testing/ostest/sighelper.c b/testing/ostest/sighelper.c index 539a4d720db..476e170a8b4 100644 --- a/testing/ostest/sighelper.c +++ b/testing/ostest/sighelper.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/sighelper.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/testing/ostest/signest.c b/testing/ostest/signest.c index a539986e915..7b0378849d4 100644 --- a/testing/ostest/signest.c +++ b/testing/ostest/signest.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/signest.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/testing/ostest/sigprocmask.c b/testing/ostest/sigprocmask.c index b8b08129116..d208e1bbcf8 100644 --- a/testing/ostest/sigprocmask.c +++ b/testing/ostest/sigprocmask.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/sigprocmask.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/testing/ostest/smp_call.c b/testing/ostest/smp_call.c index 74231066f40..18f03097720 100644 --- a/testing/ostest/smp_call.c +++ b/testing/ostest/smp_call.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/smp_call.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/testing/ostest/specific.c b/testing/ostest/specific.c index f23db85d846..27497ce53b5 100644 --- a/testing/ostest/specific.c +++ b/testing/ostest/specific.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/specific.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/testing/ostest/sporadic.c b/testing/ostest/sporadic.c index 8f9fc685b8d..5e6986ba774 100644 --- a/testing/ostest/sporadic.c +++ b/testing/ostest/sporadic.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/sporadic.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/testing/ostest/sporadic2.c b/testing/ostest/sporadic2.c index ce1811ef019..acc7f34e164 100644 --- a/testing/ostest/sporadic2.c +++ b/testing/ostest/sporadic2.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/sporadic2.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/testing/ostest/suspend.c b/testing/ostest/suspend.c index 16181fc4822..a1d6f6b877c 100644 --- a/testing/ostest/suspend.c +++ b/testing/ostest/suspend.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/suspend.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/testing/ostest/timedmqueue.c b/testing/ostest/timedmqueue.c index d2c487d42fc..5a4dcb29a13 100644 --- a/testing/ostest/timedmqueue.c +++ b/testing/ostest/timedmqueue.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/timedmqueue.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/testing/ostest/timedmutex.c b/testing/ostest/timedmutex.c index 1bfd7c5b55b..303dc260c01 100644 --- a/testing/ostest/timedmutex.c +++ b/testing/ostest/timedmutex.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/timedmutex.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/testing/ostest/timedwait.c b/testing/ostest/timedwait.c index ec4c393d2b2..ab3f6794cc3 100644 --- a/testing/ostest/timedwait.c +++ b/testing/ostest/timedwait.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/timedwait.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/testing/ostest/tls.c b/testing/ostest/tls.c index 7ae461cc6fd..011f2642c06 100644 --- a/testing/ostest/tls.c +++ b/testing/ostest/tls.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/tls.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/testing/ostest/vfork.c b/testing/ostest/vfork.c index 5bfbd93dcff..bd6cfabadb9 100644 --- a/testing/ostest/vfork.c +++ b/testing/ostest/vfork.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/vfork.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/testing/ostest/waitpid.c b/testing/ostest/waitpid.c index 758ffcf9fb0..2be66e8c944 100644 --- a/testing/ostest/waitpid.c +++ b/testing/ostest/waitpid.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/waitpid.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/testing/ostest/wdog.c b/testing/ostest/wdog.c index 49478ae496a..8c1c35a826a 100644 --- a/testing/ostest/wdog.c +++ b/testing/ostest/wdog.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/wdog.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/testing/ostest/wqueue.c b/testing/ostest/wqueue.c index 76596c3ae8b..9d0444a968b 100644 --- a/testing/ostest/wqueue.c +++ b/testing/ostest/wqueue.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ostest/wqueue.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/testing/pcitest/Make.defs b/testing/pcitest/Make.defs index 066363ddccb..985276be2d4 100644 --- a/testing/pcitest/Make.defs +++ b/testing/pcitest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/pcitest/Make.defs # +# 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/testing/pcitest/Makefile b/testing/pcitest/Makefile index 07bf5ca152a..46c7050bf56 100644 --- a/testing/pcitest/Makefile +++ b/testing/pcitest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/pcitest/Makefile # +# 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/testing/pcitest/pcitest.c b/testing/pcitest/pcitest.c index 3f02667dac0..2814c0c517e 100644 --- a/testing/pcitest/pcitest.c +++ b/testing/pcitest/pcitest.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/pcitest/pcitest.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/testing/ramtest/CMakeLists.txt b/testing/ramtest/CMakeLists.txt index 46d9340a830..796f818773f 100644 --- a/testing/ramtest/CMakeLists.txt +++ b/testing/ramtest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/ramtest/CMakeLists.txt # +# 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 diff --git a/testing/ramtest/Make.defs b/testing/ramtest/Make.defs index ff4a4701279..b521135d6bb 100644 --- a/testing/ramtest/Make.defs +++ b/testing/ramtest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/ramtest/Make.defs # +# 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/testing/ramtest/Makefile b/testing/ramtest/Makefile index 89636f3015b..977f0838acf 100644 --- a/testing/ramtest/Makefile +++ b/testing/ramtest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/ramtest/Makefile # +# 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/testing/ramtest/ramtest.c b/testing/ramtest/ramtest.c index 046f63d973f..77989c42145 100644 --- a/testing/ramtest/ramtest.c +++ b/testing/ramtest/ramtest.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/ramtest/ramtest.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/testing/resmonitor/CMakeLists.txt b/testing/resmonitor/CMakeLists.txt index 38f94064e4a..ca110234196 100644 --- a/testing/resmonitor/CMakeLists.txt +++ b/testing/resmonitor/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/resmonitor/CMakeLists.txt # +# 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 diff --git a/testing/resmonitor/Make.defs b/testing/resmonitor/Make.defs index a111ad4c89c..886d7b0e9d2 100644 --- a/testing/resmonitor/Make.defs +++ b/testing/resmonitor/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/resmonitor/Make.defs # +# 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 @@ -16,7 +18,6 @@ # License for the specific language governing permissions and limitations # under the License. # -# ############################################################################ ifneq ($(CONFIG_TESTING_RESMONITOR),) diff --git a/testing/resmonitor/Makefile b/testing/resmonitor/Makefile index a5d7d352f72..b61abd1f34e 100644 --- a/testing/resmonitor/Makefile +++ b/testing/resmonitor/Makefile @@ -1,16 +1,24 @@ +############################################################################ # apps/testing/resmonitor/Makefile # -# Licensed 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 - +# 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. +# 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. +# +############################################################################ include $(APPDIR)/Make.defs diff --git a/testing/resmonitor/fillcpu.c b/testing/resmonitor/fillcpu.c index 024219b3105..dddf9da5c38 100644 --- a/testing/resmonitor/fillcpu.c +++ b/testing/resmonitor/fillcpu.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/resmonitor/fillcpu.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/testing/resmonitor/filldisk.c b/testing/resmonitor/filldisk.c index 5f7b6618cbe..4e7b9e618a7 100644 --- a/testing/resmonitor/filldisk.c +++ b/testing/resmonitor/filldisk.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/resmonitor/filldisk.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/testing/resmonitor/fillmem.c b/testing/resmonitor/fillmem.c index 7f96203178f..c301d401f01 100644 --- a/testing/resmonitor/fillmem.c +++ b/testing/resmonitor/fillmem.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/resmonitor/fillmem.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/testing/resmonitor/showinfo.c b/testing/resmonitor/showinfo.c index 44a04471a8a..fe535334beb 100644 --- a/testing/resmonitor/showinfo.c +++ b/testing/resmonitor/showinfo.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/resmonitor/showinfo.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/testing/scanftest/CMakeLists.txt b/testing/scanftest/CMakeLists.txt index 02b966fbf63..dc6827bd06b 100644 --- a/testing/scanftest/CMakeLists.txt +++ b/testing/scanftest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/scanftest/CMakeLists.txt # +# 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 diff --git a/testing/scanftest/Make.defs b/testing/scanftest/Make.defs index 387fd2895a9..ebeffd59060 100644 --- a/testing/scanftest/Make.defs +++ b/testing/scanftest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/scanftest/Make.defs # +# 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/testing/scanftest/Makefile b/testing/scanftest/Makefile index 14d614f6873..155b32ae437 100644 --- a/testing/scanftest/Makefile +++ b/testing/scanftest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/scanftest/Makefile # +# 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/testing/scanftest/scanftest_main.c b/testing/scanftest/scanftest_main.c index c957f44d0f6..2ec1f420fdb 100644 --- a/testing/scanftest/scanftest_main.c +++ b/testing/scanftest/scanftest_main.c @@ -1,29 +1,8 @@ /**************************************************************************** * apps/testing/scanftest/scanftest_main.c * - * Copyright (C) 2005-01-26, Greg King (https://github.com/cc65) - * - * Original License: - * This software is provided 'as-is', without any express or implied - * warranty. - * In no event will the authors be held liable for any damages arising from - * the use of this software. - * - * Permission is granted to anyone to use this software for any purpose, - * including commercial applications, and to alter it and redistribute it - * freely, subject to the following restrictions: - * - * 1. The origin of this software must not be misrepresented; you must not - * claim that you wrote the original software. If you use this software in - * a product, an acknowledgment in the product documentation would be - * appreciated but is not required. - * - * 2. Altered source versions must be plainly marked as such, and must not - * be misrepresented as being the original software. - * - * 3. This notice may not be removed or altered from any source distribution. - * - * Modified: Johannes Schock + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2005-01-26, Greg King (https://github.com/cc65) * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -54,6 +33,28 @@ * ****************************************************************************/ +/* Original License: + * This software is provided 'as-is', without any express or implied + * warranty. + * In no event will the authors be held liable for any damages arising from + * the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1. The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software in + * a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * + * 2. Altered source versions must be plainly marked as such, and must not + * be misrepresented as being the original software. + * + * 3. This notice may not be removed or altered from any source distribution. + * + * Modified: Johannes Schock + */ /**************************************************************************** * Included Files ****************************************************************************/ diff --git a/testing/sd_bench/Make.defs b/testing/sd_bench/Make.defs index aacfed6ef10..b9e2b9bb018 100644 --- a/testing/sd_bench/Make.defs +++ b/testing/sd_bench/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/sd_bench/Make.defs # +# 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/testing/sd_bench/Makefile b/testing/sd_bench/Makefile index fb220e0c34e..ddd1789947c 100644 --- a/testing/sd_bench/Makefile +++ b/testing/sd_bench/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/sd_bench/Makefile # +# 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/testing/sd_bench/sd_bench_main.c b/testing/sd_bench/sd_bench_main.c index a8a06f8d20e..e2ae7472280 100644 --- a/testing/sd_bench/sd_bench_main.c +++ b/testing/sd_bench/sd_bench_main.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/testing/sd_bench/sd_bench_main.c * - * Original Licence: - * - * Copyright (c) 2016-2021 PX4 Development Team. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2016-2021 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/testing/sd_stress/Make.defs b/testing/sd_stress/Make.defs index 4517b39043a..1da23f092af 100644 --- a/testing/sd_stress/Make.defs +++ b/testing/sd_stress/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/sd_stress/Make.defs # +# 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/testing/sd_stress/Makefile b/testing/sd_stress/Makefile index 6c21851afc6..a70d6857d7b 100644 --- a/testing/sd_stress/Makefile +++ b/testing/sd_stress/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/sd_stress/Makefile # +# 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/testing/sd_stress/sd_stress_main.c b/testing/sd_stress/sd_stress_main.c index 6720dcb3977..ddb598e804f 100644 --- a/testing/sd_stress/sd_stress_main.c +++ b/testing/sd_stress/sd_stress_main.c @@ -1,9 +1,8 @@ /**************************************************************************** * apps/testing/sd_stress/sd_stress_main.c * - * Original Licence: - * - * Copyright (c) 2016-2021 PX4 Development Team. All rights reserved. + * SPDX-License-Identifier: BSD-3-Clause + * SPDX-FileCopyrightText: 2016-2021 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions diff --git a/testing/sensortest/CMakeLists.txt b/testing/sensortest/CMakeLists.txt index aa828352335..a95134c8838 100644 --- a/testing/sensortest/CMakeLists.txt +++ b/testing/sensortest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/sensortest/CMakeLists.txt # +# 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 diff --git a/testing/sensortest/Make.defs b/testing/sensortest/Make.defs index df35dadf33c..50603af5cb2 100644 --- a/testing/sensortest/Make.defs +++ b/testing/sensortest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/sensortest/Make.defs # +# 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/testing/sensortest/Makefile b/testing/sensortest/Makefile index 4f084f096ee..6ecde141018 100644 --- a/testing/sensortest/Makefile +++ b/testing/sensortest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/sensortest/Makefile # +# 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/testing/sensortest/sensortest.c b/testing/sensortest/sensortest.c index ca309aa19e8..0978ac0b7fc 100644 --- a/testing/sensortest/sensortest.c +++ b/testing/sensortest/sensortest.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/sensortest/sensortest.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/testing/setest/CMakeLists.txt b/testing/setest/CMakeLists.txt index 42951c45133..27235b4351a 100644 --- a/testing/setest/CMakeLists.txt +++ b/testing/setest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/setest/CMakeLists.txt # +# 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 diff --git a/testing/setest/Make.defs b/testing/setest/Make.defs index 68eebe63678..701bb5f0aac 100644 --- a/testing/setest/Make.defs +++ b/testing/setest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/setest/Make.defs # +# 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/testing/setest/Makefile b/testing/setest/Makefile index 1053f00652b..594455749f4 100644 --- a/testing/setest/Makefile +++ b/testing/setest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/setest/Makefile # +# 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/testing/setest/setest.c b/testing/setest/setest.c index 0a773650e3e..f16fca4a18d 100644 --- a/testing/setest/setest.c +++ b/testing/setest/setest.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/setest/setest.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/testing/smart/CMakeLists.txt b/testing/smart/CMakeLists.txt index dc4ea728074..091f1fdf39b 100644 --- a/testing/smart/CMakeLists.txt +++ b/testing/smart/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/smart/CMakeLists.txt # +# 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 diff --git a/testing/smart/Make.defs b/testing/smart/Make.defs index 738f7cfa197..771631a8b91 100644 --- a/testing/smart/Make.defs +++ b/testing/smart/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/smart/Make.defs # +# 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/testing/smart/Makefile b/testing/smart/Makefile index 8f180a993b0..deebbc53589 100644 --- a/testing/smart/Makefile +++ b/testing/smart/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/smart/Makefile # +# 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/testing/smart/smart_main.c b/testing/smart/smart_main.c index 61dd3ec7259..03dd897bb0c 100644 --- a/testing/smart/smart_main.c +++ b/testing/smart/smart_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/smart/smart_main.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/testing/smart_test/CMakeLists.txt b/testing/smart_test/CMakeLists.txt index b1448da17c1..057e56282dd 100644 --- a/testing/smart_test/CMakeLists.txt +++ b/testing/smart_test/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/smart_test/CMakeLists.txt # +# 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 diff --git a/testing/smart_test/Make.defs b/testing/smart_test/Make.defs index ca6932d63b4..e02270134ff 100644 --- a/testing/smart_test/Make.defs +++ b/testing/smart_test/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/smart_test/Make.defs # +# 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/testing/smart_test/Makefile b/testing/smart_test/Makefile index 6738ce91d1b..835a1751ee1 100644 --- a/testing/smart_test/Makefile +++ b/testing/smart_test/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/smart_test/Makefile # +# 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/testing/smart_test/smart_test.c b/testing/smart_test/smart_test.c index 7f948a20c8e..1650ba7acd1 100644 --- a/testing/smart_test/smart_test.c +++ b/testing/smart_test/smart_test.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/smart_test/smart_test.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/testing/smp/CMakeLists.txt b/testing/smp/CMakeLists.txt index d22fd43bb71..ada0bceb154 100644 --- a/testing/smp/CMakeLists.txt +++ b/testing/smp/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/smp/CMakeLists.txt # +# 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 diff --git a/testing/smp/Make.defs b/testing/smp/Make.defs index 146dac47ade..78a315d54c8 100644 --- a/testing/smp/Make.defs +++ b/testing/smp/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/smp/Make.defs # +# 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/testing/smp/Makefile b/testing/smp/Makefile index b1bc0254ee2..dd36b1c38bd 100644 --- a/testing/smp/Makefile +++ b/testing/smp/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/smp/Makefile # +# 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/testing/smp/smp_main.c b/testing/smp/smp_main.c index a538c9c5877..c5fedcb740d 100644 --- a/testing/smp/smp_main.c +++ b/testing/smp/smp_main.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/smp/smp_main.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/testing/stressapptest/CMakeLists.txt b/testing/stressapptest/CMakeLists.txt index 3e49865fe32..c9c075d3dc5 100644 --- a/testing/stressapptest/CMakeLists.txt +++ b/testing/stressapptest/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/stressapptest/CMakeLists.txt # +# 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 diff --git a/testing/stressapptest/Make.defs b/testing/stressapptest/Make.defs index c00a1e89e3c..1b0f51ce594 100644 --- a/testing/stressapptest/Make.defs +++ b/testing/stressapptest/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/stressapptest/Make.defs # +# 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/testing/stressapptest/Makefile b/testing/stressapptest/Makefile index 38c962d1455..2cc05d5079a 100644 --- a/testing/stressapptest/Makefile +++ b/testing/stressapptest/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/stressapptest/Makefile # +# 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/testing/testsuites/Make.defs b/testing/testsuites/Make.defs index 03ab762a156..ffd04be0601 100644 --- a/testing/testsuites/Make.defs +++ b/testing/testsuites/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/testsuites/Make.defs # +# 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/testing/testsuites/Makefile b/testing/testsuites/Makefile index 1b896ef5bf1..ac63f216402 100644 --- a/testing/testsuites/Makefile +++ b/testing/testsuites/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/testsuites/Makefile # +# 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/testing/testsuites/kernel/fs/cases/fs_append_test.c b/testing/testsuites/kernel/fs/cases/fs_append_test.c index 691109c4c26..990f4d93dff 100644 --- a/testing/testsuites/kernel/fs/cases/fs_append_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_append_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_append_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_creat_test.c b/testing/testsuites/kernel/fs/cases/fs_creat_test.c index af88a4292dd..23fcab888f0 100644 --- a/testing/testsuites/kernel/fs/cases/fs_creat_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_creat_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_creat_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_dup2_test.c b/testing/testsuites/kernel/fs/cases/fs_dup2_test.c index 7e5faefe53b..7ec1ece9708 100644 --- a/testing/testsuites/kernel/fs/cases/fs_dup2_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_dup2_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_dup2_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_dup_test.c b/testing/testsuites/kernel/fs/cases/fs_dup_test.c index 7b57379ca64..0600041f1de 100644 --- a/testing/testsuites/kernel/fs/cases/fs_dup_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_dup_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_dup_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_eventfd_test.c b/testing/testsuites/kernel/fs/cases/fs_eventfd_test.c index 805311eb5e8..1a70776af91 100644 --- a/testing/testsuites/kernel/fs/cases/fs_eventfd_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_eventfd_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_eventfd_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_fcntl_test.c b/testing/testsuites/kernel/fs/cases/fs_fcntl_test.c index 94007b22a72..1c163690cc6 100644 --- a/testing/testsuites/kernel/fs/cases/fs_fcntl_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_fcntl_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_fcntl_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_fstat_test.c b/testing/testsuites/kernel/fs/cases/fs_fstat_test.c index e0eb6c8dee6..315c3e99162 100644 --- a/testing/testsuites/kernel/fs/cases/fs_fstat_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_fstat_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_fstat_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_fstatfs_test.c b/testing/testsuites/kernel/fs/cases/fs_fstatfs_test.c index ab6653878dc..0f804a6f870 100644 --- a/testing/testsuites/kernel/fs/cases/fs_fstatfs_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_fstatfs_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_fstatfs_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_fsync_test.c b/testing/testsuites/kernel/fs/cases/fs_fsync_test.c index 2518da2b737..1e1a2734d22 100644 --- a/testing/testsuites/kernel/fs/cases/fs_fsync_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_fsync_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_fsync_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_getfilep_test.c b/testing/testsuites/kernel/fs/cases/fs_getfilep_test.c index 41a19cbd782..06aff68653b 100644 --- a/testing/testsuites/kernel/fs/cases/fs_getfilep_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_getfilep_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_getfilep_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_mkdir_test.c b/testing/testsuites/kernel/fs/cases/fs_mkdir_test.c index a44eed1c795..de189f545d5 100644 --- a/testing/testsuites/kernel/fs/cases/fs_mkdir_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_mkdir_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_mkdir_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_open_test.c b/testing/testsuites/kernel/fs/cases/fs_open_test.c index cd45266cec7..f671438afe3 100644 --- a/testing/testsuites/kernel/fs/cases/fs_open_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_open_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_open_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_opendir_test.c b/testing/testsuites/kernel/fs/cases/fs_opendir_test.c index 83864b49dd0..a92a779d660 100644 --- a/testing/testsuites/kernel/fs/cases/fs_opendir_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_opendir_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_opendir_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_poll_test.c b/testing/testsuites/kernel/fs/cases/fs_poll_test.c index 896ea7b9d7c..c442c7437ef 100644 --- a/testing/testsuites/kernel/fs/cases/fs_poll_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_poll_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_poll_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_pread_test.c b/testing/testsuites/kernel/fs/cases/fs_pread_test.c index 8af428459f5..f1a710cf996 100644 --- a/testing/testsuites/kernel/fs/cases/fs_pread_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_pread_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_pread_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_pwrite_test.c b/testing/testsuites/kernel/fs/cases/fs_pwrite_test.c index 9c8fadd1bbd..1afa3d1cfd4 100644 --- a/testing/testsuites/kernel/fs/cases/fs_pwrite_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_pwrite_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_pwrite_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_read_test.c b/testing/testsuites/kernel/fs/cases/fs_read_test.c index f0164894a56..1ffb0bb8e43 100644 --- a/testing/testsuites/kernel/fs/cases/fs_read_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_read_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_read_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_readdir_test.c b/testing/testsuites/kernel/fs/cases/fs_readdir_test.c index c7b9b0e5cdb..c5a259c5fec 100644 --- a/testing/testsuites/kernel/fs/cases/fs_readdir_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_readdir_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_readdir_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_readlink_test.c b/testing/testsuites/kernel/fs/cases/fs_readlink_test.c index b01da9607c3..c3617c0973b 100644 --- a/testing/testsuites/kernel/fs/cases/fs_readlink_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_readlink_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_readlink_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_rename_test.c b/testing/testsuites/kernel/fs/cases/fs_rename_test.c index 656d575d1d0..36d1d5aba10 100644 --- a/testing/testsuites/kernel/fs/cases/fs_rename_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_rename_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_rename_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_rewinddir_test.c b/testing/testsuites/kernel/fs/cases/fs_rewinddir_test.c index f88645e14fb..6755a1a4636 100644 --- a/testing/testsuites/kernel/fs/cases/fs_rewinddir_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_rewinddir_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_rewinddir_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_rmdir_test.c b/testing/testsuites/kernel/fs/cases/fs_rmdir_test.c index 57e84ca2f43..d90d4c632cd 100644 --- a/testing/testsuites/kernel/fs/cases/fs_rmdir_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_rmdir_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_rmdir_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_seek_test.c b/testing/testsuites/kernel/fs/cases/fs_seek_test.c index da49382eadf..e206e5e0deb 100644 --- a/testing/testsuites/kernel/fs/cases/fs_seek_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_seek_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_seek_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_sendfile_test.c b/testing/testsuites/kernel/fs/cases/fs_sendfile_test.c index eb6dec014f1..5163e7cbfeb 100644 --- a/testing/testsuites/kernel/fs/cases/fs_sendfile_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_sendfile_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_sendfile_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_stat_test.c b/testing/testsuites/kernel/fs/cases/fs_stat_test.c index 3420b30731c..fb2c096d429 100644 --- a/testing/testsuites/kernel/fs/cases/fs_stat_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_stat_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_stat_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_statfs_test.c b/testing/testsuites/kernel/fs/cases/fs_statfs_test.c index 8fa30b8e3cb..6390691dce5 100644 --- a/testing/testsuites/kernel/fs/cases/fs_statfs_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_statfs_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_statfs_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_stream_test.c b/testing/testsuites/kernel/fs/cases/fs_stream_test.c index 6074a7b6f89..46320d0fab7 100644 --- a/testing/testsuites/kernel/fs/cases/fs_stream_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_stream_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_stream_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_symlink_test.c b/testing/testsuites/kernel/fs/cases/fs_symlink_test.c index 05f6a908e16..a12d727e580 100644 --- a/testing/testsuites/kernel/fs/cases/fs_symlink_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_symlink_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_symlink_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_truncate_test.c b/testing/testsuites/kernel/fs/cases/fs_truncate_test.c index 32afc989c21..ca2cef0bbdd 100644 --- a/testing/testsuites/kernel/fs/cases/fs_truncate_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_truncate_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_truncate_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_unlink_test.c b/testing/testsuites/kernel/fs/cases/fs_unlink_test.c index 7097bc114e8..7d52eb425ea 100644 --- a/testing/testsuites/kernel/fs/cases/fs_unlink_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_unlink_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_unlink_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cases/fs_write_test.c b/testing/testsuites/kernel/fs/cases/fs_write_test.c index 954704ed213..75bbc96efa3 100644 --- a/testing/testsuites/kernel/fs/cases/fs_write_test.c +++ b/testing/testsuites/kernel/fs/cases/fs_write_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cases/fs_write_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/cmocka_fs_test.c b/testing/testsuites/kernel/fs/cmocka_fs_test.c index f4b581f816e..c5917c3676b 100644 --- a/testing/testsuites/kernel/fs/cmocka_fs_test.c +++ b/testing/testsuites/kernel/fs/cmocka_fs_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/cmocka_fs_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/common/test_fs_common.c b/testing/testsuites/kernel/fs/common/test_fs_common.c index 3761f8fac37..911cad7e3ed 100644 --- a/testing/testsuites/kernel/fs/common/test_fs_common.c +++ b/testing/testsuites/kernel/fs/common/test_fs_common.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/common/test_fs_common.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/fs/include/fstest.h b/testing/testsuites/kernel/fs/include/fstest.h index f16677fb6ff..4892f0ad553 100644 --- a/testing/testsuites/kernel/fs/include/fstest.h +++ b/testing/testsuites/kernel/fs/include/fstest.h @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/fs/include/fstest.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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mm/cases/mm_test_001.c b/testing/testsuites/kernel/mm/cases/mm_test_001.c index 7eb27c541bc..328f95a8dd5 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_001.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_001.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/cases/mm_test_001.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mm/cases/mm_test_002.c b/testing/testsuites/kernel/mm/cases/mm_test_002.c index e749b84eeb2..19c35bbe120 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_002.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_002.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/cases/mm_test_002.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mm/cases/mm_test_003.c b/testing/testsuites/kernel/mm/cases/mm_test_003.c index cfa9935cf9f..14dca25e8f3 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_003.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_003.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/cases/mm_test_003.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mm/cases/mm_test_004.c b/testing/testsuites/kernel/mm/cases/mm_test_004.c index 2dafc6f2320..104835f9407 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_004.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_004.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/cases/mm_test_004.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mm/cases/mm_test_005.c b/testing/testsuites/kernel/mm/cases/mm_test_005.c index 6329c73464a..5a916041b06 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_005.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_005.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/cases/mm_test_005.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mm/cases/mm_test_006.c b/testing/testsuites/kernel/mm/cases/mm_test_006.c index 98a19c1f260..6c7877489f8 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_006.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_006.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/cases/mm_test_006.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mm/cases/mm_test_007.c b/testing/testsuites/kernel/mm/cases/mm_test_007.c index efe33221ce2..decbdec5279 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_007.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_007.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/cases/mm_test_007.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mm/cases/mm_test_008.c b/testing/testsuites/kernel/mm/cases/mm_test_008.c index 99aab0c67b3..ab92d6982a6 100644 --- a/testing/testsuites/kernel/mm/cases/mm_test_008.c +++ b/testing/testsuites/kernel/mm/cases/mm_test_008.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/cases/mm_test_008.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mm/cmocka_mm_test.c b/testing/testsuites/kernel/mm/cmocka_mm_test.c index 27341a84ab8..1c861326bce 100644 --- a/testing/testsuites/kernel/mm/cmocka_mm_test.c +++ b/testing/testsuites/kernel/mm/cmocka_mm_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/cmocka_mm_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mm/common/test_mm_common.c b/testing/testsuites/kernel/mm/common/test_mm_common.c index 07157579128..ace9dbedb92 100644 --- a/testing/testsuites/kernel/mm/common/test_mm_common.c +++ b/testing/testsuites/kernel/mm/common/test_mm_common.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/common/test_mm_common.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mm/include/MmTest.h b/testing/testsuites/kernel/mm/include/MmTest.h index 6d1812d9aff..0f453071280 100644 --- a/testing/testsuites/kernel/mm/include/MmTest.h +++ b/testing/testsuites/kernel/mm/include/MmTest.h @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/include/MmTest.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 + * 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. + * 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. * ****************************************************************************/ @@ -95,4 +97,4 @@ void test_nuttx_mm07(FAR void **state); void test_nuttx_mm08(FAR void **state); -#endif \ No newline at end of file +#endif diff --git a/testing/testsuites/kernel/mm/tool/mem_batch_opt_perf_test.c b/testing/testsuites/kernel/mm/tool/mem_batch_opt_perf_test.c index 740aa343584..3485a3f91d9 100644 --- a/testing/testsuites/kernel/mm/tool/mem_batch_opt_perf_test.c +++ b/testing/testsuites/kernel/mm/tool/mem_batch_opt_perf_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/tool/mem_batch_opt_perf_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mm/tool/mem_cycle_opt_perf_test.c b/testing/testsuites/kernel/mm/tool/mem_cycle_opt_perf_test.c index 858f7abb516..53191b5ec1c 100644 --- a/testing/testsuites/kernel/mm/tool/mem_cycle_opt_perf_test.c +++ b/testing/testsuites/kernel/mm/tool/mem_cycle_opt_perf_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mm/tool/mem_cycle_opt_perf_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mutex/cases/posix_mutex_test_001.c b/testing/testsuites/kernel/mutex/cases/posix_mutex_test_001.c index de3c521d7d8..238699540c9 100644 --- a/testing/testsuites/kernel/mutex/cases/posix_mutex_test_001.c +++ b/testing/testsuites/kernel/mutex/cases/posix_mutex_test_001.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mutex/cases/posix_mutex_test_001.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mutex/cases/posix_mutex_test_019.c b/testing/testsuites/kernel/mutex/cases/posix_mutex_test_019.c index ed4326e53ec..fcaf2922edb 100644 --- a/testing/testsuites/kernel/mutex/cases/posix_mutex_test_019.c +++ b/testing/testsuites/kernel/mutex/cases/posix_mutex_test_019.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mutex/cases/posix_mutex_test_019.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mutex/cases/posix_mutex_test_020.c b/testing/testsuites/kernel/mutex/cases/posix_mutex_test_020.c index c4c795ff0ff..e98f7557e46 100644 --- a/testing/testsuites/kernel/mutex/cases/posix_mutex_test_020.c +++ b/testing/testsuites/kernel/mutex/cases/posix_mutex_test_020.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mutex/cases/posix_mutex_test_020.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mutex/cmocka_mutex_test.c b/testing/testsuites/kernel/mutex/cmocka_mutex_test.c index 8ac241bec3f..64df27069b9 100644 --- a/testing/testsuites/kernel/mutex/cmocka_mutex_test.c +++ b/testing/testsuites/kernel/mutex/cmocka_mutex_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mutex/cmocka_mutex_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/mutex/include/MutexTest.h b/testing/testsuites/kernel/mutex/include/MutexTest.h index f99a775de3b..44e9dbb0b3b 100644 --- a/testing/testsuites/kernel/mutex/include/MutexTest.h +++ b/testing/testsuites/kernel/mutex/include/MutexTest.h @@ -1,22 +1,25 @@ /**************************************************************************** * apps/testing/testsuites/kernel/mutex/include/MutexTest.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 + * 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. + * 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. * ****************************************************************************/ + #ifndef PTHREAD_TEST_H #define PTHREAD_TEST_H diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_003.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_003.c index 1fe33deff09..79ee576c071 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_003.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_003.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/pthread/cases/posix_pthread_test_003.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_004.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_004.c index bd968c5769f..8dac61aa1a8 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_004.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_004.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/pthread/cases/posix_pthread_test_004.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_005.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_005.c index 32ec5f8c5ce..b6f25eaa873 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_005.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_005.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/pthread/cases/posix_pthread_test_005.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_006.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_006.c index 64c3266992b..b416821d8c2 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_006.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_006.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/pthread/cases/posix_pthread_test_006.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_009.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_009.c index 731c097f9dd..e1708f70d6b 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_009.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_009.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/pthread/cases/posix_pthread_test_009.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_018.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_018.c index b4ca6b9eeb2..962596df436 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_018.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_018.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/pthread/cases/posix_pthread_test_018.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_019.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_019.c index 58134db0529..4845e0aa991 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_019.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_019.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/pthread/cases/posix_pthread_test_019.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_021.c b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_021.c index 93a833a028a..a66d9756892 100644 --- a/testing/testsuites/kernel/pthread/cases/posix_pthread_test_021.c +++ b/testing/testsuites/kernel/pthread/cases/posix_pthread_test_021.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/pthread/cases/posix_pthread_test_021.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/pthread/cmocka_pthread_test.c b/testing/testsuites/kernel/pthread/cmocka_pthread_test.c index 1045ff6fea6..8c7b17598e1 100644 --- a/testing/testsuites/kernel/pthread/cmocka_pthread_test.c +++ b/testing/testsuites/kernel/pthread/cmocka_pthread_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/pthread/cmocka_pthread_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/pthread/common/test_pthread_common.c b/testing/testsuites/kernel/pthread/common/test_pthread_common.c index 0c395f5b474..81c78604338 100644 --- a/testing/testsuites/kernel/pthread/common/test_pthread_common.c +++ b/testing/testsuites/kernel/pthread/common/test_pthread_common.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/pthread/common/test_pthread_common.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/pthread/include/PthreadTest.h b/testing/testsuites/kernel/pthread/include/PthreadTest.h index 8a0c8655f8e..3909171d34b 100644 --- a/testing/testsuites/kernel/pthread/include/PthreadTest.h +++ b/testing/testsuites/kernel/pthread/include/PthreadTest.h @@ -1,22 +1,25 @@ /**************************************************************************** * apps/testing/testsuites/kernel/pthread/include/PthreadTest.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 + * 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. + * 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. * ****************************************************************************/ + #ifndef PTHREAD_TEST_H #define PTHREAD_TEST_H diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_001.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_001.c index f7e3dd367a7..2063ed32b13 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_001.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_001.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_pthread_test_001.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_002.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_002.c index bc70ca80945..40de8ef936d 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_002.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_002.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_pthread_test_002.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_003.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_003.c index 2d4998043d3..ad9c7bff401 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_003.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_003.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_pthread_test_003.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_004.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_004.c index 5c37ac9b3a6..625d78467c3 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_004.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_004.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_pthread_test_004.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_005.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_005.c index 5dc47df2f7d..2ef86ecab0f 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_005.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_005.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_pthread_test_005.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_006.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_006.c index 9a962f5fe0b..f7af6101b33 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_006.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_006.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_pthread_test_006.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_007.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_007.c index f26d3e1795a..3a50a5f94db 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_007.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_007.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_pthread_test_007.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_008.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_008.c index e180fc8d0bc..72fa7d85f7e 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_008.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_008.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_pthread_test_008.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_pthread_test_009.c b/testing/testsuites/kernel/sched/cases/api_pthread_test_009.c index 1885d5dc312..b72281bb88d 100644 --- a/testing/testsuites/kernel/sched/cases/api_pthread_test_009.c +++ b/testing/testsuites/kernel/sched/cases/api_pthread_test_009.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_pthread_test_009.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_task_test_001.c b/testing/testsuites/kernel/sched/cases/api_task_test_001.c index d2ebc9d1250..bf6969e6714 100644 --- a/testing/testsuites/kernel/sched/cases/api_task_test_001.c +++ b/testing/testsuites/kernel/sched/cases/api_task_test_001.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_task_test_001.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_task_test_002.c b/testing/testsuites/kernel/sched/cases/api_task_test_002.c index 13242e962c5..5eedc66d010 100644 --- a/testing/testsuites/kernel/sched/cases/api_task_test_002.c +++ b/testing/testsuites/kernel/sched/cases/api_task_test_002.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_task_test_002.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_task_test_003.c b/testing/testsuites/kernel/sched/cases/api_task_test_003.c index b2dd239bf92..d64fe288a25 100644 --- a/testing/testsuites/kernel/sched/cases/api_task_test_003.c +++ b/testing/testsuites/kernel/sched/cases/api_task_test_003.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_task_test_003.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_task_test_004.c b/testing/testsuites/kernel/sched/cases/api_task_test_004.c index 915c31477d5..13415bde505 100644 --- a/testing/testsuites/kernel/sched/cases/api_task_test_004.c +++ b/testing/testsuites/kernel/sched/cases/api_task_test_004.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_task_test_004.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_task_test_005.c b/testing/testsuites/kernel/sched/cases/api_task_test_005.c index 2d46a75ade0..187af109361 100644 --- a/testing/testsuites/kernel/sched/cases/api_task_test_005.c +++ b/testing/testsuites/kernel/sched/cases/api_task_test_005.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_task_test_005.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_task_test_006.c b/testing/testsuites/kernel/sched/cases/api_task_test_006.c index c0031409c56..844993d381a 100644 --- a/testing/testsuites/kernel/sched/cases/api_task_test_006.c +++ b/testing/testsuites/kernel/sched/cases/api_task_test_006.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_task_test_006.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cases/api_task_test_007.c b/testing/testsuites/kernel/sched/cases/api_task_test_007.c index de279236b12..d4fb7003037 100644 --- a/testing/testsuites/kernel/sched/cases/api_task_test_007.c +++ b/testing/testsuites/kernel/sched/cases/api_task_test_007.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cases/api_task_test_007.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/cmocka_sched_test.c b/testing/testsuites/kernel/sched/cmocka_sched_test.c index c71569a47bb..4eecf2da1d8 100644 --- a/testing/testsuites/kernel/sched/cmocka_sched_test.c +++ b/testing/testsuites/kernel/sched/cmocka_sched_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/cmocka_sched_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/common/test_sched_common.c b/testing/testsuites/kernel/sched/common/test_sched_common.c index 4495a2a2a76..fd240457945 100644 --- a/testing/testsuites/kernel/sched/common/test_sched_common.c +++ b/testing/testsuites/kernel/sched/common/test_sched_common.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/common/test_sched_common.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/sched/include/SchedTest.h b/testing/testsuites/kernel/sched/include/SchedTest.h index a1070fdabbc..a77857c9a68 100644 --- a/testing/testsuites/kernel/sched/include/SchedTest.h +++ b/testing/testsuites/kernel/sched/include/SchedTest.h @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/sched/include/SchedTest.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 + * 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. + * 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. * ****************************************************************************/ @@ -126,4 +128,4 @@ void test_nuttx_sched_task06(FAR void **state); void test_nuttx_sched_task07(FAR void **state); -#endif \ No newline at end of file +#endif diff --git a/testing/testsuites/kernel/socket/cases/net_socket_test_005.c b/testing/testsuites/kernel/socket/cases/net_socket_test_005.c index 7b9853d05c2..8932e76ca70 100644 --- a/testing/testsuites/kernel/socket/cases/net_socket_test_005.c +++ b/testing/testsuites/kernel/socket/cases/net_socket_test_005.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/socket/cases/net_socket_test_005.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/socket/cases/net_socket_test_006.c b/testing/testsuites/kernel/socket/cases/net_socket_test_006.c index c959e75cd2e..0b106695568 100644 --- a/testing/testsuites/kernel/socket/cases/net_socket_test_006.c +++ b/testing/testsuites/kernel/socket/cases/net_socket_test_006.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/socket/cases/net_socket_test_006.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/socket/cases/net_socket_test_008.c b/testing/testsuites/kernel/socket/cases/net_socket_test_008.c index c3268f78b68..a757a0c5945 100644 --- a/testing/testsuites/kernel/socket/cases/net_socket_test_008.c +++ b/testing/testsuites/kernel/socket/cases/net_socket_test_008.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/socket/cases/net_socket_test_008.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/socket/cases/net_socket_test_009.c b/testing/testsuites/kernel/socket/cases/net_socket_test_009.c index 56ad3ced6a1..b847052196f 100644 --- a/testing/testsuites/kernel/socket/cases/net_socket_test_009.c +++ b/testing/testsuites/kernel/socket/cases/net_socket_test_009.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/socket/cases/net_socket_test_009.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/socket/cases/net_socket_test_010.c b/testing/testsuites/kernel/socket/cases/net_socket_test_010.c index d344709ea90..1f049c4e8ab 100644 --- a/testing/testsuites/kernel/socket/cases/net_socket_test_010.c +++ b/testing/testsuites/kernel/socket/cases/net_socket_test_010.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/socket/cases/net_socket_test_010.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/socket/cases/net_socket_test_011.c b/testing/testsuites/kernel/socket/cases/net_socket_test_011.c index f10c04aaa66..90b13f8b047 100644 --- a/testing/testsuites/kernel/socket/cases/net_socket_test_011.c +++ b/testing/testsuites/kernel/socket/cases/net_socket_test_011.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/socket/cases/net_socket_test_011.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/socket/cmocka_socket_test.c b/testing/testsuites/kernel/socket/cmocka_socket_test.c index 5f694031c91..7b6627272f0 100644 --- a/testing/testsuites/kernel/socket/cmocka_socket_test.c +++ b/testing/testsuites/kernel/socket/cmocka_socket_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/socket/cmocka_socket_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/socket/include/SocketTest.h b/testing/testsuites/kernel/socket/include/SocketTest.h index 56440c3fcfa..47700fed234 100644 --- a/testing/testsuites/kernel/socket/include/SocketTest.h +++ b/testing/testsuites/kernel/socket/include/SocketTest.h @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/socket/include/SocketTest.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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/Fstatfs_test.c b/testing/testsuites/kernel/syscall/cases/Fstatfs_test.c index d08113ebea4..3c356db8b53 100644 --- a/testing/testsuites/kernel/syscall/cases/Fstatfs_test.c +++ b/testing/testsuites/kernel/syscall/cases/Fstatfs_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/Fstatfs_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/accept_test.c b/testing/testsuites/kernel/syscall/cases/accept_test.c index 2954a906835..b1d16c17f4d 100644 --- a/testing/testsuites/kernel/syscall/cases/accept_test.c +++ b/testing/testsuites/kernel/syscall/cases/accept_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/accept_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/bind_test.c b/testing/testsuites/kernel/syscall/cases/bind_test.c index e035bf8a1f6..1ae9cf39e42 100644 --- a/testing/testsuites/kernel/syscall/cases/bind_test.c +++ b/testing/testsuites/kernel/syscall/cases/bind_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/bind_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/chdir_test.c b/testing/testsuites/kernel/syscall/cases/chdir_test.c index 73c8d750c36..335f121bd8e 100644 --- a/testing/testsuites/kernel/syscall/cases/chdir_test.c +++ b/testing/testsuites/kernel/syscall/cases/chdir_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/chdir_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/clock_gettime_test.c b/testing/testsuites/kernel/syscall/cases/clock_gettime_test.c index 60495c72b6b..4d2082ca3ad 100644 --- a/testing/testsuites/kernel/syscall/cases/clock_gettime_test.c +++ b/testing/testsuites/kernel/syscall/cases/clock_gettime_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/clock_gettime_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/clock_nanosleep_test.c b/testing/testsuites/kernel/syscall/cases/clock_nanosleep_test.c index f0a45ff6118..6ae37f7daa4 100644 --- a/testing/testsuites/kernel/syscall/cases/clock_nanosleep_test.c +++ b/testing/testsuites/kernel/syscall/cases/clock_nanosleep_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/clock_nanosleep_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/clock_settime_test.c b/testing/testsuites/kernel/syscall/cases/clock_settime_test.c index b819508a852..65b80e513e7 100644 --- a/testing/testsuites/kernel/syscall/cases/clock_settime_test.c +++ b/testing/testsuites/kernel/syscall/cases/clock_settime_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/clock_settime_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/close_test.c b/testing/testsuites/kernel/syscall/cases/close_test.c index 1893d0d681e..1d62f92ecb7 100644 --- a/testing/testsuites/kernel/syscall/cases/close_test.c +++ b/testing/testsuites/kernel/syscall/cases/close_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/close_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/connect_test.c b/testing/testsuites/kernel/syscall/cases/connect_test.c index 9e252b47026..530e9c8fdb5 100644 --- a/testing/testsuites/kernel/syscall/cases/connect_test.c +++ b/testing/testsuites/kernel/syscall/cases/connect_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/connect_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/creat_test.c b/testing/testsuites/kernel/syscall/cases/creat_test.c index ccf0239c0ca..65a7ddcbc78 100644 --- a/testing/testsuites/kernel/syscall/cases/creat_test.c +++ b/testing/testsuites/kernel/syscall/cases/creat_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/creat_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/dup2_test.c b/testing/testsuites/kernel/syscall/cases/dup2_test.c index 7d6a605f80d..4a354463921 100644 --- a/testing/testsuites/kernel/syscall/cases/dup2_test.c +++ b/testing/testsuites/kernel/syscall/cases/dup2_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/dup2_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/dup_test.c b/testing/testsuites/kernel/syscall/cases/dup_test.c index 03fec26e0d4..7197b5713d7 100644 --- a/testing/testsuites/kernel/syscall/cases/dup_test.c +++ b/testing/testsuites/kernel/syscall/cases/dup_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/dup_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/fcntl_test.c b/testing/testsuites/kernel/syscall/cases/fcntl_test.c index a2b97c489f9..0897f65b4c8 100644 --- a/testing/testsuites/kernel/syscall/cases/fcntl_test.c +++ b/testing/testsuites/kernel/syscall/cases/fcntl_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/fcntl_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/fpathconf_test.c b/testing/testsuites/kernel/syscall/cases/fpathconf_test.c index 03ea5b0a17d..8b9f7ea98e1 100644 --- a/testing/testsuites/kernel/syscall/cases/fpathconf_test.c +++ b/testing/testsuites/kernel/syscall/cases/fpathconf_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/fpathconf_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/fsync_test.c b/testing/testsuites/kernel/syscall/cases/fsync_test.c index 1d8cf4fa2ae..0e4ad49af22 100644 --- a/testing/testsuites/kernel/syscall/cases/fsync_test.c +++ b/testing/testsuites/kernel/syscall/cases/fsync_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/fsync_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/ftruncate_test.c b/testing/testsuites/kernel/syscall/cases/ftruncate_test.c index a08799ebf9b..e78ed0e86a1 100644 --- a/testing/testsuites/kernel/syscall/cases/ftruncate_test.c +++ b/testing/testsuites/kernel/syscall/cases/ftruncate_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/ftruncate_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/getTimeofday_test.c b/testing/testsuites/kernel/syscall/cases/getTimeofday_test.c index 992edeba097..7c7cb5c733a 100644 --- a/testing/testsuites/kernel/syscall/cases/getTimeofday_test.c +++ b/testing/testsuites/kernel/syscall/cases/getTimeofday_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/getTimeofday_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/getcwd_test.c b/testing/testsuites/kernel/syscall/cases/getcwd_test.c index 49153b45e36..2422a985fd9 100644 --- a/testing/testsuites/kernel/syscall/cases/getcwd_test.c +++ b/testing/testsuites/kernel/syscall/cases/getcwd_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/getcwd_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/getegid_test.c b/testing/testsuites/kernel/syscall/cases/getegid_test.c index f8f1edb2fc8..909c5b88024 100644 --- a/testing/testsuites/kernel/syscall/cases/getegid_test.c +++ b/testing/testsuites/kernel/syscall/cases/getegid_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/getegid_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/geteuid_test.c b/testing/testsuites/kernel/syscall/cases/geteuid_test.c index 4a561db34ac..bc2cca986a6 100644 --- a/testing/testsuites/kernel/syscall/cases/geteuid_test.c +++ b/testing/testsuites/kernel/syscall/cases/geteuid_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/geteuid_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/getgid_test.c b/testing/testsuites/kernel/syscall/cases/getgid_test.c index 7fafa385495..b7c7cb3c256 100644 --- a/testing/testsuites/kernel/syscall/cases/getgid_test.c +++ b/testing/testsuites/kernel/syscall/cases/getgid_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/getgid_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/gethostname_test.c b/testing/testsuites/kernel/syscall/cases/gethostname_test.c index 4b729c629b1..2e607df5e22 100644 --- a/testing/testsuites/kernel/syscall/cases/gethostname_test.c +++ b/testing/testsuites/kernel/syscall/cases/gethostname_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/gethostname_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/getitimer_test.c b/testing/testsuites/kernel/syscall/cases/getitimer_test.c index 1b43cbcfc5d..0de92ec9274 100644 --- a/testing/testsuites/kernel/syscall/cases/getitimer_test.c +++ b/testing/testsuites/kernel/syscall/cases/getitimer_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/getitimer_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/getpeername_test.c b/testing/testsuites/kernel/syscall/cases/getpeername_test.c index be725e13854..e5c82b6c118 100644 --- a/testing/testsuites/kernel/syscall/cases/getpeername_test.c +++ b/testing/testsuites/kernel/syscall/cases/getpeername_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/getpeername_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/getpid_test.c b/testing/testsuites/kernel/syscall/cases/getpid_test.c index 3dc5915c1de..a1e64725c85 100644 --- a/testing/testsuites/kernel/syscall/cases/getpid_test.c +++ b/testing/testsuites/kernel/syscall/cases/getpid_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/getpid_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/getppid_test.c b/testing/testsuites/kernel/syscall/cases/getppid_test.c index 1f8a91cdaa8..b98c105c023 100644 --- a/testing/testsuites/kernel/syscall/cases/getppid_test.c +++ b/testing/testsuites/kernel/syscall/cases/getppid_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/getppid_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/getsocketopt_test.c b/testing/testsuites/kernel/syscall/cases/getsocketopt_test.c index 4674e61d3f4..5f7898ffb4f 100644 --- a/testing/testsuites/kernel/syscall/cases/getsocketopt_test.c +++ b/testing/testsuites/kernel/syscall/cases/getsocketopt_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/getsocketopt_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/getuid_test.c b/testing/testsuites/kernel/syscall/cases/getuid_test.c index c2ffc1921a0..f8ba385cc4b 100644 --- a/testing/testsuites/kernel/syscall/cases/getuid_test.c +++ b/testing/testsuites/kernel/syscall/cases/getuid_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/getuid_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/listen_test.c b/testing/testsuites/kernel/syscall/cases/listen_test.c index a533b523ade..e8099a2709d 100644 --- a/testing/testsuites/kernel/syscall/cases/listen_test.c +++ b/testing/testsuites/kernel/syscall/cases/listen_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/listen_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/lseek_test.c b/testing/testsuites/kernel/syscall/cases/lseek_test.c index 5116d7126ca..cef521915e7 100644 --- a/testing/testsuites/kernel/syscall/cases/lseek_test.c +++ b/testing/testsuites/kernel/syscall/cases/lseek_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/lseek_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/lstat_test.c b/testing/testsuites/kernel/syscall/cases/lstat_test.c index af25f6a0620..19a71cc946a 100644 --- a/testing/testsuites/kernel/syscall/cases/lstat_test.c +++ b/testing/testsuites/kernel/syscall/cases/lstat_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/lstat_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/memcmp_test.c b/testing/testsuites/kernel/syscall/cases/memcmp_test.c index 65394738be1..3e7e0b81709 100644 --- a/testing/testsuites/kernel/syscall/cases/memcmp_test.c +++ b/testing/testsuites/kernel/syscall/cases/memcmp_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/memcmp_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/memcpy_test.c b/testing/testsuites/kernel/syscall/cases/memcpy_test.c index 0628b4a0e6a..60733646d37 100644 --- a/testing/testsuites/kernel/syscall/cases/memcpy_test.c +++ b/testing/testsuites/kernel/syscall/cases/memcpy_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/memcpy_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/memset_test.c b/testing/testsuites/kernel/syscall/cases/memset_test.c index 9ec1bbf40e9..5a40cea4e7f 100644 --- a/testing/testsuites/kernel/syscall/cases/memset_test.c +++ b/testing/testsuites/kernel/syscall/cases/memset_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/memset_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/mkdir_test.c b/testing/testsuites/kernel/syscall/cases/mkdir_test.c index c908e69a1e7..70b276aa065 100644 --- a/testing/testsuites/kernel/syscall/cases/mkdir_test.c +++ b/testing/testsuites/kernel/syscall/cases/mkdir_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/mkdir_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/nansleep_test.c b/testing/testsuites/kernel/syscall/cases/nansleep_test.c index 44c23403bee..b9f498964cb 100644 --- a/testing/testsuites/kernel/syscall/cases/nansleep_test.c +++ b/testing/testsuites/kernel/syscall/cases/nansleep_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/nansleep_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/pathconf_test.c b/testing/testsuites/kernel/syscall/cases/pathconf_test.c index 3daa089676a..3ca5aaf0790 100644 --- a/testing/testsuites/kernel/syscall/cases/pathconf_test.c +++ b/testing/testsuites/kernel/syscall/cases/pathconf_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/pathconf_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/pipe_test.c b/testing/testsuites/kernel/syscall/cases/pipe_test.c index 0edacef0b30..10b0b47d892 100644 --- a/testing/testsuites/kernel/syscall/cases/pipe_test.c +++ b/testing/testsuites/kernel/syscall/cases/pipe_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/pipe_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/pread_test.c b/testing/testsuites/kernel/syscall/cases/pread_test.c index dfa9bcd6ffc..8877e5b999b 100644 --- a/testing/testsuites/kernel/syscall/cases/pread_test.c +++ b/testing/testsuites/kernel/syscall/cases/pread_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/pread_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/pwrite_test.c b/testing/testsuites/kernel/syscall/cases/pwrite_test.c index 13d452c8905..3c91514f79a 100644 --- a/testing/testsuites/kernel/syscall/cases/pwrite_test.c +++ b/testing/testsuites/kernel/syscall/cases/pwrite_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/pwrite_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/read_test.c b/testing/testsuites/kernel/syscall/cases/read_test.c index 41b12659acc..45af7bba9e7 100644 --- a/testing/testsuites/kernel/syscall/cases/read_test.c +++ b/testing/testsuites/kernel/syscall/cases/read_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/read_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/readdir_test.c b/testing/testsuites/kernel/syscall/cases/readdir_test.c index 09555c2e9be..13d123e62c1 100644 --- a/testing/testsuites/kernel/syscall/cases/readdir_test.c +++ b/testing/testsuites/kernel/syscall/cases/readdir_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/readdir_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/recvfrom_test.c b/testing/testsuites/kernel/syscall/cases/recvfrom_test.c index fb9d5907d3b..b07d24a9999 100644 --- a/testing/testsuites/kernel/syscall/cases/recvfrom_test.c +++ b/testing/testsuites/kernel/syscall/cases/recvfrom_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/recvfrom_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/rmdir_test.c b/testing/testsuites/kernel/syscall/cases/rmdir_test.c index 063e6b63435..8068a22539d 100644 --- a/testing/testsuites/kernel/syscall/cases/rmdir_test.c +++ b/testing/testsuites/kernel/syscall/cases/rmdir_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/rmdir_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/sched_test.c b/testing/testsuites/kernel/syscall/cases/sched_test.c index 9aa5edd62bc..65f227a464a 100644 --- a/testing/testsuites/kernel/syscall/cases/sched_test.c +++ b/testing/testsuites/kernel/syscall/cases/sched_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/sched_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/setsocketopt01_test.c b/testing/testsuites/kernel/syscall/cases/setsocketopt01_test.c index 8e2bb42efc1..b877f6f01d0 100644 --- a/testing/testsuites/kernel/syscall/cases/setsocketopt01_test.c +++ b/testing/testsuites/kernel/syscall/cases/setsocketopt01_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/setsocketopt01_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/socket_test.c b/testing/testsuites/kernel/syscall/cases/socket_test.c index 7bad8a0baea..b6a1bf93065 100644 --- a/testing/testsuites/kernel/syscall/cases/socket_test.c +++ b/testing/testsuites/kernel/syscall/cases/socket_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/socket_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/socketpair_test.c b/testing/testsuites/kernel/syscall/cases/socketpair_test.c index 2b4e6209d69..60021d643d1 100644 --- a/testing/testsuites/kernel/syscall/cases/socketpair_test.c +++ b/testing/testsuites/kernel/syscall/cases/socketpair_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/socketpair_test.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 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 + * 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. + * 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. * ****************************************************************************/ @@ -227,4 +229,4 @@ void test_nuttx_syscall_socketpair02(FAR void **state) } #undef UCLINUX -#endif \ No newline at end of file +#endif diff --git a/testing/testsuites/kernel/syscall/cases/symlink_test.c b/testing/testsuites/kernel/syscall/cases/symlink_test.c index 40f653c1f38..a676248e402 100644 --- a/testing/testsuites/kernel/syscall/cases/symlink_test.c +++ b/testing/testsuites/kernel/syscall/cases/symlink_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/symlink_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/time_test.c b/testing/testsuites/kernel/syscall/cases/time_test.c index 9a17d3572e5..a5aea765348 100644 --- a/testing/testsuites/kernel/syscall/cases/time_test.c +++ b/testing/testsuites/kernel/syscall/cases/time_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/time_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/timer_create_test.c b/testing/testsuites/kernel/syscall/cases/timer_create_test.c index ac3bf7abef7..f7d95ea5910 100644 --- a/testing/testsuites/kernel/syscall/cases/timer_create_test.c +++ b/testing/testsuites/kernel/syscall/cases/timer_create_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/timer_create_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/timer_delete_test.c b/testing/testsuites/kernel/syscall/cases/timer_delete_test.c index d8bf5ae1ea1..3d2d7a49dac 100644 --- a/testing/testsuites/kernel/syscall/cases/timer_delete_test.c +++ b/testing/testsuites/kernel/syscall/cases/timer_delete_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/timer_delete_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/timer_gettime_test.c b/testing/testsuites/kernel/syscall/cases/timer_gettime_test.c index 772678956fa..b3829209149 100644 --- a/testing/testsuites/kernel/syscall/cases/timer_gettime_test.c +++ b/testing/testsuites/kernel/syscall/cases/timer_gettime_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/timer_gettime_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/truncate_test.c b/testing/testsuites/kernel/syscall/cases/truncate_test.c index 6589cd51ad3..3162bcfd06e 100644 --- a/testing/testsuites/kernel/syscall/cases/truncate_test.c +++ b/testing/testsuites/kernel/syscall/cases/truncate_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/truncate_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/unlink_test.c b/testing/testsuites/kernel/syscall/cases/unlink_test.c index 78b3e6f579c..f3a7e1697b5 100644 --- a/testing/testsuites/kernel/syscall/cases/unlink_test.c +++ b/testing/testsuites/kernel/syscall/cases/unlink_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/unlink_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cases/write_test.c b/testing/testsuites/kernel/syscall/cases/write_test.c index dcd10cc362d..8b274f66c60 100644 --- a/testing/testsuites/kernel/syscall/cases/write_test.c +++ b/testing/testsuites/kernel/syscall/cases/write_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cases/write_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/cmocka_syscall_test.c b/testing/testsuites/kernel/syscall/cmocka_syscall_test.c index 3fa4c101c9b..e1fceb592ba 100644 --- a/testing/testsuites/kernel/syscall/cmocka_syscall_test.c +++ b/testing/testsuites/kernel/syscall/cmocka_syscall_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/cmocka_syscall_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/syscall/common/test_syscall_common.c b/testing/testsuites/kernel/syscall/common/test_syscall_common.c index def66d1b6fe..5665fb0d701 100644 --- a/testing/testsuites/kernel/syscall/common/test_syscall_common.c +++ b/testing/testsuites/kernel/syscall/common/test_syscall_common.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/common/test_syscall_common.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 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 + * 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. + * 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. * ****************************************************************************/ @@ -764,4 +766,4 @@ int safe_listen(int socket, int backlog) return rval; } -#endif \ No newline at end of file +#endif diff --git a/testing/testsuites/kernel/syscall/include/SyscallTest.h b/testing/testsuites/kernel/syscall/include/SyscallTest.h index 786aea21a1d..d7e931c3f5e 100644 --- a/testing/testsuites/kernel/syscall/include/SyscallTest.h +++ b/testing/testsuites/kernel/syscall/include/SyscallTest.h @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/syscall/include/SyscallTest.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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/time/cases/clock_test_clock01.c b/testing/testsuites/kernel/time/cases/clock_test_clock01.c index a0cedb89166..6443495e2c9 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_clock01.c +++ b/testing/testsuites/kernel/time/cases/clock_test_clock01.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/time/cases/clock_test_clock01.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/time/cases/clock_test_clock02.c b/testing/testsuites/kernel/time/cases/clock_test_clock02.c index ebf35522723..9e2e0c5f0d7 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_clock02.c +++ b/testing/testsuites/kernel/time/cases/clock_test_clock02.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/time/cases/clock_test_clock02.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/time/cases/clock_test_smoke.c b/testing/testsuites/kernel/time/cases/clock_test_smoke.c index 7de690d7237..3b8948958f7 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_smoke.c +++ b/testing/testsuites/kernel/time/cases/clock_test_smoke.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/time/cases/clock_test_smoke.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/time/cases/clock_test_timer01.c b/testing/testsuites/kernel/time/cases/clock_test_timer01.c index 5146db37251..24f59391fd7 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_timer01.c +++ b/testing/testsuites/kernel/time/cases/clock_test_timer01.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/time/cases/clock_test_timer01.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/time/cases/clock_test_timer03.c b/testing/testsuites/kernel/time/cases/clock_test_timer03.c index 54228d4ecb4..7539f4479f6 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_timer03.c +++ b/testing/testsuites/kernel/time/cases/clock_test_timer03.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/time/cases/clock_test_timer03.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/time/cases/clock_test_timer04.c b/testing/testsuites/kernel/time/cases/clock_test_timer04.c index a93202ea949..832c6978408 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_timer04.c +++ b/testing/testsuites/kernel/time/cases/clock_test_timer04.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/time/cases/clock_test_timer04.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/time/cases/clock_test_timer05.c b/testing/testsuites/kernel/time/cases/clock_test_timer05.c index a0754a26cff..c9903c3e36c 100644 --- a/testing/testsuites/kernel/time/cases/clock_test_timer05.c +++ b/testing/testsuites/kernel/time/cases/clock_test_timer05.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/time/cases/clock_test_timer05.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/time/cmocka_time_test.c b/testing/testsuites/kernel/time/cmocka_time_test.c index 4d36dcd76f4..855aa5dba98 100644 --- a/testing/testsuites/kernel/time/cmocka_time_test.c +++ b/testing/testsuites/kernel/time/cmocka_time_test.c @@ -1,20 +1,22 @@ /**************************************************************************** * apps/testing/testsuites/kernel/time/cmocka_time_test.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 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 + * 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. + * 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. * ****************************************************************************/ diff --git a/testing/testsuites/kernel/time/include/TimeTest.h b/testing/testsuites/kernel/time/include/TimeTest.h index 79d25937589..c0d344d1a7f 100644 --- a/testing/testsuites/kernel/time/include/TimeTest.h +++ b/testing/testsuites/kernel/time/include/TimeTest.h @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/testsuites/kernel/time/include/TimeTest.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 diff --git a/testing/timerjitter/CMakeLists.txt b/testing/timerjitter/CMakeLists.txt index ccfd9f6c334..41a369aa2f0 100644 --- a/testing/timerjitter/CMakeLists.txt +++ b/testing/timerjitter/CMakeLists.txt @@ -1,7 +1,7 @@ # ############################################################################## # apps/testing/timerjitter/CMakeLists.txt # -# Copyright (C) 2024 Xiaomi Corporation +# 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 diff --git a/testing/timerjitter/Make.defs b/testing/timerjitter/Make.defs index 3d4e9a8f0db..f5ee5351890 100644 --- a/testing/timerjitter/Make.defs +++ b/testing/timerjitter/Make.defs @@ -1,7 +1,7 @@ ############################################################################ # apps/testing/timerjitter/Make.defs # -# Copyright (C) 2024 Xiaomi Corporation +# 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 diff --git a/testing/timerjitter/Makefile b/testing/timerjitter/Makefile index 99290c1085c..993f06fff7f 100644 --- a/testing/timerjitter/Makefile +++ b/testing/timerjitter/Makefile @@ -1,18 +1,24 @@ +############################################################################ +# apps/testing/timerjitter/Makefile # -# Copyright (C) 2024 Xiaomi Corporation +# SPDX-License-Identifier: Apache-2.0 # -# Licensed 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 +# 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 +# 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. +# 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. # +############################################################################ include $(APPDIR)/Make.defs diff --git a/testing/timerjitter/timerjitter.c b/testing/timerjitter/timerjitter.c index 7972f902c97..3e335339127 100644 --- a/testing/timerjitter/timerjitter.c +++ b/testing/timerjitter/timerjitter.c @@ -1,6 +1,8 @@ /**************************************************************************** * apps/testing/timerjitter/timerjitter.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/testing/uclibcxx_test/Make.defs b/testing/uclibcxx_test/Make.defs index b87be4f4286..2b995217380 100644 --- a/testing/uclibcxx_test/Make.defs +++ b/testing/uclibcxx_test/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/uclibcxx_test/Make.defs # +# 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/testing/uclibcxx_test/Makefile b/testing/uclibcxx_test/Makefile index 19e87a1c67d..464d7b8fec2 100644 --- a/testing/uclibcxx_test/Makefile +++ b/testing/uclibcxx_test/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/uclibcxx_test/Makefile # +# 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/testing/unity/CMakeLists.txt b/testing/unity/CMakeLists.txt index d2734897f8a..9aef4189996 100644 --- a/testing/unity/CMakeLists.txt +++ b/testing/unity/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/testing/unity/CMakeLists.txt # +# 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 diff --git a/testing/unity/Make.defs b/testing/unity/Make.defs index 283cbe05c3b..84434e4e9c5 100644 --- a/testing/unity/Make.defs +++ b/testing/unity/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/unity/Make.defs # +# 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/testing/unity/Makefile b/testing/unity/Makefile index 88442becd13..f3b45fdc644 100644 --- a/testing/unity/Makefile +++ b/testing/unity/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/unity/Makefile # +# 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/testing/x86-64-ABI/Make.defs b/testing/x86-64-ABI/Make.defs index c520da71b4a..4c5f32cdd01 100644 --- a/testing/x86-64-ABI/Make.defs +++ b/testing/x86-64-ABI/Make.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/system/uorb/Make.defs # +# 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/testing/x86-64-ABI/Makefile b/testing/x86-64-ABI/Makefile index f844114b0bd..927008f33c8 100644 --- a/testing/x86-64-ABI/Makefile +++ b/testing/x86-64-ABI/Makefile @@ -1,6 +1,8 @@ ############################################################################ # apps/testing/x86-64-ABI/Makefile # +# 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 From 812ad8d99a2cc16d1cf90cb82f048cca4bb0b0d5 Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 12:41:39 +0100 Subject: [PATCH 37/38] tools: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea --- tools/CMakeLists.txt | 2 ++ tools/WASI-SDK.defs | 2 ++ tools/Wasm.mk | 3 ++- tools/Wasm/CMakeLists.txt | 2 ++ tools/Wasm/WASI-SDK.cmake | 2 ++ tools/check-hash.sh | 2 ++ tools/host_sysinfo.py | 21 +++++++++++++++++++++ tools/mkimport.sh | 5 ++++- tools/mkkconfig.sh | 5 ++++- tools/mkromfsimg.sh | 2 ++ tools/mksymtab.sh | 2 ++ tools/parse_sysinfo.py | 21 +++++++++++++++++++++ tools/pre-commit | 22 +++++++++++++++++++++- 13 files changed, 87 insertions(+), 4 deletions(-) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index c473bdbe029..48204653a41 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/tools/CMakeLists.txt # +# 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 diff --git a/tools/WASI-SDK.defs b/tools/WASI-SDK.defs index 1bbb3a6b68d..99e0062e280 100644 --- a/tools/WASI-SDK.defs +++ b/tools/WASI-SDK.defs @@ -1,6 +1,8 @@ ############################################################################ # apps/tools/WASI-SDK.defs # +# 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/tools/Wasm.mk b/tools/Wasm.mk index 28627c115d7..a936a768c3c 100644 --- a/tools/Wasm.mk +++ b/tools/Wasm.mk @@ -1,7 +1,8 @@ - ############################################################################ # apps/tools/Wasm.mk # +# 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/tools/Wasm/CMakeLists.txt b/tools/Wasm/CMakeLists.txt index 6675834577c..ca7fe114c75 100644 --- a/tools/Wasm/CMakeLists.txt +++ b/tools/Wasm/CMakeLists.txt @@ -1,6 +1,8 @@ # ############################################################################## # apps/tools/Wasm/CMakeLists.txt # +# 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 diff --git a/tools/Wasm/WASI-SDK.cmake b/tools/Wasm/WASI-SDK.cmake index 9d06fd99b47..5f5309e3fa8 100644 --- a/tools/Wasm/WASI-SDK.cmake +++ b/tools/Wasm/WASI-SDK.cmake @@ -1,6 +1,8 @@ # ############################################################################## # apps/tools/Wasm/WASI-SDK.cmake # +# 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 diff --git a/tools/check-hash.sh b/tools/check-hash.sh index cdf56bb0550..f20e07d6b79 100755 --- a/tools/check-hash.sh +++ b/tools/check-hash.sh @@ -2,6 +2,8 @@ ############################################################################ # apps/tools/check-hash.sh # +# 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/tools/host_sysinfo.py b/tools/host_sysinfo.py index 2d25a0e0fda..f24689f1f0b 100755 --- a/tools/host_sysinfo.py +++ b/tools/host_sysinfo.py @@ -1,4 +1,25 @@ #!/usr/bin/env python3 +############################################################################ +# apps/tools/host_sysinfo.py +# +# 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. +# +############################################################################ import argparse import os diff --git a/tools/mkimport.sh b/tools/mkimport.sh index e9e2e766484..c91b6321b6a 100755 --- a/tools/mkimport.sh +++ b/tools/mkimport.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash +############################################################################ # apps/tools/mkimport.sh # +# 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 @@ -16,7 +19,7 @@ # License for the specific language governing permissions and limitations # under the License. # - +############################################################################ # Get the input parameter list USAGE=" diff --git a/tools/mkkconfig.sh b/tools/mkkconfig.sh index 1577de531ff..15db829d48f 100755 --- a/tools/mkkconfig.sh +++ b/tools/mkkconfig.sh @@ -1,6 +1,9 @@ #!/usr/bin/env bash +############################################################################ # apps/tools/mkkconfig.sh # +# 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 @@ -16,7 +19,7 @@ # License for the specific language governing permissions and limitations # under the License. # - +############################################################################ # Get the input parameter list USAGE="USAGE: mkkconfig.sh [-d] [-h] [-m ] [-o ]" diff --git a/tools/mkromfsimg.sh b/tools/mkromfsimg.sh index 45228a85fe0..8e3ceac6f58 100755 --- a/tools/mkromfsimg.sh +++ b/tools/mkromfsimg.sh @@ -2,6 +2,8 @@ ############################################################################ # apps/tools/mkromfsimg.sh # +# 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/tools/mksymtab.sh b/tools/mksymtab.sh index 400a196ba80..744aa05fe7a 100755 --- a/tools/mksymtab.sh +++ b/tools/mksymtab.sh @@ -2,6 +2,8 @@ ############################################################################ # apps/tools/mksymtab.sh # +# 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/tools/parse_sysinfo.py b/tools/parse_sysinfo.py index 428c1ac095e..59a67c59752 100644 --- a/tools/parse_sysinfo.py +++ b/tools/parse_sysinfo.py @@ -1,4 +1,25 @@ #!/usr/bin/env python3 +############################################################################ +# apps/tools/parse_sysinfo.py +# +# 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. +# +############################################################################ import argparse import os diff --git a/tools/pre-commit b/tools/pre-commit index f9210fc7cef..4f5de51c2e1 100755 --- a/tools/pre-commit +++ b/tools/pre-commit @@ -1,5 +1,25 @@ #!/usr/bin/env bash -# tools/pre-commit +############################################################################ +# apps/tools/pre-commit +# +# 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. +# +############################################################################ # git hook to run check-patch on the output and stop any commits # that do not pass. Note, only for git-commit, and not for any of the # other scenarios From a53d1222ab897be24fb269f130793d03fd0ec11c Mon Sep 17 00:00:00 2001 From: Alin Jerpelea Date: Sun, 29 Dec 2024 12:33:36 +0100 Subject: [PATCH 38/38] videoutils/x264: migrate license to ASF Xiaomi has submitted the SGA and we can migrate the licenses to ASF Signed-off-by: Alin Jerpelea --- videoutils/x264/CMakeLists.txt | 22 ++++++++++++++-------- videoutils/x264/Make.defs | 24 +++++++++++++++--------- videoutils/x264/Makefile | 24 +++++++++++++++--------- 3 files changed, 44 insertions(+), 26 deletions(-) diff --git a/videoutils/x264/CMakeLists.txt b/videoutils/x264/CMakeLists.txt index 806c402889c..defe984d77e 100644 --- a/videoutils/x264/CMakeLists.txt +++ b/videoutils/x264/CMakeLists.txt @@ -1,18 +1,24 @@ +############################################################################ +# apps/videoutils/x264/CMakeLists.txt # -# Copyright (C) 2024 Xiaomi Corporation +# SPDX-License-Identifier: Apache-2.0 # -# Licensed 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 +# 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 +# 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. +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. # +############################################################################ if(CONFIG_VIDEOUTILS_LIBX264) diff --git a/videoutils/x264/Make.defs b/videoutils/x264/Make.defs index 37cfb3e3d84..5d36825bbbe 100644 --- a/videoutils/x264/Make.defs +++ b/videoutils/x264/Make.defs @@ -1,18 +1,24 @@ +############################################################################ +# apps/videoutils/x264/Make.defs # -# Copyright (C) 2023 Xiaomi Corporation +# SPDX-License-Identifier: Apache-2.0 # -# Licensed 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 +# 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 +# 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. +# 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. # +############################################################################ ifneq ($(CONFIG_VIDEOUTILS_LIBX264),) CONFIGURED_APPS += $(APPDIR)/videoutils/x264 diff --git a/videoutils/x264/Makefile b/videoutils/x264/Makefile index 7fe775cc7b9..8faf0771a7f 100644 --- a/videoutils/x264/Makefile +++ b/videoutils/x264/Makefile @@ -1,18 +1,24 @@ +############################################################################ +# apps/videoutils/x264/Makefile # -# Copyright (C) 2023 Xiaomi Corporation +# SPDX-License-Identifier: Apache-2.0 # -# Licensed 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 +# 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 +# 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. +# 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. # +############################################################################ ifeq ($(DST_PATH),) include $(APPDIR)/Make.defs