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.
*/
#ifndef INCLUDE_SORTIX____DIRENT_H
#define INCLUDE_SORTIX____DIRENT_H
#ifndef _INCLUDE_SORTIX____DIRENT_H
#define _INCLUDE_SORTIX____DIRENT_H
#include <sys/cdefs.h>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -17,8 +17,8 @@
* A virtual clock that can be measured and waited upon.
*/
#ifndef INCLUDE_SORTIX_KERNEL_CLOCK_H
#define INCLUDE_SORTIX_KERNEL_CLOCK_H
#ifndef _INCLUDE_SORTIX_KERNEL_CLOCK_H
#define _INCLUDE_SORTIX_KERNEL_CLOCK_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.
*/
#ifndef SORTIX_COPY_H
#define SORTIX_COPY_H
#ifndef _INCLUDE_SORTIX_KERNEL_COPY_H
#define _INCLUDE_SORTIX_KERNEL_COPY_H
#include <stddef.h>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -17,8 +17,8 @@
* IO ports.
*/
#ifndef INCLUDE_SORTIX_KERNEL_IOPORT_H
#define INCLUDE_SORTIX_KERNEL_IOPORT_H
#ifndef _INCLUDE_SORTIX_KERNEL_IOPORT_H
#define _INCLUDE_SORTIX_KERNEL_IOPORT_H
#if !(defined(__i386__) || defined(__x86_64__))
#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.
*/
#ifndef SORTIX_KERNEL_H
#define SORTIX_KERNEL_H
#ifndef _INCLUDE_SORTIX_KERNEL_KERNEL_H
#define _INCLUDE_SORTIX_KERNEL_KERNEL_H
#include <sortix/kernel/decl.h>
#include <sortix/kernel/log.h>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -17,8 +17,8 @@
* Defines codes for every logical key on keyboards.
*/
#ifndef SORTIX_KEYCODES_H
#define SORTIX_KEYCODES_H
#ifndef _INCLUDE_SORTIX_KEYCODES_H
#define _INCLUDE_SORTIX_KEYCODES_H
/* 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

View File

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

View File

@ -17,8 +17,8 @@
* Memory management declarations.
*/
#ifndef SORTIX_MMAN_H
#define SORTIX_MMAN_H
#ifndef _INCLUDE_SORTIX_MMAN_H
#define _INCLUDE_SORTIX_MMAN_H
/* 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. */

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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