summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-12-25LibVT: Don't leave 50ms auto-scroll timer running at all timesAndreas Kling
This timer was causing wake-ups every 50ms in all terminals, just to right back to sleep unless we were in the middle of an auto-scroll.
2021-12-25LibCore: Add Core::Timer::set_active(bool)Andreas Kling
This calls either start() or stop() depending on the boolean argument.
2021-12-25LibC: Buffer randomness to avoid syscall in every arc4random_buf()Andreas Kling
Keep a page-sized buffer of random bytes cached and work through it before calling the kernel again.
2021-12-25Kernel: Remove unnecessary SocketHandle<T> classAndreas Kling
This was used to return a pre-locked UDPSocket in one place, but there was really no need for that mechanism in the first place since the caller ends up locking the socket anyway.
2021-12-25strace: Port to LibMain :^)Andreas Kling
2021-12-25LibCore: Add syscall wrapper for ptrace()Andreas Kling
2021-12-25PDFViewer: Add a basic set of pledgesAndreas Kling
2021-12-25WindowServer: Skip over destroyed windows in WindowSwitcher::draw()Andreas Kling
I encountered a WindowServer crash due to null-pointer dereference in this function, so let's protect against it by simply skipping over nulled-out WeakPtrs. I added a FIXME about how we ideally wouldn't be in this situation in the first place, but that will require some more investigation.
2021-12-24Base: Add Unified Canadian Aboriginal Syllabics to Katica Regular 10Lady Gegga
1400-1488 https://www.unicode.org/charts/PDF/U1400.pdf
2021-12-24Base: Add Common Indic Number Forms to font Katica Regular 10Lady Gegga
A830-A839 https://www.unicode.org/charts/PDF/UA830.pdf
2021-12-24LibCrypto: Remove redundant __builtin_memset() callDaniel Bertalan
This call caused GCC 12's static analyzer to think that we perform an out-of-bounds write to the v_key Vector. This is obviously incorrect, and comes from the fact that GCC doesn't properly track whether we use the inline storage, or the Vector is allocated on the heap. While searching for a workaround, Sam pointed out that this call is redundant as `Vector::resize()` already zeroes out the elements, so we can completely remove it. Co-authored-by: Sam Atkins <atkinssj@serenityos.org>
2021-12-24AK: Add missing Array.h include to CheckedFormatString.hDaniel Bertalan
GCC 12 complains that iota_array is used before it's declared. GCC 11 works fine without it though.
2021-12-24pro: Convert to `serenity_main(..)`Brian Gianforcaro
2021-12-24ini: Convert to `serenity_main(..)`Brian Gianforcaro
2021-12-24env: Convert to `serenity_main(..)`Brian Gianforcaro
2021-12-24pwd: Convert to `serenity_main(..)`Brian Gianforcaro
2021-12-24LibCore: Add Core::System::getcwd() wrapperBrian Gianforcaro
2021-12-24Kernel: Make MemoryManager::protect_ksyms_after_init UNMAP_AFTER_INITBrian Gianforcaro
The function to protect ksyms after initialization, is only used during boot of the system, so it can be UNMAP_AFTER_INIT as well. This requires we switch the order of the init sequence, so we now call `MM.protect_ksyms_after_init()` before `MM.unmap_text_after_init()`.
2021-12-24Kernel: Mark PTYMultiplexer init & parse_hex_digit as UNMAP_AFTER_INITBrian Gianforcaro
Noticed these boot only functions are not currently UNMAP_AFTER_INIT. Lets fix that :^)
2021-12-24AK: Make `Disjoint*::is_empty()` not call sizeMichel Hermier
This is a raffinement of 49cbd4dcca037336ad5e2e4fcb1e3cc613b46cce. Previously, the container was scanned to compute the size in the unhappy path. Now, using `all_of` happy and unhappy path should be fast.
2021-12-24Tests: Benchmark `DisjointChunck::is_empty`Michel Hermier
2021-12-24AK: Add `DisjointChunkc::ensure_capacity`Michel Hermier
2021-12-24Spider: Add animation when drawing cardsNihal Jere
2021-12-24Ports/tr: Remove obsolete getopt.h patchDaniel Bertalan
2021-12-24Ports/stress-ng: Remove obsolete patchesDaniel Bertalan
The following features are now available in the system, making these patches unnecessary: - isblank() function - SIGSTKSZ constant - MS_SYNC and MS_ASYNC msync() flags - EDQUOT errno constant
2021-12-24Ports/mrsh: Remove obsolete PIPE_BUF patchDaniel Bertalan
We now have this macro in LibC.
2021-12-24Ports/mandoc: Remove obsolete patchesDaniel Bertalan
Since the creation of the port, we gained support for nanosleep(), WSTOPSIG(), and the getopt family of functions is now available in unistd.h.
2021-12-24Ports/m4: Remove obsolete wint_t patchDaniel Bertalan
2021-12-24Ports/m4: Fix build errorDaniel Bertalan
The addition of the siginfo() function to LibC caused this port to enable its stack overflow detection feature which, however, depends on more features that we don't have.
2021-12-24Ports/libxml2: Remove obsolete ESHUTDOWN errno patchDaniel Bertalan
2021-12-24Ports/libuv: Remove obsolete statfs/pwrite patchDaniel Bertalan
2021-12-24Ports/libicu: Remove obsolete <cmath> header patchDaniel Bertalan
All issues with `cmath` have been resolved quite some time ago, and ICU seems to build without issues.
2021-12-24Ports/emu2: Remove obsolete scandir patchDaniel Bertalan
2021-12-24Ports/chester: Enable -WerrorDaniel Bertalan
We no longer emit compiler warnings on deprecated/unsafe functions like strcpy, so building more ports with -Werror is possible.
2021-12-24Ports/byacc: Remove obsolete getopt.h patchDaniel Bertalan
We (correctly) declare getopt() and the related variables in unistd.h, so this patch is unnecessary.
2021-12-24Ports: Remove obsolete /dev/tty patchesDaniel Bertalan
2021-12-24Ports: Upgrade CMake to 3.22.1Ali Mohammad Pur
That's the latest release, and includes one of the patches we had - so we can drop that patch :^)
2021-12-24Ports/cmake: Remove obsolete conflicting declaration patchesDaniel Bertalan
I'm not quite sure why, but CMake compiles fine without these.
2021-12-24Ports: Fix the conflicting types issue in the cmake portAli Mohammad Pur
This patch is pending upstream, but until then, let's keep it locally to make the port work :^)
2021-12-24LibC: Implement _setjmp and _longjmpBrian Gianforcaro
These are aliases to `setjmp()` and `longjmp()` on our system, as our implementations don't modify the signal mask. This is required for the syzkaller executor process.
2021-12-24SystemMonitor: Remove unused SortingProxyModel includeSam Atkins
2021-12-24LibGUI+Userland: Make SortingProxyModel::create() return ErrorOrSam Atkins
Unfortunately, most of the users are inside constructors, (and two others are inside callback lambdas) so the error can't propagate, but that can be improved later.
2021-12-24LibSoftGPU: Add method to copy texels between imagesStephan Unverwerth
Adds a method `copy_texels()` to class `Image` that copies a rect of texels from source image to destination.
2021-12-24LibGL: Remove image storage from MipMapStephan Unverwerth
Images are stored on the device side. Texture2D and MipMap are now only used to store imformation about the texture and reference to the device image.
2021-12-24LibGL: Remove sampling code from Sampler2DStephan Unverwerth
Texture sampling now happens entirely in SoftGPU thus this class will now only be used to hold the sampler configuration.
2021-12-24LibGL+LibSoftGPU: Add method to query device infoStephan Unverwerth
This adds a method `info()` to SoftGPU that returns the name of the hardware vendor and device name, as well as the number of texture untis. LibGL uses the returned texture unit count to initialize its internal texture unit array.
2021-12-24LibSoftGPU: Move enums into separate fileStephan Unverwerth
2021-12-24LibSoftGPU: Remove GLenum used for selecting rendered primitive typeStephan Unverwerth
This removes the last reference to LibGL from LibSoftGPU. The GLenum has been replaced by our own enum.
2021-12-24LibSoftGPU: Remove OpenGL type for polygon modeStephan Unverwerth
Replaces the GLenum used to setup polygon mode in RasterizerOptions with our own enum.
2021-12-24LibSoftGPU: Remove OpenGL type for fog modeStephan Unverwerth
Replaces the GLenum used to set up the fog mode in RasterizerOptions with out own enum.