Andreas Kling
1749442a1c
Terminal: Use LibCore syscall wrapper for ptsname()
2021-11-24 23:25:03 +01:00
Andreas Kling
748c8b4879
LibCore: Add syscall wrapper for ptsname()
2021-11-24 23:24:53 +01:00
Andreas Kling
6b587714e8
Terminal: Use ErrorOr and TRY() when setting up the "find" dialog
2021-11-24 23:11:11 +01:00
Andreas Kling
0ff9df3cd6
Terminal: Use TRY() a lot more in serenity_main()
2021-11-24 23:07:31 +01:00
Andreas Kling
76cb6ddfcf
man: Use LibCore syscall wrappers for pipe2() and dup2()
2021-11-24 23:07:31 +01:00
Andreas Kling
a152b1f215
LibCore: Add syscall wrapper for dup2()
2021-11-24 23:07:31 +01:00
Andreas Kling
71bc9bee0a
LibCore: Add syscall wrapper for pipe2()
2021-11-24 23:07:31 +01:00
Andreas Kling
bc2ee02ce0
FileManager: Use TRY() a lot more in the main functions :^)
2021-11-24 23:07:31 +01:00
Andreas Kling
e623e73f63
LibGUI: Add GUI::Toolbar::try_add_separator()
...
This is a fallible variant of add_separator() that returns ErrorOr.
2021-11-24 23:07:31 +01:00
Andreas Kling
a18631c5e7
LibGUI: Add GUI::Menu::try_add_submenu()
...
This is a fallible variant of add_submenu() that returns ErrorOr.
2021-11-24 23:07:31 +01:00
Andreas Kling
1682cd10be
man: Port to LibMain :^)
2021-11-24 23:07:31 +01:00
Lady Gegga
f69741fa70
Base: Add Symbols for Legacy Computing to font Katica Regular 10
...
1FB8C-1FB92, 1FB94, 1FBB1-1FBB8, 1FBC1-1FBC4
https://www.unicode.org/charts/PDF/U1FB00.pdf
2021-11-24 23:06:33 +01:00
Sam Atkins
dea4f83037
LibWeb: Use a string instead of an internal Parser class in Supports
...
Now that we can serialize CSS tokens, we can just hold a string and then
re-parse it when the Supports is evaluated. This feels a little weird,
but it only happens once so it's not going to slow it down much, and it
keep the API cleaner.
2021-11-24 22:57:46 +01:00
Sam Atkins
7d5c626276
LibWeb: Add <general-enclosed> support to Media Queries
2021-11-24 22:57:46 +01:00
Sam Atkins
b03dac99a5
LibWeb: Use MatchResults for MediaQuery evaluation
2021-11-24 22:57:46 +01:00
Sam Atkins
99e18f40fb
LibWeb: Use new GeneralEnclosed class in Supports
2021-11-24 22:57:46 +01:00
Sam Atkins
e760263728
LibWeb: Parse CSS <general-enclosed>
2021-11-24 22:57:46 +01:00
Sam Atkins
42176d37fc
LibWeb: Implement independent GeneralEnclosed class
...
This is `<general-enclosed>` in CSS grammar. It represents a section of
a `@media` or `@supports` rule that exists in some future standard that
we don't understand yet, but don't want to make the entire rule invalid.
There's not much that it can usefully do, but we store a string
representation of its contents so that it can be serialized out.
2021-11-24 22:57:46 +01:00
Sam Atkins
b40388584b
LibWeb: Make StyleRule to_string() methods output valid CSS
...
Also removed unused `append_raw()` function.
2021-11-24 22:57:46 +01:00
Sam Atkins
933a271a78
LibWeb: Implement StyleComponentValueRule::to_string()
2021-11-24 22:57:46 +01:00
Sam Atkins
cf07da082e
LibWeb: Implement CSS::Token::to_string()
...
This outputs valid CSS, as opposed to to_debug_string().
2021-11-24 22:57:46 +01:00
Ben Wiederhake
3e7e503dee
strace: Implement get_process_name and gettid
2021-11-24 22:56:39 +01:00
Ben Wiederhake
2dd5c7d2cc
strace: Implement dbgputstr syscall
2021-11-24 22:56:39 +01:00
Ben Wiederhake
33079c8ab9
Kernel+UE+LibC: Remove unused dbgputch syscall
...
Everything uses the dbgputstr syscall anyway, so there is no need to
keep supporting it.
2021-11-24 22:56:39 +01:00
Ralf Donau
f53bc19b8a
Applets/Audio: Remove unveiling /tmp/portal/config
2021-11-24 19:46:03 +01:00
Jelle Raaijmakers
46ad5f2a17
Kernel: Fix futex
syscall return values
...
We were returning `int`s from two functions that caused `ErrorOr` to
not recognize the error codes as a special case. For example,
`ETIMEDOUT` was returned as the positive number 66 resulting in all
kinds of defective behavior.
As a result, SDL2's timer subsystem was not working at all, since the
`SDL_MUTEX_TIMEDOUT` value was never returned.
2021-11-24 19:44:57 +01:00
Jelle Raaijmakers
30580ed7e4
LibPthread: Initialize conditions with realtime clock
...
All the way back in commit 1670ee5aba
, the default clock for
condition variables was set to `CLOCK_MONOTONIC`, because there was no
other clock available.
However, if a condition variable is initialized without any additional
attributes by an application, they sometimes assume that the absolute
time that is passed to e.g. `pthread_cond_timedwait` is actually based
on a realtime clock, as can be seen here in SDL2:
6f419bdf5f/src/thread/pthread/SDL_syscond.c (L99)
Additionally, the glibc implementation defaults to a realtime clock:
aac54dcd37/nptl/pthread_cond_init.c (L42)
...so we probably should do so as well :^)
2021-11-24 19:44:57 +01:00
Jelle Raaijmakers
ce3a63253a
LibC: Remove commented out code from futex()
2021-11-24 19:44:57 +01:00
Maciej
700c76ba23
CrashReporter: Don't visualize whitespace in memory regions text editor
...
This was visible for memory regions with empty name.
2021-11-24 19:44:02 +01:00
Linus Groh
905b8bd545
LibJS: Make section URLs more consistent
...
- Drop index.html
- Include trailing slash before anchor
- Don't use multipage spec URLs
2021-11-24 18:37:57 +00:00
Linus Groh
ad294ff2ee
LibJS: Simplify TemporalRelativeToString
...
This is an editorial change in the Temporal spec.
See: d3b2e90
2021-11-24 18:18:05 +00:00
Jelle Raaijmakers
f97c9a5968
Kernel: Allow higher audio sample rates than 65kHZ (u16
)
...
Executing `asctl set r 96000` no longer results in weird sample rates
being set on the audio devices. SB16 checks for a sample rate between 1
and 44100 Hz, while AC97 implements double-rate support which allows
sample rates between 8kHz and 96kHZ.
2021-11-24 19:08:13 +01:00
Lady Gegga
c349634967
Base: Add Cherokee characters to font Katica Regular 10
...
13A0–13FF https://www.unicode.org/charts/PDF/U13A0.pdf
2021-11-24 19:08:04 +01:00
Vyacheslav Pukhanov
dee02ab30a
WebContent: Support inspection of DOM in nested browsing contexts
...
This lets user select a node from a nested browsing context in the
Inspector (e.g. a node inside an `iframe` document) to highlight it on
the page.
2021-11-24 19:07:48 +01:00
Vyacheslav Pukhanov
3f006d81fe
LibWeb: Add JSON serialization for nested browsing contexts
...
This changes allows for nested browser contexts to be embedded in the
serialized JSON of their container element (like `iframe`) and enables
their inspection in the DOM Inspector.
2021-11-24 19:07:48 +01:00
Idan Horowitz
58397f356f
js: Add command line flag for disabling source line hints
2021-11-24 18:05:24 +00:00
Idan Horowitz
15fafdc645
js: Pretty-print custom error types
2021-11-24 18:05:24 +00:00
Idan Horowitz
11d1950e74
js: Add command line flag for disabling ANSI colors
2021-11-24 18:05:24 +00:00
Idan Horowitz
c7d2df45b9
Base: Add missing js(1) command line options
2021-11-24 18:05:24 +00:00
Linus Groh
de69f5dbf4
LibJS: Implement Temporal.ZonedDateTime.prototype.since()
2021-11-24 17:53:00 +00:00
Linus Groh
7a2eeae8c6
LibJS: Implement Temporal.ZonedDateTime.prototype.until()
2021-11-24 17:53:00 +00:00
Luke Wilde
7dc846d51c
LibJS: Implement balance_duration_relative()
2021-11-24 17:53:00 +00:00
Luke Wilde
9559cea8e5
LibJS: Implement add_duration()
2021-11-24 17:53:00 +00:00
Luke Wilde
1f84deaf63
LibJS: Implement default_temporal_largest_unit()
2021-11-24 17:53:00 +00:00
Luke Wilde
16301a603c
LibJS: Implement difference_zoned_date_time()
2021-11-24 17:53:00 +00:00
Linus Groh
1e41a8668d
LibJS: Add sign(Crypto::SignedBigInteger const&) overload
2021-11-24 17:53:00 +00:00
Linus Groh
a20b189eab
LibJS: Fix incorrectly formatted section comments
...
A couple of missing URLs, spaces, and a stray comma.
2021-11-24 17:37:27 +00:00
Tim Schumacher
acf3154483
LibArchive: Limit all Tar header fields to their buffer length
2021-11-24 19:09:00 +02:00
Timothy Flynn
251f692440
LibJS: Re-implement SetNumberFormatDigitOptions AO
...
This is an editorial change in the Intl spec.
See: d89c84f
2021-11-24 14:17:15 +00:00
Timothy Flynn
a2f629f38a
LibJS: Update spec comments in GetOption and DefaultNumberOption AOs
...
This is an editorial change in the Intl spec.
See: 913ca6d
2021-11-24 14:17:15 +00:00