summaryrefslogtreecommitdiff
path: root/Userland/Utilities
AgeCommit message (Collapse)Author
2023-05-24Kernel: Use UnixDateTime wherever applicablekleines Filmröllchen
"Wherever applicable" = most places, actually :^), especially for networking and filesystem timestamps. This includes changes to unzip, which uses DOSPackedTime, since that is changed for the FAT file systems.
2023-05-24AK: Rename Time to Durationkleines Filmröllchen
That's what this class really is; in fact that's what the first line of the comment says it is. This commit does not rename the main files, since those will contain other time-related classes in a little bit.
2023-05-24image: Add --no-output flag to omit output writingNico Weber
This is useful for timing just decoder performance. (It'd be nice to add a `-t` flag that prints timings for all the different phases, but for now just disabling writing is sufficient for me.)
2023-05-24image: Remove no-longer-needed commentNico Weber
The future is now, and Bitmap::load_from_file() can't do the things that `image` now does.
2023-05-24Utilities: Use elapsed_milliseconds() instead of elapsed()Nico Weber
No behavior change.
2023-05-24Utilities/w: Add `-h` option to optionally hide the headerTim Ledbetter
2023-05-24Utilities/w: Add the ability to filter by usernameTim Ledbetter
2023-05-24Utilities/w: Display the TTY pseudo name in the "TTY" columnTim Ledbetter
This matches the format used by `ps`. If we cannot determine the TTY pseudo name we fall back to the full device name, as shown previously.
2023-05-24Utilities/w: Convert TTY string from `/var/run/utmp` to TTY pseudo nameTim Ledbetter
Previously, we were comparing the "tty" value from `/sys/kernel/processes` to the TTY value from `/var/run/utmp` directly. This caused the "WHAT" column to always show "N/A", because the former is the TTY pseudo name, while the latter is the full device name.
2023-05-24Utilities/w: Port to StringTim Ledbetter
2023-05-24Utilities/w: Replace LibC function calls with modern equivalentsTim Ledbetter
2023-05-23test-fuzz: Add all the missing fuzzersTim Schumacher
2023-05-23test-fuzz: Don't include all fuzzers into the same .cpp fileTim Schumacher
Instead, use the approach from BuggieBox to compile in the .cpp files separately.
2023-05-23du: Continue enumerating directories on errorTim Ledbetter
Previously, the program would exit if a directory couldn't be read. We now write an error message to stderr and continue.
2023-05-23du: Print to stderr rather than stdout when directory can't be readTim Ledbetter
2023-05-22mkfifo: Don't rely on global errnoKarol Kosek
Core::System::mkfifo() doesn't rely on POSIX's mkfifo() and sends the syscall directly to our system. This means that the and errno doesn't get updated which ultimately caused the program to display an incorrect message 'mkfifo: Success (not an error)'.
2023-05-21xml: Prefer LibFileSystem over DeprecatedFileBen Wiederhake
2023-05-21wasm: Prefer LibFileSystem over DeprecatedFileBen Wiederhake
2023-05-21userdel: Prefer LibFileSystem over DeprecatedFileBen Wiederhake
2023-05-21unzip: Prefer File over DeprecatedFileBen Wiederhake
2023-05-21shot: Prefer LibFileSystem over DeprecatedFileBen Wiederhake
2023-05-21run-tests: Prefer LibFileSystem over DeprecatedFileBen Wiederhake
2023-05-21open: Prefer LibFileSystem over DeprecatedFileBen Wiederhake
2023-05-21markdown-check: Prefer LibFileSystem and String over Deprecated*Ben Wiederhake
2023-05-21headless-browser: Prefer FileSystem over DeprecatedFileBen Wiederhake
2023-05-21Meta: Also run markdown-check on markdown files in each Port subdirBen Wiederhake
2023-05-21tail: Count lines correctly when file ends with two or more newlinesTim Ledbetter
Previously, an extra line would be displayed when a file ended in more than one newline.
2023-05-21tail: Don't skip the last line if it doesn't end in a newlineTim Ledbetter
2023-05-21tail: Don't read past EOF when reading from a seekable streamTim Ledbetter
Previously, using tail to read from a file would fail, as we would seek to the end of the file then try to read a byte from that position.
2023-05-19aplay: Determine absolute path before raising the veilBen Wiederhake
This was a regression introduced in 25d2828e, #18807. In that commit, I forgot to investigate why the order of operations was so "weird", so I added a comment this time to prevent future regressions.
2023-05-19usermod: Prefer FileSystem over DeprecatedFileBen Wiederhake
2023-05-19mv: Prefer FileSystem over DeprecatedFileBen Wiederhake
2023-05-19cp: Prefer FileSystem over DeprecatedFileBen Wiederhake
2023-05-19install: Prefer FileSystem over DeprecatedFileBen Wiederhake
2023-05-18shuf: Add `-r` option to allow output lines to be repeatedTim Ledbetter
This commit also modifies the behavior of the `-z` option, so that a '\0' character now delimits output lines, as well as input lines. This matches the behavior of the GNU coreutils and FreeBSD implementations of shuf.
2023-05-17Kernel+Userland: Split bind-mounting and re-mounting from mount syscallLiav A
These 2 are an actual separate types of syscalls, so let's stop using special flags for bind mounting or re-mounting and instead let userspace calling directly for this kind of actions.
2023-05-17Browser+Ladybird+LibWebView: Handle trivial content APIs in LibWebViewTimothy Flynn
The goal here is to reduce the amount of WebContent client APIs that are duplicated across every ViewImplementation. Across our three browsers, we currently: Ladybird - Mix some AK::Function callbacks and Qt signals to notify tabs of WebContent events. Browser - Use only AK::Function callbacks. headless-browser - Drop most events on the floor. Instead, let's only use AK::Function callbacks across all three browsers to propagate events to tabs. This allows us to invoke those callbacks directly from LibWebView instead of all three browsers needing to define a trivial `if (callback) callback();` override of a LibWebView virtual function. For headless-browser, we can simply not set these callbacks. As a first pass, this only converts WebContent events that are trivial to this approach. That is, events that were simply passed onto the tab or handled without much fuss.
2023-05-17Browser+Ladybird+LibWebView: Virtualize computing content/widget pointsTimothy Flynn
This will allow moving some copy-pasted functionality from web view implementations to the base LibWebView class.
2023-05-17tar: Wire up compressing .tar files with LZMATim Schumacher
2023-05-17lsirq: Restore enumeration of interrupt lineJelle Raaijmakers
This was broken by changes to `JsonObject::get_deprecated_string`.
2023-05-16ping: Add -i option to specify the time to wait between packetsTim Ledbetter
2023-05-16ping: Add -q option to specify quiet modeTim Ledbetter
Quiet mode suppresses all output except the statistics shown before the program exits.
2023-05-16ps: Add `-u` option, to list processes associated with specified usersSam Atkins
2023-05-16ps: Perform filtering step before the output loopSam Atkins
Previously we did some of the filtering before the loop, and some inside it, which made things awkward to reason about. This also lets us avoid generating a TTY string for each process unless there's a column for it.
2023-05-16ps: Add `-p` option, and distinguish it from `-q`Sam Atkins
2023-05-16ps: Allow `-q` option multiple times, and separated by spaces or commasSam Atkins
Several differences here: - Passing `-q` multiple times will add them together, instead of the last one overwriting the previous ones. - `-q` PIDs can be separated by commas as well as spaces. - We check that the PIDs are integers while parsing the arguments, instead of later on. The "parse a list of things as an option" is extracted into a helper function, because we're going to want the same logic for `-g`, `-G`, `-p`, `-t`, `-u`, and `-U`.
2023-05-16ps: Add the `-a` option, to list all processes associated with terminalsSam Atkins
2023-05-16ps: Add the `-A` optionSam Atkins
This is identical to our existing `-e` option, but both are required by POSIX.
2023-05-16ps: Use Optional for column indices, instead of -1 meaning "not present"Sam Atkins
2023-05-16ps: Ensure columns capacity in advanceSam Atkins
Also use unchecked_append() in a couple of other places where we can.