util/: use SPDX license and copyright headers

Signed-off-by: Leah Rowe <leah@libreboot.org>
btrfsvols
Leah Rowe 2023-09-25 02:49:34 +01:00
parent 208620198c
commit b727f9666b
5 changed files with 10 additions and 85 deletions

View File

@ -1,22 +1,5 @@
# Copyright (c) 2023 Nicholas Chin # SPDX-License-Identifier: MIT
# # SPDX-FileCopyrightText: 2023 Nicholas Chin
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
CC=cc CC=cc
CFLAGS=-Wall -Wextra -Werror -O2 -pedantic CFLAGS=-Wall -Wextra -Werror -O2 -pedantic

View File

@ -1,24 +1,5 @@
/* /* SPDX-License-Identifier: MIT */
* Copyright (c) 2023 Nicholas Chin /* SPDX-FileCopyrightText: 2023 Nicholas Chin */
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include <sys/io.h> #include <sys/io.h>
#include <sys/mman.h> #include <sys/mman.h>

View File

@ -1,27 +1,5 @@
# # SPDX-License-Identifier: MIT
# Makefile for nvmutils # SPDX-FileCopyrightText: 2022 Leah Rowe <leah@libreboot.org>
#
# Copyright (C) 2022 Leah Rowe <leah@libreboot.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
CC=cc CC=cc
CFLAGS=-Os -Wall -Wextra -Werror -pedantic CFLAGS=-Os -Wall -Wextra -Werror -pedantic

View File

@ -1,5 +1,5 @@
/* Copyright (c) 2022, 2023 Leah Rowe <leah@libreboot.org> */
/* SPDX-License-Identifier: MIT */ /* SPDX-License-Identifier: MIT */
/* SPDX-FileCopyrightText: 2022, 2023 Leah Rowe <leah@libreboot.org> */
#include <sys/stat.h> #include <sys/stat.h>

View File

@ -1,20 +1,6 @@
/* spkmodem-recv.c - decode spkmodem signals */ /* SPDX-License-Identifier: GPL-2.0-or-later */
/* /* SPDX-FileCopyrightText: 2013 Free Software Foundation, Inc. */
* Copyright (C) 2013 Free Software Foundation, Inc. /* Usage: parec --channels=1 --rate=48000 --format=s16le | ./spkmodem-recv */
*
* spkmodem-recv is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* spkmodem-recv is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with spkmodem-recv. If not, see <http://www.gnu.org/licenses/>.
*/
#include <err.h> #include <err.h>
#include <errno.h> #include <errno.h>
@ -23,9 +9,6 @@
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
/* Compilation: cc -o spkmodem-recv spkmodem-recv.c */
/* Usage: parec --channels=1 --rate=48000 --format=s16le | ./spkmodem-recv */
#define SAMPLES_PER_FRAME 240 #define SAMPLES_PER_FRAME 240
#define MAX_SAMPLES (2 * SAMPLES_PER_FRAME) #define MAX_SAMPLES (2 * SAMPLES_PER_FRAME)
#define FREQ_SEP_MIN 5 #define FREQ_SEP_MIN 5