summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-28Base: Mount /etc as read/writeAndreas Kling
Let's be reasonable and have a writable /etc by default.
2020-07-28LibWeb: Move HTML classes into the Web::HTML namespaceAndreas Kling
2020-07-28AK: Tweak String::is_one_of() and FlyString::is_one_of()Andreas Kling
Switch the comparisons from "other == *this" to "*this == other".
2020-07-28LibWeb: Move MouseEvent into the UIEvents namespaceAndreas Kling
Named after the UIEvents specification that houses MouseEvent.
2020-07-28LibX86: Disassemble most FPU instructions starting with D9Nico Weber
Some of these don't just use the REG bits of the mod/rm byte as slashes, but also the R/M bits to have up to 9 different instructions per opcode/slash combination (1 opcode requires that MOD is != 11, the other 8 have MODE == 11). This is done by making the slashes table two levels deep for these cases. Some of this is cosmetic (e.g "FST st0" has no effect already, but its bit pattern gets disassembled as "FNOP"), but for most uses it isn't. FSTENV and FSTCW have an extraordinary 0x9b prefix. This is not yet handled in this patch.
2020-07-28Meta: Calculate image size based on size of Build/Root and BasePeter Elliott
This reduces the size of the default build, while allowing people to install as many ports as they want, without having to manually specify disk size.
2020-07-28Userland: Make su require passwordsPeter Elliott
2020-07-28Userland: Add passwd utilityPeter Elliott
2020-07-28LibCore: add get_password().Peter Elliott
A serenity-style getpass that is thread-safe
2020-07-28LibC: Add passwords to putpwentPeter Elliott
2020-07-28AK: Make String::substring() return non-null for 0-length stringsPeter Elliott
This also makes String::split() give non-null strings when keep_empty is true.
2020-07-28LibCrypt: Add LibCrypt, crypt, and crypt_rPeter Elliott
2020-07-28SystemMenu: Add 'Themes' iconBen Wiederhake
2020-07-28SystemMenu: Add icons for categoriesBen Wiederhake
2020-07-28SystemMenu: Untangle app/category discovery and GUI buildingBen Wiederhake
I was a bit confused by the fact that a method named `build_system_menu()` first enumerates a directory. Moving the app/category discovery to a dedicated function that returns the GUI-relevant information makes this process a bit less surprising. As an added bonus, `g_app_category_menus` was actually only a temporary mapping, and didn't need to be global. In theory, SystemMenu should use a handful fewer of bytes now.
2020-07-28SystemMenu: Add icon to 'Exit' menu itemBen Wiederhake
2020-07-28LibGUI: Enable icons for SubMenusBen Wiederhake
It doesn't make sense for a top-level menu to have an icon, however we do not have dedicated classes to distinguish these. Furthermore, the only other place to store an icon is MenuItem. Storing it there would be highly confusing, as MenuItem-with-Action then would have two icons: one in Action and one in MenuItem. And because we need to be able to replace the icon during realization, this would need to write-through to Action somehow. That's why I went with Menu, not MenuItem.
2020-07-28LibGUI: Refactor icon realization in MenuBen Wiederhake
This factors out icon realization into its own function, making it possible to use the same code with other classes that have icon() and set_icon() methods.
2020-07-28LibGUI: Set correct default value during menu destructionBen Wiederhake
2020-07-28DevTools: Let Inspector use ProcessChooser and new icons.thankyouverycool
Inspector now opens ProcessChooser when no PID is supplied.
2020-07-28DevTools+LibGUI: Make ProcessChooser a general Dialog in LibGUIthankyouverycool
Moves ProcessChooser and RunningProcessesModel to LibGUI and generalizes their construction for use by other apps. Updates Profiler to reflect the change and use its new icons.
2020-07-28Base: Add icons and af files for Profiler and Inspectorthankyouverycool
2020-07-28Userland: Fix nc by not memset()'ing the input address char*Linus Groh
We were accidentally calling memset() on "addr" (the input char*), not "dst_addr" (the target struct sockaddr_in), which was causing a simple "nc localhost 8000" to crash. Fixes #2908.
2020-07-28LibC: Fix strtol() not setting endptr correctly for "0"Andreas Kling
"0" was interpreted as a base-8 prefix, and the parse pointer was then unconditionally advanced, causing us to consume zero characters. This unbreaks the git port. :^) (We should really have tests for LibC..)
2020-07-28UserspaceEmulator: Add syscalls: stat(), realpath(), gethostname()Andreas Kling
This is enough to run /bin/ls :^)
2020-07-28UserspaceEmulator: Don't just return "EMULATED" in get_process_name()Andreas Kling
Now that emulated processes have their real name (with a "(UE)" prefix) we can actually let them know their name.
2020-07-28LibC: Move getpagesize() out-of-lineAndreas Kling
This being inline somehow broke the binutils autoconf scripts. It used to work, so I suspect that some other change to LibC has caused those autoconf scripts to go down a new path. Regardless, this seems perfectly sensible.
2020-07-28UserspaceEmulator: Support ioctl(TIOCGWINSZ)Andreas Kling
This is very commonly used by terminal programs, and easy to support.
2020-07-27WebServer: Show icons in directory listings :^)Andreas Kling
Just adding some basic folder/file icon makes a big difference here.
2020-07-27Lagom: Build with -std=c++2a -Wno-deprecated-copyAndreas Kling
2020-07-27.gitignore: Add .swoNico Weber
Makes `git status` less noisy for vim users.
2020-07-27LibCrypto: Change the signatures of RSA::import_[XXX]_key to use Span.asynts
2020-07-27LibCrypto: Change the signature of decode_pem to use Span.asynts
2020-07-27LibCrypto: Change the signature of RSA::parse_rsa_key to use Span.asynts
2020-07-27LibCore: Change the signature of Socket::send() to use Span.asynts
2020-07-27LibCrypto: Change [XXX]BigInteger::export_data() to use Span.asynts
2020-07-27AK: Change the signature of AK::encode_base64() to use Span.asynts
2020-07-27AK: Rename Span::subspan() to Span::slice().asynts
2020-07-27AK: Add offset() method to Span.asynts
2020-07-27AK: Add span() / bytes() methods to container types.asynts
2020-07-27AK: Add implicit conversion from nullptr to Span.asynts
2020-07-27AK: Add constructors to Bytes and ReadonlyBytes that take void pointers.asynts
2020-07-27AK: Define conversion from Span<T> to Span<const T> correctly.asynts
I accidently wrote `Span<RemoveConst<T>>` when I meant `Span<RemoveConst<T>::Type>`. Changing that wouldn't be enough though, this constructor can only be defined if T is not const, otherwise it would redefine the copy constructor. This can be avoided by overloading the cast operator.
2020-07-27LibCrypto: This method wrote to a const pointer.asynts
2020-07-27WebServer: Try to send an appopriate Content-Type headerAndreas Kling
Use Core::guess_mime_type_based_on_filename() for this. It's obviously not perfect, but it works better than just sending "text/html" for everything no matter what. :^)
2020-07-27LibCore+LibWeb: Move guess-mimetype-based-on-filename logic to LibCoreAndreas Kling
This could be useful in more places.
2020-07-27Base: Remove old ladybug iconAndreas Kling
2020-07-27WebServer: Use table tags in directory listingsAndreas Kling
Use tables to align stuff instead of putting everything in a <pre>.
2020-07-27WebServer: Use urlencode() in directory listingsAndreas Kling
2020-07-27LibWeb: Add a whole bunch of HTML DOM bindingsLuke
Note that these aren't full implementations of the bindings. This mostly implements the low hanging fruit (namely, basic reflections) There are some attributes that should be USVString instead of DOMString. However, USVString is a slightly different definition of DOMString, so it should suffice for now.