summaryrefslogtreecommitdiff
path: root/Userland/Utilities/host.cpp
AgeCommit message (Collapse)Author
2022-07-12Userland: Convert command line arguments to String/StringViewsin-ack
StringView was used where possible. Some utilities still use libc functions which expect null-terminated strings, so String objects were used there instead.
2022-04-16host: Use AK/IPv4Address to determine if argument is host/ipbrapru
It's a bit cleaner to just rely on AK/IPv4Address' ability to determine the validity of the given input. If a valid IP address is not returned, then input will be processed as a hostname.
2022-04-03Utilities: Use default execpromises parameter to `pledge(..)`Brian Gianforcaro
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2022-01-14host: Port to LibMainLucas CHOLLET
2021-06-01Userland: Replace most printf-style APIs with AK::Format APIs :^)Linus Groh
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-02-09Userland: Use INET_ADDRSTRLEN for inet_ntop() buffersLinus Groh
There's no point in using different, seemingly randomly sized buffers as the required size for storing an IPv4 address representation is well known (16 bytes).
2021-01-22Kernel+Userland: Remove "dns" pledge promise aliasAndreas Kling
This was just an alias for "unix" that I added early on back when there was some belief that we might be compatible with OpenBSD. We're clearly never going to be compatible with their pledges so just drop the alias.
2021-01-12Userland: Move command-line utilities to Userland/Utilities/Andreas Kling