diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a3366da..94f8dbe 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,7 @@ # Contributing Guidelines +*This project is constantly evolving, and as such, this file may be out of date.* + ## Map - `apps/` Builtin applications. diff --git a/LICENSE.md b/LICENSE.md index e73c4eb..23412c4 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -21,14 +21,14 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. This project also include the work of other projects. +Their licenses may be found in the following files: + - `util/nanosvg.h` + - `util/hsluv.h` + - `shared/stb_image.h`, `shared/stb_sprintf.h`, `shared/stb_ds.h` and `util/stb_truetype.h` + - `res/Fonts/Hack License.txt`, `res/Fonts/Inter License.txt` + - `res/Icons/elementary Icons License.txt` + - `res/Sample Images/Licenses.txt` + - `res/Keyboard Layouts/License.txt` + - Ported applications have their licenses in their respective folders in `ports/`. All trademarks are registered trademarks of their respective owners. -They licenses may be found in the following files: - - util/nanosvg.h - - util/hsluv.h - - shared/stb_image.h, shared/stb_sprintf.h, shared/stb_ds.h and util/stb_truetype.h - - res/Fonts/Hack License.txt, res/Fonts/Inter License.txt - - res/Icons/elementary Icons License.txt - - res/Sample Images/Licenses.txt - - res/Keyboard Layouts/License.txt - - Ported applications have their licenses in their respective folders. Please tell me if I've forgotten something! diff --git a/apps/2048.cpp b/apps/2048.cpp index 38f945b..a5b07e6 100644 --- a/apps/2048.cpp +++ b/apps/2048.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include #include diff --git a/apps/file_manager/commands.cpp b/apps/file_manager/commands.cpp index 56c33e9..9ec074b 100644 --- a/apps/file_manager/commands.cpp +++ b/apps/file_manager/commands.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + void CommandRename(Instance *instance, EsElement *, EsCommand *) { // TODO Undo. diff --git a/apps/file_manager/folder.cpp b/apps/file_manager/folder.cpp index bd81457..e19ec24 100644 --- a/apps/file_manager/folder.cpp +++ b/apps/file_manager/folder.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #define NAMESPACE_HANDLER_FILE_SYSTEM (1) #define NAMESPACE_HANDLER_DRIVES_PAGE (2) #define NAMESPACE_HANDLER_ROOT (3) // Acts as a container handler where needed. diff --git a/apps/file_manager/main.cpp b/apps/file_manager/main.cpp index 80c49c1..c4b71f2 100644 --- a/apps/file_manager/main.cpp +++ b/apps/file_manager/main.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #define ES_INSTANCE_TYPE Instance #include #include diff --git a/apps/file_manager/string.cpp b/apps/file_manager/string.cpp index 4197174..0f362d4 100644 --- a/apps/file_manager/string.cpp +++ b/apps/file_manager/string.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + struct String { char *text; size_t bytes, allocated; diff --git a/apps/file_manager/type_database.cpp b/apps/file_manager/type_database.cpp index 9dc783f..9c690fa 100644 --- a/apps/file_manager/type_database.cpp +++ b/apps/file_manager/type_database.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + struct FileType { char *name; size_t nameBytes; diff --git a/apps/file_manager/ui.cpp b/apps/file_manager/ui.cpp index 9a66a9d..3507fd8 100644 --- a/apps/file_manager/ui.cpp +++ b/apps/file_manager/ui.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Custom columns. void InstanceFolderPathChanged(Instance *instance, bool fromLoadFolder) { diff --git a/apps/font_book.cpp b/apps/font_book.cpp index 04e7c54..c0e011f 100644 --- a/apps/font_book.cpp +++ b/apps/font_book.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #define ES_INSTANCE_TYPE Instance #include #include diff --git a/apps/image_editor.cpp b/apps/image_editor.cpp index 1051d26..0469282 100644 --- a/apps/image_editor.cpp +++ b/apps/image_editor.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Saving. // TODO Don't use an EsPaintTarget for the bitmap? // TODO Show brush preview. diff --git a/apps/installer.cpp b/apps/installer.cpp index 54ea7fc..17c0e84 100644 --- a/apps/installer.cpp +++ b/apps/installer.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #define INSTALLER #define ES_CRT_WITHOUT_PREFIX diff --git a/apps/irc_client.cpp b/apps/irc_client.cpp index 2d0137c..f130f43 100644 --- a/apps/irc_client.cpp +++ b/apps/irc_client.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Don't use EsTextbox for the output.. // TODO Put the connection settings in a Panel.Popup. diff --git a/apps/markdown_viewer.cpp b/apps/markdown_viewer.cpp index 87d2558..341af60 100644 --- a/apps/markdown_viewer.cpp +++ b/apps/markdown_viewer.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #define ES_INSTANCE_TYPE Instance #include #include diff --git a/apps/posix_launcher.cpp b/apps/posix_launcher.cpp index c7390ef..d3667c3 100644 --- a/apps/posix_launcher.cpp +++ b/apps/posix_launcher.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include #include diff --git a/apps/system_monitor.cpp b/apps/system_monitor.cpp index 6a8bb16..5feed5a 100644 --- a/apps/system_monitor.cpp +++ b/apps/system_monitor.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #define ES_INSTANCE_TYPE Instance #include #include diff --git a/apps/test.cpp b/apps/test.cpp index df6ac39..51a2539 100644 --- a/apps/test.cpp +++ b/apps/test.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include #include diff --git a/apps/text_editor.cpp b/apps/text_editor.cpp index 36f7c73..e2dc682 100644 --- a/apps/text_editor.cpp +++ b/apps/text_editor.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #define ES_INSTANCE_TYPE Instance #include diff --git a/arch/x86_32/api.s b/arch/x86_32/api.s index c1ee8d0..3220b0d 100644 --- a/arch/x86_32/api.s +++ b/arch/x86_32/api.s @@ -1,3 +1,7 @@ +; This file is part of the Essence operating system. +; It is released under the terms of the MIT license -- see LICENSE.md. +; Written by: nakst. + [section .text] [global _APISyscall] diff --git a/arch/x86_32/kernel.cpp b/arch/x86_32/kernel.cpp index 936c7b6..c9e40e4 100755 --- a/arch/x86_32/kernel.cpp +++ b/arch/x86_32/kernel.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Support for systems without MMX/SSE. // TODO Support for systems without an APIC. diff --git a/arch/x86_32/kernel.s b/arch/x86_32/kernel.s index 8aaec8f..5d49453 100644 --- a/arch/x86_32/kernel.s +++ b/arch/x86_32/kernel.s @@ -1,3 +1,7 @@ +; This file is part of the Essence operating system. +; It is released under the terms of the MIT license -- see LICENSE.md. +; Written by: nakst. + [bits 32] [global ProcessorReset] diff --git a/arch/x86_64/api.s b/arch/x86_64/api.s index d2f44b3..3e3f7d3 100644 --- a/arch/x86_64/api.s +++ b/arch/x86_64/api.s @@ -1,3 +1,7 @@ +; This file is part of the Essence operating system. +; It is released under the terms of the MIT license -- see LICENSE.md. +; Written by: nakst. + [section .text] [global _APISyscall] diff --git a/arch/x86_64/kernel.cpp b/arch/x86_64/kernel.cpp index bb86077..193b963 100644 --- a/arch/x86_64/kernel.cpp +++ b/arch/x86_64/kernel.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #ifndef IMPLEMENTATION struct MMArchVAS { diff --git a/arch/x86_64/kernel.s b/arch/x86_64/kernel.s index 5edf8b0..2b938ce 100644 --- a/arch/x86_64/kernel.s +++ b/arch/x86_64/kernel.s @@ -1,3 +1,7 @@ +; This file is part of the Essence operating system. +; It is released under the terms of the MIT license -- see LICENSE.md. +; Written by: nakst. + [bits 64] [global ArchSwitchContext] diff --git a/arch/x86_pc.cpp b/arch/x86_pc.cpp index 1df1d46..580b1d8 100644 --- a/arch/x86_pc.cpp +++ b/arch/x86_pc.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include extern "C" uint64_t ProcessorReadCR3(); diff --git a/arch/x86_pc.h b/arch/x86_pc.h index 6e5a5b6..0be29e5 100644 --- a/arch/x86_pc.h +++ b/arch/x86_pc.h @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #ifndef ARCH_X86_PC_HEADER #define ARCH_X86_PC_HEADER diff --git a/boot/x86/esfs-stage1.s b/boot/x86/esfs-stage1.s index 3a5ed57..cf4ffcd 100644 --- a/boot/x86/esfs-stage1.s +++ b/boot/x86/esfs-stage1.s @@ -1,3 +1,7 @@ +; This file is part of the Essence operating system. +; It is released under the terms of the MIT license -- see LICENSE.md. +; Written by: nakst. + [bits 16] [org 0x7C00] diff --git a/boot/x86/esfs-stage2.s b/boot/x86/esfs-stage2.s index 6bd0d6d..992e2c1 100644 --- a/boot/x86/esfs-stage2.s +++ b/boot/x86/esfs-stage2.s @@ -1,3 +1,7 @@ +; This file is part of the Essence operating system. +; It is released under the terms of the MIT license -- see LICENSE.md. +; Written by: nakst. + %macro FilesystemInitialise 0 %define superblock 0x8000 %define kernel_file_entry 0x8800 diff --git a/boot/x86/loader.s b/boot/x86/loader.s index b5c95f2..24f9ae6 100644 --- a/boot/x86/loader.s +++ b/boot/x86/loader.s @@ -1,3 +1,7 @@ +; This file is part of the Essence operating system. +; It is released under the terms of the MIT license -- see LICENSE.md. +; Written by: nakst. + [bits 16] [org 0x1000] diff --git a/boot/x86/mbr-emu.s b/boot/x86/mbr-emu.s index 6f711df..2f4f340 100644 --- a/boot/x86/mbr-emu.s +++ b/boot/x86/mbr-emu.s @@ -1,3 +1,7 @@ +; This file is part of the Essence operating system. +; It is released under the terms of the MIT license -- see LICENSE.md. +; Written by: nakst. + [bits 16] [org 0x600] diff --git a/boot/x86/mbr.s b/boot/x86/mbr.s index c480cf3..41dd66d 100644 --- a/boot/x86/mbr.s +++ b/boot/x86/mbr.s @@ -1,3 +1,7 @@ +; This file is part of the Essence operating system. +; It is released under the terms of the MIT license -- see LICENSE.md. +; Written by: nakst. + [bits 16] [org 0x600] diff --git a/boot/x86/uefi.c b/boot/x86/uefi.c index c6f07d4..2c0df56 100644 --- a/boot/x86/uefi.c +++ b/boot/x86/uefi.c @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include #define ENTRIES_PER_PAGE_TABLE (512) diff --git a/boot/x86/uefi_loader.s b/boot/x86/uefi_loader.s index 76d52d9..ebb8659 100644 --- a/boot/x86/uefi_loader.s +++ b/boot/x86/uefi_loader.s @@ -1,3 +1,7 @@ +; This file is part of the Essence operating system. +; It is released under the terms of the MIT license -- see LICENSE.md. +; Written by: nakst. + [bits 64] [org 0x180000] [section .text] diff --git a/boot/x86/vbe.s b/boot/x86/vbe.s index 4d2879d..42557fe 100644 --- a/boot/x86/vbe.s +++ b/boot/x86/vbe.s @@ -1,3 +1,7 @@ +; This file is part of the Essence operating system. +; It is released under the terms of the MIT license -- see LICENSE.md. +; Written by: nakst. + vbe_init: mov ax,vesa_info >> 4 mov es,ax diff --git a/desktop/api.cpp b/desktop/api.cpp index 5c09b10..9e37a0d 100644 --- a/desktop/api.cpp +++ b/desktop/api.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #define ES_API #define ES_FORWARD(x) x #define ES_EXTERN_FORWARD extern "C" diff --git a/desktop/desktop.cpp b/desktop/desktop.cpp index e0b227d..c8712d0 100644 --- a/desktop/desktop.cpp +++ b/desktop/desktop.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Tabs: // - New tab page - search; recent files. // - Right click menu. diff --git a/desktop/gui.cpp b/desktop/gui.cpp index f6771eb..35be2bd 100644 --- a/desktop/gui.cpp +++ b/desktop/gui.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Styling features: // - Specifying aspect ratio of element. // - Animation parts (list of keyframes). diff --git a/desktop/list_view.cpp b/desktop/list_view.cpp index 77d00f4..bc15d55 100644 --- a/desktop/list_view.cpp +++ b/desktop/list_view.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO RMB click/drag. // TODO Consistent int64_t/intptr_t. // TODO Drag and drop. diff --git a/desktop/os.header b/desktop/os.header index 6ef1a39..a2bd3c6 100644 --- a/desktop/os.header +++ b/desktop/os.header @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + opaque_type EsElement EsElementPublic; opaque_type EsPanel EsElement; opaque_type EsWindow EsElement; diff --git a/desktop/posix.cpp b/desktop/posix.cpp index db01e72..d3ae675 100644 --- a/desktop/posix.cpp +++ b/desktop/posix.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #define ES_API #define ES_FORWARD(x) x #define ES_EXTERN_FORWARD extern "C" diff --git a/desktop/prefix.h b/desktop/prefix.h index bafa2aa..ac5a348 100644 --- a/desktop/prefix.h +++ b/desktop/prefix.h @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // ----------------- Includes: #ifndef IncludedEssenceAPIHeader diff --git a/desktop/renderer.cpp b/desktop/renderer.cpp index 752925d..9e2f385 100644 --- a/desktop/renderer.cpp +++ b/desktop/renderer.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Fix glitches. // TODO RAST_REPEAT_NORMAL is wrong with negative values. diff --git a/desktop/settings.cpp b/desktop/settings.cpp index 6e9b329..ee9413d 100644 --- a/desktop/settings.cpp +++ b/desktop/settings.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + struct SettingsInstance : CommonDesktopInstance { EsPanel *switcher; EsPanel *mainPage; diff --git a/desktop/syscall.cpp b/desktop/syscall.cpp index 78182d2..5948557 100644 --- a/desktop/syscall.cpp +++ b/desktop/syscall.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + ThreadLocalStorage *GetThreadLocalStorage() { return (ThreadLocalStorage *) ProcessorTLSRead(tlsStorageOffset); } diff --git a/desktop/text.cpp b/desktop/text.cpp index 9242e5f..67f459d 100644 --- a/desktop/text.cpp +++ b/desktop/text.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #if defined(TEXT_RENDERER) // TODO Fallback VGA font. diff --git a/desktop/theme.cpp b/desktop/theme.cpp index 51c233e..8d15f53 100644 --- a/desktop/theme.cpp +++ b/desktop/theme.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #define THEME_LAYER_BOX (1) #define THEME_LAYER_TEXT (2) #define THEME_LAYER_METRICS (3) diff --git a/drivers/acpi.cpp b/drivers/acpi.cpp index 8d42bd2..1c86071 100644 --- a/drivers/acpi.cpp +++ b/drivers/acpi.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #define SIGNATURE_RSDP (0x2052545020445352) #define SIGNATURE_RSDT (0x54445352) #define SIGNATURE_XSDT (0x54445358) diff --git a/drivers/acpi_thermal.cpp b/drivers/acpi_thermal.cpp index 222e6ee..bba4af9 100644 --- a/drivers/acpi_thermal.cpp +++ b/drivers/acpi_thermal.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include // TODO Active cooling. diff --git a/drivers/acpica.cpp b/drivers/acpica.cpp index 465be9a..8bf33ba 100644 --- a/drivers/acpica.cpp +++ b/drivers/acpica.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Warning: Not all of the OSL has been tested. extern "C" { diff --git a/drivers/ahci.cpp b/drivers/ahci.cpp index 895669e..dcb2e3d 100644 --- a/drivers/ahci.cpp +++ b/drivers/ahci.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include // TODO Inserting/removing CDs. diff --git a/drivers/bga.cpp b/drivers/bga.cpp index 789cbfa..4547d79 100644 --- a/drivers/bga.cpp +++ b/drivers/bga.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include #include diff --git a/drivers/esfs2.cpp b/drivers/esfs2.cpp index 7067917..14997e4 100644 --- a/drivers/esfs2.cpp +++ b/drivers/esfs2.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include // Filesystem structures and constant definitions. diff --git a/drivers/ext2.cpp b/drivers/ext2.cpp index 4cac770..075cb42 100644 --- a/drivers/ext2.cpp +++ b/drivers/ext2.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Validation of all fields. // TODO Contiguous block reading in Scan and Enumerate. // TODO Make GetDataBlock use (not yet implemented) system block cache. diff --git a/drivers/fat.cpp b/drivers/fat.cpp index be3d095..96721e1 100644 --- a/drivers/fat.cpp +++ b/drivers/fat.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Validation of all fields. // TODO Don't load entire FAT in memory. // TODO Long file names. diff --git a/drivers/hda.cpp b/drivers/hda.cpp index 01ee1bd..9a5bd90 100644 --- a/drivers/hda.cpp +++ b/drivers/hda.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include #define RD_REGISTER_GCAP() controller->pci->ReadBAR16(0, 0x00) // Global capabilities. diff --git a/drivers/i8254x.cpp b/drivers/i8254x.cpp index cb98927..6b71ea9 100644 --- a/drivers/i8254x.cpp +++ b/drivers/i8254x.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Initialise on a separate thread. // TODO Checksum off-loading. diff --git a/drivers/ide.cpp b/drivers/ide.cpp index 550fb3a..a21502d 100644 --- a/drivers/ide.cpp +++ b/drivers/ide.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Asynchronous timeout. // TODO Inserting/removing ATAPI devices. diff --git a/drivers/iso9660.cpp b/drivers/iso9660.cpp index ad641f1..1dc996a 100644 --- a/drivers/iso9660.cpp +++ b/drivers/iso9660.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Validation of all fields. #include diff --git a/drivers/ntfs.cpp b/drivers/ntfs.cpp index 4d649b0..be51fef 100644 --- a/drivers/ntfs.cpp +++ b/drivers/ntfs.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Validation of all fields. // TODO Update to the latest file subsystem changes. // - Set spaceUsed and spaceTotal. diff --git a/drivers/nvme.cpp b/drivers/nvme.cpp index 3859ec0..f68802f 100644 --- a/drivers/nvme.cpp +++ b/drivers/nvme.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include // TODO Sometimes completion interrupts get missed? diff --git a/drivers/pci.cpp b/drivers/pci.cpp index 9bb8d80..0f2aba1 100644 --- a/drivers/pci.cpp +++ b/drivers/pci.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Warn on Read/WriteBAR if port IO/memory space access is disabled in the command register. #include diff --git a/drivers/ps2.cpp b/drivers/ps2.cpp index fe1ae80..8fe5960 100644 --- a/drivers/ps2.cpp +++ b/drivers/ps2.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Scrolling. #include diff --git a/drivers/rtc.cpp b/drivers/rtc.cpp index dfd8ba1..08c2c8d 100644 --- a/drivers/rtc.cpp +++ b/drivers/rtc.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include #include diff --git a/drivers/svga.cpp b/drivers/svga.cpp index 9d4cf63..45b96db 100644 --- a/drivers/svga.cpp +++ b/drivers/svga.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include #include diff --git a/drivers/usb.cpp b/drivers/usb.cpp index ffeeb79..9f5d3a0 100644 --- a/drivers/usb.cpp +++ b/drivers/usb.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include #define SETUP_FLAG_D2H (0x80) diff --git a/drivers/usb_bulk.cpp b/drivers/usb_bulk.cpp index 315aca8..450467d 100644 --- a/drivers/usb_bulk.cpp +++ b/drivers/usb_bulk.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include // TODO STALL handling. diff --git a/drivers/usb_hid.cpp b/drivers/usb_hid.cpp index 502e2b6..43ec2a7 100644 --- a/drivers/usb_hid.cpp +++ b/drivers/usb_hid.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include // #define TRACE_REPORTS diff --git a/drivers/xhci.cpp b/drivers/xhci.cpp index 33e4718..5dd4872 100644 --- a/drivers/xhci.cpp +++ b/drivers/xhci.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include // TODO Device attach and detach. diff --git a/kernel/cache.cpp b/kernel/cache.cpp index e735c43..1ee7bd8 100644 --- a/kernel/cache.cpp +++ b/kernel/cache.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #ifndef IMPLEMENTATION // TODO Implement read ahead in CCSpaceAccess. diff --git a/kernel/drivers.cpp b/kernel/drivers.cpp index 318cb27..f463673 100644 --- a/kernel/drivers.cpp +++ b/kernel/drivers.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #ifndef IMPLEMENTATION struct DeviceAttachData { diff --git a/kernel/elf.cpp b/kernel/elf.cpp index c8caa49..c2bd160 100644 --- a/kernel/elf.cpp +++ b/kernel/elf.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Use a custom executable format? #define MEMORY_MAPPED_EXECUTABLES diff --git a/kernel/files.cpp b/kernel/files.cpp index 0cbd310..628c5dc 100644 --- a/kernel/files.cpp +++ b/kernel/files.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Features: // - Handling errors creating files (prevent further file system operations). // - Limiting the size of the directory/node cache. diff --git a/kernel/graphics.cpp b/kernel/graphics.cpp index 256469f..63e41e5 100644 --- a/kernel/graphics.cpp +++ b/kernel/graphics.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #ifndef IMPLEMENTATION #define CURSOR_SHADOW_OFFSET (1) diff --git a/kernel/kernel.h b/kernel/kernel.h index 3e4cb9e..cfe1e37 100644 --- a/kernel/kernel.h +++ b/kernel/kernel.h @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #ifndef IMPLEMENTATION #define K_IN_CORE_KERNEL diff --git a/kernel/main.cpp b/kernel/main.cpp index 4474956..c83d15c 100644 --- a/kernel/main.cpp +++ b/kernel/main.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Prevent Meltdown/Spectre exploits. // TODO Kernel debugger. // TODO Passing data to userspace - zeroing padding bits of structures. diff --git a/kernel/memory.cpp b/kernel/memory.cpp index 9047e1e..4692791 100644 --- a/kernel/memory.cpp +++ b/kernel/memory.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Soft page faults. // TODO Paging file. // TODO Large pages. diff --git a/kernel/module.h b/kernel/module.h index 3fd2f27..0936bc4 100644 --- a/kernel/module.h +++ b/kernel/module.h @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Include more functions and definitions. // TODO Add K- prefix to more identifiers. diff --git a/kernel/networking.cpp b/kernel/networking.cpp index f21b270..4fa3730 100644 --- a/kernel/networking.cpp +++ b/kernel/networking.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Event-based API for userland. // TODO Locking: In NetTCPReceive, lock on getting task so it can't be destroyed by NetConnectionDestroy. diff --git a/kernel/objects.cpp b/kernel/objects.cpp index 524ff80..fde6500 100644 --- a/kernel/objects.cpp +++ b/kernel/objects.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Reject opening handles if the handle table has been destroyed!! #ifndef IMPLEMENTATION diff --git a/kernel/posix.cpp b/kernel/posix.cpp index 010b609..e1236ef 100644 --- a/kernel/posix.cpp +++ b/kernel/posix.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #ifndef IMPLEMENTATION struct POSIXFile { diff --git a/kernel/scheduler.cpp b/kernel/scheduler.cpp index 8b9d389..aeb887c 100644 --- a/kernel/scheduler.cpp +++ b/kernel/scheduler.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Review vforking interaction from the POSIX subsystem with the process termination algorithm. // TODO Simplify or remove asynchronous task thread semantics. // TODO Break up or remove dispatchSpinlock. diff --git a/kernel/symbols.cpp b/kernel/symbols.cpp index ef3acf0..ba58402 100644 --- a/kernel/symbols.cpp +++ b/kernel/symbols.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #include #include diff --git a/kernel/synchronisation.cpp b/kernel/synchronisation.cpp index 64a044d..37926fb 100644 --- a/kernel/synchronisation.cpp +++ b/kernel/synchronisation.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #ifdef IMPLEMENTATION #ifdef DEBUG_BUILD diff --git a/kernel/syscall.cpp b/kernel/syscall.cpp index c5f07cd..df51fc8 100644 --- a/kernel/syscall.cpp +++ b/kernel/syscall.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Replace ES_ERROR_UNKNOWN with proper errors. // TODO Clean up the return values for system calls; with FATAL_ERRORs there should need to be less error codes returned. // TODO If a file system call fails with an error indicating the file system is corrupted, or a drive is failing, report the problem to the user. diff --git a/kernel/terminal.cpp b/kernel/terminal.cpp index f924d74..a1b855e 100644 --- a/kernel/terminal.cpp +++ b/kernel/terminal.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Everything in this file is a hack just so I can debug the kernel. // Replace all of it!!! diff --git a/kernel/windows.cpp b/kernel/windows.cpp index 8e868d1..b167dd3 100644 --- a/kernel/windows.cpp +++ b/kernel/windows.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #ifndef IMPLEMENTATION // TODO Don't send key released messages if the focused window has changed. diff --git a/shared/arena.cpp b/shared/arena.cpp index f1adf68..4f3a507 100644 --- a/shared/arena.cpp +++ b/shared/arena.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + struct ArenaSlot { uintptr_t indexInBlock; ArenaSlot *nextEmpty, **previousEmpty; diff --git a/shared/array.cpp b/shared/array.cpp index 0a05bc1..1f0aaa5 100644 --- a/shared/array.cpp +++ b/shared/array.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #ifndef ARRAY_IMPLEMENTATION_ONLY struct _ArrayHeader { diff --git a/shared/avl_tree.cpp b/shared/avl_tree.cpp index 2d60fac..1d646ad 100644 --- a/shared/avl_tree.cpp +++ b/shared/avl_tree.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #ifndef IMPLEMENTATION #ifdef DEBUG_BUILD diff --git a/shared/bitset.cpp b/shared/bitset.cpp index 0174bd7..8ed02df 100644 --- a/shared/bitset.cpp +++ b/shared/bitset.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #ifndef IMPLEMENTATION struct Bitset { diff --git a/shared/common.cpp b/shared/common.cpp index 26fa663..72b7013 100644 --- a/shared/common.cpp +++ b/shared/common.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + ///////////////////////////////// // EsRectangle utility functions. ///////////////////////////////// diff --git a/shared/esfs2.h b/shared/esfs2.h index 212ca43..ce7a491 100644 --- a/shared/esfs2.h +++ b/shared/esfs2.h @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Kernel driver: // Extent allocation algorithm. // TODO Design: diff --git a/shared/hash_table.cpp b/shared/hash_table.cpp index 62b6ec1..dde2510 100644 --- a/shared/hash_table.cpp +++ b/shared/hash_table.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Test deleting values in hash stores with variable length keys. ////////////////////////////////////////// diff --git a/shared/heap.cpp b/shared/heap.cpp index c2e21bc..12de942 100644 --- a/shared/heap.cpp +++ b/shared/heap.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + // TODO Rewrite. Make faster! // TODO EsHeapAllocateNearby. // TODO Larger heap blocks. diff --git a/shared/linked_list.cpp b/shared/linked_list.cpp index 1387327..8f3112a 100644 --- a/shared/linked_list.cpp +++ b/shared/linked_list.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + template struct LinkedList; diff --git a/shared/math.cpp b/shared/math.cpp index 10997a8..dd49031 100644 --- a/shared/math.cpp +++ b/shared/math.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + ///////////////////////////////// // Basic utilities. ///////////////////////////////// diff --git a/shared/partitions.cpp b/shared/partitions.cpp index f829ce7..f807c6c 100644 --- a/shared/partitions.cpp +++ b/shared/partitions.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #ifndef K_SIGNATURE_BLOCK_SIZE #define K_SIGNATURE_BLOCK_SIZE (65536) #endif diff --git a/shared/png_decoder.cpp b/shared/png_decoder.cpp index 0ddfac4..1d3ad61 100644 --- a/shared/png_decoder.cpp +++ b/shared/png_decoder.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + uint32_t SwapBigEndian32(uint32_t x); typedef struct PNGReader { diff --git a/shared/range_set.cpp b/shared/range_set.cpp index 0b4be4c..3ec209d 100644 --- a/shared/range_set.cpp +++ b/shared/range_set.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #ifndef IMPLEMENTATION struct Range { diff --git a/shared/strings.cpp b/shared/strings.cpp index 5c6dab7..bf15a22 100644 --- a/shared/strings.cpp +++ b/shared/strings.cpp @@ -1,3 +1,7 @@ +// This file is part of the Essence operating system. +// It is released under the terms of the MIT license -- see LICENSE.md. +// Written by: nakst. + #pragma GCC diagnostic ignored "-Wunused-variable" push #define DEFINE_INTERFACE_STRING(name, text) static const char *interfaceString_ ## name = text;