summaryrefslogtreecommitdiff
path: root/Userland/Utilities
AgeCommit message (Collapse)Author
2022-04-07LibX86+disasm: Use an output format closer to objdumpHendiadyoin1
This mainly does two things, 1. Removes spaces after commas 2. Elides "0x" and leading zeros in most contexts Remaining differences are: 1. objdump always has memory size annotations We lack these and probably have some annotations wrong 2. Boolean check names We use jump-zero, while objdump uses jump-equal for example 3. We sometimes add "00 00" symbols, which objdump elides 4. We always demangle (This is a good thing) 5. We always resolve relocations (This is a good thing) 6. We seem to detect some symbols differently/incorrectly
2022-04-07disasm: Print instruction bytesHendiadyoin1
This prints 7 instruction bytes per line, which is enough for most x86-64 instructions (rex+opcode+mod/rm+imm32) and is also what objdump uses. Co-authored-by: Simon Wanner <skyrising@pvpctutorials.de>
2022-04-05Utilities: Update arp to use newer APIsbrapru
Updates the arp command to use Core::System for the socket and ioctl calls. Updates command line arguments to StringView.
2022-04-05Utilities: Pledge inet in arp commandbrapru
Previously the arp command would crash when trying to set/delete from the table.
2022-04-05js: Print the accumulator instead of the returned value in BC modeAli Mohammad Pur
The REPL is supposed to show the last value (and not the _returned_ value), so use the accumulator register as the 'value'.
2022-04-05js: Convert non-UTF-8 encoded files to UTF-8 before parsingTimothy Flynn
2022-04-03ls: Use `Core::System::pledge(..)` instead of LibC APIBrian Gianforcaro
2022-04-03Utilities: Use default execpromises parameter to `pledge(..)`Brian Gianforcaro
2022-04-03lscpu: Show hypervisor_vendor_id if presentLinus Groh
2022-04-03Kernel+SystemMonitor+lscpu: Rename 'CPUID' -> 'Vendor ID'Linus Groh
This is what the Intel manual, as well as Linux's cpuinfo calls it.
2022-04-03netstat: Resolve ports to service namesBrendan Coles
2022-04-02top: Add support for quitting top by pressing qJames Mintram
2022-04-02Userland: Fix crash when inputting non-tty device into psThomas Symalla
This PR aims to fix #13299 by avoiding assertion failure while trying to determine the pseudo tty when inputting any non-tty device device into ps.
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2022-03-30test: Port to LibMainKenneth Myhra
2022-03-30AK: Allow printing wide characters using %ls modifiersafarp
2022-03-29seq: Port to LibMainKenneth Myhra
2022-03-29tty: Port to LibMainKenneth Myhra
2022-03-29tt: Port to LibMainKenneth Myhra
2022-03-29tr: Utilize TRY moreKenneth Myhra
This converts the local functions to return ErrorOr<T> and utilizes TRY more.
2022-03-29tr: Port to LibMainKenneth Myhra
2022-03-29test_env: Port to LibMainKenneth Myhra
2022-03-29test-unveil: Port to LibMainKenneth Myhra
2022-03-29test-pthread: Port to LibMain and let local functions return ErrorOr<T>Kenneth Myhra
This ports 'test-pthread' to LibMain and converts the local functions of the program to return ErrorOr<T>.
2022-03-29test-fuzz: Allow listing fuzzing targets without specifying input fileKenneth Myhra
2022-03-29test-fuzz: Port to LibMainKenneth Myhra
Also use StringView in place of raw C strings and String.
2022-03-29test-bindtodevice: Port to LibMainKenneth Myhra
This ports 'test-bindtodevice' to LibMain and convert the local 'test' function to return ErrorOr<T>.
2022-03-29kcov-example: Port to LibMainKenneth Myhra
2022-03-29telws: Port to LibMainKenneth Myhra
2022-03-29run-tests: Port to LibMainKenneth Myhra
2022-03-29markdown-check: Use Core::ArgsParserKenneth Myhra
2022-03-29markdown-check: Port to LibMainKenneth Myhra
2022-03-28LibXML: Add a fairly basic XML parserAli Mohammad Pur
Currently this can parse XML and resolve external resources/references, and read a DTD (but not apply or verify its rules). That's good enough for _most_ XHTML documents as the HTML 5 spec enforces its own rules about document well-formedness, and does not make use of XML DTDs (aside from a list of predefined entities). An accompanying `xml` utility is provided that can read and dump XML documents, and can also run the XML conformance test suite.
2022-03-27disk_benchmark: TRY more stuff :^)Kenneth Myhra
2022-03-27disk_benchmark: Core::ArgsParser to parse argumentsKenneth Myhra
2022-03-26tee: Port to LibMain and move to SerenityOS code patternsKenneth Myhra
This patch ports the utility 'tee' to LibMain and converts a larger part of its code to our SerenityOS patterns.
2022-03-26ls: Remove leading dashes from ArgsParser argument nameAli Mohammad Pur
Otherwise the full argument would be "----ignore-backups", which is most certainly not correct :^)
2022-03-26Utilities/ps: Don't assume the kernel can provide real TTY pathsLiav A
2022-03-24Utilities: Use default constructors/destructorsLenny Maiorani
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
2022-03-24sql: Re-prompt user for input after unrecognized commandNicholas Cellino
This fixes a bug in the SQL REPL where after a user enters an unrecognized command, the REPL would not print another "> " prompt and would not accept any more input.
2022-03-24readlink: Use StringView instead of const char*Kenneth Myhra
2022-03-24readlink: Port to LibMainKenneth Myhra
2022-03-24Userland+Tests: Convert File::read_link() from String to ErrorOr<String>Kenneth Myhra
This converts the return value of File::read_link() from String to ErrorOr<String>. The rest of the change is to support the potential of an Error being returned and subsequent release of the value when no Error is returned. Unfortunately at this stage none of the places affected can utililize our TRY() macro.
2022-03-23sql: Do not indent next line when current one is blankNicholas Cellino
Previously, if a user pressed Enter without typing a command at the SQL REPL, the next line would be automatically indented. This change makes it so we check if there were any tokens in the command before applying the indentation logic.
2022-03-22Mount: Implement wxallowed mount optionint16
2022-03-22disk_benchmark: Port to LibMainNicholas Cellino
2022-03-22readelf: Port to LibMainBrian Gianforcaro
2022-03-22purge: Port to LibMainBrian Gianforcaro
2022-03-22ping: Utilize TRY + Core::System wrappersBrian Gianforcaro
2022-03-22traceroute: Port to LibMainBrian Gianforcaro