Age | Commit message (Collapse) | Author |
|
Also add spec comments and remove a redundant exception check while
we're here :^)
|
|
|
|
Before tabs were treated as a width of 1, which would cause issues with
man page headers.
|
|
|
|
|
|
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
|
|
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.
|
|
2D30-2D7F https://www.unicode.org/charts/PDF/U2D30.pdf
|
|
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.
|
|
- Store scale as a (float) factor (not as %)
- Make scaling exponential so that matches PixelPaint and another
image viewers/editors/etc
|
|
|
|
|
|
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.
|
|
|
|
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.
|
|
Fixes #11402.
|
|
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"`.
|
|
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.
|
|
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.
|
|
|
|
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().
|
|
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.
|
|
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
|
|
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
|
|
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.
|
|
...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.
|
|
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.
|
|
- SSE3 makes LibM's trunc() not SIGILL (due to FISTTP).
- SMAP and SMEP allow us to exercise more kernel security mechanisms.
|
|
|
|
|
|
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.
|
|
This is mandated by POSIX, it's fine that we don't actually implement
it, just as long as it's present during compilation. :^)
|
|
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.
|
|
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.
|
|
This is a POSIX API required for the latest stress-ng port.
|
|
|
|
We can now directly create formatted KStrings with KString::formatted.
:^)
|
|
This change adds a context menu for each app button to remove items
from the quicklaunch section of the Taskbar.
|
|
This change adds the capability to drop AppFiles to the quick launch
section of the Taskbar. All logic was moved to a new
QuickLaunchWidget.
|
|
|
|
|
|
|
|
|
|
We've moved to this pattern for the majority of usages of IntrusiveList
in the Kernel, might as well be consistent. :^)
|
|
|
|
Replace parts of the README written by myself in the first person with
a section linking to our YouTube channels.
|
|
https://www.unicode.org/charts/PDF/U1F300.pdf
|
|
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
|
|
1F78-1F7B, 1F10, 1FC6, 1F11
https://www.unicode.org/charts/PDF/U1F00.pdf
|
|
1EB8, 1EB9, 1ECC, 1ECD, 1E0A-1E0F, 1EE4, 1EE5
https://www.unicode.org/charts/PDF/U1E00.pdf
|