Andreas Kling
a082738f04
SharedGraphics: Move PainterStateSaver out of line.
2019-04-16 01:01:03 +02:00
Andreas Kling
b5759089d8
LibCore: Add CIODevice::seek().
2019-04-16 00:51:05 +02:00
Andreas Kling
1debc0a78c
Kernel: Reduce kmallocing in all_processes() and all_pids().
2019-04-16 00:37:35 +02:00
Andreas Kling
2533e0b57b
Kernel: Reduce kmallocing in /proc/all and /proc/memstat.
2019-04-16 00:36:17 +02:00
Andreas Kling
88f03f86ff
Kernel: Have TTY subclasses cache their tty_name/pts_name.
2019-04-16 00:35:02 +02:00
Andreas Kling
d384c7815f
Kernel: Make it possible to have kmalloc() dump call stacks.
...
This can be enabled at any time using a sysctl:
sysctl kmalloc_stacks=1
The stacks will go to the debugger output only.
2019-04-15 23:58:48 +02:00
Andreas Kling
bc6ac1c2f2
WindowServer: Let the CPU monitor keep /proc/all open between refreshes.
...
Just seek to the beginning on every iteration and start over. This avoids
a bunch of syscalls.
2019-04-15 23:57:31 +02:00
Andreas Kling
30b0e5f82e
AK: Make StringBuilder::appendf() pre-allocate the format string length.
2019-04-15 23:56:35 +02:00
Andreas Kling
fa89446cb6
Kernel: Make symbolication callable from kmalloc().
...
It wasn't possible to symbolicate from kmalloc(), since symbolication would
call kmalloc(). :^)
2019-04-15 23:50:25 +02:00
Andreas Kling
ae0dc22716
Kernel: Make validate_read_from_kernel() return early for nullptr checks.
...
Null pointers are always invalid, so don't bother going through all the
various checks for them.
2019-04-15 23:48:31 +02:00
Andreas Kling
9eab8734fe
PNGLoader: Disable debug spam.
2019-04-15 23:47:42 +02:00
Andreas Kling
e9c0f4567d
Kernel+ProcessManager: Expose the number of kmalloc/kfree calls.
...
This will be very helpful in tracking down unwanted kmalloc traffic. :^)
2019-04-15 19:43:12 +02:00
Andreas Kling
13041f894f
Kernel: Start using StringView in the VFS class.
...
The less kmalloc() we can do, the better. Calling kmalloc() disables all
interrupts while it runs, so it's directly affecting responsiveness.
2019-04-15 14:57:27 +02:00
Andreas Kling
461aa550eb
AK: Add a StringView class.
2019-04-15 14:56:37 +02:00
Andreas Kling
7972303405
Meta: Oops, screwed up one of the links.
2019-04-15 14:17:44 +02:00
Andreas Kling
d4211ede31
Meta: Update ReadMe with license and links.
2019-04-15 14:16:45 +02:00
Andreas Kling
ddcaf02a57
Let's go with a 2-clause BSD license.
2019-04-15 14:04:23 +02:00
Andreas Kling
87c4d2bc92
Userland: Add a /bin/basename program.
2019-04-15 13:57:09 +02:00
Andreas Kling
024057b39a
Userland: Make sync.sh copy all executables from ../Userland
2019-04-15 13:53:27 +02:00
Andreas Kling
c8e601a5d5
Minesweeper: Add little icons to the flags and timer labels.
2019-04-15 03:12:28 +02:00
Andreas Kling
791e8f5bb0
Minesweeper: Paint a grid pattern below the mines.
2019-04-15 02:45:04 +02:00
Andreas Kling
bc5148354f
LibCore: Add a CConfigFile class, a simple INI file parser.
...
You open the configuration for an app like so:
auto config = CConfigFile::get_for_app("MyApp");
This will then open ~/MyApp.ini and parse it for you.
Immediately start using it in Minesweeper to load the field size and mine
count from a config file.
2019-04-15 02:23:20 +02:00
Nicolas Van Bossuyt
37c27e2e39
Userspace: gitignore binaries
2019-04-15 00:35:37 +02:00
Andreas Kling
1503834c3b
Minesweeper: Add flag counter and game timer.
2019-04-14 21:01:52 +02:00
Andreas Kling
adc91d92a3
Userland: Oops, that merge broke the build, just needed a few tweaks. :^)
2019-04-14 20:32:44 +02:00
Andreas Kling
16ef7517c4
Merge pull request #6 from NicolasVanBossuyt/patch-1
...
Userland: Making the makefile smarter.
2019-04-14 20:16:07 +02:00
Nicolas Van Bossuyt
40e710da3d
Userland: Maybe find is overkill
2019-04-14 20:15:29 +02:00
Nicolas Van Bossuyt
dfeeaff237
Userland: making the makefile smarter
2019-04-14 19:58:25 +02:00
Andreas Kling
1e0e5b492b
Merge pull request #5 from NicolasVanBossuyt/patch-1
...
Uptime: making the ouput prettier
2019-04-14 19:28:43 +02:00
VAN BOSSUYT Nicolas
12f2d1f2e8
Uptime: making the ouput prettier
...
Just like the -p option on linux
2019-04-14 19:10:24 +02:00
Andreas Kling
c0fe48635b
Kernel: Add /proc/uptime file (number of seconds since boot.)
...
Also added a simple /bin/uptime to pretty-print this information. :^)
2019-04-14 15:19:45 +02:00
Andreas Kling
0e30f4e412
Minesweeper: Flood fill should include the first numbered found.
2019-04-14 05:53:13 +02:00
Andreas Kling
a3e8fc3d9c
LibCore: Add a convenience constructor for CTimer.
...
new CTimer(250, [] { thing_to_do_every_250_msec(); });
2019-04-14 05:44:15 +02:00
Andreas Kling
2af729a58a
WindowServer: Simplify a few things in WSEventLoop.
2019-04-14 05:37:07 +02:00
Andreas Kling
94a5e08faf
WindowServer: Rename WSMessage* => WSEvent*.
...
Since I'm on a roll here, I'll just rename WSMessageFoo to WSEventFoo now
that these inherit from CEventFoo anyway.
2019-04-14 05:23:37 +02:00
Andreas Kling
de184d0999
WindowServer: Port WindowServer to LibCore.
...
This was pretty straightforward thanks to the work I did separating out
LibCore from LibGUI already. :^)
- WSMessageLoop now inherits from CEventLoop.
- WSMessage now inherits from CEvent.
- WSMessageReceiver goes away.
Now there is only one event loop in Serenity. Very nice!
2019-04-14 05:15:22 +02:00
Andreas Kling
4132f645ee
Kernel: Merge TSS.h into i386.h.
2019-04-14 04:39:56 +02:00
Andreas Kling
c2093ad994
WindowServer: Move the CPU monitor thingy to its own class.
2019-04-14 04:33:43 +02:00
Andreas Kling
f1b58d8d8c
VisualBuilder: Let's have getters and setters for properties.
2019-04-14 04:14:23 +02:00
Andreas Kling
6dc9a6ef42
GWidget: Add direct setters for x, y, width & height.
2019-04-14 04:10:43 +02:00
Andreas Kling
3f6408919f
AK: Improve smart pointer ergonomics a bit.
2019-04-14 02:36:06 +02:00
Andreas Kling
d5dec1922b
WindowServer: Make menu windows inherently modal.
...
It was confusing that you could interact with other windows with a menu up.
2019-04-14 02:16:49 +02:00
Andreas Kling
2dbece54f5
AK: Add WeakPtr::operator T*() for ergonomy.
2019-04-14 02:15:43 +02:00
Andreas Kling
91e1f3ffb1
LibGUI+WindowServer: Add a way to dismiss opened menus from the client.
2019-04-14 01:53:19 +02:00
Andreas Kling
29d0412a06
Kernel: Remove system.h and make the uptime global a qword.
2019-04-14 01:29:14 +02:00
Andreas Kling
c09c114d77
WindowServer+LibGUI: Add ability to set per-window icons.
...
The icons are passed around as filesystem paths for now, since the shared
memory bitmaps only support 2 sides.
2019-04-13 16:59:55 +02:00
Andreas Kling
7a74b76769
GWidget: Silence debug spam about the click clock.
2019-04-13 16:15:47 +02:00
Andreas Kling
28cf9a41fe
Minesweeper: Make it possible to win the game. :^)
2019-04-13 15:51:29 +02:00
Andreas Kling
198a1a6877
Minesweeper: Add some menus.
2019-04-13 14:32:18 +02:00
Andreas Kling
49b63efddb
Minesweeper: Turn the field into a GFrame for that containery look.
2019-04-13 14:22:40 +02:00