Kenneth Myhra
5d41f993cd
notify: Port to LibMain
2022-01-31 15:25:07 +01:00
Kenneth Myhra
a64b44377d
nl: Port to LibMain
2022-01-31 15:25:07 +01:00
Kenneth Myhra
cf207ad938
mount: Use more StringView instead of const char*
2022-01-31 15:25:07 +01:00
Kenneth Myhra
9d48406312
mount: Port to LibMain
2022-01-31 15:25:07 +01:00
Kenneth Myhra
46c4988568
lsof: Use more StringView instead of const char*
2022-01-31 15:25:07 +01:00
Kenneth Myhra
262161481f
lsof: Port to LibMain
2022-01-31 15:25:07 +01:00
Kenneth Myhra
6a7ffcddba
lsirq: Port to LibMain
2022-01-31 15:25:07 +01:00
Idan Horowitz
9802b16298
js: Implement pretty-printing of Intl Segments objects
2022-01-30 19:47:01 +00:00
Idan Horowitz
7cf3f11815
js: Implement pretty-printing of Intl.Segmenter
2022-01-30 19:47:01 +00:00
Timothy Flynn
5a1eefcc1d
js: Implement pretty-printing of Intl.Collator
2022-01-29 20:27:24 +00:00
Ali Mohammad Pur
6d64b13a1b
LibDebug+Everywhere: Avoid void* -> FlatPtr -> void* dance
...
And limit the `void*` to the functions that interface the system (i.e.
ptrace wrappers).
This generally makes the code less riddled with casts.
2022-01-28 22:51:27 +00:00
Timothy Flynn
5ca1c54c27
date: Use an explicit time format string for default option
...
This is to prepare for removing the time zone from DateTime's default
format string. The date utility on most system show time zone by default
so let's keep that.
2022-01-28 20:19:05 +00:00
Ali Mohammad Pur
58ed00f633
run-tests: Dump a backtrace for crashed tests
...
It only makes sense to see what a crashed test was up to, so generate a
backtrace if we can find the coredump and read it.
2022-01-28 20:18:46 +00:00
Ali Mohammad Pur
1c121d7488
js: Use generic reference instead of Variant<A,B>
...
As the two types are used in exactly the same way, just make the lambda
generic over the type instead of explicitly moving them into a variant
and then visiting with a generic lambda.
2022-01-28 20:18:46 +00:00
Timothy Flynn
624fad3821
js: Implement pretty-printing of Intl.PluralRules
2022-01-28 19:38:47 +00:00
Idan Horowitz
fa7ae7288b
zip: Ignore symlinks when recursively zipping files
...
This prevents infinite loops when symlinks point to a parent directory.
2022-01-28 19:05:52 +02:00
Timothy Flynn
0a1e717e40
Revert "ls: Display times in the user's local time zone"
...
This reverts commit 0c13a3a8ff
.
2022-01-28 15:13:35 +00:00
Timothy Flynn
8599ee3049
Revert "Userland: Invoke tzset in apps that care about time zones"
...
This reverts most of commit ede5c9548e
.
The one change not reverted is ClockWidget.h, so that the taskbar clock
can continue to notice time zone changes.
2022-01-28 15:13:35 +00:00
Timothy Flynn
0c13a3a8ff
ls: Display times in the user's local time zone
...
ls is already using local time, but needs tzset() for that to actually
work.
2022-01-28 12:25:20 +00:00
brapru
2af9a8e862
ping: Port to LibMain
2022-01-27 12:56:07 +01:00
Timothy Flynn
82509ca0c8
date: Display time zone information in all output formats
2022-01-25 23:21:30 +00:00
Idan Horowitz
971ab3b919
Kernel: Use u64 instead of size_t in the STORAGE_DEVICE_GET_SIZE ioctl
...
This ensures the device size doesn't get truncated on i686.
2022-01-25 22:41:17 +02:00
Timothy Flynn
47e9e7c2d0
js: Implement pretty-printing of Intl.RelativeTimeFormat
2022-01-25 19:02:59 +00:00
Timothy Flynn
a027ccad75
LibTimeZone+Userland: Rename current_time_zone to system_time_zone
...
This renames the current implementation of current_time_zone to
system_time_zone to more clearly indicate what it is. Then reimplements
current_time_zone to return whatever was set up by tzset, falling back
to UTC if something went awry, for convenience.
2022-01-25 18:39:36 +00:00
Timothy Flynn
ede5c9548e
Userland: Invoke tzset in applications that care about time zones
...
In most applications, we invoke tzset once at startup for now. Most of
these are short lived and don't need to know about time zone changes.
The exception is the ClockWidget in the taskbar. Here, we invoke tzset
each time we update the system time. This way, any time zone changes can
take effect immediately.
2022-01-25 18:39:36 +00:00
Timothy Flynn
40147c48be
timezone: Add an option to list all time zones
2022-01-25 18:39:36 +00:00
Idan Horowitz
67ce9e28a5
AK: Standardize the behaviour of GenericLexer::consume_until overloads
...
Before this commit all consume_until overloads aside from the Predicate
one would consume (and ignore) the stop char/string, while the
Predicate overload would not, in order to keep behaviour consistent,
the other overloads no longer consume the stop char/string as well.
2022-01-25 13:41:09 +03:30
Names4Noobs
a4495bdcba
tree: Port to LibMain
2022-01-25 04:26:56 +00:00
Ariel Abreu
790274d4a5
rmdir: Port to LibMain
2022-01-25 02:50:10 +00:00
Ariel Abreu
0fea2203dc
rm: Port to LibMain
2022-01-25 02:50:10 +00:00
Fabian INGREMEAU
5f602e39e9
md: Port to LibMain
2022-01-25 00:11:14 +00:00
Fabian INGREMEAU
dff6460373
mv: Port to LibMain
2022-01-25 00:11:14 +00:00
Fabian INGREMEAU
daf7f72ff3
tail: Port to LibMain
2022-01-25 00:11:14 +00:00
Rummskartoffel
f3341f48e3
less: Fix memory leak when scrolling to EOF
2022-01-24 21:57:58 +00:00
Sam Atkins
c388a879d7
AK+Userland: Make AK::decode_base64 return ErrorOr
2022-01-24 22:36:09 +01:00
Sam Atkins
45cf40653a
Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr
...
Apologies for the enormous commit, but I don't see a way to split this
up nicely. In the vast majority of cases it's a simple change. A few
extra places can use TRY instead of manual error checking though. :^)
2022-01-24 22:36:09 +01:00
Daniel Bertalan
b509d8a2f7
Utilities/readelf: Add support for printing the content of sections
2022-01-24 10:41:47 +00:00
Kenneth Myhra
eeb74e2578
mktemp: Port to LibMain
2022-01-24 14:01:58 +03:30
Kenneth Myhra
b4d55f2a55
mkfifo: Port to LibMain
2022-01-24 14:01:58 +03:30
Kenneth Myhra
3af7a5dd61
mknod: Port to LibMain
2022-01-24 14:01:58 +03:30
Michel Hermier
395d9a2702
sort: Port to LibMain
2022-01-24 05:38:30 +00:00
Michel Hermier
176de579f2
shuf: Port to LibMain
2022-01-24 05:38:30 +00:00
Michel Hermier
4e02b204ef
rev: Port to LibMain
2022-01-24 05:38:30 +00:00
Rummskartoffel
5f639493f0
gunzip: Don't truncate output filename when input file suffix is omitted
...
Before this commit, `$ gunzip abcd` would incorrectly uncompress
`abcd.gz` to `a` instead of to `abcd`.
2022-01-23 20:52:16 +00:00
David Lindbom
fb06d494f0
find: Fix crash on missing arguments
...
Fixes #12075
2022-01-23 16:29:06 +01:00
Timothy Flynn
6057a2ca30
timezone: Add a command line utility to set the system time zone
2022-01-23 12:48:26 +00:00
Timothy Flynn
bcf4ec9c61
Userland: Add promises to programs that will read /etc/timezone
...
This will require unveiling /etc/timezone itself for reading, as well as
the rpath pledge promise.
2022-01-23 12:48:26 +00:00
dayarthvader
67b7bbe1f6
ping: Handle optional field in the IPv4 header
2022-01-22 22:11:21 +00:00
Idan Horowitz
bb340f1272
markdown-check: Ignore absolute icon paths
...
We have no good way to handle these yet, and there's no point in
forcing everyone to skip their pre-commit checks.
2022-01-22 21:40:09 +02:00
Federico Guerinoni
e37af0b073
umount: Port to LibMain
2022-01-22 13:31:52 +02:00