Standardize header include guards.

This change makes all the standard library and kernel headers use header
guards with a consistent scheme within the reserved namespace to avoid
conflicts with non-standard-library-implementation code.
This commit is contained in:
Jonas 'Sortie' Termansen 2022-07-08 01:09:15 +02:00
parent 3ae81f08b3
commit 611dc22e73
207 changed files with 418 additions and 418 deletions

View File

@ -17,8 +17,8 @@
* Format of directory entries. * Format of directory entries.
*/ */
#ifndef INCLUDE_SORTIX____DIRENT_H #ifndef _INCLUDE_SORTIX____DIRENT_H
#define INCLUDE_SORTIX____DIRENT_H #define _INCLUDE_SORTIX____DIRENT_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Declaration of the sigset_t structure size. * Declaration of the sigset_t structure size.
*/ */
#ifndef INCLUDE_SORTIX____SIGSET_H #ifndef _INCLUDE_SORTIX____SIGSET_H
#define INCLUDE_SORTIX____SIGSET_H #define _INCLUDE_SORTIX____SIGSET_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Data types. * Data types.
*/ */
#ifndef INCLUDE_SORTIX____TYPES_H #ifndef _INCLUDE_SORTIX____TYPES_H
#define INCLUDE_SORTIX____TYPES_H #define _INCLUDE_SORTIX____TYPES_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Declarations for waiting for the events of children. * Declarations for waiting for the events of children.
*/ */
#ifndef INCLUDE_SORTIX____WAIT_H #ifndef _INCLUDE_SORTIX____WAIT_H
#define INCLUDE_SORTIX____WAIT_H #define _INCLUDE_SORTIX____WAIT_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Supported logical clock devices. * Supported logical clock devices.
*/ */
#ifndef INCLUDE_SORTIX_CLOCK_H #ifndef _INCLUDE_SORTIX_CLOCK_H
#define INCLUDE_SORTIX_CLOCK_H #define _INCLUDE_SORTIX_CLOCK_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Format of directory entries. * Format of directory entries.
*/ */
#ifndef INCLUDE_SORTIX_DIRENT_H #ifndef _INCLUDE_SORTIX_DIRENT_H
#define INCLUDE_SORTIX_DIRENT_H #define _INCLUDE_SORTIX_DIRENT_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Display message declarations. * Display message declarations.
*/ */
#ifndef SORTIX_INCLUDE_DISPLAY_H #ifndef _INCLUDE_SORTIX_DISPLAY_H
#define SORTIX_INCLUDE_DISPLAY_H #define _INCLUDE_SORTIX_DISPLAY_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Flags and constants related to process and thread exiting. * Flags and constants related to process and thread exiting.
*/ */
#ifndef INCLUDE_SORTIX_EXIT_H #ifndef _INCLUDE_SORTIX_EXIT_H
#define INCLUDE_SORTIX_EXIT_H #define _INCLUDE_SORTIX_EXIT_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Declares various constants related to opening files. * Declares various constants related to opening files.
*/ */
#ifndef INCLUDE_SORTIX_FCNTL_H #ifndef _INCLUDE_SORTIX_FCNTL_H
#define INCLUDE_SORTIX_FCNTL_H #define _INCLUDE_SORTIX_FCNTL_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Declarations related to the fork family of system calls on Sortix. * Declarations related to the fork family of system calls on Sortix.
*/ */
#ifndef INCLUDE_SORTIX_FORK_H #ifndef _INCLUDE_SORTIX_FORK_H
#define INCLUDE_SORTIX_FORK_H #define _INCLUDE_SORTIX_FORK_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Fast userspace mutexes. * Fast userspace mutexes.
*/ */
#ifndef INCLUDE_SORTIX_FUTEX_H #ifndef _INCLUDE_SORTIX_FUTEX_H
#define INCLUDE_SORTIX_FUTEX_H #define _INCLUDE_SORTIX_FUTEX_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* The Sortix init ramdisk filesystem format. * The Sortix init ramdisk filesystem format.
*/ */
#ifndef INCLUDE_SORTIX_INITRD_H #ifndef _INCLUDE_SORTIX_INITRD_H
#define INCLUDE_SORTIX_INITRD_H #define _INCLUDE_SORTIX_INITRD_H
#include <stdint.h> #include <stdint.h>

View File

@ -17,8 +17,8 @@
* Miscellaneous device control interface. * Miscellaneous device control interface.
*/ */
#ifndef INCLUDE_SORTIX_IOCTL_H #ifndef _INCLUDE_SORTIX_IOCTL_H
#define INCLUDE_SORTIX_IOCTL_H #define _INCLUDE_SORTIX_IOCTL_H
#define __IOCTL_TYPE_EXP 3 /* 2^3 kinds of argument types supported.*/ #define __IOCTL_TYPE_EXP 3 /* 2^3 kinds of argument types supported.*/
#define __IOCTL_TYPE_MASK ((1 << __IOCTL_TYPE_EXP) - 1) #define __IOCTL_TYPE_MASK ((1 << __IOCTL_TYPE_EXP) - 1)

View File

@ -17,8 +17,8 @@
* Declaration of the itimerspec structure. * Declaration of the itimerspec structure.
*/ */
#ifndef INCLUDE_SORTIX_ITIMERSPEC_H #ifndef _INCLUDE_SORTIX_ITIMERSPEC_H
#define INCLUDE_SORTIX_ITIMERSPEC_H #define _INCLUDE_SORTIX_ITIMERSPEC_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Binary data format describing the conversion of scancodes into codepoints. * Binary data format describing the conversion of scancodes into codepoints.
*/ */
#ifndef INCLUDE_SORTIX_KBLAYOUT_H #ifndef _INCLUDE_SORTIX_KBLAYOUT_H
#define INCLUDE_SORTIX_KBLAYOUT_H #define _INCLUDE_SORTIX_KBLAYOUT_H
#include <stdint.h> #include <stdint.h>

View File

@ -17,8 +17,8 @@
* Class to keep track of mount points. * Class to keep track of mount points.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_ADDRALLOC_H #ifndef _INCLUDE_SORTIX_KERNEL_ADDRALLOC_H
#define INCLUDE_SORTIX_KERNEL_ADDRALLOC_H #define _INCLUDE_SORTIX_KERNEL_ADDRALLOC_H
#include <stddef.h> #include <stddef.h>

View File

@ -17,8 +17,8 @@
* A virtual clock that can be measured and waited upon. * A virtual clock that can be measured and waited upon.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_CLOCK_H #ifndef _INCLUDE_SORTIX_KERNEL_CLOCK_H
#define INCLUDE_SORTIX_KERNEL_CLOCK_H #define _INCLUDE_SORTIX_KERNEL_CLOCK_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* The context for io operations: who made it, how should data be copied, etc. * The context for io operations: who made it, how should data be copied, etc.
*/ */
#ifndef SORTIX_COPY_H #ifndef _INCLUDE_SORTIX_KERNEL_COPY_H
#define SORTIX_COPY_H #define _INCLUDE_SORTIX_KERNEL_COPY_H
#include <stddef.h> #include <stddef.h>

View File

@ -17,8 +17,8 @@
* CPU-specific declarations. * CPU-specific declarations.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_CPU_H #ifndef _INCLUDE_SORTIX_KERNEL_CPU_H
#define INCLUDE_SORTIX_KERNEL_CPU_H #define _INCLUDE_SORTIX_KERNEL_CPU_H
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>

View File

@ -17,8 +17,8 @@
* Interface to using the cpuid instruction. * Interface to using the cpuid instruction.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_CPUID_H #ifndef _INCLUDE_SORTIX_KERNEL_CPUID_H
#define INCLUDE_SORTIX_KERNEL_CPUID_H #define _INCLUDE_SORTIX_KERNEL_CPUID_H
#include <stdint.h> #include <stdint.h>

View File

@ -18,8 +18,8 @@
* standard headers or at least one with a less generic name than decl.h. * standard headers or at least one with a less generic name than decl.h.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_DECL_H #ifndef _INCLUDE_SORTIX_KERNEL_DECL_H
#define INCLUDE_SORTIX_KERNEL_DECL_H #define _INCLUDE_SORTIX_KERNEL_DECL_H
#include <stdint.h> #include <stdint.h>

View File

@ -17,8 +17,8 @@
* A file descriptor. * A file descriptor.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_DESCRIPTOR_H #ifndef _INCLUDE_SORTIX_KERNEL_DESCRIPTOR_H
#define INCLUDE_SORTIX_KERNEL_DESCRIPTOR_H #define _INCLUDE_SORTIX_KERNEL_DESCRIPTOR_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* Table of file descriptors. * Table of file descriptors.
*/ */
#ifndef SORTIX_DTABLE_H #ifndef _INCLUDE_SORTIX_KERNEL_DTABLE_H
#define SORTIX_DTABLE_H #define _INCLUDE_SORTIX_KERNEL_DTABLE_H
#include <sortix/kernel/refcount.h> #include <sortix/kernel/refcount.h>

View File

@ -17,8 +17,8 @@
* Executable and Linkable Format. * Executable and Linkable Format.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_ELF_H #ifndef _INCLUDE_SORTIX_KERNEL_ELF_H
#define INCLUDE_SORTIX_KERNEL_ELF_H #define _INCLUDE_SORTIX_KERNEL_ELF_H
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>

View File

@ -17,8 +17,8 @@
* Cache mechanism for file contents. * Cache mechanism for file contents.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_FCACHE_H #ifndef _INCLUDE_SORTIX_KERNEL_FCACHE_H
#define INCLUDE_SORTIX_KERNEL_FCACHE_H #define _INCLUDE_SORTIX_KERNEL_FCACHE_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* Filesystem related utility functions. * Filesystem related utility functions.
*/ */
#ifndef SORTIX_FSFUNC_H #ifndef _INCLUDE_SORTIX_KERNEL_FSFUNC_H
#define SORTIX_FSFUNC_H #define _INCLUDE_SORTIX_KERNEL_FSFUNC_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* Harddisk interface. * Harddisk interface.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_HARDDISK_H #ifndef _INCLUDE_SORTIX_KERNEL_HARDDISK_H
#define INCLUDE_SORTIX_KERNEL_HARDDISK_H #define _INCLUDE_SORTIX_KERNEL_HARDDISK_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* Interfaces and utility classes for implementing inodes. * Interfaces and utility classes for implementing inodes.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_INODE_H #ifndef _INCLUDE_SORTIX_KERNEL_INODE_H
#define INCLUDE_SORTIX_KERNEL_INODE_H #define _INCLUDE_SORTIX_KERNEL_INODE_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* Functions that perform non-atomic operations in an atomic manner. * Functions that perform non-atomic operations in an atomic manner.
*/ */
#ifndef SORTIX_INTERLOCK_H #ifndef _INCLUDE_SORTIX_KERNEL_INTERLOCK_H
#define SORTIX_INTERLOCK_H #define _INCLUDE_SORTIX_KERNEL_INTERLOCK_H
namespace Sortix { namespace Sortix {

View File

@ -17,8 +17,8 @@
* High level interrupt services. * High level interrupt services.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_INTERRUPT_H #ifndef _INCLUDE_SORTIX_KERNEL_INTERRUPT_H
#define INCLUDE_SORTIX_KERNEL_INTERRUPT_H #define _INCLUDE_SORTIX_KERNEL_INTERRUPT_H
#include <stddef.h> #include <stddef.h>

View File

@ -17,8 +17,8 @@
* The context for io operations: who made it, how should data be copied, etc. * The context for io operations: who made it, how should data be copied, etc.
*/ */
#ifndef SORTIX_IOCTX_H #ifndef _INCLUDE_SORTIX_KERNEL_IOCTX_H
#define SORTIX_IOCTX_H #define _INCLUDE_SORTIX_KERNEL_IOCTX_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* IO ports. * IO ports.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_IOPORT_H #ifndef _INCLUDE_SORTIX_KERNEL_IOPORT_H
#define INCLUDE_SORTIX_KERNEL_IOPORT_H #define _INCLUDE_SORTIX_KERNEL_IOPORT_H
#if !(defined(__i386__) || defined(__x86_64__)) #if !(defined(__i386__) || defined(__x86_64__))
#error "This hardware platform doesn't have IO ports" #error "This hardware platform doesn't have IO ports"

View File

@ -17,8 +17,8 @@
* Base header for the Sortix kernel that includes common stuff. * Base header for the Sortix kernel that includes common stuff.
*/ */
#ifndef SORTIX_KERNEL_H #ifndef _INCLUDE_SORTIX_KERNEL_KERNEL_H
#define SORTIX_KERNEL_H #define _INCLUDE_SORTIX_KERNEL_KERNEL_H
#include <sortix/kernel/decl.h> #include <sortix/kernel/decl.h>
#include <sortix/kernel/log.h> #include <sortix/kernel/log.h>

View File

@ -17,8 +17,8 @@
* Various interfaces for keyboard devices and layouts. * Various interfaces for keyboard devices and layouts.
*/ */
#ifndef SORTIX_KEYBOARD_H #ifndef _INCLUDE_SORTIX_KERNEL_KEYBOARD_H
#define SORTIX_KEYBOARD_H #define _INCLUDE_SORTIX_KERNEL_KEYBOARD_H
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>

View File

@ -17,8 +17,8 @@
* Utility and synchronization mechanisms for kernel threads. * Utility and synchronization mechanisms for kernel threads.
*/ */
#ifndef SORTIX_KTHREAD_H #ifndef _INCLUDE_SORTIX_KERNEL_KTHREAD_H
#define SORTIX_KTHREAD_H #define _INCLUDE_SORTIX_KERNEL_KTHREAD_H
#include <stddef.h> #include <stddef.h>

View File

@ -17,8 +17,8 @@
* A system for logging various messages to the kernel log. * A system for logging various messages to the kernel log.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_LOG_H #ifndef _INCLUDE_SORTIX_KERNEL_LOG_H
#define INCLUDE_SORTIX_KERNEL_LOG_H #define _INCLUDE_SORTIX_KERNEL_LOG_H
#include <stdarg.h> #include <stdarg.h>
#include <stddef.h> #include <stddef.h>

View File

@ -17,8 +17,8 @@
* Functions that allow modification of virtual memory. * Functions that allow modification of virtual memory.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_MEMORYMANAGEMENT_H #ifndef _INCLUDE_SORTIX_KERNEL_MEMORYMANAGEMENT_H
#define INCLUDE_SORTIX_KERNEL_MEMORYMANAGEMENT_H #define _INCLUDE_SORTIX_KERNEL_MEMORYMANAGEMENT_H
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>

View File

@ -17,8 +17,8 @@
* Class to keep track of mount points. * Class to keep track of mount points.
*/ */
#ifndef SORTIX_MTABLE_H #ifndef _INCLUDE_SORTIX_KERNEL_MTABLE_H
#define SORTIX_MTABLE_H #define _INCLUDE_SORTIX_KERNEL_MTABLE_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* Displays an error whenever something critical happens. * Displays an error whenever something critical happens.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_PANIC_H #ifndef _INCLUDE_SORTIX_KERNEL_PANIC_H
#define INCLUDE_SORTIX_KERNEL_PANIC_H #define _INCLUDE_SORTIX_KERNEL_PANIC_H
namespace Sortix { namespace Sortix {

View File

@ -17,8 +17,8 @@
* PAT feature. * PAT feature.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_PAT_H #ifndef _INCLUDE_SORTIX_KERNEL_PAT_H
#define INCLUDE_SORTIX_KERNEL_PAT_H #define _INCLUDE_SORTIX_KERNEL_PAT_H
namespace Sortix { namespace Sortix {

View File

@ -17,8 +17,8 @@
* Functions for handling PCI devices. * Functions for handling PCI devices.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_PCI_MMIO_H #ifndef _INCLUDE_SORTIX_KERNEL_PCI_MMIO_H
#define INCLUDE_SORTIX_KERNEL_PCI_MMIO_H #define _INCLUDE_SORTIX_KERNEL_PCI_MMIO_H
#include <sortix/kernel/addralloc.h> #include <sortix/kernel/addralloc.h>
#include <sortix/kernel/memorymanagement.h> #include <sortix/kernel/memorymanagement.h>

View File

@ -17,8 +17,8 @@
* Functions for handling PCI devices. * Functions for handling PCI devices.
*/ */
#ifndef SORTIX_PCI_H #ifndef _INCLUDE_SORTIX_KERNEL_PCI_H
#define SORTIX_PCI_H #define _INCLUDE_SORTIX_KERNEL_PCI_H
#include <endian.h> #include <endian.h>
#include <stdint.h> #include <stdint.h>

View File

@ -17,8 +17,8 @@
* Embeddedable one-way data stream. * Embeddedable one-way data stream.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_PIPE_H #ifndef _INCLUDE_SORTIX_KERNEL_PIPE_H
#define INCLUDE_SORTIX_KERNEL_PIPE_H #define _INCLUDE_SORTIX_KERNEL_PIPE_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* Kernel declarations for event polling. * Kernel declarations for event polling.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_POLL_H #ifndef _INCLUDE_SORTIX_KERNEL_POLL_H
#define INCLUDE_SORTIX_KERNEL_POLL_H #define _INCLUDE_SORTIX_KERNEL_POLL_H
#include <sortix/kernel/kthread.h> #include <sortix/kernel/kthread.h>

View File

@ -17,8 +17,8 @@
* A named collection of threads. * A named collection of threads.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_PROCESS_H #ifndef _INCLUDE_SORTIX_KERNEL_PROCESS_H
#define INCLUDE_SORTIX_KERNEL_PROCESS_H #define _INCLUDE_SORTIX_KERNEL_PROCESS_H
#include <sortix/fork.h> #include <sortix/fork.h>
#include <sortix/resource.h> #include <sortix/resource.h>

View File

@ -17,8 +17,8 @@
* Various interfaces for keyboard devices and layouts. * Various interfaces for keyboard devices and layouts.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_PS2_H #ifndef _INCLUDE_SORTIX_KERNEL_PS2_H
#define INCLUDE_SORTIX_KERNEL_PS2_H #define _INCLUDE_SORTIX_KERNEL_PS2_H
#include <stdint.h> #include <stdint.h>

View File

@ -17,8 +17,8 @@
* Process table. * Process table.
*/ */
#ifndef INCLUDE_SORTIX_KERNEl_PTABLE_H #ifndef _INCLUDE_SORTIX_KERNEL_PTABLE_H
#define INCLUDE_SORTIX_KERNEl_PTABLE_H #define _INCLUDE_SORTIX_KERNEL_PTABLE_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* Kernel entropy gathering. * Kernel entropy gathering.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_RANDOM_H #ifndef _INCLUDE_SORTIX_KERNEL_RANDOM_H
#define INCLUDE_SORTIX_KERNEL_RANDOM_H #define _INCLUDE_SORTIX_KERNEL_RANDOM_H
#include <stddef.h> #include <stddef.h>

View File

@ -17,8 +17,8 @@
* A class that implements reference counting. * A class that implements reference counting.
*/ */
#ifndef SORTIX_REFCOUNT_H #ifndef _INCLUDE_SORTIX_KERNEL_REFCOUNT_H
#define SORTIX_REFCOUNT_H #define _INCLUDE_SORTIX_KERNEL_REFCOUNT_H
#include <sortix/kernel/kthread.h> #include <sortix/kernel/kthread.h>

View File

@ -17,8 +17,8 @@
* Register structures and platform-specific bits. * Register structures and platform-specific bits.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_REGISTERS_H #ifndef _INCLUDE_SORTIX_KERNEL_REGISTERS_H
#define INCLUDE_SORTIX_KERNEL_REGISTERS_H #define _INCLUDE_SORTIX_KERNEL_REGISTERS_H
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>

View File

@ -17,8 +17,8 @@
* Decides the order to execute threads in and switching between them. * Decides the order to execute threads in and switching between them.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_SCHEDULER_H #ifndef _INCLUDE_SORTIX_KERNEL_SCHEDULER_H
#define INCLUDE_SORTIX_KERNEL_SCHEDULER_H #define _INCLUDE_SORTIX_KERNEL_SCHEDULER_H
#include <sortix/kernel/decl.h> #include <sortix/kernel/decl.h>
#include <sortix/kernel/registers.h> #include <sortix/kernel/registers.h>

View File

@ -17,8 +17,8 @@
* Structure representing a segment in a process. * Structure representing a segment in a process.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_SEGMENT_H #ifndef _INCLUDE_SORTIX_KERNEL_SEGMENT_H
#define INCLUDE_SORTIX_KERNEL_SEGMENT_H #define _INCLUDE_SORTIX_KERNEL_SEGMENT_H
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>

View File

@ -17,8 +17,8 @@
* Asynchronous user-space thread interruption. * Asynchronous user-space thread interruption.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_SIGNAL_H #ifndef _INCLUDE_SORTIX_KERNEL_SIGNAL_H
#define INCLUDE_SORTIX_KERNEL_SIGNAL_H #define _INCLUDE_SORTIX_KERNEL_SIGNAL_H
#include <sortix/signal.h> #include <sortix/signal.h>
#include <sortix/sigset.h> #include <sortix/sigset.h>

View File

@ -17,8 +17,8 @@
* getsockopt() and setsockopt() utility functions. * getsockopt() and setsockopt() utility functions.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_SOCKOPT_H #ifndef _INCLUDE_SORTIX_KERNEL_SOCKOPT_H
#define INCLUDE_SORTIX_KERNEL_SOCKOPT_H #define _INCLUDE_SORTIX_KERNEL_SOCKOPT_H
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>

View File

@ -18,8 +18,8 @@
* accessed. It also provides binary search. * accessed. It also provides binary search.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_SORTEDLIST_H #ifndef _INCLUDE_SORTIX_KERNEL_SORTEDLIST_H
#define INCLUDE_SORTIX_KERNEL_SORTEDLIST_H #define _INCLUDE_SORTIX_KERNEL_SORTEDLIST_H
#include <assert.h> #include <assert.h>
#include <stddef.h> #include <stddef.h>

View File

@ -17,8 +17,8 @@
* Useful functions for manipulating strings that don't belong in libc. * Useful functions for manipulating strings that don't belong in libc.
*/ */
#ifndef SORTIX_STRING_H #ifndef _INCLUDE_SORTIX_KERNEL_STRING_H
#define SORTIX_STRING_H #define _INCLUDE_SORTIX_KERNEL_STRING_H
#include <stddef.h> #include <stddef.h>

View File

@ -17,8 +17,8 @@
* Handles system calls from user-space. * Handles system calls from user-space.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_SYSCALL_H #ifndef _INCLUDE_SORTIX_KERNEL_SYSCALL_H
#define INCLUDE_SORTIX_KERNEL_SYSCALL_H #define _INCLUDE_SORTIX_KERNEL_SYSCALL_H
#include <sys/dnsconfig.h> #include <sys/dnsconfig.h>
#include <sys/socket.h> #include <sys/socket.h>

View File

@ -17,8 +17,8 @@
* Provides a indexable text buffer for used by text mode terminals. * Provides a indexable text buffer for used by text mode terminals.
*/ */
#ifndef SORTIX_TEXTBUFFER_H #ifndef _INCLUDE_SORTIX_KERNEL_TEXTBUFFER_H
#define SORTIX_TEXTBUFFER_H #define _INCLUDE_SORTIX_KERNEL_TEXTBUFFER_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* Describes a thread belonging to a process. * Describes a thread belonging to a process.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_THREAD_H #ifndef _INCLUDE_SORTIX_KERNEL_THREAD_H
#define INCLUDE_SORTIX_KERNEL_THREAD_H #define _INCLUDE_SORTIX_KERNEL_THREAD_H
#include <stdint.h> #include <stdint.h>

View File

@ -17,8 +17,8 @@
* Retrieving the current time. * Retrieving the current time.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_TIME_H #ifndef _INCLUDE_SORTIX_KERNEL_TIME_H
#define INCLUDE_SORTIX_KERNEL_TIME_H #define _INCLUDE_SORTIX_KERNEL_TIME_H
#include <sys/cdefs.h> #include <sys/cdefs.h>
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* A virtual timer that triggers an action in a worker thread when triggered. * A virtual timer that triggers an action in a worker thread when triggered.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_TIMER_H #ifndef _INCLUDE_SORTIX_KERNEL_TIMER_H
#define INCLUDE_SORTIX_KERNEL_TIMER_H #define _INCLUDE_SORTIX_KERNEL_TIMER_H
#include <sortix/timespec.h> #include <sortix/timespec.h>
#include <sortix/itimerspec.h> #include <sortix/itimerspec.h>

View File

@ -17,8 +17,8 @@
* Timer facility provided to user-space. * Timer facility provided to user-space.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_USER_TIMER_H #ifndef _INCLUDE_SORTIX_KERNEL_USER_TIMER_H
#define INCLUDE_SORTIX_KERNEL_USER_TIMER_H #define _INCLUDE_SORTIX_KERNEL_USER_TIMER_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* Framework for Sortix video drivers. * Framework for Sortix video drivers.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_VIDEO_H #ifndef _INCLUDE_SORTIX_KERNEL_VIDEO_H
#define INCLUDE_SORTIX_KERNEL_VIDEO_H #define _INCLUDE_SORTIX_KERNEL_VIDEO_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* Nodes in the virtual filesystem. * Nodes in the virtual filesystem.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_VNODE_H #ifndef _INCLUDE_SORTIX_KERNEL_VNODE_H
#define INCLUDE_SORTIX_KERNEL_VNODE_H #define _INCLUDE_SORTIX_KERNEL_VNODE_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* Kernel worker thread. * Kernel worker thread.
*/ */
#ifndef SORTIX_WORKER_H #ifndef _INCLUDE_SORTIX_KERNEL_WORKER_H
#define SORTIX_WORKER_H #define _INCLUDE_SORTIX_KERNEL_WORKER_H
#include <stddef.h> #include <stddef.h>

View File

@ -17,8 +17,8 @@
* Template that allows creation of easily-iterable sequences. * Template that allows creation of easily-iterable sequences.
*/ */
#ifndef INCLUDE_SORTIX_KERNEL_YIELDER_H #ifndef _INCLUDE_SORTIX_KERNEL_YIELDER_H
#define INCLUDE_SORTIX_KERNEL_YIELDER_H #define _INCLUDE_SORTIX_KERNEL_YIELDER_H
namespace Sortix { namespace Sortix {

View File

@ -17,8 +17,8 @@
* Defines codes for every logical key on keyboards. * Defines codes for every logical key on keyboards.
*/ */
#ifndef SORTIX_KEYCODES_H #ifndef _INCLUDE_SORTIX_KEYCODES_H
#define SORTIX_KEYCODES_H #define _INCLUDE_SORTIX_KEYCODES_H
/* Each of these keycodes corrospond to a logical key on a keyboard. Code /* Each of these keycodes corrospond to a logical key on a keyboard. Code
reading logical keystrokes from the keyboard will receive a code from this reading logical keystrokes from the keyboard will receive a code from this

View File

@ -17,8 +17,8 @@
* System limits. * System limits.
*/ */
#ifndef INCLUDE_SORTIX_LIMITS_H #ifndef _INCLUDE_SORTIX_LIMITS_H
#define INCLUDE_SORTIX_LIMITS_H #define _INCLUDE_SORTIX_LIMITS_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Memory management declarations. * Memory management declarations.
*/ */
#ifndef SORTIX_MMAN_H #ifndef _INCLUDE_SORTIX_MMAN_H
#define SORTIX_MMAN_H #define _INCLUDE_SORTIX_MMAN_H
/* Note that not all combinations of the following may be possible on all /* Note that not all combinations of the following may be possible on all
architectures. However, you do get at least as much access as you request. */ architectures. However, you do get at least as much access as you request. */

View File

@ -17,8 +17,8 @@
* Defines the symbolic constants for use in mode_t. * Defines the symbolic constants for use in mode_t.
*/ */
#ifndef INCLUDE_SORTIX_MODE_H #ifndef _INCLUDE_SORTIX_MODE_H
#define INCLUDE_SORTIX_MODE_H #define _INCLUDE_SORTIX_MODE_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Constants related to mounting and binding. * Constants related to mounting and binding.
*/ */
#ifndef SORTIX_INCLUDE_MOUNT_H #ifndef _INCLUDE_SORTIX_MOUNT_H
#define SORTIX_INCLUDE_MOUNT_H #define _INCLUDE_SORTIX_MOUNT_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Interface for waiting on file descriptor events. * Interface for waiting on file descriptor events.
*/ */
#ifndef INCLUDE_SORTIX_POLL_H #ifndef _INCLUDE_SORTIX_POLL_H
#define INCLUDE_SORTIX_POLL_H #define _INCLUDE_SORTIX_POLL_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Defines macros for the PS/2 mouse protocol. * Defines macros for the PS/2 mouse protocol.
*/ */
#ifndef INCLUDE_SORTIX_PS2MOUSE_H #ifndef _INCLUDE_SORTIX_PS2MOUSE_H
#define INCLUDE_SORTIX_PS2MOUSE_H #define _INCLUDE_SORTIX_PS2MOUSE_H
#define MOUSE_PACKET_SIZE 3 #define MOUSE_PACKET_SIZE 3

View File

@ -17,8 +17,8 @@
* Process control interface. * Process control interface.
*/ */
#ifndef INCLUDE_SORTIX_PSCTL_H #ifndef _INCLUDE_SORTIX_PSCTL_H
#define INCLUDE_SORTIX_PSCTL_H #define _INCLUDE_SORTIX_PSCTL_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Resource limits and operations. * Resource limits and operations.
*/ */
#ifndef INCLUDE_SORTIX_RESOURCE_H #ifndef _INCLUDE_SORTIX_RESOURCE_H
#define INCLUDE_SORTIX_RESOURCE_H #define _INCLUDE_SORTIX_RESOURCE_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Defines the SEEK_CUR, SEEK_SET, and SEEK_END values. * Defines the SEEK_CUR, SEEK_SET, and SEEK_END values.
*/ */
#ifndef SORTIX_SEEK_H #ifndef _INCLUDE_SORTIX_SEEK_H
#define SORTIX_SEEK_H #define _INCLUDE_SORTIX_SEEK_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Declares struct sigaction and associated flags. * Declares struct sigaction and associated flags.
*/ */
#ifndef INCLUDE_SORTIX_SIGACTION_H #ifndef _INCLUDE_SORTIX_SIGACTION_H
#define INCLUDE_SORTIX_SIGACTION_H #define _INCLUDE_SORTIX_SIGACTION_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Declares the sigevent structure. * Declares the sigevent structure.
*/ */
#ifndef INCLUDE_SORTIX_SIGEVENT_H #ifndef _INCLUDE_SORTIX_SIGEVENT_H
#define INCLUDE_SORTIX_SIGEVENT_H #define _INCLUDE_SORTIX_SIGEVENT_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Declares siginfo_t and associated flags. * Declares siginfo_t and associated flags.
*/ */
#ifndef INCLUDE_SORTIX_SIGINFO_H #ifndef _INCLUDE_SORTIX_SIGINFO_H
#define INCLUDE_SORTIX_SIGINFO_H #define _INCLUDE_SORTIX_SIGINFO_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Defines the numeric values for the various supported signals. * Defines the numeric values for the various supported signals.
*/ */
#ifndef SORTIX_INCLUDE_SIGNAL_H #ifndef _INCLUDE_SORTIX_SIGNAL_H
#define SORTIX_INCLUDE_SIGNAL_H #define _INCLUDE_SORTIX_SIGNAL_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Declares flags for sigprocmask. * Declares flags for sigprocmask.
*/ */
#ifndef INCLUDE_SORTIX_SIGPROCMASK_H #ifndef _INCLUDE_SORTIX_SIGPROCMASK_H
#define INCLUDE_SORTIX_SIGPROCMASK_H #define _INCLUDE_SORTIX_SIGPROCMASK_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Declaration of the sigset_t structure. * Declaration of the sigset_t structure.
*/ */
#ifndef INCLUDE_SORTIX_SIGSET_H #ifndef _INCLUDE_SORTIX_SIGSET_H
#define INCLUDE_SORTIX_SIGSET_H #define _INCLUDE_SORTIX_SIGSET_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Declares union sigval. * Declares union sigval.
*/ */
#ifndef INCLUDE_SORTIX_SIGVAL_H #ifndef _INCLUDE_SORTIX_SIGVAL_H
#define INCLUDE_SORTIX_SIGVAL_H #define _INCLUDE_SORTIX_SIGVAL_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Declarations for socket types and other flags. * Declarations for socket types and other flags.
*/ */
#ifndef SORTIX_INCLUDE_SOCKET_H #ifndef _INCLUDE_SORTIX_SOCKET_H
#define SORTIX_INCLUDE_SOCKET_H #define _INCLUDE_SORTIX_SOCKET_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Declares stack_t and associated flags. * Declares stack_t and associated flags.
*/ */
#ifndef INCLUDE_SORTIX_STACK_H #ifndef _INCLUDE_SORTIX_STACK_H
#define INCLUDE_SORTIX_STACK_H #define _INCLUDE_SORTIX_STACK_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -18,8 +18,8 @@
* macros and values relating to values stored in it. * macros and values relating to values stored in it.
*/ */
#ifndef INCLUDE_SORTIX_STAT_H #ifndef _INCLUDE_SORTIX_STAT_H
#define INCLUDE_SORTIX_STAT_H #define _INCLUDE_SORTIX_STAT_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Virtual filesystem information structure. * Virtual filesystem information structure.
*/ */
#ifndef INCLUDE_SORTIX_STATVFS_H #ifndef _INCLUDE_SORTIX_STATVFS_H
#define INCLUDE_SORTIX_STATVFS_H #define _INCLUDE_SORTIX_STATVFS_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Numeric constants identifying each system call. * Numeric constants identifying each system call.
*/ */
#ifndef INCLUDE_SORTIX_SYSCALLNUM_H #ifndef _INCLUDE_SORTIX_SYSCALL_H
#define INCLUDE_SORTIX_SYSCALLNUM_H #define _INCLUDE_SORTIX_SYSCALL_H
#define SYSCALL_BAD_SYSCALL 0 #define SYSCALL_BAD_SYSCALL 0
#define SYSCALL_EXIT 1 /* OBSOLETE */ #define SYSCALL_EXIT 1 /* OBSOLETE */

View File

@ -17,8 +17,8 @@
* tar archieve format. * tar archieve format.
*/ */
#ifndef INCLUDE_SORTIX_TAR_H #ifndef _INCLUDE_SORTIX_TAR_H
#define INCLUDE_SORTIX_TAR_H #define _INCLUDE_SORTIX_TAR_H
struct tar struct tar
{ {

View File

@ -17,8 +17,8 @@
* Termios types and constants. * Termios types and constants.
*/ */
#ifndef INCLUDE_SORTIX_TERMIOS_H #ifndef _INCLUDE_SORTIX_TERMIOS_H
#define INCLUDE_SORTIX_TERMIOS_H #define _INCLUDE_SORTIX_TERMIOS_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Defines constants for various terminal modes. * Defines constants for various terminal modes.
*/ */
#ifndef SORTIX_TERMMODE_H #ifndef _INCLUDE_SORTIX_TERMMODE_H
#define SORTIX_TERMMODE_H #define _INCLUDE_SORTIX_TERMMODE_H
#define TERMMODE_KBKEY (1U << 0) /* ISORTIX_ENABLE_KBKEY */ #define TERMMODE_KBKEY (1U << 0) /* ISORTIX_ENABLE_KBKEY */
#define TERMMODE_UNICODE (1U << 1) /* !ISORTIX_DISABLE_CHARS */ #define TERMMODE_UNICODE (1U << 1) /* !ISORTIX_DISABLE_CHARS */

View File

@ -17,8 +17,8 @@
* Declarations for the kernel time interfaces. * Declarations for the kernel time interfaces.
*/ */
#ifndef INCLUDE_SORTIX_TIME_H #ifndef _INCLUDE_SORTIX_TIME_H
#define INCLUDE_SORTIX_TIME_H #define _INCLUDE_SORTIX_TIME_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Declaration of the timespec structure. * Declaration of the timespec structure.
*/ */
#ifndef INCLUDE_SORTIX_TIMESPEC_H #ifndef _INCLUDE_SORTIX_TIMESPEC_H
#define INCLUDE_SORTIX_TIMESPEC_H #define _INCLUDE_SORTIX_TIMESPEC_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Declarations for the kernel time interfaces. * Declarations for the kernel time interfaces.
*/ */
#ifndef INCLUDE_SORTIX_TMNS_H #ifndef _INCLUDE_SORTIX_TMNS_H
#define INCLUDE_SORTIX_TMNS_H #define _INCLUDE_SORTIX_TMNS_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Data types. * Data types.
*/ */
#ifndef INCLUDE_SORTIX_TYPES_H #ifndef _INCLUDE_SORTIX_TYPES_H
#define INCLUDE_SORTIX_TYPES_H #define _INCLUDE_SORTIX_TYPES_H
#include <sys/types.h> #include <sys/types.h>

View File

@ -17,8 +17,8 @@
* Declares ucontext_t and associated values. * Declares ucontext_t and associated values.
*/ */
#ifndef INCLUDE_SORTIX_UCONTEXT_H #ifndef _INCLUDE_SORTIX_UCONTEXT_H
#define INCLUDE_SORTIX_UCONTEXT_H #define _INCLUDE_SORTIX_UCONTEXT_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Vector IO operations. * Vector IO operations.
*/ */
#ifndef INCLUDE_SORTIX_UIO_H #ifndef _INCLUDE_SORTIX_UIO_H
#define INCLUDE_SORTIX_UIO_H #define _INCLUDE_SORTIX_UIO_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Standard symbolic constants and types for Sortix. * Standard symbolic constants and types for Sortix.
*/ */
#ifndef SORTIX_UNISTD_H #ifndef _INCLUDE_SORTIX_UNISTD_H
#define SORTIX_UNISTD_H #define _INCLUDE_SORTIX_UNISTD_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Header for user-space thread structures. * Header for user-space thread structures.
*/ */
#ifndef INCLUDE_SORTIX_UTHREAD_H #ifndef _INCLUDE_SORTIX_UTHREAD_H
#define INCLUDE_SORTIX_UTHREAD_H #define _INCLUDE_SORTIX_UTHREAD_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

View File

@ -17,8 +17,8 @@
* Standard symbolic constants and types for Sortix. * Standard symbolic constants and types for Sortix.
*/ */
#ifndef INC_SORTIX_VGA_H #ifndef _INCLUDE_SORTIX_VGA_H
#define INC_SORTIX_VGA_H #define _INCLUDE_SORTIX_VGA_H
#include <sys/cdefs.h> #include <sys/cdefs.h>

Some files were not shown because too many files have changed in this diff Show More