summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-10ProcessManager: Use CProcessStatisticsReader to get process data.Andreas Kling
It was silly to duplicate this functionality in so many places. Now everyone uses CProcessStatisticsReader to parse /proc/all :^)
2019-07-10WindowServer: Use CProcessStatisticsReader in WSCPUMonitor.Andreas Kling
2019-07-10top: Remove some unused code.Andreas Kling
2019-07-10Userland+LibCore: Use CProcessStatisticsReader to implement top.Andreas Kling
Also tweaked CProcessStatisticsReader a bit to simplify the API.
2019-07-09LibGUI: Add GActionGroup, a way to group a bunch of GActions.Andreas Kling
This can be used to make a bunch of actions mutually exclusive. This patch only implements the exclusivity behavior for buttons.
2019-07-09GAction: Remove "custom_data" and the related convenience constructors.Andreas Kling
This mechanism was never actually used, just something I imagined would be useful while I was first creating the class.
2019-07-09Build: Prepend $PRE_CXX before the C++ compiler.Andreas Kling
This allows you to set e.g PRE_CXX=ccache in your environment and enjoy cached rebuilds. This makes "./makeall.sh" take 5 seconds instead of 50 seconds on my machine. :^)
2019-07-09Kernel: Pick up standard includes from ../Toolchain, not ../RootAndreas Kling
2019-07-09LibC: Provide generic versions of memcpy() and memset() for non-i386 builds.Andreas Kling
We don't actually do any non-i386 builds at the moment, this is just gently steering in a nice direction for the future. :^)
2019-07-09AK: Add Platform.h with an ARCH() macro.Andreas Kling
You can currently use this to detect the CPU architecture like so: #if ARCH(I386) ... #elif ARCH(X86_64) ... #else ... #endif This will be helpful for separating out architecture-specific code blocks.
2019-07-09Kernel: Move PhysicalAddress.h into VM/Andreas Kling
2019-07-09Kernel: Move VirtualAddress.h into VM/Andreas Kling
2019-07-09Kernel: Move SharedMemory.{cpp,h} into FileSystem/Andreas Kling
2019-07-09Kernel: Move File.{cpp,h} into FileSystem/Andreas Kling
Also tweak the kernel's Makefile to use -nostdinc and -nostdinc++. This prevents us from picking up random headers from ../Root, which may include older versions of kernel headers. Since we still need <initializer_list> for Vector, we specifically include the necessary GCC path. This is a bit hackish but it works for now.
2019-07-09Kernel: Move i8253.cpp => Arch/i386/PIT.cppAndreas Kling
2019-07-09Kernel: Move PIC.cpp into Arch/i386/Andreas Kling
2019-07-09Shell: Remove some unused code.Andreas Kling
2019-07-08Kernel: Have the open() syscall take an explicit path length parameter.Andreas Kling
Instead of computing the path length inside the syscall handler, let the caller do that work. This allows us to implement to new variants of open() and creat(), called open_with_path_length() and creat_with_path_length(). These are suitable for use with e.g StringView.
2019-07-08Shell: Handle SIGWINCH to get a nice behavior when resizing.Andreas Kling
When resizing the terminal, we now clear the entire current line and reset the shell's LineEditor input state. This makes it look and feel kinda the same as xterm. Fixes #286.
2019-07-08Terminal: Try to preserve line contents when resizing the terminal window.Andreas Kling
This is still destructive when shrinking, but clearly better than throwing everything away.
2019-07-08Kernel: Don't interrupt blocked syscalls to dispatch ignored signals.Andreas Kling
This was just causing syscalls to return EINTR for no reason.
2019-07-08Kernel: Add LogStream operator<< for Process.Andreas Kling
It simply prints "process-name(pid)", nothing fancy, but kinda useful.
2019-07-08LibHTML: Create anonymous blocks around inline children of blocks.Andreas Kling
2019-07-08StringBuilder: Reset the internal builder length after building.Andreas Kling
This puts the StringBuilder back into a pristine state, allowing you to use it to build more strings after you've built one.
2019-07-08StringView: Rename characters() to characters_without_null_termination().Andreas Kling
This should make you think twice before trying to use the const char* from a StringView as if it's a null-terminated string.
2019-07-08AK: Add some missing includes in SinglyLinkedList.Andreas Kling
2019-07-08AK: Add JsonValue::to_bool().Andreas Kling
2019-07-08CDirIterator: Fix another instance of StringView::characters() misuse.Andreas Kling
2019-07-08MappedFile: Fix misuse of StringView::characters().Andreas Kling
This makes me wonder if the open() syscall should take characters+length and we'd compute the length at the LibC layer instead. That way we could also provide an optional non-POSIX open() that takes the length directly..
2019-07-08AK: Add JsonObject::set(key, &&value) overload.Andreas Kling
This dodges a whole bunch of value copying in JsonParser.
2019-07-08AK: Make it easy to convert between JsonValue and IPv4Address.Andreas Kling
They still use string storage, but this change makes it nice and easy to work with IPv4 addresses in JSON data.
2019-07-08AK: Add LogStream operator<< for IPv4Address.Andreas Kling
2019-07-08LibC: Use IPv4Address::from_string() in gethostbyname().Andreas Kling
2019-07-08AK: Add IPv4Address::from_string(StringView).Andreas Kling
This attempts to parse an IPv4Address from a string, and gives us an excuse to try out the new Optional<T> for the return value. :^)
2019-07-08AK: Add a simple Optional<T> template.Andreas Kling
This can be used to store any type, with a flag that says if any value is present or not.
2019-07-08String: String::to_int() should fail for any empty string, not just null.Andreas Kling
2019-07-08LogStream: Uninline some public functions so the linker can find them.Andreas Kling
2019-07-08IDEDiskDevice: Fix build after merging slave device changes.Andreas Kling
2019-07-08LibHTML: Oops, fix build.Andreas Kling
It's another "hacking on the train and forgetting to try a full build" episode, this time starring LibHTML.
2019-07-08Kernel: Extended IDE interface to allow slave device usage (#283)Jesse
The IDE Disk Controller driver has been extended to allow the secondary device on the channel to be initialised and used. A test as to whether this is working (for anyone interested) is to modify `init.cpp:87` to `auto dev_hd0 = IDEDiskDevice::create(IdeDiskDevice::DeviceType::SLAVE);`. The kernel will fail to boot, as there is no disk attached to CHANNEL 1's slave. This was born out of the fact that my FAT driver can't be tested as easily without creating a partition on `hda`.
2019-07-08LibHTML: Reorganize layout tree build so that parents add their children.Andreas Kling
This will allow us to insert anonymous blocks with ease.
2019-07-08LibHTML: Move layout tree building to a separate function.Andreas Kling
2019-07-08LibHTML: Add InheritStyleValue and InitialStyleValue.Andreas Kling
These correspond to the 'inherit' and 'initial' CSS values respectively.
2019-07-08LibHTML: Fix host build after Libraries/ shuffle.Andreas Kling
2019-07-07IRCClient: Fix build. Forgot to update a function signature.Andreas Kling
2019-07-07IRCClient: Implement the "part from channel" action.Andreas Kling
Also make sure the action is disabled while we're not in a window that corresponds to an open channel. :^) Fixes #277.
2019-07-07GStackWidget: Add a notification hook for when the active widget changes.Andreas Kling
2019-07-04Libraries: Unbreak "make install" with new directory locations.Andreas Kling
2019-07-04Libraries: Create top level directory for libraries.Andreas Kling
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.
2019-07-04LibHTML: Move CSS value parsing to CSSParser.Andreas Kling