From c6906d4f2de02dda6e7feafa88f84b096ba6df7f Mon Sep 17 00:00:00 2001 From: Enrico Fraccaroli Date: Thu, 30 Dec 2021 11:50:15 +0100 Subject: [PATCH] Final polishing to debugging system. --- libc/inc/assert.h | 1 - libc/inc/bits/stat.h | 1 - libc/inc/bits/termios-struct.h | 1 - libc/inc/ctype.h | 1 - libc/inc/debug.h | 1 - libc/inc/fcntl.h | 1 - libc/inc/fcvt.h | 1 - libc/inc/grp.h | 1 - libc/inc/io/mm_io.h | 1 - libc/inc/io/port_io.h | 1 - libc/inc/ipc/ipc.h | 1 - libc/inc/ipc/msg.h | 1 - libc/inc/ipc/sem.h | 1 - libc/inc/ipc/shm.h | 1 - libc/inc/libgen.h | 1 - libc/inc/limits.h | 1 - libc/inc/math.h | 1 - libc/inc/pwd.h | 1 - libc/inc/sched.h | 1 - libc/inc/signal.h | 1 - libc/inc/stdarg.h | 1 - libc/inc/stdbool.h | 1 - libc/inc/stddef.h | 1 - libc/inc/stdint.h | 1 - libc/inc/stdio.h | 1 - libc/inc/stdlib.h | 1 - libc/inc/strerror.h | 1 - libc/inc/string.h | 1 - libc/inc/sys/bitops.h | 1 - libc/inc/sys/dirent.h | 1 - libc/inc/sys/errno.h | 1 - libc/inc/sys/ioctl.h | 1 - libc/inc/sys/reboot.h | 1 - libc/inc/sys/stat.h | 1 - libc/inc/sys/types.h | 1 - libc/inc/sys/unistd.h | 1 - libc/inc/sys/utsname.h | 1 - libc/inc/sys/wait.h | 1 - libc/inc/system/syscall_types.h | 1 - libc/inc/termios.h | 1 - libc/inc/time.h | 1 - libc/src/abort.c | 1 - libc/src/assert.c | 1 - libc/src/ctype.c | 1 - libc/src/debug.c | 1 - libc/src/fcvt.c | 1 - libc/src/grp.c | 1 - libc/src/io/mm_io.c | 1 - libc/src/io/port_io.c | 1 - libc/src/ipc/ipc.c | 1 - libc/src/libgen.c | 1 - libc/src/math.c | 1 - libc/src/pwd.c | 1 - libc/src/stdlib.c | 1 - libc/src/strerror.c | 1 - libc/src/string.c | 1 - libc/src/sys/errno.c | 1 - libc/src/sys/ioctl.c | 1 - libc/src/sys/unistd.c | 1 - libc/src/sys/utsname.c | 1 - libc/src/termios.c | 1 - libc/src/time.c | 1 - libc/src/unistd/chdir.c | 1 - libc/src/unistd/close.c | 1 - libc/src/unistd/creat.c | 1 - libc/src/unistd/exec.c | 1 - libc/src/unistd/exit.c | 1 - libc/src/unistd/fork.c | 1 - libc/src/unistd/getcwd.c | 1 - libc/src/unistd/getdents.c | 1 - libc/src/unistd/getgid.c | 1 - libc/src/unistd/getpgid.c | 1 - libc/src/unistd/getpid.c | 1 - libc/src/unistd/getppid.c | 1 - libc/src/unistd/getsid.c | 1 - libc/src/unistd/getuid.c | 1 - libc/src/unistd/kill.c | 1 - libc/src/unistd/lseek.c | 1 - libc/src/unistd/mkdir.c | 1 - libc/src/unistd/nice.c | 1 - libc/src/unistd/open.c | 1 - libc/src/unistd/read.c | 1 - libc/src/unistd/reboot.c | 1 - libc/src/unistd/rmdir.c | 1 - libc/src/unistd/setgid.c | 1 - libc/src/unistd/setpgid.c | 1 - libc/src/unistd/setsid.c | 1 - libc/src/unistd/setuid.c | 1 - libc/src/unistd/signal.c | 1 - libc/src/unistd/stat.c | 1 - libc/src/unistd/unlink.c | 1 - libc/src/unistd/waitpid.c | 1 - libc/src/unistd/write.c | 1 - libc/src/vscanf.c | 1 - libc/src/vsprintf.c | 1 - mentos/inc/boot.h | 1 - mentos/inc/descriptor_tables/gdt.h | 1 - mentos/inc/descriptor_tables/idt.h | 1 - mentos/inc/descriptor_tables/isr.h | 1 - mentos/inc/descriptor_tables/tss.h | 1 - mentos/inc/devices/fpu.h | 1 - mentos/inc/devices/pci.h | 1 - mentos/inc/drivers/ata.h | 1 - mentos/inc/drivers/fdc.h | 1 - mentos/inc/drivers/keyboard/keyboard.h | 1 - mentos/inc/drivers/keyboard/keymap.h | 1 - mentos/inc/drivers/mouse.h | 1 - mentos/inc/drivers/rtc.h | 1 - mentos/inc/elf/elf.h | 1 - mentos/inc/fs/ext2.h | 3 --- mentos/inc/fs/initrd.h | 1 - mentos/inc/fs/ioctl.h | 1 - mentos/inc/fs/procfs.h | 1 - mentos/inc/fs/vfs.h | 1 - mentos/inc/fs/vfs_types.h | 1 - mentos/inc/hardware/cpuid.h | 1 - mentos/inc/hardware/pic8259.h | 1 - mentos/inc/hardware/timer.h | 1 - mentos/inc/io/debug.h | 1 - mentos/inc/io/mm_io.h | 1 - mentos/inc/io/port_io.h | 1 - mentos/inc/io/proc_modules.h | 1 - mentos/inc/io/vga/vga.h | 3 +-- mentos/inc/io/vga/vga_font.h | 1 - mentos/inc/io/vga/vga_mode.h | 1 - mentos/inc/io/vga/vga_palette.h | 1 - mentos/inc/io/video.h | 1 - mentos/inc/kernel.h | 1 - mentos/inc/klib/compiler.h | 1 - mentos/inc/klib/hashmap.h | 1 - mentos/inc/klib/irqflags.h | 1 - mentos/inc/klib/list.h | 1 - mentos/inc/klib/list_head.h | 1 - mentos/inc/klib/mutex.h | 1 - mentos/inc/klib/ndtree.h | 1 - mentos/inc/klib/rbtree.h | 1 - mentos/inc/klib/spinlock.h | 1 - mentos/inc/klib/stack_helper.h | 1 - mentos/inc/klib/stdatomic.h | 1 - mentos/inc/link_access.h | 1 - mentos/inc/mem/buddysystem.h | 1 - mentos/inc/mem/gfp.h | 1 - mentos/inc/mem/kheap.h | 1 - mentos/inc/mem/paging.h | 1 - mentos/inc/mem/slab.h | 1 - mentos/inc/mem/vmem_map.h | 1 - mentos/inc/mem/zone_allocator.h | 1 - mentos/inc/multiboot.h | 1 - mentos/inc/proc_access.h | 1 - mentos/inc/process/prio.h | 1 - mentos/inc/process/process.h | 1 - mentos/inc/process/scheduler.h | 1 - mentos/inc/process/wait.h | 1 - mentos/inc/sys/errno.h | 1 - mentos/inc/sys/ipc.h | 1 - mentos/inc/sys/kernel_levels.h | 1 - mentos/inc/sys/module.h | 1 - mentos/inc/sys/reboot.h | 1 - mentos/inc/sys/types.h | 1 - mentos/inc/sys/utsname.h | 1 - mentos/inc/system/panic.h | 1 - mentos/inc/system/printk.h | 1 - mentos/inc/system/signal.h | 1 - mentos/inc/system/syscall.h | 1 - mentos/inc/version.h | 1 - mentos/src/descriptor_tables/exception.c | 8 +++++++- mentos/src/descriptor_tables/gdt.c | 8 +++++++- mentos/src/descriptor_tables/idt.c | 8 +++++++- mentos/src/descriptor_tables/interrupt.c | 8 +++++++- mentos/src/descriptor_tables/tss.c | 8 +++++++- mentos/src/devices/fpu.c | 8 +++++++- mentos/src/devices/pci.c | 8 +++++++- mentos/src/drivers/ata.c | 5 ++--- mentos/src/drivers/fdc.c | 8 +++++++- mentos/src/drivers/keyboard/keyboard.c | 8 +++++++- mentos/src/drivers/keyboard/keymap.c | 1 - mentos/src/drivers/mouse.c | 8 +++++++- mentos/src/drivers/rtc.c | 8 +++++++- mentos/src/elf/elf.c | 1 - mentos/src/fs/ext2.c | 5 +---- mentos/src/fs/initrd.c | 1 - mentos/src/fs/ioctl.c | 1 - mentos/src/fs/namei.c | 1 - mentos/src/fs/open.c | 1 - mentos/src/fs/procfs.c | 1 - mentos/src/fs/read_write.c | 1 - mentos/src/fs/readdir.c | 1 - mentos/src/fs/stat.c | 1 - mentos/src/fs/vfs.c | 3 +-- mentos/src/hardware/cpuid.c | 1 - mentos/src/hardware/pic8259.c | 25 +++++++----------------- mentos/src/hardware/timer.c | 8 +++++++- mentos/src/io/debug.c | 1 - mentos/src/io/mm_io.c | 1 - mentos/src/io/port_io.c | 1 - mentos/src/io/proc_running.c | 7 ++++--- mentos/src/io/proc_system.c | 1 - mentos/src/io/proc_video.c | 7 ++++--- mentos/src/io/stdio.c | 7 ++++--- mentos/src/io/vga/vga.c | 12 ++++++++++++ mentos/src/io/video.c | 1 - mentos/src/ipc/msg.c | 1 - mentos/src/ipc/sem.c | 1 - mentos/src/ipc/shm.c | 1 - mentos/src/kernel.c | 9 +++++++-- mentos/src/kernel/sys.c | 1 - mentos/src/klib/assert.c | 1 - mentos/src/klib/ctype.c | 1 - mentos/src/klib/fcvt.c | 1 - mentos/src/klib/hashmap.c | 1 - mentos/src/klib/libgen.c | 1 - mentos/src/klib/list.c | 1 - mentos/src/klib/math.c | 1 - mentos/src/klib/mutex.c | 1 - mentos/src/klib/ndtree.c | 1 - mentos/src/klib/rbtree.c | 1 - mentos/src/klib/spinlock.c | 1 - mentos/src/klib/strerror.c | 1 - mentos/src/klib/string.c | 1 - mentos/src/klib/time.c | 1 - mentos/src/klib/vscanf.c | 1 - mentos/src/klib/vsprintf.c | 1 - mentos/src/mem/buddysystem.c | 1 - mentos/src/mem/kheap.c | 1 - mentos/src/mem/paging.c | 1 - mentos/src/mem/slab.c | 1 - mentos/src/mem/vmem_map.c | 1 - mentos/src/mem/zone_allocator.c | 1 - mentos/src/multiboot.c | 1 - mentos/src/process/process.c | 3 +-- mentos/src/process/scheduler.c | 1 - mentos/src/process/scheduler_algorithm.c | 8 +++++++- mentos/src/process/wait.c | 1 - mentos/src/sys/module.c | 8 +++++++- mentos/src/sys/utsname.c | 1 - mentos/src/system/errno.c | 1 - mentos/src/system/panic.c | 1 - mentos/src/system/printk.c | 1 - mentos/src/system/signal.c | 1 - mentos/src/system/syscall.c | 8 +++++++- programs/cat.c | 1 - programs/clear.c | 1 - programs/cpuid.c | 1 - programs/date.c | 1 - programs/echo.c | 1 - programs/env.c | 1 - programs/init.c | 1 - programs/ipcrm.c | 1 - programs/ipcs.c | 1 - programs/kill.c | 1 - programs/login.c | 3 +-- programs/logo.c | 1 - programs/ls.c | 1 - programs/man.c | 1 - programs/mkdir.c | 1 - programs/nice.c | 1 - programs/poweroff.c | 1 - programs/ps.c | 1 - programs/pwd.c | 1 - programs/rm.c | 1 - programs/rmdir.c | 1 - programs/shell.c | 1 - programs/showpid.c | 1 - programs/sleep.c | 1 - programs/tests/t_abort.c | 1 - programs/tests/t_alarm.c | 1 - programs/tests/t_exec.c | 1 - programs/tests/t_exec_callee.c | 1 - programs/tests/t_fork.c | 1 - programs/tests/t_getenv.c | 1 - programs/tests/t_gid.c | 1 - programs/tests/t_groups.c | 1 - programs/tests/t_itimer.c | 1 - programs/tests/t_kill.c | 1 - programs/tests/t_mem.c | 1 - programs/tests/t_periodic1.c | 1 - programs/tests/t_periodic2.c | 1 - programs/tests/t_periodic3.c | 1 - programs/tests/t_setenv.c | 1 - programs/tests/t_sigaction.c | 1 - programs/tests/t_sigfpe.c | 1 - programs/tests/t_siginfo.c | 1 - programs/tests/t_sigmask.c | 1 - programs/tests/t_sigusr.c | 1 - programs/tests/t_sleep.c | 1 - programs/tests/t_stopcont.c | 1 - programs/touch.c | 1 - programs/uname.c | 1 - 288 files changed, 150 insertions(+), 322 deletions(-) diff --git a/libc/inc/assert.h b/libc/inc/assert.h index 8b285a0..53d50d0 100644 --- a/libc/inc/assert.h +++ b/libc/inc/assert.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file assert.h /// @brief Defines the function and pre-processor macro for assertions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/bits/stat.h b/libc/inc/bits/stat.h index 2ff288b..b481949 100644 --- a/libc/inc/bits/stat.h +++ b/libc/inc/bits/stat.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file stat.h /// @brief Defines the structure used by the functiosn fstat(), lstat(), and stat(). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/bits/termios-struct.h b/libc/inc/bits/termios-struct.h index 88e16a4..bc7e982 100644 --- a/libc/inc/bits/termios-struct.h +++ b/libc/inc/bits/termios-struct.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file termios-struct.h /// @brief Definition of the `termios` structure. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/ctype.h b/libc/inc/ctype.h index 0471672..c4052b0 100644 --- a/libc/inc/ctype.h +++ b/libc/inc/ctype.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ctype.h /// @brief Functions related to character handling. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/debug.h b/libc/inc/debug.h index f660f62..bdcd196 100644 --- a/libc/inc/debug.h +++ b/libc/inc/debug.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file debug.h /// @brief Debugging primitives. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/fcntl.h b/libc/inc/fcntl.h index 3c965dc..0b639a9 100644 --- a/libc/inc/fcntl.h +++ b/libc/inc/fcntl.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file fcntl.h /// @brief Headers of functions fcntl() and open(). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/fcvt.h b/libc/inc/fcvt.h index 017d3ef..22b434e 100644 --- a/libc/inc/fcvt.h +++ b/libc/inc/fcvt.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file fcvt.h /// @brief Declare the functions required to turn double values into a string. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/grp.h b/libc/inc/grp.h index 42d2eb5..1ccb940 100644 --- a/libc/inc/grp.h +++ b/libc/inc/grp.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file grp.h /// @brief Defines the structures and functions for managing groups. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/io/mm_io.h b/libc/inc/io/mm_io.h index c81dce1..72b30f8 100644 --- a/libc/inc/io/mm_io.h +++ b/libc/inc/io/mm_io.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file mm_io.h /// @brief Memory Mapped IO functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/io/port_io.h b/libc/inc/io/port_io.h index fe20b5a..21286c0 100644 --- a/libc/inc/io/port_io.h +++ b/libc/inc/io/port_io.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file port_io.h /// @brief Byte I/O on ports prototypes. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/ipc/ipc.h b/libc/inc/ipc/ipc.h index f0867c5..e43c5d2 100644 --- a/libc/inc/ipc/ipc.h +++ b/libc/inc/ipc/ipc.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ipc.h /// @brief Inter-Process Communication (IPC) structures. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/ipc/msg.h b/libc/inc/ipc/msg.h index b832c0b..d014a44 100644 --- a/libc/inc/ipc/msg.h +++ b/libc/inc/ipc/msg.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file msg.h /// @brief Definition of structure for managing message queues. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/ipc/sem.h b/libc/inc/ipc/sem.h index e683e58..1fef186 100644 --- a/libc/inc/ipc/sem.h +++ b/libc/inc/ipc/sem.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file sem.h /// @brief Definition of structure for managing semaphores. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/ipc/shm.h b/libc/inc/ipc/shm.h index dec48bf..38e55e3 100644 --- a/libc/inc/ipc/shm.h +++ b/libc/inc/ipc/shm.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file shm.h /// @brief Definition of structure for managing shared memories. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/libgen.h b/libc/inc/libgen.h index 508bfb2..c0e7a7a 100644 --- a/libc/inc/libgen.h +++ b/libc/inc/libgen.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file libgen.h /// @brief String routines. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/limits.h b/libc/inc/limits.h index b2222f6..b5d8f4f 100644 --- a/libc/inc/limits.h +++ b/libc/inc/limits.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file limits.h /// @brief OS numeric limits. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/math.h b/libc/inc/math.h index fc99027..58863db 100644 --- a/libc/inc/math.h +++ b/libc/inc/math.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file math.h /// @brief Mathematical constants and functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/pwd.h b/libc/inc/pwd.h index 29e9098..426f08f 100644 --- a/libc/inc/pwd.h +++ b/libc/inc/pwd.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file pwd.h /// @brief Contains the structure and functions for managing passwords. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/sched.h b/libc/inc/sched.h index d82546e..39cd5e9 100644 --- a/libc/inc/sched.h +++ b/libc/inc/sched.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file sched.h /// @brief Structures and functions for managing the scheduler. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/signal.h b/libc/inc/signal.h index eebb828..8045196 100644 --- a/libc/inc/signal.h +++ b/libc/inc/signal.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file signal.h /// @brief Signals definition. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/stdarg.h b/libc/inc/stdarg.h index 097546e..80dca4e 100644 --- a/libc/inc/stdarg.h +++ b/libc/inc/stdarg.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file stdarg.h /// @brief Contains the macros required to manage variable number of arguments. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/stdbool.h b/libc/inc/stdbool.h index 97b48b5..1d265ab 100644 --- a/libc/inc/stdbool.h +++ b/libc/inc/stdbool.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file stdbool.h /// @brief Defines the boolean values. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/stddef.h b/libc/inc/stddef.h index ac2c81b..af809de 100644 --- a/libc/inc/stddef.h +++ b/libc/inc/stddef.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file stddef.h /// @brief Define basic data types. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/stdint.h b/libc/inc/stdint.h index d2b6449..a241f3c 100644 --- a/libc/inc/stdint.h +++ b/libc/inc/stdint.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file stdint.h /// @brief Standard integer data-types. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/stdio.h b/libc/inc/stdio.h index eceb086..b431f43 100644 --- a/libc/inc/stdio.h +++ b/libc/inc/stdio.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file stdio.h /// @brief Standard I/0 functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/stdlib.h b/libc/inc/stdlib.h index 77be723..f1d3a76 100644 --- a/libc/inc/stdlib.h +++ b/libc/inc/stdlib.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file stdlib.h /// @brief Useful generic functions and macros. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/strerror.h b/libc/inc/strerror.h index 575de9b..e8c828f 100644 --- a/libc/inc/strerror.h +++ b/libc/inc/strerror.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file strerror.h /// @brief Contains the function that transfornms an errno into a string. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/string.h b/libc/inc/string.h index 315bc13..c456a2f 100644 --- a/libc/inc/string.h +++ b/libc/inc/string.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file string.h /// @brief String routines. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/sys/bitops.h b/libc/inc/sys/bitops.h index 1c65468..4b3e14b 100644 --- a/libc/inc/sys/bitops.h +++ b/libc/inc/sys/bitops.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file bitops.h /// @brief Bitmasks functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/sys/dirent.h b/libc/inc/sys/dirent.h index 1c6d185..ba4042b 100644 --- a/libc/inc/sys/dirent.h +++ b/libc/inc/sys/dirent.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file dirent.h /// @brief Functions used to manage directories. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/sys/errno.h b/libc/inc/sys/errno.h index 1608340..46d599c 100644 --- a/libc/inc/sys/errno.h +++ b/libc/inc/sys/errno.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file errno.h /// @brief System call errors definition. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/sys/ioctl.h b/libc/inc/sys/ioctl.h index d039852..760c718 100644 --- a/libc/inc/sys/ioctl.h +++ b/libc/inc/sys/ioctl.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ioctl.h /// @brief Input/Output ConTroL (IOCTL) functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/sys/reboot.h b/libc/inc/sys/reboot.h index 4a6dd3d..eec507d 100644 --- a/libc/inc/sys/reboot.h +++ b/libc/inc/sys/reboot.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file reboot.h /// @brief Defines the values required to issue a reboot. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/sys/stat.h b/libc/inc/sys/stat.h index 258087f..3078c30 100644 --- a/libc/inc/sys/stat.h +++ b/libc/inc/sys/stat.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file stat.h /// @brief Stat functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/sys/types.h b/libc/inc/sys/types.h index 42336b2..915be4c 100644 --- a/libc/inc/sys/types.h +++ b/libc/inc/sys/types.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file types.h /// @brief Collection of Kernel datatype /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/sys/unistd.h b/libc/inc/sys/unistd.h index d14edcf..342d135 100644 --- a/libc/inc/sys/unistd.h +++ b/libc/inc/sys/unistd.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file unistd.h /// @brief Functions used to manage files. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/sys/utsname.h b/libc/inc/sys/utsname.h index c3330b9..9e545f1 100644 --- a/libc/inc/sys/utsname.h +++ b/libc/inc/sys/utsname.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file utsname.h /// @brief Functions used to provide information about the machine & OS. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/sys/wait.h b/libc/inc/sys/wait.h index 62bc49a..42636b5 100644 --- a/libc/inc/sys/wait.h +++ b/libc/inc/sys/wait.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file wait.h /// @brief Event management functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/system/syscall_types.h b/libc/inc/system/syscall_types.h index 98bf013..cc4fbd7 100644 --- a/libc/inc/system/syscall_types.h +++ b/libc/inc/system/syscall_types.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file syscall_types.h /// @brief System Call numbers. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/termios.h b/libc/inc/termios.h index c573a31..2e4c7c0 100644 --- a/libc/inc/termios.h +++ b/libc/inc/termios.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file termios.h /// @brief Defines the termios functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/inc/time.h b/libc/inc/time.h index b7e8072..f76752b 100644 --- a/libc/inc/time.h +++ b/libc/inc/time.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file time.h /// @brief Time-related functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/abort.c b/libc/src/abort.c index 5b1181b..0f561df 100644 --- a/libc/src/abort.c +++ b/libc/src/abort.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file abort.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/assert.c b/libc/src/assert.c index 5ceba4f..49bef7a 100644 --- a/libc/src/assert.c +++ b/libc/src/assert.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file assert.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/ctype.c b/libc/src/ctype.c index 88ce35f..2e3c37b 100644 --- a/libc/src/ctype.c +++ b/libc/src/ctype.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ctype.c /// @brief Functions related to character handling. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/debug.c b/libc/src/debug.c index 088253e..c9b0961 100644 --- a/libc/src/debug.c +++ b/libc/src/debug.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file debug.c /// @brief Debugging primitives. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/fcvt.c b/libc/src/fcvt.c index 750f564..0757e19 100644 --- a/libc/src/fcvt.c +++ b/libc/src/fcvt.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file fcvt.c /// @brief Define the functions required to turn double values into a string. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/grp.c b/libc/src/grp.c index 41c97f0..488404e 100644 --- a/libc/src/grp.c +++ b/libc/src/grp.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file grp.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/io/mm_io.c b/libc/src/io/mm_io.c index 5bcdaa2..8880c19 100644 --- a/libc/src/io/mm_io.c +++ b/libc/src/io/mm_io.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file mm_io.c /// @brief Memory Mapped IO functions implementation. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/io/port_io.c b/libc/src/io/port_io.c index ebe5072..b535cb0 100644 --- a/libc/src/io/port_io.c +++ b/libc/src/io/port_io.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file port_io.c /// @brief Byte I/O on ports prototypes. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/ipc/ipc.c b/libc/src/ipc/ipc.c index eb8f082..fae03b6 100644 --- a/libc/src/ipc/ipc.c +++ b/libc/src/ipc/ipc.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ipc.c /// @brief Inter-Process Communication (IPC) system call implementation. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/libgen.c b/libc/src/libgen.c index 50d03b5..f059254 100644 --- a/libc/src/libgen.c +++ b/libc/src/libgen.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file libgen.c /// @brief String routines. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/math.c b/libc/src/math.c index 35ffffd..1c6cd31 100644 --- a/libc/src/math.c +++ b/libc/src/math.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file math.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/pwd.c b/libc/src/pwd.c index cc4039a..9c719c5 100644 --- a/libc/src/pwd.c +++ b/libc/src/pwd.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file pwd.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/stdlib.c b/libc/src/stdlib.c index 5a6524a..7a34b28 100644 --- a/libc/src/stdlib.c +++ b/libc/src/stdlib.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file stdlib.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/strerror.c b/libc/src/strerror.c index bf346ee..62537f3 100644 --- a/libc/src/strerror.c +++ b/libc/src/strerror.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file strerror.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/string.c b/libc/src/string.c index 37c66e6..ed6620f 100644 --- a/libc/src/string.c +++ b/libc/src/string.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file string.c /// @brief String routines. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/sys/errno.c b/libc/src/sys/errno.c index 32e7e5f..7c32d52 100644 --- a/libc/src/sys/errno.c +++ b/libc/src/sys/errno.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file errno.c /// @brief Stores the error number. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/sys/ioctl.c b/libc/src/sys/ioctl.c index 3e4a461..8638f85 100644 --- a/libc/src/sys/ioctl.c +++ b/libc/src/sys/ioctl.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ioctl.c /// @brief Input/Output ConTroL (IOCTL) functions implementation. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/sys/unistd.c b/libc/src/sys/unistd.c index 81b1185..168a739 100644 --- a/libc/src/sys/unistd.c +++ b/libc/src/sys/unistd.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file unistd.c /// @brief Functions used to manage files. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/sys/utsname.c b/libc/src/sys/utsname.c index 8398d9b..2ab8526 100644 --- a/libc/src/sys/utsname.c +++ b/libc/src/sys/utsname.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file utsname.c /// @brief Functions used to provide information about the machine & OS. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/termios.c b/libc/src/termios.c index 074872f..7de7853 100644 --- a/libc/src/termios.c +++ b/libc/src/termios.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file termios.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/time.c b/libc/src/time.c index ce78f5b..02e92cb 100644 --- a/libc/src/time.c +++ b/libc/src/time.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file time.c /// @brief Clock functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/chdir.c b/libc/src/unistd/chdir.c index d93eb58..0d2c2f7 100644 --- a/libc/src/unistd/chdir.c +++ b/libc/src/unistd/chdir.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file chdir.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/close.c b/libc/src/unistd/close.c index 51013b6..61a450c 100644 --- a/libc/src/unistd/close.c +++ b/libc/src/unistd/close.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file close.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/creat.c b/libc/src/unistd/creat.c index 2e91f40..658d271 100644 --- a/libc/src/unistd/creat.c +++ b/libc/src/unistd/creat.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file creat.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/exec.c b/libc/src/unistd/exec.c index 3580d54..6c7ae36 100644 --- a/libc/src/unistd/exec.c +++ b/libc/src/unistd/exec.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file exec.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/exit.c b/libc/src/unistd/exit.c index 0432e08..438f912 100644 --- a/libc/src/unistd/exit.c +++ b/libc/src/unistd/exit.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file exit.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/fork.c b/libc/src/unistd/fork.c index a649f36..ba5fffa 100644 --- a/libc/src/unistd/fork.c +++ b/libc/src/unistd/fork.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file fork.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/getcwd.c b/libc/src/unistd/getcwd.c index af08b71..d1818c7 100644 --- a/libc/src/unistd/getcwd.c +++ b/libc/src/unistd/getcwd.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file getcwd.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/getdents.c b/libc/src/unistd/getdents.c index 29a2865..fdfb027 100644 --- a/libc/src/unistd/getdents.c +++ b/libc/src/unistd/getdents.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file getdents.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/getgid.c b/libc/src/unistd/getgid.c index c27ee57..09f7979 100644 --- a/libc/src/unistd/getgid.c +++ b/libc/src/unistd/getgid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file getgid.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/getpgid.c b/libc/src/unistd/getpgid.c index 783da97..430fe08 100644 --- a/libc/src/unistd/getpgid.c +++ b/libc/src/unistd/getpgid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file getpgid.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/getpid.c b/libc/src/unistd/getpid.c index d9851e9..0ff6657 100644 --- a/libc/src/unistd/getpid.c +++ b/libc/src/unistd/getpid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file getpid.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/getppid.c b/libc/src/unistd/getppid.c index 3cc612e..27942df 100644 --- a/libc/src/unistd/getppid.c +++ b/libc/src/unistd/getppid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file getppid.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/getsid.c b/libc/src/unistd/getsid.c index 7e8daf8..a7bd1e0 100644 --- a/libc/src/unistd/getsid.c +++ b/libc/src/unistd/getsid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file getsid.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/getuid.c b/libc/src/unistd/getuid.c index 9649759..4d02c35 100644 --- a/libc/src/unistd/getuid.c +++ b/libc/src/unistd/getuid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file getuid.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/kill.c b/libc/src/unistd/kill.c index 14e7a95..9f4db9b 100644 --- a/libc/src/unistd/kill.c +++ b/libc/src/unistd/kill.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file kill.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/lseek.c b/libc/src/unistd/lseek.c index b7b4fe4..54f2654 100644 --- a/libc/src/unistd/lseek.c +++ b/libc/src/unistd/lseek.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file open.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/mkdir.c b/libc/src/unistd/mkdir.c index e05c430..5cfc321 100644 --- a/libc/src/unistd/mkdir.c +++ b/libc/src/unistd/mkdir.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file mkdir.c /// @brief Make directory functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/nice.c b/libc/src/unistd/nice.c index d72815b..87ead6a 100644 --- a/libc/src/unistd/nice.c +++ b/libc/src/unistd/nice.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file nice.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/open.c b/libc/src/unistd/open.c index dfe1d8f..7a0d562 100644 --- a/libc/src/unistd/open.c +++ b/libc/src/unistd/open.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file open.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/read.c b/libc/src/unistd/read.c index 211166f..7988e0b 100644 --- a/libc/src/unistd/read.c +++ b/libc/src/unistd/read.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file read.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/reboot.c b/libc/src/unistd/reboot.c index d8a3a8c..d78e572 100644 --- a/libc/src/unistd/reboot.c +++ b/libc/src/unistd/reboot.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file reboot.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/rmdir.c b/libc/src/unistd/rmdir.c index 3c5115e..eb14d6b 100644 --- a/libc/src/unistd/rmdir.c +++ b/libc/src/unistd/rmdir.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file rmdir.c /// @brief Make directory functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/setgid.c b/libc/src/unistd/setgid.c index 7ec415a..abd8a9d 100644 --- a/libc/src/unistd/setgid.c +++ b/libc/src/unistd/setgid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file setgid.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/setpgid.c b/libc/src/unistd/setpgid.c index b573771..97cad58 100644 --- a/libc/src/unistd/setpgid.c +++ b/libc/src/unistd/setpgid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file setpgid.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/setsid.c b/libc/src/unistd/setsid.c index e988438..51372df 100644 --- a/libc/src/unistd/setsid.c +++ b/libc/src/unistd/setsid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file setsid.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/setuid.c b/libc/src/unistd/setuid.c index bf8e906..15b4cf8 100644 --- a/libc/src/unistd/setuid.c +++ b/libc/src/unistd/setuid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file setuid.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/signal.c b/libc/src/unistd/signal.c index f00d5e5..728c409 100644 --- a/libc/src/unistd/signal.c +++ b/libc/src/unistd/signal.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file signal.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/stat.c b/libc/src/unistd/stat.c index da0ae8c..dc66c3b 100644 --- a/libc/src/unistd/stat.c +++ b/libc/src/unistd/stat.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file stat.c /// @brief Stat functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/unlink.c b/libc/src/unistd/unlink.c index 4508ec7..d56bff5 100644 --- a/libc/src/unistd/unlink.c +++ b/libc/src/unistd/unlink.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file unlink.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/waitpid.c b/libc/src/unistd/waitpid.c index ee7d233..f4920f9 100644 --- a/libc/src/unistd/waitpid.c +++ b/libc/src/unistd/waitpid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file waitpid.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/unistd/write.c b/libc/src/unistd/write.c index 5f7e547..83616ec 100644 --- a/libc/src/unistd/write.c +++ b/libc/src/unistd/write.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file write.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/vscanf.c b/libc/src/vscanf.c index 5082962..98116a2 100644 --- a/libc/src/vscanf.c +++ b/libc/src/vscanf.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file vscanf.c /// @brief Reading formatting routines. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/libc/src/vsprintf.c b/libc/src/vsprintf.c index 7418095..cfd149b 100644 --- a/libc/src/vsprintf.c +++ b/libc/src/vsprintf.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file vsprintf.c /// @brief Print formatting routines. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/boot.h b/mentos/inc/boot.h index 4548e78..4692976 100644 --- a/mentos/inc/boot.h +++ b/mentos/inc/boot.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file boot.h /// @brief Bootloader structures /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/descriptor_tables/gdt.h b/mentos/inc/descriptor_tables/gdt.h index 7cfeabc..a3b76be 100644 --- a/mentos/inc/descriptor_tables/gdt.h +++ b/mentos/inc/descriptor_tables/gdt.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file gdt.h /// @brief Data structures concerning the Global Descriptor Table (GDT). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/descriptor_tables/idt.h b/mentos/inc/descriptor_tables/idt.h index df1d784..f607257 100644 --- a/mentos/inc/descriptor_tables/idt.h +++ b/mentos/inc/descriptor_tables/idt.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file idt.h /// @brief Data structures concerning the Interrupt Descriptor Table (IDT). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/descriptor_tables/isr.h b/mentos/inc/descriptor_tables/isr.h index 2c52c9a..42f1646 100644 --- a/mentos/inc/descriptor_tables/isr.h +++ b/mentos/inc/descriptor_tables/isr.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file isr.h /// @brief Data structures concerning the Interrupt Service Routines (ISRs). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/descriptor_tables/tss.h b/mentos/inc/descriptor_tables/tss.h index bdf9699..5a8e3e1 100644 --- a/mentos/inc/descriptor_tables/tss.h +++ b/mentos/inc/descriptor_tables/tss.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file tss.h /// @brief Data structures concerning the Task State Segment (TSS). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/devices/fpu.h b/mentos/inc/devices/fpu.h index 9f308a1..113381a 100644 --- a/mentos/inc/devices/fpu.h +++ b/mentos/inc/devices/fpu.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file fpu.h /// @brief Floating Point Unit (FPU). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/devices/pci.h b/mentos/inc/devices/pci.h index 3b6caa1..8270048 100644 --- a/mentos/inc/devices/pci.h +++ b/mentos/inc/devices/pci.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file pci.h /// @brief Routines for interfacing with the Peripheral Component Interconnect (PCI). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/drivers/ata.h b/mentos/inc/drivers/ata.h index 2b3b427..7d6c966 100644 --- a/mentos/inc/drivers/ata.h +++ b/mentos/inc/drivers/ata.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ata.h /// @brief Drivers for the Advanced Technology Attachment (ATA) devices. /// @details diff --git a/mentos/inc/drivers/fdc.h b/mentos/inc/drivers/fdc.h index bb36931..9fa1a4f 100644 --- a/mentos/inc/drivers/fdc.h +++ b/mentos/inc/drivers/fdc.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file fdc.h /// @brief Definitions about the floppy. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/drivers/keyboard/keyboard.h b/mentos/inc/drivers/keyboard/keyboard.h index 1560292..17fbd8c 100644 --- a/mentos/inc/drivers/keyboard/keyboard.h +++ b/mentos/inc/drivers/keyboard/keyboard.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file keyboard.h /// @brief Drivers for the Keyboard devices. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/drivers/keyboard/keymap.h b/mentos/inc/drivers/keyboard/keymap.h index 4ba7273..e72ec79 100644 --- a/mentos/inc/drivers/keyboard/keymap.h +++ b/mentos/inc/drivers/keyboard/keymap.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file keymap.h /// @brief Keymap for keyboard. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/drivers/mouse.h b/mentos/inc/drivers/mouse.h index 838cf34..8d45a99 100644 --- a/mentos/inc/drivers/mouse.h +++ b/mentos/inc/drivers/mouse.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file mouse.h /// @brief Driver for *PS2* Mouses. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/drivers/rtc.h b/mentos/inc/drivers/rtc.h index f66eb17..9edd934 100644 --- a/mentos/inc/drivers/rtc.h +++ b/mentos/inc/drivers/rtc.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file rtc.h /// @brief Real Time Clock (RTC) driver. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/elf/elf.h b/mentos/inc/elf/elf.h index 3a0df43..91c9e71 100644 --- a/mentos/inc/elf/elf.h +++ b/mentos/inc/elf/elf.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file elf.h /// @brief Function for managing the Executable and Linkable Format (ELF). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/fs/ext2.h b/mentos/inc/fs/ext2.h index dfc3447..c342492 100644 --- a/mentos/inc/fs/ext2.h +++ b/mentos/inc/fs/ext2.h @@ -1,8 +1,5 @@ /// @file ext2.h -/// @author Enrico Fraccaroli (enry.frak@gmail.com) /// @brief EXT2 driver. -/// @version 0.1 -/// @date 2021-12-13 /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. diff --git a/mentos/inc/fs/initrd.h b/mentos/inc/fs/initrd.h index d95cac4..54113f2 100644 --- a/mentos/inc/fs/initrd.h +++ b/mentos/inc/fs/initrd.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file initrd.h /// @brief Headers of functions for initrd filesystem. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/fs/ioctl.h b/mentos/inc/fs/ioctl.h index cab5e05..1aa9eb6 100644 --- a/mentos/inc/fs/ioctl.h +++ b/mentos/inc/fs/ioctl.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ioctl.h /// @brief Declares device controlling operations. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/fs/procfs.h b/mentos/inc/fs/procfs.h index 039e9d9..a65df74 100644 --- a/mentos/inc/fs/procfs.h +++ b/mentos/inc/fs/procfs.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file procfs.h /// @brief Proc file system public functions and structures. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/fs/vfs.h b/mentos/inc/fs/vfs.h index 4852c28..3922c12 100644 --- a/mentos/inc/fs/vfs.h +++ b/mentos/inc/fs/vfs.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file vfs.h /// @brief Headers for Virtual File System (VFS). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/fs/vfs_types.h b/mentos/inc/fs/vfs_types.h index 2ae2bcc..627ef0f 100644 --- a/mentos/inc/fs/vfs_types.h +++ b/mentos/inc/fs/vfs_types.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file vfs_types.h /// @brief Virtual filesystem data types. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/hardware/cpuid.h b/mentos/inc/hardware/cpuid.h index 76a6aab..7178a74 100644 --- a/mentos/inc/hardware/cpuid.h +++ b/mentos/inc/hardware/cpuid.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file cpuid.h /// @brief Structures and functions to handle the CPUID. /// @details diff --git a/mentos/inc/hardware/pic8259.h b/mentos/inc/hardware/pic8259.h index 5c7b01e..d79caf4 100644 --- a/mentos/inc/hardware/pic8259.h +++ b/mentos/inc/hardware/pic8259.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file pic8259.h /// @brief Data structures and functions required to manage the PIC8259. /// @details diff --git a/mentos/inc/hardware/timer.h b/mentos/inc/hardware/timer.h index 0faa231..68026f5 100644 --- a/mentos/inc/hardware/timer.h +++ b/mentos/inc/hardware/timer.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file timer.h /// @brief Programmable Interval Timer (PIT) definitions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/io/debug.h b/mentos/inc/io/debug.h index 7733c0e..8ce27e9 100644 --- a/mentos/inc/io/debug.h +++ b/mentos/inc/io/debug.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file debug.h /// @brief Debugging primitives. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/io/mm_io.h b/mentos/inc/io/mm_io.h index 152886e..6684bcb 100644 --- a/mentos/inc/io/mm_io.h +++ b/mentos/inc/io/mm_io.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file mm_io.h /// @brief Memory Mapped IO functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/io/port_io.h b/mentos/inc/io/port_io.h index 1ec56dd..3430b1b 100644 --- a/mentos/inc/io/port_io.h +++ b/mentos/inc/io/port_io.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file port_io.h /// @brief Byte I/O on ports prototypes. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/io/proc_modules.h b/mentos/inc/io/proc_modules.h index 6dbd4a2..8f0970c 100644 --- a/mentos/inc/io/proc_modules.h +++ b/mentos/inc/io/proc_modules.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file proc_modules.h /// @brief Contains functions for managing procfs filesystems. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/io/vga/vga.h b/mentos/inc/io/vga/vga.h index 766befc..826ab56 100644 --- a/mentos/inc/io/vga/vga.h +++ b/mentos/inc/io/vga/vga.h @@ -1,6 +1,5 @@ -/// MentOS, The Mentoring Operating system project /// @file vga.h -/// @brief FUnctions required to manage the Video Graphics Array (VGA). +/// @brief Functions required to manage the Video Graphics Array (VGA). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. diff --git a/mentos/inc/io/vga/vga_font.h b/mentos/inc/io/vga/vga_font.h index 761f38a..71c6dfd 100644 --- a/mentos/inc/io/vga/vga_font.h +++ b/mentos/inc/io/vga/vga_font.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file vga_font.h /// @brief VGA fonts. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/io/vga/vga_mode.h b/mentos/inc/io/vga/vga_mode.h index 81e205d..d562344 100644 --- a/mentos/inc/io/vga/vga_mode.h +++ b/mentos/inc/io/vga/vga_mode.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file vga_model.h /// @brief VGA models. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/io/vga/vga_palette.h b/mentos/inc/io/vga/vga_palette.h index 4f4f083..a0c203f 100644 --- a/mentos/inc/io/vga/vga_palette.h +++ b/mentos/inc/io/vga/vga_palette.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file vga_palette.h /// @brief VGA color palettes. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/io/video.h b/mentos/inc/io/video.h index ab03277..8d26ff5 100644 --- a/mentos/inc/io/video.h +++ b/mentos/inc/io/video.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file video.h /// @brief Video functions and costants. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/kernel.h b/mentos/inc/kernel.h index 320953e..6201038 100644 --- a/mentos/inc/kernel.h +++ b/mentos/inc/kernel.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file kernel.h /// @brief Kernel generic data structure and functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/klib/compiler.h b/mentos/inc/klib/compiler.h index 65a518c..5fb24fe 100644 --- a/mentos/inc/klib/compiler.h +++ b/mentos/inc/klib/compiler.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file compiler.h /// @brief Definition of memory barriers. /// @details diff --git a/mentos/inc/klib/hashmap.h b/mentos/inc/klib/hashmap.h index 5c511cc..f9c7ed1 100644 --- a/mentos/inc/klib/hashmap.h +++ b/mentos/inc/klib/hashmap.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file hashmap.h /// @brief Functions for managing a structure that can map keys to values. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/klib/irqflags.h b/mentos/inc/klib/irqflags.h index 23b3ad2..c34e964 100644 --- a/mentos/inc/klib/irqflags.h +++ b/mentos/inc/klib/irqflags.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file irqflags.h /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/klib/list.h b/mentos/inc/klib/list.h index 22dacff..5a022e8 100644 --- a/mentos/inc/klib/list.h +++ b/mentos/inc/klib/list.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file list.h /// @brief An implementation for generic list. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/klib/list_head.h b/mentos/inc/klib/list_head.h index 6130ebe..69a46b4 100644 --- a/mentos/inc/klib/list_head.h +++ b/mentos/inc/klib/list_head.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file list_head.h /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/klib/mutex.h b/mentos/inc/klib/mutex.h index e6aafe1..93b5ffe 100644 --- a/mentos/inc/klib/mutex.h +++ b/mentos/inc/klib/mutex.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file mutex.h /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/klib/ndtree.h b/mentos/inc/klib/ndtree.h index 55a6536..7273a42 100644 --- a/mentos/inc/klib/ndtree.h +++ b/mentos/inc/klib/ndtree.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ndtree.h /// @brief N-Dimensional tree. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/klib/rbtree.h b/mentos/inc/klib/rbtree.h index ae8732b..d22c0b9 100644 --- a/mentos/inc/klib/rbtree.h +++ b/mentos/inc/klib/rbtree.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file rbtree.h /// @brief Red/Black tree. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/klib/spinlock.h b/mentos/inc/klib/spinlock.h index f9f3c4d..5d5ba48 100644 --- a/mentos/inc/klib/spinlock.h +++ b/mentos/inc/klib/spinlock.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file spinlock.h /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/klib/stack_helper.h b/mentos/inc/klib/stack_helper.h index ea6dff3..3d0cfab 100644 --- a/mentos/inc/klib/stack_helper.h +++ b/mentos/inc/klib/stack_helper.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file stack_helper.h /// @brief Couple of macros that help accessing the stack. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/klib/stdatomic.h b/mentos/inc/klib/stdatomic.h index 03234d4..07c9068 100644 --- a/mentos/inc/klib/stdatomic.h +++ b/mentos/inc/klib/stdatomic.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file stdatomic.h /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/link_access.h b/mentos/inc/link_access.h index 76df631..e6a1077 100644 --- a/mentos/inc/link_access.h +++ b/mentos/inc/link_access.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file link_access.h /// @brief Set of macros that provide access to linking symbols. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/mem/buddysystem.h b/mentos/inc/mem/buddysystem.h index 2b311d1..509e148 100644 --- a/mentos/inc/mem/buddysystem.h +++ b/mentos/inc/mem/buddysystem.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file buddysystem.h /// @brief Buddy System. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/mem/gfp.h b/mentos/inc/mem/gfp.h index c1785fe..8aa5aab 100644 --- a/mentos/inc/mem/gfp.h +++ b/mentos/inc/mem/gfp.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file gfp.h /// @brief List of Get Free Pages (GFP) Flags. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/mem/kheap.h b/mentos/inc/mem/kheap.h index 309b74f..f192671 100644 --- a/mentos/inc/mem/kheap.h +++ b/mentos/inc/mem/kheap.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file kheap.h /// @brief Interface for kernel heap functions, also provides a placement /// malloc() for use before the heap is initialised. diff --git a/mentos/inc/mem/paging.h b/mentos/inc/mem/paging.h index 1298602..228eeaa 100644 --- a/mentos/inc/mem/paging.h +++ b/mentos/inc/mem/paging.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file paging.h /// @brief Implementation of a memory paging management. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/mem/slab.h b/mentos/inc/mem/slab.h index 5d99ea1..ad595d0 100644 --- a/mentos/inc/mem/slab.h +++ b/mentos/inc/mem/slab.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file slab.h /// @brief Functions and structures for managing memory slabs. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/mem/vmem_map.h b/mentos/inc/mem/vmem_map.h index b8e65b6..3321804 100644 --- a/mentos/inc/mem/vmem_map.h +++ b/mentos/inc/mem/vmem_map.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file vmem_map.h /// @brief Virtual memory mapping routines. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/mem/zone_allocator.h b/mentos/inc/mem/zone_allocator.h index 8fb57a5..057ce97 100644 --- a/mentos/inc/mem/zone_allocator.h +++ b/mentos/inc/mem/zone_allocator.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file zone_allocator.h /// @brief Implementation of the Zone Allocator /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/multiboot.h b/mentos/inc/multiboot.h index 3dac645..f6d73b9 100644 --- a/mentos/inc/multiboot.h +++ b/mentos/inc/multiboot.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file multiboot.h /// @brief Data structures used for multiboot. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/proc_access.h b/mentos/inc/proc_access.h index 05a1e3f..a0189ff 100644 --- a/mentos/inc/proc_access.h +++ b/mentos/inc/proc_access.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file proc_access.h /// @brief Set of functions and flags used to manage processors registers. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/process/prio.h b/mentos/inc/process/prio.h index 843dae5..c62efe8 100644 --- a/mentos/inc/process/prio.h +++ b/mentos/inc/process/prio.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file prio.h /// @brief Defines processes priority value. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/process/process.h b/mentos/inc/process/process.h index 57af125..352371e 100644 --- a/mentos/inc/process/process.h +++ b/mentos/inc/process/process.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file process.h /// @brief Process data structures and functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/process/scheduler.h b/mentos/inc/process/scheduler.h index 1fc6596..c4ffc62 100644 --- a/mentos/inc/process/scheduler.h +++ b/mentos/inc/process/scheduler.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file scheduler.h /// @brief Scheduler structures and functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/process/wait.h b/mentos/inc/process/wait.h index 05afbba..3bccb2d 100644 --- a/mentos/inc/process/wait.h +++ b/mentos/inc/process/wait.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file wait.h /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/sys/errno.h b/mentos/inc/sys/errno.h index f7b4530..a03b389 100644 --- a/mentos/inc/sys/errno.h +++ b/mentos/inc/sys/errno.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file errno.h /// @brief Errors definition. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/sys/ipc.h b/mentos/inc/sys/ipc.h index 6f774e6..0863d32 100644 --- a/mentos/inc/sys/ipc.h +++ b/mentos/inc/sys/ipc.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ipc.h /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/sys/kernel_levels.h b/mentos/inc/sys/kernel_levels.h index 5611219..e85d083 100644 --- a/mentos/inc/sys/kernel_levels.h +++ b/mentos/inc/sys/kernel_levels.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file kernel_levels.h /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/sys/module.h b/mentos/inc/sys/module.h index 87e110b..1099aba 100644 --- a/mentos/inc/sys/module.h +++ b/mentos/inc/sys/module.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file module.h /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/sys/reboot.h b/mentos/inc/sys/reboot.h index 3fd404e..29d8547 100644 --- a/mentos/inc/sys/reboot.h +++ b/mentos/inc/sys/reboot.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file reboot.h /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/sys/types.h b/mentos/inc/sys/types.h index 42336b2..915be4c 100644 --- a/mentos/inc/sys/types.h +++ b/mentos/inc/sys/types.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file types.h /// @brief Collection of Kernel datatype /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/sys/utsname.h b/mentos/inc/sys/utsname.h index 48b945a..98aa3a8 100644 --- a/mentos/inc/sys/utsname.h +++ b/mentos/inc/sys/utsname.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file utsname.h /// @brief Functions used to provide information about the machine & OS. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/system/panic.h b/mentos/inc/system/panic.h index e1cbaf6..3adf0f8 100644 --- a/mentos/inc/system/panic.h +++ b/mentos/inc/system/panic.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file panic.h /// @brief Functions used to manage kernel panic. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/system/printk.h b/mentos/inc/system/printk.h index b3adc71..944d9d8 100644 --- a/mentos/inc/system/printk.h +++ b/mentos/inc/system/printk.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file printk.h /// @brief Functions for managing the kernel messages. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/system/signal.h b/mentos/inc/system/signal.h index 4e360b1..87f63c9 100644 --- a/mentos/inc/system/signal.h +++ b/mentos/inc/system/signal.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file signal.h /// @brief Signals definition. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/system/syscall.h b/mentos/inc/system/syscall.h index ac23c1f..be2a6c9 100644 --- a/mentos/inc/system/syscall.h +++ b/mentos/inc/system/syscall.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file syscall.h /// @brief System Call handler definition. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/inc/version.h b/mentos/inc/version.h index d8fc1d1..a23ccaf 100644 --- a/mentos/inc/version.h +++ b/mentos/inc/version.h @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file version.h /// @brief Version information. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/descriptor_tables/exception.c b/mentos/src/descriptor_tables/exception.c index 1789618..e423edd 100644 --- a/mentos/src/descriptor_tables/exception.c +++ b/mentos/src/descriptor_tables/exception.c @@ -1,9 +1,15 @@ -/// MentOS, The Mentoring Operating system project /// @file exception.c /// @brief Functions which manage the Interrupt Service Routines (ISRs). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[EXEPT ]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "system/panic.h" #include "descriptor_tables/isr.h" #include "descriptor_tables/idt.h" diff --git a/mentos/src/descriptor_tables/gdt.c b/mentos/src/descriptor_tables/gdt.c index 46a84d5..7234da5 100644 --- a/mentos/src/descriptor_tables/gdt.c +++ b/mentos/src/descriptor_tables/gdt.c @@ -1,9 +1,15 @@ -/// MentOS, The Mentoring Operating system project /// @file gdt.c /// @brief Functions which manage the Global Descriptor Table (GDT). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[GDT ]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "io/debug.h" #include "descriptor_tables/gdt.h" #include "descriptor_tables/tss.h" diff --git a/mentos/src/descriptor_tables/idt.c b/mentos/src/descriptor_tables/idt.c index a4ae9de..40a47e9 100644 --- a/mentos/src/descriptor_tables/idt.c +++ b/mentos/src/descriptor_tables/idt.c @@ -1,9 +1,15 @@ -/// MentOS, The Mentoring Operating system project /// @file idt.c /// @brief Functions which manage the Interrupt Descriptor Table (IDT). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[IDT ]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "descriptor_tables/idt.h" #include "descriptor_tables/gdt.h" #include "descriptor_tables/isr.h" diff --git a/mentos/src/descriptor_tables/interrupt.c b/mentos/src/descriptor_tables/interrupt.c index 11d6b8f..32af176 100644 --- a/mentos/src/descriptor_tables/interrupt.c +++ b/mentos/src/descriptor_tables/interrupt.c @@ -1,9 +1,15 @@ -/// MentOS, The Mentoring Operating system project /// @file interrupt.c /// @brief Functions which manage the Interrupt Service Routines (ISRs). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[IRQ ]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "descriptor_tables/isr.h" #include "process/scheduler.h" diff --git a/mentos/src/descriptor_tables/tss.c b/mentos/src/descriptor_tables/tss.c index 867be60..c6a4faa 100644 --- a/mentos/src/descriptor_tables/tss.c +++ b/mentos/src/descriptor_tables/tss.c @@ -1,9 +1,15 @@ -/// MentOS, The Mentoring Operating system project /// @file tss.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[TSS ]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "descriptor_tables/tss.h" #include "string.h" diff --git a/mentos/src/devices/fpu.c b/mentos/src/devices/fpu.c index c48c250..3d1fe68 100644 --- a/mentos/src/devices/fpu.c +++ b/mentos/src/devices/fpu.c @@ -1,9 +1,15 @@ -/// MentOS, The Mentoring Operating system project /// @file fpu.c /// @brief Floating Point Unit (FPU). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[FPU ]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "devices/fpu.h" #include "descriptor_tables/isr.h" #include "io/debug.h" diff --git a/mentos/src/devices/pci.c b/mentos/src/devices/pci.c index 116d0e1..db8337c 100644 --- a/mentos/src/devices/pci.c +++ b/mentos/src/devices/pci.c @@ -1,10 +1,16 @@ -/// MentOS, The Mentoring Operating system project /// @file pci.c /// @brief Routines for PCI initialization. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. ///! @cond Doxygen_Suppress +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[PCI ]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "devices/pci.h" #include "io/debug.h" #include "string.h" diff --git a/mentos/src/drivers/ata.c b/mentos/src/drivers/ata.c index 17cc04d..25b6c36 100644 --- a/mentos/src/drivers/ata.c +++ b/mentos/src/drivers/ata.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ata.c /// @brief Advanced Technology Attachment (ATA) and Advanced Technology Attachment Packet Interface (ATAPI) drivers. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. @@ -6,8 +5,6 @@ /// @addtogroup ata /// @{ -#include "drivers/ata.h" - // Include the kernel log levels. #include "sys/kernel_levels.h" // Change the header. @@ -15,6 +12,8 @@ // Set the log level. #define __DEBUG_LEVEL__ LOGLEVEL_NOTICE +#include "drivers/ata.h" + #include "descriptor_tables/isr.h" #include "hardware/pic8259.h" #include "klib/spinlock.h" diff --git a/mentos/src/drivers/fdc.c b/mentos/src/drivers/fdc.c index 4ba0c07..8b54559 100644 --- a/mentos/src/drivers/fdc.c +++ b/mentos/src/drivers/fdc.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file fdc.c /// @brief Floppy driver controller handling. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. @@ -6,6 +5,13 @@ /// @addtogroup fdc /// @{ +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[FDC ]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "drivers/fdc.h" #include "io/video.h" #include "io/port_io.h" diff --git a/mentos/src/drivers/keyboard/keyboard.c b/mentos/src/drivers/keyboard/keyboard.c index eb228a4..e0586e8 100644 --- a/mentos/src/drivers/keyboard/keyboard.c +++ b/mentos/src/drivers/keyboard/keyboard.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file keyboard.c /// @brief Keyboard handling. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. @@ -6,6 +5,13 @@ /// @addtogroup keyboard /// @{ +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[KEYBRD]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "drivers/keyboard/keyboard.h" #include "io/port_io.h" diff --git a/mentos/src/drivers/keyboard/keymap.c b/mentos/src/drivers/keyboard/keymap.c index 61b453a..01c8899 100644 --- a/mentos/src/drivers/keyboard/keymap.c +++ b/mentos/src/drivers/keyboard/keymap.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file keymap.c /// @brief Keymap for keyboard. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/drivers/mouse.c b/mentos/src/drivers/mouse.c index 36c984a..c29d711 100644 --- a/mentos/src/drivers/mouse.c +++ b/mentos/src/drivers/mouse.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file mouse.c /// @brief Driver for *PS2* Mouses. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. @@ -6,6 +5,13 @@ /// @addtogroup mouse /// @{ +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[MOUSE ]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "drivers/mouse.h" #include "descriptor_tables/isr.h" #include "hardware/pic8259.h" diff --git a/mentos/src/drivers/rtc.c b/mentos/src/drivers/rtc.c index 6521063..88642db 100644 --- a/mentos/src/drivers/rtc.c +++ b/mentos/src/drivers/rtc.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file rtc.c /// @brief Real Time Clock (RTC) driver. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. @@ -6,6 +5,13 @@ /// @addtogroup rtc /// @{ +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[RTC ]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "drivers/rtc.h" #include "hardware/pic8259.h" diff --git a/mentos/src/elf/elf.c b/mentos/src/elf/elf.c index 684ca2b..36dfbbd 100644 --- a/mentos/src/elf/elf.c +++ b/mentos/src/elf/elf.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file elf.c /// @brief Function for multiboot support. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/fs/ext2.c b/mentos/src/fs/ext2.c index f190212..e26c66d 100644 --- a/mentos/src/fs/ext2.c +++ b/mentos/src/fs/ext2.c @@ -1,8 +1,5 @@ /// @file ext2.c -/// @author Enrico Fraccaroli (enry.frak@gmail.com) /// @brief EXT2 driver. -/// @version 0.1 -/// @date 2021-12-13 /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. @@ -13,7 +10,7 @@ // Change the header. #define __DEBUG_HEADER__ "[EXT2 ]" // Set the log level. -#define __DEBUG_LEVEL__ LOGLEVEL_DEBUG +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE #include "process/scheduler.h" #include "process/process.h" diff --git a/mentos/src/fs/initrd.c b/mentos/src/fs/initrd.c index 7feff1b..8aeff72 100644 --- a/mentos/src/fs/initrd.c +++ b/mentos/src/fs/initrd.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file initrd.c /// @brief Headers of functions for initrd filesystem. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/fs/ioctl.c b/mentos/src/fs/ioctl.c index d2e6b87..563ffe6 100644 --- a/mentos/src/fs/ioctl.c +++ b/mentos/src/fs/ioctl.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ioctl.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/fs/namei.c b/mentos/src/fs/namei.c index a78618f..de05606 100644 --- a/mentos/src/fs/namei.c +++ b/mentos/src/fs/namei.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file namei.c /// @brief Implementation of functions fcntl() and open(). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/fs/open.c b/mentos/src/fs/open.c index 910ce10..92949ea 100644 --- a/mentos/src/fs/open.c +++ b/mentos/src/fs/open.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file open.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/fs/procfs.c b/mentos/src/fs/procfs.c index bfc2c42..481c66f 100644 --- a/mentos/src/fs/procfs.c +++ b/mentos/src/fs/procfs.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file procfs.c /// @brief Proc file system implementation. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/fs/read_write.c b/mentos/src/fs/read_write.c index 23673f4..fd0c3f4 100644 --- a/mentos/src/fs/read_write.c +++ b/mentos/src/fs/read_write.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file read_write.c /// @brief Read and write functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/fs/readdir.c b/mentos/src/fs/readdir.c index c495e07..4e65347 100644 --- a/mentos/src/fs/readdir.c +++ b/mentos/src/fs/readdir.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file readdir.c /// @brief Function for accessing directory entries. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/fs/stat.c b/mentos/src/fs/stat.c index f1c479f..1f882bc 100644 --- a/mentos/src/fs/stat.c +++ b/mentos/src/fs/stat.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file stat.c /// @brief Stat functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/fs/vfs.c b/mentos/src/fs/vfs.c index 19b2d4e..885752d 100644 --- a/mentos/src/fs/vfs.c +++ b/mentos/src/fs/vfs.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file vfs.c /// @brief Headers for Virtual File System (VFS). /// @copyright (c) 2014-2021 This file is distributed under the MIT License. @@ -11,7 +10,7 @@ // Change the header. #define __DEBUG_HEADER__ "[VFS ]" // Set the log level. -#define __DEBUG_LEVEL__ LOGLEVEL_DEBUG +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE #include "process/scheduler.h" #include "klib/spinlock.h" diff --git a/mentos/src/hardware/cpuid.c b/mentos/src/hardware/cpuid.c index a157016..600a357 100644 --- a/mentos/src/hardware/cpuid.c +++ b/mentos/src/hardware/cpuid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file cpuid.c /// @brief CPUID-based function to detect CPU type. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/hardware/pic8259.c b/mentos/src/hardware/pic8259.c index 9dac083..98b0ee2 100644 --- a/mentos/src/hardware/pic8259.c +++ b/mentos/src/hardware/pic8259.c @@ -1,67 +1,56 @@ -/// MentOS, The Mentoring Operating system project /// @file pic8259.c /// @brief pic8259 definitions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[PIC ]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "hardware/pic8259.h" #include "io/port_io.h" #include "stddef.h" /// End-of-interrupt command code. #define EOI 0x20 - /// IO base address for master PIC. #define MASTER_PORT_COMMAND 0x20 - /// I/O address for data to master. #define MASTER_PORT_DATA (MASTER_PORT_COMMAND + 1) - /// IO base address for slave PIC. #define SLAVE_PORT_COMMAND 0xA0 - /// I/O address for data to slave. #define SLAVE_PORT_DATA (SLAVE_PORT_COMMAND + 1) - /// ICW4 (not) needed. #define ICW1_ICW4 0x01 - /// Single (cascade) mode. #define ICW1_SINGLE 0x02 - /// Call address interval 4 (8). #define ICW1_INTERVAL4 0x04 - /// Level triggered (edge) mode. #define ICW1_LEVEL 0x08 - /// Initialization - required. #define ICW1_INIT 0x10 - /// 8086/88 (MCS-80/85) mode #define ICW4_8086 0x01 - /// Auto (normal) EOI. #define ICW4_AUTO 0x02 - /// Buffered mode/slave. #define ICW4_BUF_SLAVE 0x08 - /// Buffered mode/master. #define ICW4_BUF_MASTER 0x0C - /// Special fully nested (not). #define ICW4_SFNM 0x10 - /// OCW3 irq ready next CMD read. #define PIC_READ_IRR 0x0A - /// OCW3 irq service next CMD read. #define PIC_READ_ISR 0x0B /// The current mask of the master. static byte_t master_cur_mask; - /// The current mask of the slave. static byte_t slave_cur_mask; diff --git a/mentos/src/hardware/timer.c b/mentos/src/hardware/timer.c index 3f043be..e51a88a 100644 --- a/mentos/src/hardware/timer.c +++ b/mentos/src/hardware/timer.c @@ -1,9 +1,15 @@ -/// MentOS, The Mentoring Operating system project /// @file timer.c /// @brief Timer implementation. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[TIMER ]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "hardware/timer.h" #include "klib/irqflags.h" diff --git a/mentos/src/io/debug.c b/mentos/src/io/debug.c index 5f7543b..cb6ef32 100644 --- a/mentos/src/io/debug.c +++ b/mentos/src/io/debug.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file debug.c /// @brief Debugging primitives. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/io/mm_io.c b/mentos/src/io/mm_io.c index 219f776..748535f 100644 --- a/mentos/src/io/mm_io.c +++ b/mentos/src/io/mm_io.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file mm_io.c /// @brief Memory Mapped IO functions implementation. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/io/port_io.c b/mentos/src/io/port_io.c index 9dfe3ff..cd869dd 100644 --- a/mentos/src/io/port_io.c +++ b/mentos/src/io/port_io.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file port_io.c /// @brief Byte I/O on ports prototypes. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/io/proc_running.c b/mentos/src/io/proc_running.c index d2d55fa..85b3a07 100644 --- a/mentos/src/io/proc_running.c +++ b/mentos/src/io/proc_running.c @@ -1,6 +1,7 @@ -// -// Created by andrea on 02/05/20. -// +/// @file proc_running.c +/// @brief Implementaiton of procr filesystem. +/// @copyright (c) 2014-2021 This file is distributed under the MIT License. +/// See LICENSE.md for details. #include "fs/procfs.h" diff --git a/mentos/src/io/proc_system.c b/mentos/src/io/proc_system.c index ddd519c..60d9c5d 100644 --- a/mentos/src/io/proc_system.c +++ b/mentos/src/io/proc_system.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file proc_system.c /// @brief Contains callbacks for procfs system files. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/io/proc_video.c b/mentos/src/io/proc_video.c index c8e647b..df15fcc 100644 --- a/mentos/src/io/proc_video.c +++ b/mentos/src/io/proc_video.c @@ -1,6 +1,7 @@ -// -// Created by andrea on 02/05/20. -// +/// @file proc_video.c +/// @brief Contains callbacks for procv system files. +/// @copyright (c) 2014-2021 This file is distributed under the MIT License. +/// See LICENSE.md for details. #include "bits/termios-struct.h" #include "drivers/keyboard/keyboard.h" diff --git a/mentos/src/io/stdio.c b/mentos/src/io/stdio.c index d28f4d4..44555ee 100644 --- a/mentos/src/io/stdio.c +++ b/mentos/src/io/stdio.c @@ -1,6 +1,7 @@ -/// @file stdio.c -/// @brief Standard I/0 functions. -/// @date Apr 2019 +/// @file stdio.c +/// @brief Standard IO functions. +/// @copyright (c) 2014-2021 This file is distributed under the MIT License. +/// See LICENSE.md for details. #include "system/syscall.h" #include "sys/errno.h" diff --git a/mentos/src/io/vga/vga.c b/mentos/src/io/vga/vga.c index 179c76b..af32e09 100644 --- a/mentos/src/io/vga/vga.c +++ b/mentos/src/io/vga/vga.c @@ -1,3 +1,15 @@ +/// @file vga.c +/// @brief Implementation of Video Graphics Array (VGA) drivers. +/// @copyright (c) 2014-2021 This file is distributed under the MIT License. +/// See LICENSE.md for details. + +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[VGA ]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "io/vga/vga.h" #include "io/vga/vga_palette.h" diff --git a/mentos/src/io/video.c b/mentos/src/io/video.c index d160806..7b86672 100644 --- a/mentos/src/io/video.c +++ b/mentos/src/io/video.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file video.c /// @brief Video functions and costants. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/ipc/msg.c b/mentos/src/ipc/msg.c index bbaa6d9..b59566a 100644 --- a/mentos/src/ipc/msg.c +++ b/mentos/src/ipc/msg.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file msg.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/ipc/sem.c b/mentos/src/ipc/sem.c index 238b40f..4588f23 100644 --- a/mentos/src/ipc/sem.c +++ b/mentos/src/ipc/sem.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file sem.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/ipc/shm.c b/mentos/src/ipc/shm.c index 4bab57c..7ca5c99 100644 --- a/mentos/src/ipc/shm.c +++ b/mentos/src/ipc/shm.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file shm.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/kernel.c b/mentos/src/kernel.c index 10d568d..5b2a319 100644 --- a/mentos/src/kernel.c +++ b/mentos/src/kernel.c @@ -1,9 +1,15 @@ -/// MentOS, The Mentoring Operating system project /// @file kernel.c /// @brief Kernel main function. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[KERNEL]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "io/proc_modules.h" #include "mem/vmem_map.h" #include "fs/procfs.h" @@ -125,7 +131,6 @@ int kmain(boot_info_t *boot_informations) return 1; } print_ok(); - pr_debug("End of modules: 0x%09p\n", get_address_after_modules()); //========================================================================== pr_notice("Initialize physical memory manager...\n"); diff --git a/mentos/src/kernel/sys.c b/mentos/src/kernel/sys.c index a9e5581..2ea6575 100644 --- a/mentos/src/kernel/sys.c +++ b/mentos/src/kernel/sys.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file sys.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/assert.c b/mentos/src/klib/assert.c index 9621daf..be6bb29 100644 --- a/mentos/src/klib/assert.c +++ b/mentos/src/klib/assert.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file assert.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/ctype.c b/mentos/src/klib/ctype.c index 88ce35f..2e3c37b 100644 --- a/mentos/src/klib/ctype.c +++ b/mentos/src/klib/ctype.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ctype.c /// @brief Functions related to character handling. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/fcvt.c b/mentos/src/klib/fcvt.c index 750f564..0757e19 100644 --- a/mentos/src/klib/fcvt.c +++ b/mentos/src/klib/fcvt.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file fcvt.c /// @brief Define the functions required to turn double values into a string. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/hashmap.c b/mentos/src/klib/hashmap.c index 3033aba..fe46bed 100644 --- a/mentos/src/klib/hashmap.c +++ b/mentos/src/klib/hashmap.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file hashmap.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/libgen.c b/mentos/src/klib/libgen.c index c0f642d..ac5114f 100644 --- a/mentos/src/klib/libgen.c +++ b/mentos/src/klib/libgen.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file libgen.c /// @brief String routines. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/list.c b/mentos/src/klib/list.c index 836c6c6..037a3da 100644 --- a/mentos/src/klib/list.c +++ b/mentos/src/klib/list.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file list.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/math.c b/mentos/src/klib/math.c index 35ffffd..1c6cd31 100644 --- a/mentos/src/klib/math.c +++ b/mentos/src/klib/math.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file math.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/mutex.c b/mentos/src/klib/mutex.c index f973381..710302c 100644 --- a/mentos/src/klib/mutex.c +++ b/mentos/src/klib/mutex.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file mutex.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/ndtree.c b/mentos/src/klib/ndtree.c index 2097623..b82c004 100644 --- a/mentos/src/klib/ndtree.c +++ b/mentos/src/klib/ndtree.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ndtree.c /// @brief Red/Black tree. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/rbtree.c b/mentos/src/klib/rbtree.c index 579ae69..c6cea55 100644 --- a/mentos/src/klib/rbtree.c +++ b/mentos/src/klib/rbtree.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file rbtree.c /// @brief Red/Black tree. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/spinlock.c b/mentos/src/klib/spinlock.c index 5c59035..e365832 100644 --- a/mentos/src/klib/spinlock.c +++ b/mentos/src/klib/spinlock.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file spinlock.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/strerror.c b/mentos/src/klib/strerror.c index bf346ee..62537f3 100644 --- a/mentos/src/klib/strerror.c +++ b/mentos/src/klib/strerror.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file strerror.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/string.c b/mentos/src/klib/string.c index 9cbd601..c3b959b 100644 --- a/mentos/src/klib/string.c +++ b/mentos/src/klib/string.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file string.c /// @brief String routines. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/time.c b/mentos/src/klib/time.c index 85459c2..8be7f75 100644 --- a/mentos/src/klib/time.c +++ b/mentos/src/klib/time.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file time.c /// @brief Clock functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/vscanf.c b/mentos/src/klib/vscanf.c index f9e323e..c6762b4 100644 --- a/mentos/src/klib/vscanf.c +++ b/mentos/src/klib/vscanf.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file vscanf.c /// @brief Reading formatting routines. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/klib/vsprintf.c b/mentos/src/klib/vsprintf.c index d44d4a7..fe3ae59 100644 --- a/mentos/src/klib/vsprintf.c +++ b/mentos/src/klib/vsprintf.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file vsprintf.c /// @brief Print formatting routines. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/mem/buddysystem.c b/mentos/src/mem/buddysystem.c index 0ebdd24..e010f10 100644 --- a/mentos/src/mem/buddysystem.c +++ b/mentos/src/mem/buddysystem.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file buddysystem.c /// @brief Buddy System. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/mem/kheap.c b/mentos/src/mem/kheap.c index 29ba641..3a85dc4 100644 --- a/mentos/src/mem/kheap.c +++ b/mentos/src/mem/kheap.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file kheap.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/mem/paging.c b/mentos/src/mem/paging.c index cc438e6..1955b2f 100644 --- a/mentos/src/mem/paging.c +++ b/mentos/src/mem/paging.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file paging.c /// @brief Implementation of a memory paging management. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/mem/slab.c b/mentos/src/mem/slab.c index 8545100..a6777f0 100644 --- a/mentos/src/mem/slab.c +++ b/mentos/src/mem/slab.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file mouse.h /// @brief Driver for *PS2* Mouses. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/mem/vmem_map.c b/mentos/src/mem/vmem_map.c index 8b6e68d..a653bb5 100644 --- a/mentos/src/mem/vmem_map.c +++ b/mentos/src/mem/vmem_map.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file vmem_map.c /// @brief Virtual memory mapping routines. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/mem/zone_allocator.c b/mentos/src/mem/zone_allocator.c index 87b747d..c6b3f4c 100644 --- a/mentos/src/mem/zone_allocator.c +++ b/mentos/src/mem/zone_allocator.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file zone_allocator.c /// @brief Implementation of the Zone Allocator /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/multiboot.c b/mentos/src/multiboot.c index d55a2ba..09bb189 100644 --- a/mentos/src/multiboot.c +++ b/mentos/src/multiboot.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file multiboot.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/process/process.c b/mentos/src/process/process.c index b8eabb3..178554b 100644 --- a/mentos/src/process/process.c +++ b/mentos/src/process/process.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file process.c /// @brief Process data structures and functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. @@ -9,7 +8,7 @@ // Change the header. #define __DEBUG_HEADER__ "[PROC ]" // Set the log level. -#define __DEBUG_LEVEL__ LOGLEVEL_DEBUG +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE #include "process/process.h" #include "process/scheduler.h" diff --git a/mentos/src/process/scheduler.c b/mentos/src/process/scheduler.c index 2f2def8..d3c5b12 100644 --- a/mentos/src/process/scheduler.c +++ b/mentos/src/process/scheduler.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file scheduler.c /// @brief Scheduler structures and functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/process/scheduler_algorithm.c b/mentos/src/process/scheduler_algorithm.c index 1eb3667..d971d6a 100644 --- a/mentos/src/process/scheduler_algorithm.c +++ b/mentos/src/process/scheduler_algorithm.c @@ -1,9 +1,15 @@ -/// MentOS, The Mentoring Operating system project /// @file scheduler_algorithm.c /// @brief Round Robin algorithm. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[SCHALG]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "hardware/timer.h" #include "process/prio.h" #include "io/debug.h" diff --git a/mentos/src/process/wait.c b/mentos/src/process/wait.c index a49bda5..f468baf 100644 --- a/mentos/src/process/wait.c +++ b/mentos/src/process/wait.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file wait.c /// @brief wait functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/sys/module.c b/mentos/src/sys/module.c index b090dec..37f1115 100644 --- a/mentos/src/sys/module.c +++ b/mentos/src/sys/module.c @@ -1,9 +1,15 @@ -/// MentOS, The Mentoring Operating system project /// @file module.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[MODULE]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "mem/slab.h" #include "sys/module.h" #include "string.h" diff --git a/mentos/src/sys/utsname.c b/mentos/src/sys/utsname.c index ebb62d8..2d997eb 100644 --- a/mentos/src/sys/utsname.c +++ b/mentos/src/sys/utsname.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file utsname.c /// @brief Functions used to provide information about the machine & OS. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/system/errno.c b/mentos/src/system/errno.c index c4bc9e1..1ff5f5c 100644 --- a/mentos/src/system/errno.c +++ b/mentos/src/system/errno.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file errno.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/system/panic.c b/mentos/src/system/panic.c index 116e198..75fc448 100644 --- a/mentos/src/system/panic.c +++ b/mentos/src/system/panic.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file panic.c /// @brief Functions used to manage kernel panic. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/system/printk.c b/mentos/src/system/printk.c index 00e475e..1e2a497 100644 --- a/mentos/src/system/printk.c +++ b/mentos/src/system/printk.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file printk.c /// @brief Functions for managing the kernel messages. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/system/signal.c b/mentos/src/system/signal.c index 20945c2..ec97519 100644 --- a/mentos/src/system/signal.c +++ b/mentos/src/system/signal.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file signal.c /// @brief Signals definition. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/mentos/src/system/syscall.c b/mentos/src/system/syscall.c index 2c009ed..6e20bc5 100644 --- a/mentos/src/system/syscall.c +++ b/mentos/src/system/syscall.c @@ -1,9 +1,15 @@ -/// MentOS, The Mentoring Operating system project /// @file syscall.c /// @brief System Call management functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. +// Include the kernel log levels. +#include "sys/kernel_levels.h" +// Change the header. +#define __DEBUG_HEADER__ "[SYSCLL]" +// Set the log level. +#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE + #include "devices/fpu.h" #include "mem/kheap.h" #include "system/syscall.h" diff --git a/programs/cat.c b/programs/cat.c index b18afe9..3b18c25 100644 --- a/programs/cat.c +++ b/programs/cat.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file cat.c /// @brief `cat` program. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/clear.c b/programs/clear.c index 910b13d..5bcd3bc 100644 --- a/programs/clear.c +++ b/programs/clear.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file clear.c /// @brief `clear` program. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/cpuid.c b/programs/cpuid.c index 2a5f6aa..b6007e2 100644 --- a/programs/cpuid.c +++ b/programs/cpuid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file cpuid.c /// @brief `cpuid` program. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/date.c b/programs/date.c index 7368d58..dbdf29e 100644 --- a/programs/date.c +++ b/programs/date.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file date.c /// @brief `date` program. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/echo.c b/programs/echo.c index 7d062fd..513cb15 100644 --- a/programs/echo.c +++ b/programs/echo.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file echo.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/env.c b/programs/env.c index 8ebf935..cdb488e 100644 --- a/programs/env.c +++ b/programs/env.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file env.c /// @brief `env` program. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/init.c b/programs/init.c index 45128a9..c21c248 100644 --- a/programs/init.c +++ b/programs/init.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file init.c /// @brief `init` program. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/ipcrm.c b/programs/ipcrm.c index 96aa5f2..f985c94 100644 --- a/programs/ipcrm.c +++ b/programs/ipcrm.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ipcrm.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/ipcs.c b/programs/ipcs.c index 6e7d21f..2b7912b 100644 --- a/programs/ipcs.c +++ b/programs/ipcs.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ipcs.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/kill.c b/programs/kill.c index e75cf31..192a80e 100644 --- a/programs/kill.c +++ b/programs/kill.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file kill.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/login.c b/programs/login.c index 5e8b7f5..81bd354 100644 --- a/programs/login.c +++ b/programs/login.c @@ -1,5 +1,4 @@ -///// MentOS, The Mentoring Operating system project -/// @file login.c +///// @file login.c /// @brief Functions used to manage login. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. /// See LICENSE.md for details. diff --git a/programs/logo.c b/programs/logo.c index ff77725..7531cb8 100644 --- a/programs/logo.c +++ b/programs/logo.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file logo.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/ls.c b/programs/ls.c index 45ec16c..9fc434b 100644 --- a/programs/ls.c +++ b/programs/ls.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ls.c /// @brief Command 'ls'. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/man.c b/programs/man.c index 377e2e0..ef603b5 100644 --- a/programs/man.c +++ b/programs/man.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file man.c /// @brief Shows the available commands. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/mkdir.c b/programs/mkdir.c index b91c734..40c9c6b 100644 --- a/programs/mkdir.c +++ b/programs/mkdir.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file mkdir.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/nice.c b/programs/nice.c index 63bc58b..2b7dc63 100644 --- a/programs/nice.c +++ b/programs/nice.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file nice.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/poweroff.c b/programs/poweroff.c index ef34fa4..8e8ce27 100644 --- a/programs/poweroff.c +++ b/programs/poweroff.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file poweroff.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/ps.c b/programs/ps.c index 4b90272..7f75143 100644 --- a/programs/ps.c +++ b/programs/ps.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file ps.c /// @brief Report a snapshot of the current processes. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/pwd.c b/programs/pwd.c index f57e020..7af1103 100644 --- a/programs/pwd.c +++ b/programs/pwd.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file pwd.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/rm.c b/programs/rm.c index fe320b2..684d0f2 100644 --- a/programs/rm.c +++ b/programs/rm.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file rm.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/rmdir.c b/programs/rmdir.c index 3ff4665..2a175d9 100644 --- a/programs/rmdir.c +++ b/programs/rmdir.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file rmdir.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/shell.c b/programs/shell.c index bfbf46a..1a470bc 100644 --- a/programs/shell.c +++ b/programs/shell.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file shell.c /// @brief Implement shell functions. /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/showpid.c b/programs/showpid.c index a621164..82d2228 100644 --- a/programs/showpid.c +++ b/programs/showpid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file showpid.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/sleep.c b/programs/sleep.c index 446c013..2dd7c09 100644 --- a/programs/sleep.c +++ b/programs/sleep.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file sleep.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_abort.c b/programs/tests/t_abort.c index 518010b..ff9d342 100644 --- a/programs/tests/t_abort.c +++ b/programs/tests/t_abort.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_abort.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_alarm.c b/programs/tests/t_alarm.c index 3633a9d..5ddd8a7 100644 --- a/programs/tests/t_alarm.c +++ b/programs/tests/t_alarm.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_alarm.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_exec.c b/programs/tests/t_exec.c index 821680a..8117879 100644 --- a/programs/tests/t_exec.c +++ b/programs/tests/t_exec.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_exec.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_exec_callee.c b/programs/tests/t_exec_callee.c index 1f31572..208c699 100644 --- a/programs/tests/t_exec_callee.c +++ b/programs/tests/t_exec_callee.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_exec_callee.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_fork.c b/programs/tests/t_fork.c index 744fc4e..e1299c8 100644 --- a/programs/tests/t_fork.c +++ b/programs/tests/t_fork.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_fork.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_getenv.c b/programs/tests/t_getenv.c index 5a068ab..a837c63 100644 --- a/programs/tests/t_getenv.c +++ b/programs/tests/t_getenv.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_getenv.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_gid.c b/programs/tests/t_gid.c index a03c6c8..22b3cef 100644 --- a/programs/tests/t_gid.c +++ b/programs/tests/t_gid.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_gid.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_groups.c b/programs/tests/t_groups.c index eba4f20..e1721bd 100644 --- a/programs/tests/t_groups.c +++ b/programs/tests/t_groups.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_groups.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_itimer.c b/programs/tests/t_itimer.c index 6ca2b84..da0602f 100644 --- a/programs/tests/t_itimer.c +++ b/programs/tests/t_itimer.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_itimer.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_kill.c b/programs/tests/t_kill.c index 98d08a8..b797b7b 100644 --- a/programs/tests/t_kill.c +++ b/programs/tests/t_kill.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_kill.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_mem.c b/programs/tests/t_mem.c index ab683ba..ffdfeb5 100644 --- a/programs/tests/t_mem.c +++ b/programs/tests/t_mem.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_mem.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_periodic1.c b/programs/tests/t_periodic1.c index 07dfde3..d4b904b 100644 --- a/programs/tests/t_periodic1.c +++ b/programs/tests/t_periodic1.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_periodic1.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_periodic2.c b/programs/tests/t_periodic2.c index 61d4bdb..447a7e2 100644 --- a/programs/tests/t_periodic2.c +++ b/programs/tests/t_periodic2.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_periodic2.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_periodic3.c b/programs/tests/t_periodic3.c index 41e5cac..a40562c 100644 --- a/programs/tests/t_periodic3.c +++ b/programs/tests/t_periodic3.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_periodic3.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_setenv.c b/programs/tests/t_setenv.c index 3eb0dea..233ec9a 100644 --- a/programs/tests/t_setenv.c +++ b/programs/tests/t_setenv.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_setenv.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_sigaction.c b/programs/tests/t_sigaction.c index c263bd3..e1ba5ca 100644 --- a/programs/tests/t_sigaction.c +++ b/programs/tests/t_sigaction.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_sigaction.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_sigfpe.c b/programs/tests/t_sigfpe.c index 26e4981..8dd9510 100644 --- a/programs/tests/t_sigfpe.c +++ b/programs/tests/t_sigfpe.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_sigfpe.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_siginfo.c b/programs/tests/t_siginfo.c index 9479835..bd00864 100644 --- a/programs/tests/t_siginfo.c +++ b/programs/tests/t_siginfo.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_siginfo.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_sigmask.c b/programs/tests/t_sigmask.c index 24f37bb..2dab577 100644 --- a/programs/tests/t_sigmask.c +++ b/programs/tests/t_sigmask.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_sigmask.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_sigusr.c b/programs/tests/t_sigusr.c index f9672b4..8589a82 100644 --- a/programs/tests/t_sigusr.c +++ b/programs/tests/t_sigusr.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_sigusr.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_sleep.c b/programs/tests/t_sleep.c index 2193fc3..1093f9e 100644 --- a/programs/tests/t_sleep.c +++ b/programs/tests/t_sleep.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_sleep.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/tests/t_stopcont.c b/programs/tests/t_stopcont.c index f666e07..d860513 100644 --- a/programs/tests/t_stopcont.c +++ b/programs/tests/t_stopcont.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file t_stopcont.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/touch.c b/programs/touch.c index 379ecc4..d78031b 100644 --- a/programs/touch.c +++ b/programs/touch.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file touch.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License. diff --git a/programs/uname.c b/programs/uname.c index 580d9d9..ea05127 100644 --- a/programs/uname.c +++ b/programs/uname.c @@ -1,4 +1,3 @@ -/// MentOS, The Mentoring Operating system project /// @file uname.c /// @brief /// @copyright (c) 2014-2021 This file is distributed under the MIT License.