Linus Groh
0717e484f6
file: Add description & image details for image/x-qoi
2021-12-21 13:27:27 +01:00
Andreas Kling
bcd49ad834
touch: Port to LibMain :^)
2021-12-20 22:16:05 +01:00
PerikiyoXD
bdc028da1c
cp: Print proper error message with strerror
...
When cp fails, now it prints an error string (strerror)
instead of an error code.
2021-12-20 10:40:02 -08:00
Junior Rantila
3d63e688f7
watch: Port to LibMain
2021-12-19 18:26:57 -08:00
Max Trussell
99b263a2db
Userland/Notify: Check if optional icon arg is null before loading
...
The commandline "notify" application was always attempting to load an
icon path from an optional argument, even when the argument was
omitted. In this case, the image icon argument would be a null pointer
and the notify program would crash.
This fix adds a conditional to only attempt to load the icon file if
the icon_path variable is not a null pointer
2021-12-19 00:50:53 -08:00
Andreas Kling
b38f8902d2
LibCore+passwd+usermod: Make Core::Account::sync() return ErrorOr<void>
2021-12-16 22:48:17 +01:00
Andreas Kling
e5a5091b6f
su: Port to LibMain :^)
2021-12-16 22:48:17 +01:00
Andreas Kling
411c696057
passwd: Use LibCore syscall wrapper for setegid()
2021-12-16 22:48:17 +01:00
Andreas Kling
99eaeedf4e
usermod: Use LibCore syscall wrapper for setegid()
2021-12-16 22:48:17 +01:00
Andreas Kling
9e9662b695
pls: Port to LibMain :^)
2021-12-16 22:48:17 +01:00
sin-ack
69ef211925
Kernel+LibC: Move errno definitions to Kernel/API/POSIX
...
This fixes at least half of our LibC includes in the kernel. The source
of truth for errno codes and their description strings now lives in
Kernel/API/POSIX/errno.h as an enumeration, which LibC includes.
2021-12-16 22:21:35 +03:30
Kenneth Myhra
a32cbf1df3
expr: Use StringView literals more (instead of raw C strings)
2021-12-16 02:10:47 -08:00
Kenneth Myhra
c5c0c7c620
expr: Port to LibMain
2021-12-16 02:10:47 -08:00
Kenneth Myhra
0edceb91c4
functrace: Port to LibMain and move away from raw C strings
...
Ports to LibMain and uses StringView more (rather than raw C strings).
2021-12-16 02:10:47 -08:00
Kenneth Myhra
160f3224a5
flock: Port to LibMain
2021-12-16 02:10:47 -08:00
Kenneth Myhra
54f6829533
file: Port to LibMain
2021-12-16 02:10:47 -08:00
Kenneth Myhra
27e63d40f1
fdtdump: Port to LibMain
2021-12-16 02:10:47 -08:00
Kenneth Myhra
a35f51f0f0
dirname: Port to LibMain
2021-12-16 02:10:47 -08:00
Kenneth Myhra
4726532735
diff: Port to LibMain
2021-12-16 02:10:47 -08:00
Kenneth Myhra
cd8bd27835
df: Port to LibMain
2021-12-16 02:10:47 -08:00
Kenneth Myhra
156899a63f
ddate: Port to LibMain
2021-12-16 02:10:47 -08:00
Jean-Baptiste Boric
dc83fd5ee8
strace: Remove formatting support for SC_select
2021-12-12 21:48:50 +01:00
Jean-Baptiste Boric
e486d23c3f
strace: Add formatting support for SC_poll
2021-12-12 21:48:50 +01:00
Jean-Baptiste Boric
809855be57
strace: Sort syscalls formatters in alphabetic order
2021-12-12 21:48:50 +01:00
Kenneth Myhra
62ddd7613c
config: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Kenneth Myhra
65f4d868e5
dd: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Kenneth Myhra
00dbac9d16
date: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Kenneth Myhra
5c15b97ca4
cut: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Kenneth Myhra
7cb19b2965
cpp-processor: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Kenneth Myhra
121fe820d9
cpp-parser: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Kenneth Myhra
1a81d79705
cpp-lexer: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Kenneth Myhra
601b60324a
comm: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Kenneth Myhra
d86c84a700
clear: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Kenneth Myhra
6e066bf1cd
cksum: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Kenneth Myhra
67a18d51c7
chres: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Kenneth Myhra
cc3710e19f
chown: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Kenneth Myhra
c8080fc2ca
chgrp: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Kenneth Myhra
59d299955e
checksum: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Kenneth Myhra
6b6d7286b5
cal: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
David Lindbom
235a2b35d6
passwd: Port to LibMain
2021-12-11 13:16:55 -08:00
bugreport0
8a4b9c0926
passwd: Remove redundant pledge()
2021-12-11 03:17:11 -08:00
Linus Groh
038d354b5d
LibJS: Remove Object::value_of()
...
Being really close to Object.prototype.valueOf() name wise makes this
unnecessarily confusing - while it sometimes serves as the
implementation of a valueOf() function, it's an abstraction which the
spec doesn't have.
Use the appropriate getters to retrieve specific internal slots instead,
most commonly [[FooData]] from the primitive wrapper objects.
For the Object class specifically, use the Value(Object*) ctor instead.
2021-12-10 22:52:36 +00:00
James Puleo
dd25dfbc20
js: Improve usage of TRY
when executing a file program
2021-12-08 17:17:35 -08:00
Ben Wiederhake
9f91f610e2
test-crypto: Avoid implicitly copying ByteBuffer
2021-12-08 09:46:13 -08:00
Ben Wiederhake
152d455143
strace: Handle strings more gracefully
...
In particular, strace can now stomach memory errors while copying
invalid strings.
Example with a valid string:
dbgputstr("95.976 traceme(38:38) Well, Hello Friends!") = 55
Example with an invalid string:
dbgputstr(Error(errno=14){0x00012345, 678b}) = -14 EFAULT
(ANSI escapes removed for readability.)
2021-12-05 22:59:09 +01:00
Ben Wiederhake
49adebf0fc
strace: Use new PT_PEEKBUF function
...
This necessarily introduces some usages (and benefits!) of the new
ErrorOr<> pattern. To keep commits atomic, I do not yet rewrite the
entire program to use ErrorOr<> correctly.
2021-12-05 22:59:09 +01:00
Idan Horowitz
13dec3cdde
LibC: Add a couple of missing errno codes
...
These are required to compile a port.
2021-12-05 12:53:29 +01:00
Idan Horowitz
e521ffd156
Kernel: Add support for the MSG_WAITALL sys$recvmsg flag
2021-12-05 12:53:29 +01:00
Idan Horowitz
5514d60d8d
Kernel: Add support for the MSG_DONTROUTE sys$sendmsg flag
2021-12-05 12:53:29 +01:00
Kenneth Myhra
d465d3a457
chmod: Port to LibMain :^)
...
This ports chmod to LibMain + changes input parameters on several
functions from raw C strings to StringView.
2021-12-04 15:05:46 -08:00