Tim Schumacher
0ca63cfd6e
find: Implement support for multiple directories
2021-12-03 15:39:00 +01:00
Tim Schumacher
5a21c3b389
find: Use a Vector for parsing instead of moving optind
2021-12-03 15:39:00 +01:00
Tim Schumacher
4ca35ac1b8
find: Port to LibMain
2021-12-03 15:39:00 +01:00
Itamar
c3c2fe153b
LibCpp: Add "ignore invalid statements" option to Preprocessor
...
When we run the Preprocessor from the CppComprehensionEngine of
the language server, we don't want the preprocessor to crash if it
encounters an invalid preprocessor statement (for example, an #endif
statement without an accompanying previous #if statement).
To achieve this, this commit adds an "ignore_invalid_statements" flag
to the preprocessor which is set by the CppComprehensionEngine.
Fixes #11064 .
2021-12-03 15:38:21 +01:00
Itamar
408f05bbb9
HackStudio: Decrease the maximal crash frequency of the server to 10 sec
...
The maximal crash frequency of the language server was previously 3
seconds, but in practice it was too high.
When working with larger projects the language server can get into a
"crash and respawn" loop that takes more than 3 seconds.
10 seconds seems like a reasonable threshold beyond which we no longer
attempt to respawn the server.
2021-12-03 15:38:21 +01:00
Itamar
28ff7d49ad
HackStudio: Only send the content of open files to language server
...
When respawning the language server, we only need to send the content
of opened files to the server.
The on-disk content of files that are not currently open is up to
date, so the server can read them on its own.
2021-12-03 15:38:21 +01:00
Itamar
3e9a96f1d8
HackStudio: Add HackStudio::for_each_open_file
2021-12-03 15:38:21 +01:00
Sam Atkins
3a44b8111b
Documentation: Update instructions for using the Clang toolchain
...
The note that `Meta/serenity.sh` is incompatible with Clang is no longer
true.
2021-12-02 14:34:45 -08:00
Martin Blicha
8fb52c6962
LibGUI: Make FilteringProxyModel reference-count its parent model
...
Before this change, the destructor of FilteringProxyModel
would crash if the parent model had been destroyed earlier.
This unifies the behaviour of FilteringProxyModel with
SortingProxyModel in this respect.
2021-12-02 22:43:54 +01:00
Andreas Kling
6b32b775bf
Meta: Add note about ideologically motivated changes to CONTRIBUTING.md
2021-12-02 12:20:52 +01:00
Idan Horowitz
246255527a
Tests: Add a test to ensure sigaltstack() is working correctly
2021-12-01 21:44:11 +02:00
Idan Horowitz
711a7104f3
Kernel: Handle invalid stack pointer during signal dispatch
...
Instead of crashing the kernel, we simply terminate the process.
2021-12-01 21:44:11 +02:00
Idan Horowitz
40f64d7379
Kernel: Dispatch handle-able signals instead of crashing if possible
...
This matches the behaviour of the other *nixs and allows processes to
try and recover from such signals in userland.
2021-12-01 21:44:11 +02:00
Idan Horowitz
f415218afe
Kernel+LibC: Implement sigaltstack()
...
This is required for compiling wine for serenity
2021-12-01 21:44:11 +02:00
Idan Horowitz
d5d0eb45bf
Kernel: Clear up some comments in the sys$mprotect implementation
2021-12-01 21:44:11 +02:00
Idan Horowitz
f27bbec7b2
Kernel: Move incorrect early return in sys$mprotect
...
Since we're iterating over multiple regions that interesect with the
requested range, just one of them having the requested access flags
is not enough to finish the syscall early.
2021-12-01 21:44:11 +02:00
Idan Horowitz
a9e436c4a3
Kernel: Replace usages of SIGSTKFLT with SIGSEGV
...
SIGSTKFLT is a signal that signifies a stack fault in a x87 coprocessor,
this signal is not POSIX and also unused by Linux and the BSDs, so let's
use SIGSEGV so programs that setup signal handlers for the common
signals could still handle them in serenity.
2021-12-01 21:44:11 +02:00
Idan Horowitz
4ca39c7110
Kernel: Move the expand_range_to_page_boundaries helper to MemoryManager
...
This helper can (and will) be used in more parts of the kernel besides
the mmap-family of syscalls.
2021-12-01 21:44:11 +02:00
Idan Horowitz
ff6b43734c
Kernel: Add Region::clear_to_zero
...
This helper method can be used to quickly and efficiently zero out a
region.
2021-12-01 21:44:11 +02:00
Idan Horowitz
5f95a1a7b7
LibC: Define the MADV_DONTNEED madvise advice macro
...
This isn't actually implemented at the moment, but it is required for
wine to compile
2021-12-01 21:44:11 +02:00
Idan Horowitz
fc13d0782f
LibC: Make the madvise advice field a value instead of a bitfield
...
The advices are almost always exclusive of one another, and while POSIX
does not define madvise, most other unix-like and *BSD systems also only
accept a singular value per call.
2021-12-01 21:44:11 +02:00
Idan Horowitz
48f92f6482
LibC: Add the SIGFPE si_code macros
2021-12-01 21:44:11 +02:00
James Mintram
224b865fda
Kernel: Add an x86 include check+error in x86/TSS.h
2021-12-01 11:22:04 -08:00
James Mintram
b08eb37b11
Kernel: Add an x86 include check+error in x86/TrapFrame.h
2021-12-01 11:22:04 -08:00
James Mintram
80cdfee10a
Kernel: Add an x86 include check+error in x86/Spinlock.h
2021-12-01 11:22:04 -08:00
James Mintram
34b341e35d
Kernel: Add an x86 include check+error in x86/RegisterState.h
2021-12-01 11:22:04 -08:00
James Mintram
1dc1412dee
Kernel: Add an x86 include check+error in x86/ProcessorInfo.h
2021-12-01 11:22:04 -08:00
James Mintram
e20884dc0c
Kernel: Add an x86 include check+error in x86/Processor.h
2021-12-01 11:22:04 -08:00
James Mintram
eb33df0c30
Kernel: Add an x86 include check+error in x86/PageFault.h
2021-12-01 11:22:04 -08:00
James Mintram
17fb2adf61
Kernel: Add an x86 include check+error in x86/PageDirectory.h
2021-12-01 11:22:04 -08:00
James Mintram
70a18a2271
Kernel: Add an x86 include check+error in x86/MSR.h
2021-12-01 11:22:04 -08:00
James Mintram
bffc3da9d7
Kernel: Add an x86 include check+error in x86/ISRStubs.h
2021-12-01 11:22:04 -08:00
James Mintram
1e5b82f0c6
Kernel: Add an x86 include check+error in x86/IO.h
2021-12-01 11:22:04 -08:00
James Mintram
b9ae6daa02
Kernel: Add an x86 include check+error in x86/Inerrupts.h
2021-12-01 11:22:04 -08:00
James Mintram
ed2aa96511
Kernel: Add an x86 include check+error in x86/InerruptDisabler.h
2021-12-01 11:22:04 -08:00
James Mintram
62d86afee9
Kernel: Add an x86 include check+error in x86/DescriptorTable.h
2021-12-01 11:22:04 -08:00
James Mintram
db1fbdabf9
Kernel: Add an x86 include check+error in x86/CPUID.h
2021-12-01 11:22:04 -08:00
James Mintram
8350b44ebd
Kernel: Add an x86 include check+error in x86/CPU.h
2021-12-01 11:22:04 -08:00
James Mintram
3e3c632969
Kernel: Add an x86 include check+error in x86/ASM_Wrapper.h
2021-12-01 11:22:04 -08:00
James Mintram
ef52fe7d2f
Kernel: Add VALIDATE_IS_X86 macro
2021-12-01 11:22:04 -08:00
James Mintram
1c86b7043b
Kernel: Remove ASM_Wrapper include from platform independent processor.h
2021-12-01 11:22:04 -08:00
Timothy Flynn
bf79c73158
LibUnicode: Do not generate data for "generic" calendars
...
This is not a calendar supported by ECMA-402, so let's not waste space
with its data.
Further, don't generate "gregorian" as a valid Unicode locale extension
keyword. It's an invalid type identifier, thus cannot be used in locales
such as "en-u-ca-gregorian".
2021-12-01 16:36:26 +00:00
Timothy Flynn
f02ecc1da2
LibUnicode: Fix copy-paste error in calendar_pattern_style_to_string
...
The string returned must be lowercase.
2021-12-01 16:36:26 +00:00
Timothy Flynn
d2588d852b
LibJS: Change all [[RelevantExtensionKeys]] to return constexpr arrays
...
There's no need to allocate a vector for this internal slot. Similar to
commit: bb11437792
2021-12-01 16:36:26 +00:00
Jelle Raaijmakers
e27b077c2a
LibGL: Add GL::present_context()
...
This provides a convenience method that performs the virtual resolution
for `::present` on the provided `GLContext`.
2021-12-01 12:35:08 +01:00
Jelle Raaijmakers
bed0f3466a
LibGL: Remove TextureUnit::unbind_texture()
2021-12-01 10:21:13 +01:00
Jelle Raaijmakers
a4603fbc06
3DFileViewer: Add checkbox to disable texture
2021-12-01 10:21:13 +01:00
Jelle Raaijmakers
5788a139d8
LibGL: Implement texture unit texturing states
2021-12-01 10:21:13 +01:00
Hendiadyoin1
c7b90fa7d3
Kernel: Don't rewrite the whole file on sys$msync
2021-12-01 09:47:46 +01:00
Hendiadyoin1
259f78545a
Kernel: Allow flushing of partial regions in sys$msync
2021-12-01 09:47:46 +01:00