faxe1008
f47d92af72
arp: Port to LibMain
2021-11-23 22:54:25 +01:00
Pedro Pereira
7d2170246f
Hearts: Port to LibMain
...
Simplified one pledge() and two unveil() by using TRY().
2021-11-23 22:47:34 +01:00
Linus Groh
55dbd19a16
LibJS: Update to_largest_temporal_unit() to allow undefined fallback
...
This is required for Temporal.Duration.prototype.round(). Subsequently,
this now returns ThrowCompletionOr<Optional<String>>, which brings the
signature in line with that of to_smallest_temporal_unit().
Much nicer! :^)
2021-11-23 21:03:05 +00:00
Andreas Kling
6386b54746
dmesg: Port to LibMain :^)
2021-11-23 15:44:59 +01:00
Andreas Kling
e6579e7029
ps: Port to LibMain :^)
2021-11-23 15:44:59 +01:00
Andreas Kling
120168203e
keymap: Port to LibMain :^)
2021-11-23 15:44:59 +01:00
Andreas Kling
8b5c0e8e71
pmap: Port to LibMain :^)
2021-11-23 15:44:59 +01:00
Andreas Kling
d8482134b6
LookupServer: Port to LibMain :^)
2021-11-23 15:44:59 +01:00
Andreas Kling
ddd99b4594
NotificationServer: Port to LibMain :^)
2021-11-23 15:44:59 +01:00
Andreas Kling
70b1312fd4
ConfigServer: Port to LibMain :^)
2021-11-23 15:44:59 +01:00
Andreas Kling
9c9cd20dce
WebServer: Port to LibMain :^)
2021-11-23 15:44:59 +01:00
Andreas Kling
3d126fe921
WidgetGallery: Port to LibMain :^)
2021-11-23 15:44:59 +01:00
Andreas Kling
24bf74a177
WorkspacePicker: Port to LibMain :^)
2021-11-23 15:44:59 +01:00
Andreas Kling
51484bec82
Applets: Rename DesktopPicker => WorkspacePicker
...
This is consistent with the rest of the system.
2021-11-23 15:44:59 +01:00
Andreas Kling
03b6ff2bf0
utmpupdate: Port to LibMain :^)
2021-11-23 15:44:59 +01:00
Andreas Kling
adc83e5802
Taskbar: Port to LibMain :^)
...
This opens up using TRY() for syscalls, Core::Object creation, and even
some Vector operations.
2021-11-23 15:44:59 +01:00
Andreas Kling
b03f8d18c5
Applets/Network: Port to LibMain :^)
...
This opens up using TRY() for syscalls and Core::Object creation.
2021-11-23 15:44:59 +01:00
Andreas Kling
6536198693
TextEditor: Port to LibMain :^)
...
This opens up using TRY() for syscalls and Core::Object creation.
2021-11-23 15:44:59 +01:00
Andreas Kling
5a3f5582ba
LibCore: Add try_create(...) helper to all Core::Object derived classes
...
This is like construct(...) but returns ErrorOr<NonnullRefPtr<T>>.
2021-11-23 15:44:59 +01:00
Andreas Kling
16356ca478
LibCore: Add syscall wrappers for read() and write()
2021-11-23 15:44:59 +01:00
Federico Guerinoni
221a32577e
LibGUI: Support applying AutocompleteBox suggestions with mouse
...
Fixes : #8004
2021-11-23 13:43:11 +00:00
Pedro Pereira
9d2e169169
FlappyBug+Spider: Update GUI:Application::construct usage
...
Update code to use Main:Arguments directly.
2021-11-23 14:15:00 +01:00
Andreas Kling
d117c4cccc
truncate: Add a basic set of pledge promises
2021-11-23 12:31:21 +01:00
Andreas Kling
9eb7030b55
truncate: Port to LibMain and use LibCore syscall wrappers :^)
2021-11-23 12:27:33 +01:00
Andreas Kling
3db9979e40
LibCore: Add syscall wrapper for stat()
2021-11-23 12:23:54 +01:00
Andreas Kling
4a213869f2
LibCore: Add syscall wrapper for ftruncate()
2021-11-23 12:23:54 +01:00
Andreas Kling
4bf08e4d52
LibCore: Add syscall wrapper for close()
2021-11-23 12:23:54 +01:00
Andreas Kling
adb9b86807
LibGfx: Use Core::System::open() in Gfx::Bitmap :^)
2021-11-23 12:23:54 +01:00
Andreas Kling
0ed5f84bd9
LibCore: Use open() wrapper in Core::MappedFile :^)
2021-11-23 12:23:54 +01:00
Andreas Kling
50416c286d
LibCore: Add syscall wrapper for open()
2021-11-23 11:59:50 +01:00
Andreas Kling
094fa900a3
LibCore: Use mmap() and munmap() wrappers in Core::MappedFile
2021-11-23 11:51:46 +01:00
Andreas Kling
45842a5208
LibCore: Add syscall wrapper for munmap()
2021-11-23 11:51:11 +01:00
Andreas Kling
53e9b9758e
LibCore: Add syscall wrapper for mmap()
...
For convenience on SerenityOS, this also takes a custom alignment
request, and a memory region name. These are non-POSIX extensions.
2021-11-23 11:48:40 +01:00
Andreas Kling
a62d16fbe9
LibCore: Use syscall wrappers in MappedFile::map_from_fd_and_close()
2021-11-23 11:36:00 +01:00
Andreas Kling
58fb3ebf66
LibCore+AK: Move MappedFile from AK to LibCore
...
MappedFile is strictly a userspace thing, so it doesn't belong in AK
(which is supposed to be user/kernel agnostic.)
2021-11-23 11:33:36 +01:00
Andreas Kling
c1c9da6c35
LoginServer: Port to LibMain :^)
2021-11-23 11:33:36 +01:00
Andreas Kling
c1a3968c66
LibCore: Make LocalSocket takeover mechanism return ErrorOr<T>
2021-11-23 11:33:36 +01:00
Andreas Kling
c37a02341b
LibCore: Add Core::System wrappers for fstat() and fcntl()
2021-11-23 11:33:36 +01:00
Andreas Kling
21a5fb0fa2
LibCore+LibSystem: Move syscall wrappers from LibSystem to LibCore
...
With this change, System::foo() becomes Core::System::foo().
Since LibCore builds on other systems than SerenityOS, we now have to
make sure that wrappers work with just a standard C library underneath.
2021-11-23 11:33:36 +01:00
Andreas Kling
acc2eccede
LibSystem: Add wrapper for fstat()
2021-11-23 11:33:36 +01:00
Andreas Kling
2828d58a10
RequestServer: Port to LibMain :^)
2021-11-23 11:33:36 +01:00
Andreas Kling
5e93db93fc
ImageDecoder: Port to LibMain :^)
2021-11-23 11:33:36 +01:00
Andreas Kling
c6a581f267
WebSocket: Port to LibMain :^)
2021-11-23 11:33:36 +01:00
Andreas Kling
c2b90bab9f
LanguageServers/Shell: Port to LibMain :^)
2021-11-23 11:33:36 +01:00
Andreas Kling
54155f8c64
LanguageServers/Cpp: Port to LibMain :^)
2021-11-23 11:33:36 +01:00
Andreas Kling
9d4c946515
FileSystemAccessServer: Port to LibMain :^)
2021-11-23 11:33:36 +01:00
Andreas Kling
32e05f9b14
WebContent: Port to LibMain :^)
2021-11-23 11:33:36 +01:00
Mustafa Quraish
4d302e0e88
Everywhere: Use Application::construct() with Main::Arguments directly
...
Use the updated API everywhere we are currently manually passing in
`arguments.argc` and `arguments.argv`.
2021-11-22 21:13:42 -08:00
Mustafa Quraish
2fbcab46bf
Everywhere: Use ArgsParser::parse() with Main::Arguments directly
...
Use the updated API everywhere we are currently manually passing in
`arguments.argc` and `arguments.argv`.
2021-11-22 21:13:42 -08:00
Mustafa Quraish
7720644ae2
LibCore: Let ArgsParser::parse() accept Main::Arguments
...
Instead of manually passing in `arguments.argc` and `arguments.argv`,
we can now just pass in the arguments directly.
2021-11-22 21:13:42 -08:00