summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-12-29LibJS: Ensure get_new_target() never returns an empty valueLinus Groh
Also add spec comments and remove a redundant exception check while we're here :^)
2021-12-29LibJS: Remove unused MemberExpression::computed_property_name()Linus Groh
2021-12-29less: Handle tabs in line wrappingPeter Elliott
Before tabs were treated as a width of 1, which would cause issues with man page headers.
2021-12-29Userland: Port less(1) to LibMainPeter Elliott
2021-12-29less: Remove all formatting before printing status linePeter Elliott
2021-12-29less: Dynamically re-wrap lines on resizePeter Elliott
This change moves from wrapping lines at the start to operating on whole lines and wrapping them as needed. This has a few added benefits: - line numbers are now always accurate. - going to a line actually works
2021-12-28Magnifier: Add colorblind preview optionsTheGrizzlyDev
Add the same preview options as the theme editor so you can test the accessibility of anything on your desktop. Both tools share the same shortcuts.
2021-12-28Base: Add Tifinagh characters to font Katica Regular 10Lady Gegga
2D30-2D7F https://www.unicode.org/charts/PDF/U2D30.pdf
2021-12-28LibCore+chown: Return ErrorOr<Optional<...>> for getgrnam and getpwnamKenneth Myhra
This patch returns an empty Optional<...> instead of an Error for Core::System::getgrname and Core::System::getpwnam if we can't find a matching group or user entry. It also updates the 'chown' utility to support this new behavior.
2021-12-28ImageViewer: Change how scaling worksMaciej
- Store scale as a (float) factor (not as %) - Make scaling exponential so that matches PixelPaint and another image viewers/editors/etc
2021-12-28Profiler: Extract percentage gradient calculation into its own fileStephan Unverwerth
2021-12-28Profiler: Make everything east-const :^)Stephan Unverwerth
2021-12-28Profiler: Add source code viewStephan Unverwerth
This adds a new view mode to profiler which displays source lines and samples that occured at those lines. This view can be opened via the menu or by pressing CTRL-S. It does this by mapping file names from DWARF to "/usr/src/serenity/..." i.e. source code should be copied to /usr/src/serenity/Userland and /usr/src/serenity/Kernel to be visible in this mode. Currently *all* files contributing to the selected function are loaded completely which could be a lot of data when dealing with lots of inlined code.
2021-12-28Kernel: Implement and use the syscall/sysret instruction pair on x86_64Owen Smith
2021-12-28Kernel: Reorder the 64-bit GDT a bitOwen Smith
Add a kernel data segment and make the user code segment come after the data segment. We need the GDT to be in a certain order to support the syscall and sysret instruction pair.
2021-12-28Kernel: Propagate overflow errors from Memory::page_round_upGuilherme Goncalves
Fixes #11402.
2021-12-28pls: Stop on first non option when parsing argumentsIdan Horowitz
This allows using pls on a program with arguments more ergonomically, e.g. `pls -- echo "hello friends"` can now simply be done as: `pls echo "hello friends"`.
2021-12-28Kernel: Remove old comment about kmalloc() being Q&D :^)Andreas Kling
We've finally gotten kmalloc to a point where it feels decent enough to drop this comment. There's still a lot of room for improvement, and we'll continue working on it.
2021-12-28Kernel: VERIFY that addresses passed to kfree_sized() look validAndreas Kling
Let's do some simple pointer arithmetic to verify that the address being freed is at least within one of the two valid kmalloc VM ranges.
2021-12-28Kernel: Rename kmalloc_pool_heap => initial_kmalloc_memoryAndreas Kling
2021-12-28Kernel: Remove the kmalloc_eternal heap :^)Andreas Kling
This was a premature optimization from the early days of SerenityOS. The eternal heap was a simple bump pointer allocator over a static byte array. My original idea was to avoid heap fragmentation and improve data locality, but both ideas were rooted in cargo culting, not data. We would reserve 4 MiB at boot and only ended up using ~256 KiB, wasting the rest. This patch replaces all kmalloc_eternal() usage by regular kmalloc().
2021-12-28Kernel: Lock socket mutex across {get,set}sockopt() and SO_ERROR updatesAndreas Kling
Since a socket can be accessed by multiple threads concurrently, we need to protect shared data behind the socket mutex. There's very likely more places where we need to fix this, the purpose of this patch is to fix a VERIFY() failure in getsockopt() seen on CI.
2021-12-28UserspaceEmulator: Exclude special ranges from RangeAllocatorDaniel Bertalan
If we do not mark these ranges as reserved, RangeAllocator might later give us addresses that overlap these, which then causes an assertion failure in the SoftMMU. This behavior led to recurring CI failures, and sometimes made programs as simple as `/bin/true` fail. Fixes "Crash 1" reported in #9104
2021-12-28LibVT: Handle window resize after history overflowryanb-dev
Addresses an issue in which a window resize event after history overflow would cause the Terminal to crash due to a failed assertion. The problematic assertion was removed and the logic updated to support inserting lines even when the start of the history is at an offset (due to an overflow). Resolves #10987
2021-12-28ThemeEditor: Implement a way to simulate color blindness in previewTheGrizzlyDev
Implement a mechanism that allows us to alter colors so that they mimic those a colorblind person would see. From the color we can then alter the colors for the whole preview so we can simulate everything in the theme including icons/decorations. This filter is also available as a Filter in LibGfx so it can be reused in multiple other places. The color simulation algorithm is based on this one https://github.com/MaPePeR/jsColorblindSimulator publicly available.
2021-12-28LibJS: Also throw exception when returning throw completion from awaitLinus Groh
...for now - the reason being that the AST breaks 'completion bubbling' and returns a plain Value, and code at the call site relies on the VM having an exception set when converting the plain value back into a completion. Fixes #11301.
2021-12-28Kernel: Fix race condition in TmpFSInode::notify_watchers()Andreas Kling
We were doing this dance in notify_watchers(): set_metadata_dirty(true); set_metadata_dirty(false); This was done in order to force out inode watcher events immediately. Unfortunately, this was racy, as if SyncTask got scheduled at the wrong moment, it would try to flush metadata for a clean inode. This then got trapped by the VERIFY() statement in Inode::sync_all(): VERIFY(inode.is_metadata_dirty()); This patch fixes the issue by replacing notify_watchers() with lazy metadata notifications like all other filesystems.
2021-12-28Meta: Add SSE3, SMAP and SMEP to our bochsrcAndreas Kling
- SSE3 makes LibM's trunc() not SIGILL (due to FISTTP). - SMAP and SMEP allow us to exercise more kernel security mechanisms.
2021-12-28HackStudio: Highlight AF files as INIMaciej
2021-12-28TextEditor: Highlight AF files as INIMaciej
2021-12-28Ports: Update stress-ng port to 0.13.09Brian Gianforcaro
This change updates the port to the latest version, as part of that work I basically reported the application, as we have added a lot of LibC functionality which we were missing before. I've also updated the port to mark stressor's we don't support as nops, instead of trying to avoid compiling them at all. This will make the port much easier to maintain in the future.
2021-12-28Kernel: Add _SC_MAPPED_FILES sysconf APIBrian Gianforcaro
This is mandated by POSIX, it's fine that we don't actually implement it, just as long as it's present during compilation. :^)
2021-12-28LibC: Add in6addr_loopback and IN6ADDR_LOOPBACK_INIT constantBrian Gianforcaro
Much like the existing in6addr_any global and the IN6ADDR_ANY_INIT macro, our LibC is also expected to export the in6addr_loopback global and the IN6ADDR_LOOPBACK_INIT constant. These were found by the stress-ng port.
2021-12-28LibC: Add rindex() and index() APIsBrian Gianforcaro
These POSIX APIs are defined as mapping directly to `strrchr` and `strchr` respectively. These are needed for the latest version of the stress-ng port, and also give us better POSIX compliance.
2021-12-28LibC: Add alphasort() implementationBrian Gianforcaro
This is a POSIX API required for the latest stress-ng port.
2021-12-28LibC: Add POSIX spec comments for dirent APIsBrian Gianforcaro
2021-12-28Kernel: Remove the KString::try_create(String::formatted(...)) patternDaniel Bertalan
We can now directly create formatted KStrings with KString::formatted. :^)
2021-12-28Taskbar: Add context menu to remove quicklaunch itemsfaxe1008
This change adds a context menu for each app button to remove items from the quicklaunch section of the Taskbar.
2021-12-28Taskbar: Add dropping of AppFiles to QuickLaunchfaxe1008
This change adds the capability to drop AppFiles to the quick launch section of the Taskbar. All logic was moved to a new QuickLaunchWidget.
2021-12-28Kernel/Net: Move Realtek network adapters code to a separate directoryLiav A
2021-12-28Kernel/Net: Move NE2000 network adapter code to a separate directoryLiav A
2021-12-28Kernel: Run clang-format on E1000NetworkAdapter.cppLiav A
2021-12-28Kernel/Net: Move Intel network adapters code to a separate directoryLiav A
2021-12-28Kernel: Use type alias for Kmalloc SubHeap and SlabBlock list typesBrian Gianforcaro
We've moved to this pattern for the majority of usages of IntrusiveList in the Kernel, might as well be consistent. :^)
2021-12-28Meta: Add Sam Atkins's GitHub Sponsors to funding options :^)Andreas Kling
2021-12-28Meta: Link to Linus's YouTube channel from our README :^)Andreas Kling
Replace parts of the README written by myself in the first person with a section linking to our YouTube channels.
2021-12-27Base: Adjust 1F374 in font Katica Regular 10Lady Gegga
https://www.unicode.org/charts/PDF/U1F300.pdf
2021-12-27Base: Add Misc. Symbols and Pictographs to font Katica Regular 10Lady Gegga
1F302, 1F308, 1F30A, 1F320, 1F322, 1F327, 1F328, 1F329, 1F32A, 1F331, 1F333, 1F334, 1F335, 1F337, 1F344, 1F373, 1F378, 1F394, 1F39C, 1F52B 1F39D, 1F3CF, 1F3D1, 1F3D2, 1F3D3, 1F3ED, 1F3F0, 1F3F1, 1F3F2, 1F3F3, 1F3F4, 1F3F9, 1F40B, 1F40C, 1F40D, 1F441, 1F443, 1F454, 1F459, 1F460, 1F464, 1F465, 1F47E, 1F494, 1F495, 1F497, 1F4A1, 1F4A2, 1F4AC, 1F4BB, 1F4BC, 1F4BD, 1F4BF, 1F4BC, 1F4C0, 1F4C3, 1F4C4, 1F4C5, 1F4C6, 1F4CD, 1F4CE, 1F4CF, 1F4D0, 1F4E8, 1F4E9, 1F4EF, 1F4F1, 1F4F2, 1F4F7, 1F512, 1F513, 1F527, 1F528 https://www.unicode.org/charts/PDF/U1F300.pdf
2021-12-27Base: Add Greek Extended characters to font Katica Regular 10Lady Gegga
1F78-1F7B, 1F10, 1FC6, 1F11 https://www.unicode.org/charts/PDF/U1F00.pdf
2021-12-27Base: Add Latin Extended Additional chars to font Katica Regular 10Lady Gegga
1EB8, 1EB9, 1ECC, 1ECD, 1E0A-1E0F, 1EE4, 1EE5 https://www.unicode.org/charts/PDF/U1E00.pdf