diff --git a/AK/Weakable.h b/AK/Weakable.h index f74b47f77e..243b611408 100644 --- a/AK/Weakable.h +++ b/AK/Weakable.h @@ -73,7 +73,7 @@ public: { auto current_consumers = m_consumers.fetch_or(1u, AK::MemoryOrder::memory_order_relaxed); VERIFY(!(current_consumers & 1u)); - // We flagged revokation, now wait until everyone trying to obtain + // We flagged revocation, now wait until everyone trying to obtain // a strong reference is done while (current_consumers > 0) { #ifdef KERNEL @@ -94,7 +94,7 @@ private: { } mutable Atomic m_ptr; - mutable Atomic m_consumers; // LSB indicates revokation in progress + mutable Atomic m_consumers; // LSB indicates revocation in progress }; template diff --git a/Base/res/html/misc/custome-list-item-2.png b/Base/res/html/misc/custom-list-item-2.png similarity index 100% rename from Base/res/html/misc/custome-list-item-2.png rename to Base/res/html/misc/custom-list-item-2.png diff --git a/Base/res/html/misc/lists.html b/Base/res/html/misc/lists.html index 45cd33d382..ed21f5d97f 100644 --- a/Base/res/html/misc/lists.html +++ b/Base/res/html/misc/lists.html @@ -200,7 +200,7 @@

list-style: outside lower-roman url(list-file.png)

-
    +
    1. First
    2. Second
    3. Third
    4. diff --git a/Base/usr/share/man/man1/chmod.md b/Base/usr/share/man/man1/chmod.md index cf7b83950b..9a8b5310c9 100644 --- a/Base/usr/share/man/man1/chmod.md +++ b/Base/usr/share/man/man1/chmod.md @@ -21,7 +21,7 @@ The letters `[+-=]` controls which action will be taken: `+` sets the permission The letters `[rwx]` controls which permission will be changes: `r` is read, `w` is write and `x` is execute. -A numeric mode is combination of 1 to 4 numbers. Omitted digits are assumet to be leading zeros. The first digit select the set user ID (4), set group ID (2) and restricted deletion / sticky (1) attributes. The second, third and fourth digit controls permissions of each user group: owner, owning group and others (not owner or owning group), respectively: read (4), write (2) and execute (1). +A numeric mode is combination of 1 to 4 numbers. Omitted digits are assumed to be leading zeros. The first digit select the set user ID (4), set group ID (2) and restricted deletion / sticky (1) attributes. The second, third and fourth digit controls permissions of each user group: owner, owning group and others (not owner or owning group), respectively: read (4), write (2) and execute (1). ## Examples diff --git a/Base/usr/share/man/man1/copy.md b/Base/usr/share/man/man1/copy.md index 5fa6ea950e..9fb15bc1ba 100644 --- a/Base/usr/share/man/man1/copy.md +++ b/Base/usr/share/man/man1/copy.md @@ -23,6 +23,6 @@ $ copy [options...] [text...] # Copy some image to clipboard $ cat image.png | copy -t image/png -# Place text 'foo' in clupboard +# Place text 'foo' in clipboard $ copy foo ``` diff --git a/Base/usr/share/man/man7/Audio-subsystem.md b/Base/usr/share/man/man7/Audio-subsystem.md index e50dc91823..dd356a6f12 100644 --- a/Base/usr/share/man/man7/Audio-subsystem.md +++ b/Base/usr/share/man/man7/Audio-subsystem.md @@ -26,7 +26,7 @@ LibAudio is the baseline audio library that provides common audio abstractions, #### LibDSP -LibDSP is the digital signal processing library. It provides structures for audio editing programs, such as tracks and clips, while both dealing with MIDI data and sample data. More important is the Processor system, which allows synthesizers, samplers, sequencers, effects, etc. to be written with a common interface and be combined into chains for unlimited DSP (and musical) potential. The ProcessorParameters provide an interface for changing processor parameters programatically or through a UI. +LibDSP is the digital signal processing library. It provides structures for audio editing programs, such as tracks and clips, while both dealing with MIDI data and sample data. More important is the Processor system, which allows synthesizers, samplers, sequencers, effects, etc. to be written with a common interface and be combined into chains for unlimited DSP (and musical) potential. The ProcessorParameters provide an interface for changing processor parameters programmatically or through a UI. LibDSP was started to support development efforts in Piano, but it is intended as a general-purpose audio processing library, building on the groundwork from LibAudio. Therefore, users of LibDSP must be familiar with LibAudio classes and concepts, as they are used extensively in LibDSP. @@ -46,7 +46,7 @@ Audio volume is more complicated than just multiplying a (digital or analog) aud For the SerenityOS audio system, the following applies: Userland applications and libraries that do their own volume changes need to be aware of the nature of volume. LibAudio provides utility functions for correctly handling volume, so these are to be used whenever applicable. For AudioServer, main and per-client volume is already handled correctly; to the outside, volume is linear between 0 and 1. -For example: A program may set its client volume to 0.5 and the audio will be percieved as half as loud by a human. However, if the program wishes to change the volume beforehand, it needs to use logarithmic scaling, for example with LibAudio's built-in functionality. +For example: A program may set its client volume to 0.5 and the audio will be perceived as half as loud by a human. However, if the program wishes to change the volume beforehand, it needs to use logarithmic scaling, for example with LibAudio's built-in functionality. ### Sample rate diff --git a/Base/usr/share/man/man7/proc.md b/Base/usr/share/man/man7/proc.md index aa03ff4ab4..0a724554da 100644 --- a/Base/usr/share/man/man7/proc.md +++ b/Base/usr/share/man/man7/proc.md @@ -36,11 +36,11 @@ them. ### `sys` directory -This subdirectoy includes global settings of the kernel. +This subdirectory includes global settings of the kernel. * **`caps_lock_to_ctrl`** - this node controls remapping of of caps lock to the Ctrl key. * **`kmalloc_stacks`** - this node controls whether to send information about kmalloc to debug log. -* **`ubsan_is_deadly`** - this node controls the deadliness of the kernel undefinied behavior +* **`ubsan_is_deadly`** - this node controls the deadliness of the kernel undefined behavior sanitizer errors. ### Per process entries diff --git a/Base/usr/share/man/man8/groupadd.md b/Base/usr/share/man/man8/groupadd.md index 6a7c781b15..8268cf62dc 100644 --- a/Base/usr/share/man/man8/groupadd.md +++ b/Base/usr/share/man/man8/groupadd.md @@ -33,6 +33,6 @@ This program must be run as root. ```sh # groupadd -g 110 contributors -# groupadd mainteners +# groupadd maintainers ``` diff --git a/Documentation/BuildInstructionsMacOS.md b/Documentation/BuildInstructionsMacOS.md index 9356cadb5a..5b439b28e4 100644 --- a/Documentation/BuildInstructionsMacOS.md +++ b/Documentation/BuildInstructionsMacOS.md @@ -2,7 +2,7 @@ # Prerequisites -This installation guide assumes that you have [Homebrew](https://brew.sh) and Xcode installed. You need to open Xcode atleast once for it to install the required tools. +This installation guide assumes that you have [Homebrew](https://brew.sh) and Xcode installed. You need to open Xcode at least once for it to install the required tools. Before you build, you must set your command line tools to Xcode's tools instead of the ones installed via Homebrew: ```console diff --git a/Documentation/NetworkBoot.md b/Documentation/NetworkBoot.md index f8506adcf4..b3777ba600 100644 --- a/Documentation/NetworkBoot.md +++ b/Documentation/NetworkBoot.md @@ -10,7 +10,7 @@ This guide assumes several things: - The TFTP server root is `/srv/tftp/` - Bootloaders are located inside `/srv/tftp/boot/` -- SerenityOS artefacts are located inside `/srv/tftp/serenity/`: +- SerenityOS artifacts are located inside `/srv/tftp/serenity/`: - The prekernel is located at `/srv/tftp/serenity/prekernel` - You can find it at `Build/i686/Kernel/Prekernel/Prekernel` - The kernel is located at `/srv/tftp/serenity/kernel` @@ -134,7 +134,7 @@ LABEL SerenityOS ### Troubleshooting - Issues with DHCP or TFTP usually require sniffing packets on the network to figure out. -- TFTP is a slow protocol, transferring the QEMU disk image (~ 200 MiB) will take some time. Consider setting up a FTP or HTTP server for faster downloading of SerenityOS artefacts if your bootloader supports it. +- TFTP is a slow protocol, transferring the QEMU disk image (~ 200 MiB) will take some time. Consider setting up a FTP or HTTP server for faster downloading of SerenityOS artifacts if your bootloader supports it. - Remember that SerenityOS has not been extensively tested on physical hardware. - Some BIOS implementations of PXE are buggy or some machines may not have a PXE boot option at all in which case you could try using [iPXE](https://ipxe.org/). - Virtual machines can also be booted over the network. Cheat notes for QEMU on Linux, assuming `br0` is already set up: diff --git a/Documentation/Patterns.md b/Documentation/Patterns.md index 9c8f37571a..9bc4fefae3 100644 --- a/Documentation/Patterns.md +++ b/Documentation/Patterns.md @@ -234,7 +234,7 @@ See: https://en.cppreference.com/w/cpp/utility/source_location `AK::SourceLocation` is the implementation of this feature in SerenityOS. It's become the idiomatic way to capture the location when adding extra debugging instrumentation, without resorting to -litering the code with preprocessor macros. +littering the code with preprocessor macros. To use it, you can add the `AK::SourceLocation` as a default argument to any function, using `AK::SourceLocation::current()` to initialize the diff --git a/Documentation/SelfHostedRunners.md b/Documentation/SelfHostedRunners.md index 05668f1f55..c2587aa1bd 100644 --- a/Documentation/SelfHostedRunners.md +++ b/Documentation/SelfHostedRunners.md @@ -63,7 +63,7 @@ RUST_WHITELISTED_EVENT_NAME=push ```shell MAX_RUNNER_THREADS=XXX ``` -If you are setting up multiple runners on the same machine, this setting can be used to divvy up the cores, if youre only setting up one runner, this can just be set to the server's core count +If you are setting up multiple runners on the same machine, this setting can be used to divvy up the cores, if you're only setting up one runner, this can just be set to the server's core count ### Install the runner as a service ```shell sudo ./svc.sh install diff --git a/Kernel/Arch/x86/Interrupts.h b/Kernel/Arch/x86/Interrupts.h index 1da549ee12..6fafca5365 100644 --- a/Kernel/Arch/x86/Interrupts.h +++ b/Kernel/Arch/x86/Interrupts.h @@ -15,7 +15,7 @@ VALIDATE_IS_X86() namespace Kernel { -class GenericInterruptHandeler; +class GenericInterruptHandler; extern "C" void interrupt_common_asm_entry(); diff --git a/Kernel/FileSystem/TmpFS.cpp b/Kernel/FileSystem/TmpFS.cpp index 93a1fbeb26..440e63cd4c 100644 --- a/Kernel/FileSystem/TmpFS.cpp +++ b/Kernel/FileSystem/TmpFS.cpp @@ -162,7 +162,7 @@ ErrorOr TmpFSInode::write_bytes(off_t offset, size_t size, const UserOrK if (m_content && static_cast(m_content->capacity()) >= new_size) { m_content->set_size(new_size); } else { - // Grow the content buffer 2x the new sizeto accommodate repeating write() calls. + // Grow the content buffer 2x the new size to accommodate repeating write() calls. // Note that we're not actually committing physical memory to the buffer // until it's needed. We only grow VM here. diff --git a/Kernel/FileSystem/ext2_fs.h b/Kernel/FileSystem/ext2_fs.h index 2214b37f43..7f4194dcf5 100644 --- a/Kernel/FileSystem/ext2_fs.h +++ b/Kernel/FileSystem/ext2_fs.h @@ -138,7 +138,7 @@ struct ext2_group_desc { __u16 bg_flags; __u32 bg_reserved[2]; __u16 bg_itable_unused; /* Unused inodes count */ - __u16 bg_checksum; /* crc16(s_uuid+grouo_num+group_desc)*/ + __u16 bg_checksum; /* crc16(s_uuid+group_num+group_desc)*/ }; struct ext4_group_desc { @@ -151,7 +151,7 @@ struct ext4_group_desc { __u16 bg_flags; __u32 bg_reserved[2]; __u16 bg_itable_unused; /* Unused inodes count */ - __u16 bg_checksum; /* crc16(s_uuid+grouo_num+group_desc)*/ + __u16 bg_checksum; /* crc16(s_uuid+group_num+group_desc)*/ __u32 bg_block_bitmap_hi; /* Blocks bitmap block MSB */ __u32 bg_inode_bitmap_hi; /* Inodes bitmap block MSB */ __u32 bg_inode_table_hi; /* Inodes table block MSB */ diff --git a/Kernel/Graphics/Bochs/GraphicsAdapter.cpp b/Kernel/Graphics/Bochs/GraphicsAdapter.cpp index 9fd46427f1..f781024111 100644 --- a/Kernel/Graphics/Bochs/GraphicsAdapter.cpp +++ b/Kernel/Graphics/Bochs/GraphicsAdapter.cpp @@ -105,7 +105,7 @@ UNMAP_AFTER_INIT BochsGraphicsAdapter::BochsGraphicsAdapter(PCI::DeviceIdentifie , m_mmio_registers(PCI::get_BAR2(pci_device_identifier.address()) & 0xfffffff0) , m_registers(Memory::map_typed_writable(m_mmio_registers)) { - // We assume safe resolutio is 1024x768x32 + // We assume safe resolution is 1024x768x32 m_framebuffer_console = Graphics::ContiguousFramebufferConsole::initialize(PhysicalAddress(PCI::get_BAR0(pci_device_identifier.address()) & 0xfffffff0), 1024, 768, 1024 * sizeof(u32)); // FIXME: This is a very wrong way to do this... GraphicsManagement::the().m_console = m_framebuffer_console; diff --git a/Kernel/Prekernel/Arch/aarch64/Mailbox.cpp b/Kernel/Prekernel/Arch/aarch64/Mailbox.cpp index b22cec535e..3f52002adc 100644 --- a/Kernel/Prekernel/Arch/aarch64/Mailbox.cpp +++ b/Kernel/Prekernel/Arch/aarch64/Mailbox.cpp @@ -81,7 +81,7 @@ bool Mailbox::send_queue(void* queue, u32 queue_size) const auto& mmio = MMIO::the(); - // The mailbox interface has a FIFO for message deliverly in both directions. + // The mailbox interface has a FIFO for message delivery in both directions. // Responses can be delivered out of order to requests, but we currently ever only send on request at once. // It'd be nice to have an async interface here where we send a message, then return immediately, and read the response when an interrupt arrives. // But for now, this is synchronous. diff --git a/Kernel/Process.h b/Kernel/Process.h index eef9f2c88d..75f7fc2f6f 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -438,7 +438,7 @@ public: NonnullOwnPtrVector const& arguments() const { return m_arguments; }; NonnullOwnPtrVector const& environment() const { return m_environment; }; - ErrorOr exec(NonnullOwnPtr path, NonnullOwnPtrVector arguments, NonnullOwnPtrVector environment, int recusion_depth = 0); + ErrorOr exec(NonnullOwnPtr path, NonnullOwnPtrVector arguments, NonnullOwnPtrVector environment, int recursion_depth = 0); ErrorOr load(NonnullRefPtr main_program_description, RefPtr interpreter_description, const ElfW(Ehdr) & main_program_header); diff --git a/Meta/CMake/Superbuild/CMakeLists.txt b/Meta/CMake/Superbuild/CMakeLists.txt index 84b8183a3d..6750b2a7cc 100644 --- a/Meta/CMake/Superbuild/CMakeLists.txt +++ b/Meta/CMake/Superbuild/CMakeLists.txt @@ -33,7 +33,7 @@ get_filename_component( ABSOLUTE CACHE ) set(SERENITY_ARCH "i686" CACHE STRING "Target architecture for SerenityOS.") -set(SERENITY_TOOLCHAIN "GNU" CACHE STRING "Compliler toolchain to use for Serenity (GNU or Clang)") +set(SERENITY_TOOLCHAIN "GNU" CACHE STRING "Compiler toolchain to use for Serenity (GNU or Clang)") # FIXME: It is preferred to keep all the sub-build artifacts below the binary directory for the superbuild # However, this has an impact on developer's IDE settings and more significantly, the Ports tree. diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index d9bd4a9803..9033024341 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -293,7 +293,7 @@ if (BUILD_LAGOM) # ELF file(GLOB LIBELF_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibELF/*.cpp") - # There's no way we can reliably make the dymamic loading classes cross platform + # There's no way we can reliably make the dynamic loading classes cross platform list(FILTER LIBELF_SOURCES EXCLUDE REGEX ".*Dynamic.*.cpp$") lagom_lib(ELF elf SOURCES ${LIBELF_SOURCES} @@ -316,9 +316,9 @@ if (BUILD_LAGOM) # GL file(GLOB LIBGL_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibGL/*.cpp") - file(GLOB LIBGL_TEX_SCOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibGL/Tex/*.cpp") + file(GLOB LIBGL_TEX_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibGL/Tex/*.cpp") lagom_lib(GL gl - SOURCES ${LIBGL_SOURCES} ${LIBGL_TEX_SCOURCES} + SOURCES ${LIBGL_SOURCES} ${LIBGL_TEX_SOURCES} LIBS m LagomGfx LagomSoftGPU) # GUI-GML diff --git a/Meta/Lagom/ReadMe.md b/Meta/Lagom/ReadMe.md index edc80c8b50..390f826056 100644 --- a/Meta/Lagom/ReadMe.md +++ b/Meta/Lagom/ReadMe.md @@ -14,7 +14,7 @@ Lagom can be used to fuzz parts of SerenityOS's code base. Fuzzers can be run lo ### Fuzzing locally -Lagom can be used to fuzz parts of SerenityOS's code base. This requires buildling with `clang`, so it's convenient to use a different build directory for that. Fuzzers work best with Address Sanitizer enabled. Run CMake like this: +Lagom can be used to fuzz parts of SerenityOS's code base. This requires building with `clang`, so it's convenient to use a different build directory for that. Fuzzers work best with Address Sanitizer enabled. Run CMake like this: # From the root of the SerenityOS checkout: cmake -GNinja -S Meta/Lagom -B Build/lagom-fuzzers \ diff --git a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h index 74621fbbc2..b1501a89f4 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h +++ b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GeneratorUtil.h @@ -53,7 +53,7 @@ public: IndexType ensure(StorageType value) { // We maintain a set of unique values in two structures: a vector which stores the values in - // the order they are added, and a hash map which maps that value to its index in the vetor. + // the order they are added, and a hash map which maps that value to its index in the vector. // The vector is to ensure the values are generated in an easily known order, and the map is // to allow quickly deciding if a value is actually unique (otherwise, we'd have to linearly // search the vector for each value). diff --git a/Meta/Websites/serenityos.org/happy/3rd/index.html b/Meta/Websites/serenityos.org/happy/3rd/index.html index 0b2c5ceec2..b0bb90f32b 100644 --- a/Meta/Websites/serenityos.org/happy/3rd/index.html +++ b/Meta/Websites/serenityos.org/happy/3rd/index.html @@ -574,7 +574,7 @@