Skip to content

Commit

Permalink
Follow SPDX & REUSE specification
Browse files Browse the repository at this point in the history
  • Loading branch information
Integral-Tech committed Feb 15, 2024
1 parent 91ecdc6 commit e6e21f4
Show file tree
Hide file tree
Showing 232 changed files with 1,167 additions and 1,894 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Integral <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

name: CMake

on:
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Integral <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

/*cache*/
/.vscode/
/build/
Expand Down
10 changes: 10 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Tiny x86 OS
Upstream-Contact: Integral <[email protected]>
Source: https://github.com/Integral-Tech/tiny-x86os

# Sample paragraph, commented out:
#
# Files: src/*
# Copyright: $YEAR $NAME <$CONTACT>
# License: ...
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2024 Integral <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

cmake_minimum_required(VERSION 3.0.0)

set(CMAKE_VERBOSE_MAKEFILE on)
Expand Down
674 changes: 0 additions & 674 deletions LICENSE

This file was deleted.

232 changes: 232 additions & 0 deletions LICENSES/GPL-3.0-or-later.txt

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 Integral <[email protected]>
SPDX-License-Identifier: GPL-3.0-or-later
-->

# Tiny x86 OS
A tiny x86 operating system, referring to the source code of Linux 0.11.

Expand Down
4 changes: 4 additions & 0 deletions newlib/i686-elf/include/_ansi.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

/* Provide support for both ANSI and non-ANSI environments. */

/* To get a strict ANSI C environment, define macro __STRICT_ANSI__. This will
Expand Down
4 changes: 4 additions & 0 deletions newlib/i686-elf/include/_newlib_version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

/* _newlib_version.h. Generated from _newlib_version.hin by configure. */
/* Version macros for internal and downstream use. */
#ifndef _NEWLIB_VERSION_H__
Expand Down
4 changes: 4 additions & 0 deletions newlib/i686-elf/include/_syslist.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

/* internal use only -- mapping of "system calls" for libraries that lose
and only provide C names, so that we end up in violation of ANSI */
#ifndef __SYSLIST_H
Expand Down
4 changes: 4 additions & 0 deletions newlib/i686-elf/include/alloca.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

/* libc/include/alloca.h - Allocate memory on stack */

/* Written 2000 by Werner Almesberger */
Expand Down
42 changes: 4 additions & 38 deletions newlib/i686-elf/include/ar.h
Original file line number Diff line number Diff line change
@@ -1,43 +1,9 @@
/* $NetBSD: ar.h,v 1.4 1994/10/26 00:55:43 cgd Exp $ */

/*-
* Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
* (c) UNIX System Laboratories, Inc.
* All or some portions of this file are derived from material licensed
* to the University of California by American Telephone and Telegraph
* Co. or Unix System Laboratories, Inc. and are reproduced herein with
* the permission of UNIX System Laboratories, Inc.
*
* This code is derived from software contributed to Berkeley by
* Hugh Smith at The University of Guelph.
*
* 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 University 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 REGENTS 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 REGENTS 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.
*
* @(#)ar.h 8.2 (Berkeley) 1/21/94
*/
// Copyright (c) 1991, 1993
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef _AR_H_
#define _AR_H_
Expand Down
9 changes: 4 additions & 5 deletions newlib/i686-elf/include/argz.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
// Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef _ARGZ_H_
#define _ARGZ_H_
Expand Down
4 changes: 4 additions & 0 deletions newlib/i686-elf/include/assert.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

/*
assert.h
*/
Expand Down
4 changes: 4 additions & 0 deletions newlib/i686-elf/include/complex.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

/* $NetBSD: complex.h,v 1.3 2010/09/15 16:11:30 christos Exp $ */

/*
Expand Down
4 changes: 4 additions & 0 deletions newlib/i686-elf/include/cpio.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

/* POSIX.1 symbolic constants for c_mode field of cpio archive format */

#ifndef _CPIO_H
Expand Down
4 changes: 4 additions & 0 deletions newlib/i686-elf/include/ctype.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef _CTYPE_H_
#define _CTYPE_H_

Expand Down
29 changes: 4 additions & 25 deletions newlib/i686-elf/include/devctl.h
Original file line number Diff line number Diff line change
@@ -1,28 +1,7 @@
/*
* Copyright (c) 2016,2019 Joel Sherrill <[email protected]>.
* All rights reserved.
*
* 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.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
*/
// Copyright (c) 2016,2019 Joel Sherrill <[email protected]>.
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef _POSIX_DEVCTL_h_
#define _POSIX_DEVCTL_h_
Expand Down
37 changes: 4 additions & 33 deletions newlib/i686-elf/include/dirent.h
Original file line number Diff line number Diff line change
@@ -1,36 +1,7 @@
/*-
* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
*
* 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 University 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 REGENTS 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 REGENTS 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.
*
* @(#)dirent.h 8.3 (Berkeley) 8/10/94
* $FreeBSD: head/include/dirent.h 326024 2017-11-20 19:45:28Z pfg $
*/
// Copyright (c) 1989, 1993
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef _DIRENT_H_
#define _DIRENT_H_
Expand Down
28 changes: 4 additions & 24 deletions newlib/i686-elf/include/elf.h
Original file line number Diff line number Diff line change
@@ -1,27 +1,7 @@
/*
From musl include/elf.h
Copyright © 2005-2014 Rich Felker, et al.
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.
*/
// Copyright © 2005-2014 Rich Felker, et al.
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef _ELF_H
#define _ELF_H
Expand Down
4 changes: 4 additions & 0 deletions newlib/i686-elf/include/envlock.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

/* envlock.h -- header file for env routines. */

#ifndef _INCLUDE_ENVLOCK_H_
Expand Down
9 changes: 4 additions & 5 deletions newlib/i686-elf/include/envz.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
// Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

#include <errno.h>
#include <sys/types.h>
Expand Down
4 changes: 4 additions & 0 deletions newlib/i686-elf/include/errno.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef __ERRNO_H__
#define __ERRNO_H__

Expand Down
4 changes: 4 additions & 0 deletions newlib/i686-elf/include/fastmath.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef _FASTMATH_H_
#ifdef __cplusplus
extern "C" {
Expand Down
4 changes: 4 additions & 0 deletions newlib/i686-elf/include/fcntl.h
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

#include <sys/fcntl.h>
14 changes: 4 additions & 10 deletions newlib/i686-elf/include/fenv.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
/* Copyright (c) 2017 SiFive Inc. All rights reserved.
This copyrighted material is made available to anyone wishing to use,
modify, copy, or redistribute it subject to the terms and conditions
of the FreeBSD License. This program is distributed in the hope that
it will be useful, but WITHOUT ANY WARRANTY expressed or implied,
including the implied warranties of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. A copy of this license is available at
http://www.opensource.org/licenses.
*/
// Copyright (c) 2017 SiFive Inc. All rights reserved.
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef _FENV_H
#define _FENV_H
Expand Down
35 changes: 4 additions & 31 deletions newlib/i686-elf/include/fnmatch.h
Original file line number Diff line number Diff line change
@@ -1,34 +1,7 @@
/*-
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* 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.
* 4. 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.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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.
*
* $FreeBSD: src/include/fnmatch.h,v 1.10 2002/03/23 17:24:53 imp Exp $
* @(#)fnmatch.h 8.1 (Berkeley) 6/2/93
*/
// Copyright (c) 1992, 1993
// SPDX-FileCopyrightText: 2024 Integral <[email protected]>
//
// SPDX-License-Identifier: GPL-3.0-or-later

#ifndef _FNMATCH_H_
#define _FNMATCH_H_
Expand Down
Loading

0 comments on commit e6e21f4

Please sign in to comment.