Commit Graph
68898 Commits
Author SHA1 Message Date
John Scipione ac9a0699f5 BEntry docs: Better return codes and better explanation of Exists()
... and formatting changes. Update copyright and hrev.

Change-Id: I4de9abbbdbe281c0a08ec8dc5ac42fb4bd58975b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10823
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2026-04-23 19:04:29 +00:00
Jérôme Duval 5eb6e9a77e kernel/x86: add FRED MSR and CPUID definitions
also add CR4 bits

Change-Id: I51ee29e1cf8124e7d1ab722bfbf4e077e31a59f1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10498
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-04-21 06:58:35 +00:00
unknown rurouni aaed8a220f Power off SD card if no voltage range support.
The goal is to handle `FIXME` within WorkerThread that of MMCBus.
[+] Extended SDHCIBus to have:
	> private PowerOff() to clear corresponding VDD1 power bit.
	> Public TerminateBus() to terminate the bus
		powering off,disabling clock and interrupts.
		Also called within the destructor.
[+] Extend `mmc_bus_interface` to encapsulate terminate_bus
	coping the same style of other interface utilities.
[+] MMCBus can its newly added private _TerminateBus() for handling sd cards
	not supporting proposed voltage range.

Testing:
- used false invokation on qemu emulated sd card to test
	the termination branch.
- Successfully built and run,SD card doesn't show up in DriveSetup
- debug Log show correct power and clock bit setting(power=0xe, clock=0x800b).

Please Guide me further on more effective test method.

Change-Id: Icc8eeac97b9c96dfbf0106871d26a41d7faea5dc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10622
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-04-21 06:55:27 +00:00
Nathan Patrizi ef2e71c652 SoftwareUpdater: Prevent crash when quit during download
Prevent crash when quitting SoftwareUpdater during file download by
handling BAbortedByUserException and stopping the download job.

Fixes #15689

Change-Id: I223dc6f292123f7b33d425d66f9e70fe42552d37
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10833
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-21 06:54:43 +00:00
Kacper Kasper 4de63671bd test-raw: Run tests and shutdown automatically
* Move running the tests to user bootscript.
* Remove SSH preconfiguration from first_login.
* Add debug_server settings.
* Disable more flaky tests.
* Fix libsupportkit_RemoteTestObject.so build.

Change-Id: I774ab4fc5a007da463cf1213d92132ad9f64fe7f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10708
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Kacper Kasper <[email protected]>
2026-04-19 07:26:48 +00:00
Autocomitter 82a8edc100 Update translations from Pootle 2026-04-18 08:08:06 +00:00
Leo Rouleau 10dd7132ab Devices: Fix memory leak
Resolves two possible memory leaks that could happen once the
application is closed.

Resolves the TODO: There is still a memory leak somewhere, hunt it down

Changes:
- Added a missing break statement for ATA/SCSI/IDE controllers when
  parsing in addDeviceAndChildren.
- Added a cleanup loop in DeleteDevices() to delete the category header
  devices.

Change-Id: I4836384aaf3fac6ba1b176247baac0239c6482cd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10813
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2026-04-17 07:09:08 +00:00
John Scipione b8bae43e9b Tracker: Never scroll Desktop, fixes #20046
Change-Id: I33d05009956585577c02741e851741600b7d9002
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10821
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-16 20:39:17 +00:00
John Scipione 6832fbac47 BWindow docs: add warning about MenusBeginning() in DispatchMessage()
... and how it only works when B_COMMAND_KEY is held down.

Change-Id: I16bf381516e7b070187750202e69c5a0cd1c8d6e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10723
Reviewed-by: John Scipione <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2026-04-16 19:37:21 +00:00
John Scipione fc680cb372 Mail: Update message body text color automatically.
Make text color document text not panel text by default.
mix_colors for diff colors like we do for quote colors.

Update color formatting but not the values. Set opacity to 0xff.
grey => gray (US English standard spelling).

Change-Id: If26efe8c2d9086aa049028b396921b8702a1093e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9984
Reviewed-by: John Scipione <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-16 19:36:35 +00:00
John Scipione 021819e679 BMenu: Turn on sticky mode and obscure cursor on nav key press.
B_HOME and B_END are considered nav keys however they are not yet
implemented (but they were implemented on BeOS).

Change-Id: Ib30eb60ab26e1a06151836e8bc4a5ce24e403b40
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10731
Reviewed-by: John Scipione <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-16 19:36:03 +00:00
Sam Roberts 1fe7ef443c arm64: Don't truncate result of arch_mmu_generate_post_efi_tables
Change-Id: I5a8ba6bc21f1cfa31ca3c3b20f0e5a2b6a6a6964
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10819
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-16 15:48:06 +00:00
Sam Roberts 1c9ceae42a arm64: Handle PC alignment fault
Change-Id: I7ab88356c6b0cd0ee029317a0bba65596a6a6964
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10818
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-16 15:48:06 +00:00
Augustin Cavalier 920adf674e libroot/glibc: Fix the build for x86_64. 2026-04-15 23:50:23 -04:00
Augustin Cavalier c8a62a308c libroot/glibc: Properly split long double files and import 128-bit ones.
Also drop the long-double files from architectures where long-double
support is (currently) disabled in glibc config.h.

Should fix #19589 and other long-double related problems on
RISC-V and ARM64.

Change-Id: Ia33ce2791d812eb143b719fb61e69dbf8b70ce79
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10815
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Sam Roberts <[email protected]>
2026-04-15 19:13:54 +00:00
Augustin Cavalier a8fd01eb8e kernel/vm: Notify removed pages as not busy on removal.
We don't need to wait for them to be freed, as they're not
accessible once removed.
2026-04-14 13:40:07 -04:00
Sam Roberts 115b33ee3f arm64: Use the same system_time for kernel and userspace
The kernel version previously differed from the userspace
version by sBootTime, which causes issues including:
- configure scripts thinking the build environment is broken
- an sBootTime-long delay between the desktop appearing 
  and the user gaining control
- apparent time travel

Change-Id: I8e616772631df1c40958db4f23b10cbe6a6a6964
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10808
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-13 23:48:58 +00:00
Augustin Cavalier 157e34f264 Tracker: Skip watch_node(B_STOP_WATCHING) if we aren't watching individual nodes.
Avoids unnecessary syscalls and saves time.
2026-04-13 18:59:59 -04:00
John Scipione c97f0f30b0 Tracker: Search packagefs volumes on "All disks" and boot volume.
We're pretending these volumes are part of the boot volume although
they're not.

Change-Id: Ieab623bb22c08730a068adcded40f52e7769a02c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10805
Reviewed-by: John Scipione <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-13 22:41:12 +00:00
Augustin Cavalier 3dcdbf569c media: Delay starting the mixer until an output connects to the mixer.
Otherwise we just spends lots of CPU time sending silence.
This also paves the way for stopping the output when all
outputs disconnect, but that's not implemented just yet.

Since this forces a wait inside the mixer for the destination
to actually start, it may help with problems like #19074.
At least in testing, without that block, I got similar symptoms
and crashes, due to the initial 0 value being used to compute
the performance times, and winding up with very incorrect times.

Note that this changes the MultiAudioNode to not really start its
timesource when it gets a TIMESOURCE_START message. Instead it waits
until it gets a regular B_START (via StartNode) message to do that.

Change-Id: I1716e347537c88dcc76163a515e7fbb8c5ccdecb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10643
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-13 19:27:55 +00:00
Humdinger 12a75beb94 Appearance: remove spacing after labels on antialiasing tab
Fixes #20040

Change-Id: I8f138814d29d3d36d0654656478a7bb292320b14
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10721
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-13 19:26:32 +00:00
SED4906 887ea5df2f Fix typo: It's all over, for the (unkown soldier).
Change-Id: I35a8258f88df13f93419e22a7344905fe4d8c478
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10724
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-13 19:24:58 +00:00
Augustin Cavalier ad37e9a395 BWindow: Use a SplayTree to store shortcuts.
This makes for much faster lookups, and avoids the need
to allocate an array.

sizeof(BWindow) is unchanged (on x86_64, 504; on x86, 376)
so this should not break ABI/API.

Quick benchmark in Tracker:
501 lookups, before: ~488 usec
501 lookups, after: ~284 usec

Change-Id: Ica2c728f0c5957380add53e14a826a4aade52df0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10720
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-13 19:24:34 +00:00
Augustin Cavalier fd2113c61a Tracker: Restore handling of B_DELETE key in KeyDown.
If the shortcut is not available (due to the menus not being active),
then this will make sure we handle the key regardless. If the shortcut
is active, then it'll get eaten by BWindow, and we won't get here.

Change-Id: Id6c3ae590f596481f9dfb720aa088238ccc6413c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10718
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
2026-04-13 19:24:15 +00:00
John Scipione 3ca8baed07 Tracker: SetTarget() on MoveToTrashItem() construction
... because B_NO_COMMAND_KEY shortcuts don't get registered on key down
anymore, so we have to set the target right away for this to work.

Setting target in the constructor only works becauese this menu item is
not not added dynamically.

Change-Id: I368bf91e286509c2a5d584a87bda7aea48d98a4f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10803
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-13 19:22:08 +00:00
John Scipione 026ca93095 Tracker: Update Filetypes menu when a mime type changes.
Fixes #20032.

Change-Id: I31292b2db36bc370fad07152297449a3090b561a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10727
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-13 16:04:25 +00:00
John Scipione 5a357cf094 FileTypes: Replace Tracker signature with one from tracker_private.h
Change-Id: I3f95ae29af3e9fba4189551749af1d58149506ec
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10725
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2026-04-13 16:04:25 +00:00
John Scipione 6e64d5681f Tracker: Tell pose view on Desktop to update its colors and replicant colors
... on B_RESTORE_BACKGROUND_IMAGE (which sets the Desktop color or wallpaper).

Remove kRestoreBackgroundImage, preferring the B_ version we got from
Backgrounds (and represents the same constant). Tracker already imported
this constant long ago.

Fixes #20028.

Change-Id: I6c59f4ddd1b2a7ec0d5e90fe6a8a9671dc66d50e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10729
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-13 16:02:04 +00:00
John Scipione 132ee49626 Backgrounds: Replace Tracker signature with one from tracker_private.h
Change-Id: I8619681e92753ce9300e562e67ebcafa406c84b4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10728
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-13 16:02:04 +00:00
John Scipione adf70d6201 Tracker: Filter out 0 capacity volumes from Targets.
This includes the "config" and "system" pseudo-volumes.

Change-Id: I3e1f19e1926dc45b801e38dbe5cdf34700addea5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9742
Reviewed-by: nephele nephele <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-13 03:07:45 +00:00
Coldfirex 144088eaec AGG: Fix typo in agg_rounded_rect and agg_bezier_arc
Typo fixes pulled from:
https://github.com/mapnik/mapnik/commit/180f2543b20aa4aae27ac4b919133c601376e76b
https://github.com/mapnik/mapnik/commit/0420b13055ebf75cd59c3358bda852784d19c55b

Change-Id: I9acaa1f814bad531ba3968620d25af1b7a278639
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4417
Reviewed-by: Jérôme Duval <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: nephele nephele <[email protected]>
2026-04-11 12:45:25 +00:00
Philippe Houdoin 749c032e15 IMAP: Better ID command, sharing some info about this client to the server.
- Moved former scoped IDCommand class to Commands module.
- Now the ID command expose the following info to IMAP server:
  - client name, IMAP mail_daemon add-on
  - os name, Haiku

Sample protocol trace for new IDCommand:

C: A0000002 ID ("name" "IMAP mail_daemon add-on" "os" "Haiku")
S: * ID ("name" "EA" "version" "COMS/EA24.10/r20260306")
IMAP server info:
  name: EA
  version: COMS/EA24.10/r20260306
S: A0000002 OK ID done

Change-Id: I07e3cff151ad84c68816172e4caaea04b6ca40fb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10712
Reviewed-by: nephele nephele <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-11 11:46:32 +00:00
Philippe Houdoin 84b6b469cf libnetwork: add support for /boot/system/settings/network/nsswitch.conf
This open opportunity to use extra netresolv's nsswitch modules, like libnss_mdns.so,
for zeroconf .local names resolution.

Change-Id: If71fc47d7ab066e99daa97d453e70dddc3449f71
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10667
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: nephele nephele <[email protected]>
2026-04-11 11:45:52 +00:00
Autocomitter 730f8fe6a2 Update translations from Pootle 2026-04-11 08:07:25 +00:00
Pascal Abresch 4d4e7ad01e configure: warn when gcc_syslibs_devel is not installed
Change-Id: I03177c7afcde64088cfed5e68c3823f69bd8a8bc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10713
Reviewed-by: waddlesplash <[email protected]>
2026-04-10 17:56:23 +00:00
Raghav Sharma 3458bceae0 xfs: handle missing attribute fork in VerifyForkoff check
For some files, devices, and directories with no xattrs xfs can set di_forkoff to 0, so make it a valid condition check in VerifyForkoff() method

Change-Id: I930529ad661c8c5f640c18b2d50dfeddfde5b7d4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10655
Reviewed-by: Adrien Destugues <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-10 12:30:09 +00:00
HalonixTheFirst a3da1bbe35 Implementation of the fs_shell for ExFAT.
Change-Id: I93533c746e7b52b2a5e46bf6209f871258d11df0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10476
Reviewed-by: Muhammad Fawad Shah <[email protected]>
Reviewed-by: Raghav Sharma <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-04-10 12:02:45 +00:00
Pascal Abresch 3fa3499c82 ps2_elantech: fix trace statements
Change-Id: I495b86bcb7fd125dec4019dace1fca6a5110f6b5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10709
Reviewed-by: Adrien Destugues <[email protected]>
2026-04-10 11:59:42 +00:00
Philippe Houdoin a65f8374f2 IMAP: add support for CAPABILITY in LOGIN tagged OK response.
Per RFC 3501, a server MAY include a CAPABILITY response code in the
tagged OK response to a successful LOGIN in order to send capabilities
automatically.

The capabilities in the untagged response could be truncated to a
shorter list of capabilities meaningful to the login process.

For instance, the IMAP4rev1 server of mailo.com, a french mail provider,
returns this on LOGIN command:

C: A0000001 LOGIN "[email protected]" "XXXXXXXXX"
S: * OK [CAPABILITY IMAP4rev1 ID LITERAL+ AUTH=LOGIN AUTH=PLAIN STARTTLS] IMAP4rev1 MAILO Ready
CAPABILITY: IMAP4rev1, ID, LITERAL+, AUTH=LOGIN, AUTH=PLAIN,
STARTTLS
S: A0000001 OK [CAPABILITY IMAP4rev1 ID LITERAL+ ENABLE IDLE QUOTA
NAMESPACE SORT UIDPLUS UNSELECT UTF8=ACCEPT] Welcome
[email protected]
CAPABILITY: IMAP4rev1, ID, LITERAL+, AUTH=LOGIN, AUTH=PLAIN, STARTTLS, ENABLE, IDLE, QUOTA, NAMESPACE, SORT, UIDPLUS, UNSELECT, UTF8=ACCEPT
capabilities: IMAP4rev1, ID, LITERAL+, AUTH=LOGIN, AUTH=PLAIN, STARTTLS, ENABLE, IDLE, QUOTA, NAMESPACE, SORT, UIDPLUS, UNSELECT, UTF8=ACCEPT

As the explicit CAPABILITY command is not sent if capabilities
were retrieved from LOGIN response, before this change, the complete
capabilities were not retrieved.

This change merge capabilities from both untagged response and tagged OK
response of LOGIN command.
Also, improve server responses traces, following the RFC S: prefix.

Change-Id: Id0fc18f0913ab03d2d3f5f90b296fbb7fb89446f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10703
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-10 09:22:56 +00:00
shivamsinghydv ea4aa5544f btrfs: Check minimum partition size in CanInitialize
Linux btrfs-progs does not allow volumes smaller than 256MiB
so, any volume smaller than that cannot be valid.

Change-Id: I26b9d26b1b698e659f819607b8af4b6eddfe9c55
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10585
Reviewed-by: Adrien Destugues <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-10 08:32:22 +00:00
Augustin Cavalier 64d96af568 MIME Sniffer: Use memmem() to speed up matching.
This is now a POSIX method which was widely supported even before
its addition to POSIX, so using it here (including on the build
platform) should be OK.

This takes mimeset -F of the whole src/ hierarchy from around 2.8
seconds to around 2.1 (user time goes from ~1.2s to ~0.6s.) It seems
I/O is a lot of the remainder now.

Also drop the TODO comment; we don't want partial matching like that,
as the sniffing rules would not expect it.

All tests still pass.

Change-Id: Ibb190f6f9f5e73ed027e052ef665b177d3fd6f86
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10688
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-10 08:28:40 +00:00
Augustin Cavalier 14ea42a871 MIME Sniffer: Use memcmp instead of the mask setup where possible.
Another slight optimization. The time doesn't seem to decrease much,
but this paves the way for a much more optimized scan.

Change-Id: I0fb65544524fbc9606fd84ef521b706bd9dc4d02
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10687
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2026-04-10 08:28:40 +00:00
Augustin Cavalier 3becbc68c4 MIME Sniffer: Propagate case-insensitivity down to patterns.
This will allow them to perform some more upfront optimizations.

Note that this change includes a slight compatibility breakage with
BeOS R5: it applies an "-i" flag in a disjunction to all patterns in
the disjunction, not just all patterns following the "-i" (I checked.)

However, as far as I can see, this feature of R5 was undocumented
(sniff rules are described in the "Release Notes" section of the Be Book
only, and "-i" isn't discussed there), and the only pattern on R5 that
appears to use them at all was the "text/html" pattern. The behavior to
apply case-insensitivity to all patterns seems unexpected, so I think
it should be OK to break compatibility in this slight way.

Change-Id: I0556d53e602bc68ae14ac21c9e226403061043a0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10686
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-10 08:28:40 +00:00
Augustin Cavalier 46af16aa69 MIME Sniffer: Make RPattern a subclass of Pattern.
Avoids some unnecessary allocations.

Change-Id: I0435ed7a814a45739a03a62ba84a315d61bf23e3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10685
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Kacper Kasper <[email protected]>
2026-04-10 08:28:40 +00:00
John Scipione 78afa49561 BWindow: Only try to install new menu shortcuts if B_COMMAND_KEY is down.
This is too expensive to do on every key press, and became a problem
when #7078 was fixed in hrev58589. Fixes #19580.

Change-Id: Iff2d2c208fa976f1f5db6a369820d8210f2e4c4e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10706
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-10 02:06:13 +00:00
Augustin Cavalier bc415d41f1 BFS: Send live-query rename/move notifications along with node monitor.
Otherwise, we send them out before the file is actually renamed,
and so we could send notifications with stale name values in them
(in the case of B_ENTRY_CREATED and B_ENTRY_REMOVED), or before
the file's name actually changed as visible in stat(). This way,
we send the notification only after updating the entries.
2026-04-09 15:21:46 -04:00
Augustin Cavalier da1768c354 StringForSize: Preinitialize the BNumberFormats.
I noticed when profiling the system with ActivityMonitor running
that most of ActivityMonitor's time was spent initializing these
for the Memory view. So, instead, cache the formatters to avoid
needing to reinitialize them so often.
2026-04-09 14:26:24 -04:00
Augustin Cavalier 816181bc95 fs_shell: Adjust to work with the new libroot_build errno setup.
I rebuilt fs_shell after the previous commit before pushing,
but it didn't fail then. I guess Jam failed to do an incremental
rebuild properly...
2026-04-09 14:14:00 -04:00
Augustin Cavalier 744616c074 libroot_build: Rework errno assignment.
With the old code, if the currentErrno hadn't changed, but was in
fact re-assigned more recently than the local errno was, then we
would wind up incorrectly return the local value instead of the
system value. This was the cause of the build mimeset not working
properly when run in recursive mode on Haiku.

So, instead, create a wrapper struct to make assignment of the
local errno always pass through to the system one, so they never
get out of sync in the first place.
2026-04-09 14:09:52 -04:00
Augustin Cavalier 95c8251d75 kernel tests: Fix TARGET_CC check.
$(architecture) isn't declared in this file.
2026-04-09 14:01:27 -04:00