Commit Graph
68952 Commits
Author SHA1 Message Date
John Scipione 4d2a3f8800 Deskbar: Add space between recent labels and counts in prefs.
This causes the count spinners to move over instead of stretching.

Change-Id: I8f8047a54a6a4ab4379eb77b5cbb08a069a69109
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10903
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
2026-05-05 01:02:16 +00:00
Andrew Lindesay 5f36039a86 HaikuDepot: bug with single pkg
Resolves #20068

Change-Id: I9b13271f09443fc8024b961e21aafaae974e6084
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10904
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2026-05-04 20:24:00 +00:00
Augustin Cavalier e7cc89a038 kernel/x86: Use multibyte NOP constants in altcodepatch.
Follows up on a suggestion from the commits mailing list.
2026-05-04 15:27:11 -04:00
John Scipione b6878c0f30 Tracker: Draw pop up indicator on count view
Change-Id: I22143cc361b8c70a3e92eab0621b02731554fe67
2026-05-03 21:42:52 -04:00
John Scipione 73336dded2 Tracker: cleanup truncate mode, no functional change intended.
Change-Id: I9372e264628c53be0bf2df29391d9637221ffb07
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10888
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
2026-05-04 01:41:58 +00:00
John Scipione 04bf4b0915 Tracker: Add Trash pose to Desktop in file panels again.
Make sure pose attributes are set correctly and fix dir menu warping.

Change-Id: Ia623517ee19a66dd9b74cbf477ceb258cce1c8d0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10861
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
2026-05-04 01:19:04 +00:00
John Scipione 297cc9240e Tracker: BPoseView style fixes: viewstate => state, wrongEndianness => wrongEndian.
These shorter variable names make it easier to fit in 100 and are clear in context.
Explicit NULL checks.

Change-Id: I95a77b244a44bbff79404ee9a0f94ed79b1f40cf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10858
Reviewed-by: John Scipione <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-05-04 01:19:04 +00:00
John Scipione 4856376f00 Tracker: Fix pose locations when moving/copying to a folder
... in different view mode or icon size. Fixes #19698.

Change-Id: I386fc5acc0f97c24d6554c5220aebf20d58cbd83
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10863
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2026-05-04 00:59:04 +00:00
John Scipione 706fc8e3c6 Tracker: Fix drop onto file assume parent directory regression.
Also fix a minor TODO regarding dropping file onto root dir.

Regression from hrev59656, fixes #20069.

Change-Id: I153539cb714b9a5872eca16da3aa4a8de25c0f64
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10890
Reviewed-by: John Scipione <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2026-05-04 00:53:46 +00:00
Augustin Cavalier facff75dd4 kernel/x86_64: Use VZEROALL to clear XMM/YMM/etc. registers when available.
It comes with AVX, so enable it if we've enabled AVX.

This also adjusts altcodepatch_replace to explicitly set NOPs
for the remainder of the patch area.

Change-Id: Ia07549851d86836ff5428635b580c751b4e5b2a3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10867
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-05-04 00:03:54 +00:00
Augustin Cavalier 009b56e781 kernel/x86_64: Move the stub functions to a stubs.S.
No functional change intended.

Change-Id: I5b52ec9cb401c9c2591ac87fe94c53edfbb7a3fa
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10866
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-05-04 00:03:54 +00:00
John Scipione c9967ab17b Tracker: Set list mode to scroll position not extent. Fixes #20050
Change-Id: I35f43a837c222fe66e2a0dacdb1fd76e46a0cfcc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10883
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-05-03 03:05:26 +00:00
Autocomitter 8da1d664dc Update translations from Pootle 2026-05-02 08:07:46 +00:00
John Scipione 9c6b7508fc Tracker: Don't sort poses in BPoseView::AddPosesCompleted().
Fixes #20018, #20050.

The sort was causing the scroll position on change directory
(go up/back) in navigation (single-window/browser) mode and
causing issues with pose list when type-ahead filtering.

Change-Id: Id07890462ac3ecd36f3db508671c77c943ee3e2c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10860
Reviewed-by: waddlesplash <[email protected]>
2026-04-30 17:39:10 +00:00
unknown rurouni 4ce5404143 (GSOC2026) Proper initialization for eMMC device.
[+] Implemented proper initialization and detection for eMMC card at mmc_bus.cpp
[+] Extended SD_COMMANDS enum at mmc.h to support eMMC CMD3. some common commands
	are highlighted removing its specific card type prefix.
[+] Reading eMMC Device CID register attributes for initiating mmc disk node.
[+] added formal register content wrapper classes.
[+] Printing some attrs for debugging and verification.
[+] MMCBus and SDHCIBus are aware of the underlying card type, no problem unless more than one device
	on same mmc bus.
i followed the specs on CID stipping, still asking for your validation.

Built and tested with success for QEMU emulated sdHC eMMC device, also tested with emulated
	SD card to verify nothing backfires.
my reference is JESD84-B51 document.

*log file looks has this:
mmc_bus: Trying MMC CMD1 initialization...
...
mmc_bus: Detected MMC card after CMD1
...
...
mmc_bus: MMC RCA: 1 Status: 500
mmc_bus: MMC CID: MID=0, name="XQEMU!", PSN=31370686, PRV=201, MDT=14/2028

Change-Id: Ia6e93b154548ff7cf2dfae3bcffe85e6b2aa01fb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10641
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-29 07:30:15 +00:00
Augustin Cavalier ce845a52d4 freebsd_network: Set transfer type in usbd_transfer_setup.
This is necessary for the UE_BULK_INTR case.
2026-04-29 00:01:36 -04:00
Augustin Cavalier 35441396e7 zydwifi1211: Import (if_zyd from FreeBSD 15.)
Requested by a user on Discord. Untested, I don't have this hardware.
2026-04-28 14:10:08 -04:00
Augustin Cavalier b4f627e58b freebsd_network: Add UE_BULK_INTR.
Needed by if_zyd.
2026-04-28 14:08:33 -04:00
Andrew Lindesay 8fe730d479 HaikuDepot: data update actions via msgs
This change will stop the main window from
loading all of a selected package's data
even if it may not be viewed; for example,
people don't always view the changelog. This
saves on calls to the server which are not
necessary.

Where data is loaded by the view, the view
layer no longer directly enqueues background
processes, but requests the main window to do
this for it. This unifies the approach for
the view to perform "actions" into a single
approach rather than different approaches in
different circumstances.

The changes also include better tab-
management for the "view package" detail.

Change-Id: I6a08ce9e37d1968655d14b8cc25519d534eccae1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10845
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2026-04-28 11:54:37 +00:00
Augustin Cavalier a0452d3ac1 SoftwareUpdater: Implement automatic cleanup of admin directory.
Enabled by default, but can be disabled via a new settings window
option (which is saved and remembered across runs.)

Change-Id: Ifd49cd734dcf5e4a5e5b3625d23bc2778fa1fa55
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10850
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-28 06:57:18 +00:00
Augustin Cavalier 2964316995 kernel/smp: Make another variable static. 2026-04-27 16:31:55 -04:00
Augustin Cavalier 4dd45837e9 Package Kit & pkgman: Split cleanup operations into a "cleanup" command.
And only inform that some can be deleted at the end of install/uninstall.

As discussed in https://review.haiku-os.org/c/haiku/+/10711.
2026-04-27 16:29:33 -04:00
Augustin Cavalier 3a9a7e2188 libroot/riscv64: Fix TODO about using std::atomic for TLS.
As the comment noted, the same is done on x86_64 already.
2026-04-27 15:15:03 -04:00
Augustin Cavalier 747a839b95 kernel/smp: Move the per-CPU SMP message mailbox into cpu_ent.
Putting all the per-CPU messages in one array means they'll all
be on the same cache lines. The cpu_ent structure is cache-line-aligned,
so this means they'll be on separate cache lines.
2026-04-27 15:14:14 -04:00
Jérôme Duval f0b91b00ac servers/registrar: typo fixes, no functional changes
found by codespell

Change-Id: I96c3f66300f4c71f8bf9ed8da8e8417b03fc7313
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10849
Reviewed-by: waddlesplash <[email protected]>
2026-04-27 18:10:19 +00:00
Jérôme Duval dd467f8802 servers/app: typo fixes, no functional changes
found by codespell

Change-Id: I3f38711c06a4e0e1edd81ddbd7ae3c01496747ee
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10848
Reviewed-by: waddlesplash <[email protected]>
2026-04-27 18:10:19 +00:00
Jérôme Duval d8b9ecc637 posix_error_mapper: add sigaction()
Change-Id: Ia60aa76f74f41c9f7a3e01734a8dedcba8b88ced
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10846
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-27 07:04:45 +00:00
John Scipione 9348517c47 Revert "Tracker: Forbid Desktop to scroll in base class."
This reverts commit c1b65fe266.
2026-04-26 17:22:28 -04:00
John Scipione 4c1a136caa Tracker: Select moved poses replacing destination's selection.
Change-Id: I3b423f4b3ed887260d870d638b114dd373190562
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10816
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-26 20:54:09 +00:00
John Scipione 87dc1df680 Tracker: Unselect all except clicked pose if >1 pose selected
... and we're not extending the selection or dragging.

Done on MouseUp() to allow for drag & drop. Fixes #20043.

More fixes included in this commit:
* Refactor BPoseView::MouseUp() code dealing with selection and
  popping menu. Don't consider fAllowPoseEditing for selection.
* Command **and Shift** extend selection.
* Create BPoseView::ExtendSelection() convenience method
  (also used in mouse down).
* List view/icon view loc "fix". Code worked before because index
  is 0 in icon mode but be explicit about pose location in list mode
  vs. icon mode anyway.
* Add ASSERT() for Window() and CurrentMessage() to BPoseView::MouseUp().
  We were already assuming they weren't NULL and it would have crashed
  if they were.
* Replace pose with clickedPose style fix (meaning is clearer).
* Comment update for "last_buttons" message param.

Change-Id: I3ecb035dbca8b343c230f1e6aee3070939a4a3f6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10814
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-26 20:54:09 +00:00
John Scipione a682ccd899 Tracker: Forbid icon-mode shortcut on queries & virtual directories.
Fixes #16484.

Change-Id: If3054fdc8b5f7bafc52972beee99bce55f4e8436
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10842
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
2026-04-26 20:52:50 +00:00
John Scipione b2e34aefca Deskbar: Update window location in preferences when window moves.
Create a _SetWindowLocation() convenience method. This gets called in
the constructor, on Show() and when the Deskbar window state changes.

Do not Invoke() on SetValue(), call Invoke() after except when Deskbar
tells preferences to update its value instead of the other way around.

When focused numpad 4 and left arrow set top left expando mode,
numpad 6 and right arrow set top right expando mode. These are the
"left" and "right" positions of Deskbar. We can safely assume that
bottom left/right expando mode will never be implemented, only top.

Add a small horizontal space between the window location control and
the checkboxes, they are a bit too close to each other.

Fixes #20057.

Change-Id: I43289e4bf0e021ca2665a4f65a135edf6faff29e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10835
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
2026-04-26 20:51:42 +00:00
John Scipione 5daf4d8d6c Deskbar: Don't keep state in TBarView
... get/set from/to the app settings instead. This synchronises
bar view state and app settings state.

Set state in the app settings when TBarView::ChangeState() is called.
This updates the in-memory settings, they get saved on quit (reboot).

Change order of ChangeState() to be same as settings:
vertical, left, top, state.

Pass kExpandoState or kMiniState instead of a true or false.
kFullState is deprecated and unused.

Change-Id: I907e381396d99bd6d81cac8986dd6769735b6cd6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10834
Reviewed-by: John Scipione <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-26 20:51:42 +00:00
John Scipione 54a3883e26 Tracker: Create a symlink of a file in the same directory again
... without regression from #19403. Fixes #19769.

Drop version of BPoseView::MoveSelectionTo() signature changed.
Pass in uint32 moveMode to pass on create link or relative link.

This fixes the double create link on:
- Context-click => Create link/relative link => Current folder.

Use synchronous Go() in ShowDropContextMenu() to get the
return value. Asynchronous Go() always returns NULL so didn't
work right. Also don't send message since we're handling this
through the return value. Send MoveTo/CopyTo/LinkTo shortcuts
messages to window instead of the view.

This fixes the double create link on:
- Context-click drag and drop => Create link/relative link here.

Update loop control status better. Set stat size and perms.

Fixup MoveTo/CopyTo/LinkTo pose locations.

Change-Id: Ibff9f16d7c1c921a46a425de2f280318c40f4c69
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10715
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
2026-04-26 20:50:15 +00:00
John Scipione 1e58b7a03e Tracker: Pass suffix length into FSMakeOriginalName()
... and remove the "copy" suffix from it, that has to be passed in
along its length. Create convenience version to hide this.

Change-Id: Ifb488e73f496da676a413fd9e5d8fdeedcc7a2b4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10783
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
2026-04-26 20:50:15 +00:00
John Scipione 6b60801833 Tracker: Style fixes related to creating links.
Change-Id: Iac673bc07c52cfd3c095ded5658f083fbeddfefd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10714
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
2026-04-26 20:50:15 +00:00
John Scipione c1b65fe266 Tracker: Forbid Desktop to scroll in base class.
Change-Id: I9d3c3a4c5cf1c217c57ddf6ee850946a33875070
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10822
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2026-04-26 20:49:14 +00:00
John Scipione ee349b62ba MAPM & ExpressionParser: Support long long int and cleanup Stirling's
Change-Id: I4a2bd3f36eb891a5f3167e93057ded7427d6cf26
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8996
Reviewed-by: John Scipione <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-04-26 20:48:32 +00:00
Augustin Cavalier 99a4c6e757 network: Handle B_SELECT_DISCONNECTED in socket notifications.
TCPEndpoint::_NotifyReader() calls notify(READ, _AvailableData()),
which after a close will be negative, so this will set DISCONNECTED
in that case.

Drop the unnecessary duplication from TCPEndpoint::_HandleReset:
the net_socket layer sends READ|WRITE notifications in this case.

Fixes #19969.

Change-Id: I0e10c0280f3c84276b486b0375000153a117246d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10581
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-04-25 17:42:44 +00:00
Autocomitter 3e5cbad497 Update translations from Pootle 2026-04-25 08:07:18 +00:00
Andrew Lindesay 0a2766d6b0 HaikuDepot: featured tab enable
When the application updates data, the
featured tab remains grayed out because
it is not being invalidated. This will
ensure it is redrawn as the state
changes.

Also the tab will be enabled as soon as
a prominent packaged is seen rather than
wait for the end of the bulk load
process.

Change-Id: I3fbc7d67e19c804b7ac065a8409469773f08f95a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10844
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2026-04-24 23:12:43 +00:00
Augustin Cavalier 6aa675a630 ltrace: Place stubs in exectable memory and improve efficiency.
* Implement the TODO about needing to place stubs in executable
   memory. This fixes basic ltrace operations.

 * Place traces behind a TRACE ifdef.

 * Get rid of the "patched table" and find the PatchEntry
   using fixed offsets, to improve efficiency.

 * Add a "bool trace" to PatchEntry. This paves the way for
   tracing only specific methods.

Using LD_PRELOAD_ADDONS=...ltrace_stub.so, trace entries are now
printed on x86_64. However, it seems that the trace stub is clobbering
something, as BWindows don't work correctly when traced.
2026-04-24 18:12:30 -04:00
Augustin Cavalier 28d23a2bbe bootloader: Increase kernel_args chunk size.
On a 64-bit nightly, it appears we're already using 16 out of the 20
slots for kernel_args ranges. On a 32-bit bootstrap build with symbols
enabled, we exhaust them (due to the network drivers that the bootstrap
build adds to the boot set).

The kernel_args are later freed by the kernel, so this shouldn't "leak"
any memory unnecessarily. With this size, we only need one chunk with
symbol loading disabled.
2026-04-24 12:53:45 -04:00
Augustin Cavalier 1c2f998214 bootloader: Avoid allocating the logo image in kernel_args space.
We never send it to the kernel but always free it. The kernel_args
allocator is very simple and can't handle frees besides the most recent
data, so this avoids "leaking" some kernel_args memory (it should all
be freed by the kernel later, though, so that only matters for
the bootloader itself.)
2026-04-24 12:48:48 -04:00
unknown rurouni 46c9f1a94a sdhci_pci: Removed unused call.
removed what i think is useles call for reading driver data
probably used for testing previously.

Built and tested with sd mounting.

Change-Id: I078fdd0e0d99f0a719700be14fd12d34ad56ca06
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10588
Tested-by: Commit checker robot <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-04-24 08:46:06 +00:00
unknown rurouni 0133e29029 Slight refactoring
- there should be 2 blank after the header guard/copyright comments and before the header guard ending

Change-Id: Ia49041ba0b96af9678371866c789805da0c0dff3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10578
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2026-04-24 08:43:49 +00:00
Augustin Cavalier c01840a306 Bump bootstrap package versions. 2026-04-23 16:55:49 -04:00
Augustin Cavalier cb72e7dc57 kernel/vm: Drop VMPageQueue::fName.
Nothing uses it (not even DEBUG_PAGE_QUEUE, it appears),
and it will need to be managed a different way for the
multiple ModifiedPageQueues, if we really do need it.
2026-04-23 16:38:13 -04:00
Augustin Cavalier 76e076b03b launch_daemon: Rework _GetSourceFileEnvironment logic.
Use strchrnul instead of strchr, and increment at the end of the loop.
This avoids needing to call _ParseExportVariable in two separate places.

The invocation of line.Append(chunk, bytesRead) was also incorrect,
as bytesRead would be past the end of chunk if chunk had been
incremented. But this wasn't really a problem because BString
does strnlen() on the passed arguments.

Inspired by a change seen in a fork of the Haiku repository on
GitHub.
2026-04-23 16:34:04 -04:00
Augustin Cavalier cb6c752887 HaikuPorts/arm64: Update with the newly rebootstrapped packages.
After this, a "stock" @minimum-mmc build can boot to the desktop
in QEMU without needing to do a local bootstrap!
2026-04-23 16:19:22 -04:00