Commit Graph
68461 Commits
Author SHA1 Message Date
Augustin Cavalier d1cbd0b1e3 rtl8125: Synchronize with upstream OpenBSD.
Adds support for RTL8126 and RTL8127.
2026-01-28 21:38:01 -05:00
Nathan Patrizi d3f0a24569 strace: Fix handling of statMask when building stat string
Fix a crash caused by decoding stat arguments when the statMask is
only B_STAT_MODE or all 0.

Change-Id: Ic57c5494fbf4d20605955d3cc4c21f96e380fab1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10283
Reviewed-by: waddlesplash <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2026-01-28 11:42:30 +00:00
Adam Słaboń 44cdc0420b efi: Skip devices with block size of 0
Fixes a Haiku loader crash (division by zero) on HP Chromebook YAVIKS

Change-Id: I88bef370ca4848862003b6f54ddae6d2f9b0a854
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10268
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-01-26 16:55:27 +00:00
Humdinger 5342045e20 Expander: Put scroll view flush to borders
* To avoid "micro-padding" around the scrollview, use a negative
  inset to have the scrollview join borders with the window.

* Make it a regular B_DOCUMENT_WINDOW to have a full-sized resizing
  corner.

Fixes #19915

Change-Id: I879eca719f91f2ae67236ecfb4cb8be1b280f2fc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10267
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Axel Dörfler <[email protected]>
2026-01-25 13:36:54 +00:00
Kacper Kasper 8e0aa4e092 @test-raw: fix missing libraries/packages
* Python is required for HTTP tests, sshd for connecting
  with the machine.
2026-01-24 22:49:44 +01:00
Kacper Kasper ccbb6eb32d haiku_unittests.hpkg: fix unittests dependency
* Add rules for files required for tests execution.

Change-Id: I2954f5dbec07af51ccdc9fd3389d530cf47ec0fd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10265
Haiku-Format: Haiku-format Bot <[email protected]>
Reviewed-by: Alexander von Gluck <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-01-24 20:39:20 +00:00
Abdullah Zulfiqar d52ea5c8d2 btrfs: handle unknown compression instead of panicking
Instead of triggering a Kernel Debugging Land (KDL) session when
encountering an unsupported compression type (like ZSTD), the driver
now returns B_NOT_SUPPORTED and logs an error.

This keeps the system stable and allows the VFS to handle the error
gracefully.

Fixes #19914

Change-Id: I5f43eef1c04982014430de63f3840af0d6cfefb0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10263
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-01-24 15:12:08 +00:00
Oscar Lesta 22a91d557c docs/develop: some minor fixes to file_systems/overview.rst.
Change-Id: Ia710f87db372829fd1ccb84999cc1426091e1395
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10248
Reviewed-by: Adrien Destugues <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-01-24 15:11:39 +00:00
Kacper Kasper 17c18c1b0d unittests: fix x86_gcc2 build issues 2026-01-24 12:02:56 +01:00
Autocomitter 43131098dd Update translations from Pootle 2026-01-24 08:23:46 +00:00
Alexander von Gluck IV 771394b61c DriveSetup: Make EFI loader installation architecture aware
Change-Id: Iff1ad616d3ed241319b11328ec6031e0fb163f25
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10252
Reviewed-by: Alexander von Gluck <[email protected]>
2026-01-23 15:56:52 +00:00
Alexander von Gluck IV cbb8d73dc9 build: Introduce test image with haiku_unittests package
* Currently there is no dependency between haiku_unittests.hpkg
  and unittests target. unittests needs to be built before building
  test image.

Change-Id: I7c729095db74687b154a4880fde7f15b474c3590
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2080
Reviewed-by: Kacper Kasper <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-01-22 17:27:44 +00:00
Andreas Henriksson f6829b6ccf bfs: Factor the code to add a block_run to a data_stream out of _GrowStream()
This is done so the code can be reused when moving the file stream.

Change-Id: I4c31c14492904cf8d490ec3720450e3b54f00cbf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/927
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-01-22 16:57:47 +00:00
ahenriksson e93c2b5609 bfs: BlockAllocator::Reinitialize()
Change-Id: I17d5fb7bbf963a4f03458ba9bd4aee49a757d571
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10059
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-01-22 16:57:47 +00:00
Adrien Destugues 2d902e5c6b bfs: Add Journal::FlushLogAndLockJournal
Change-Id: Ic239fd31c99e8c59925ffea2b3b17d9ad5ae802b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10058
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-01-22 16:57:47 +00:00
ahenriksson 2f76872b8e bfs: support moving the journal
Add a way to request allocation of a specific block run to
BlockAllocator. Use it to allocate the new location for the journal.

Change-Id: I276de77d937253baa312049ad2964849c5e9b68b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10057
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-01-22 16:53:25 +00:00
Andreas Henriksson eba66a0e71 bfs: BlockAllocator: manage the allowed block range
All operations which allocate blocks must follow the block range
restriction during a resize operation. Since we do the resize live,
operations not originating from the resize work must also follow the
restriction. To implement that, we need to handle the restriction
directly in the BlockAllocator.

Change-Id: Ie6e06407e7ad2c0396818e2ef02be46d2bd01b99
Reviewed-on: https://review.haiku-os.org/c/haiku/+/932
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-01-22 16:52:30 +00:00
Nathan Patrizi e9c469fd70 kernel/fs: Fix handling of fs that don't support SEEK_DATA/SEEK_HOLE or select
* Fix seek calls of types SEEK_DATA and SEEK_HOLE for filesystems that
return B_UNSUPPORTED so that the fallback stat() based method is used
in those cases.

* Fix select call handling for filesystems that return B_UNSUPPORTED
by immediately notifying the select event (as would happen if the fs did
not support select at all).

Fixes #19251

Change-Id: I6a861499365f2abd62c2f7a74107dd4a7c1b44a0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10245
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-01-22 16:07:54 +00:00
Augustin Cavalier 4ed2896398 Package Kit: Refactor BRepositoryCache to have GetPackageInfos(callback)...
... instead of GetIterator(). This allows us to avoid loading the
cache entirely in SetTo(), and allows consumers to read the cache
much more efficiently than loading it all into memory and then
freeing it again afterwards.

This technically breaks API/ABI, however the Package Kit APIs
are not considered stable (I don't think.)

All consumers adjusted. As we build the host tools with modern GCC
only, I made update_package_requires use a C++11 lambda function.
All others use out-of-line static methods.

"time pkgman list-repos -v" (which has to read the whole cache)
is ~0.5s before this change, and ~0.25s after this change,
on my test VM.

Change-Id: I6976b4cf5eb846fc925ed199dc00eb227fc81344
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10247
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Andrew Lindesay <[email protected]>
2026-01-21 20:27:13 +00:00
Andrew Lindesay 506e7c5ef7 HaikuDepot: Only allow single pkg selection
Solves issue #10676

Change-Id: Ic0bfbb79114f1ed5b725b0c3dfa4e40943395c17
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10246
Reviewed-by: Kacper Kasper <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2026-01-20 20:39:25 +00:00
Augustin Cavalier 7fe5a67108 HaikuDepot: Another fix for the GCC2 build. 2026-01-20 15:33:07 -05:00
Augustin Cavalier 999bb2e88a sys/param.h: Add DEV_BSIZE and make use of it.
POSIX-2024 says:

> There is no correlation between values of the st_blocks and
> st_blksize, and the f_bsize (from <sys/statvfs.h>) structure members.

Some code in Haiku has mixed that up in the past (e.g. the write_overlay).
This will allow a constant to be used instead, clarifying what's happening.

POSIX-2024 does not actually require this constant, but it does say:

> Traditionally, some implementations defined the multiplier for
> st_blocks in <sys/param.h> as the symbol DEV_BSIZE.

And indeed, glibc, musl, and FreeBSD (at least) all define it.
So it seems to make sense for us to do the same.

Related to #19251.
2026-01-20 14:43:37 -05:00
Andrew Lindesay 79e95cdfc7 HaikuDepot: Fix x86gcc2 build
Change-Id: I12f4982b160e52ed171a3229b5de3555fb50a516
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10244
Reviewed-by: waddlesplash <[email protected]>
2026-01-19 19:18:07 +00:00
Christof Meerwald 8a0156700c IPv6: Add traceroute6 from NetBSD
* Imported traceroute6 from NetBSD HEAD (the FreeBSD version has too
  many extensions that are not supported by Haiku, making the NetBSD a
  better fit)

Change-Id: Ie2b359f7a8dcf94b7564f02226806801feda84ce
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10205
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-01-19 11:42:10 +00:00
Humdinger c273dc9f64 Apps & Prefs: Use B_TRANSLATE_SYSTEM_NAME() where appropriate
The application name should never appear in a translatable string.
Otherwise it will always show translated in the app, even if the
user configured the Locale prefs to not "Translate app and folder
names".
Always concatenate the B_TRANSLATE_SYSTEM_NAME'ed string.

Use a regular BAboutWindow in the Sounds prefs.

Change-Id: I85f02a3aa6c76b22266d495cf7514cc499bc31e8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10234
Reviewed-by: Adrien Destugues <[email protected]>
2026-01-19 11:41:50 +00:00
Andrew Lindesay 439cbbfff1 HaikuDepot: Clean Message Keys
This change will remove any string-literal keys from
non-API `BMessage` assembly and interpretation logic.
It will also make the keys consistently use lower-
snake string format and will setup the key constants
in a common style.

Change-Id: I246613d1e88a54fd275f45c55a52c4e9b2ac67e9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10216
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-01-18 09:16:09 +00:00
PulkoMandy e7ff15b674 df: show free blocks in free column
Previous change accidentally switched to showing used blocks instead,
which is less useful.

Also fix an alignment issue in the header.

Change-Id: I5878c2336009c351a5f305ab510d42354d6db18d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10229
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-01-17 21:28:45 +00:00
PulkoMandy 5779727045 Copyright year bump.
Fixes #18992

Change-Id: Ic22e26c404a91773403d658f5156db0c8726378c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10231
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-01-17 21:27:28 +00:00
Kacper Kasper 348941b087 Fix HaikuDepot file generation for tests
* Fix netservice2 test suite compilation.
* Disable kernel test suites that fail to compile.

Change-Id: I18e9ba055bff3d3fee71686cf9e174587f819af3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10235
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-01-17 21:27:09 +00:00
PulkoMandy 6e452cc1ea makebootable: fix check for BFS signature when using start-offset option
For example when building a VMDK image in Haiku build.

Fixes #19891.

Change-Id: I2666083b074b20b3da2f53999a9abd116ce31603
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10230
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-01-17 14:25:55 +00:00
Humdinger 3e6f397911 Web+ DL-window: fix scrollbar alignment
Similar to the vertical scrollbar, the horizontal scrollbar
needs to be tweaked to fit nicely into the window.

Fixes #19890

Change-Id: I2ad6cc4b948546d509fd697afb9d7df4fd9fc68f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10227
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: Joachim Mairböck <[email protected]>
2026-01-17 09:19:17 +00:00
Autocomitter 384b810462 Update translations from Pootle 2026-01-17 08:13:30 +00:00
Jérôme Duval ac508fcb4a tcp: _Receive: reset connection when received another ack packet
while finish acknowledged and zero receive window.

* SendQueued: try to get window update when send window is zero.
* Golang test TestServerGracefulClose now passes.

tcp_receive_data generates a RST packet with a random sequence, etc.
with _SendReset, the actual connection will be used to generate the segment information, like Linux, ie:

18:07:17.657812 IP localhost.localdomain.40009 > localhost.localdomain.40034: Flags [R.], seq 184, ack 69632, win 0, options [nop,nop,TS val 34750 ecr 33649], length 0

instead of:

18:10:50.816193 IP localhost.localdomain.40051 > localhost.localdomain.40062: Flags [R], seq 1736711, win 0, length 0

Change-Id: Ib621605f74cb6d1cbc2add050bcddbf471402254
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10223
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-01-16 17:42:33 +00:00
Augustin Cavalier c30e5cf106 libroot/locale: Allow global locales to be applied to the current thread.
I added this assertion thinking it would incorrectly override
thread locales, and that invocationns this way would be a bug.
Instead it appears that this is the expected behavior in select
circumstances.

Fixes #19896 and other recent regressions.
2026-01-16 12:33:14 -05:00
Augustin Cavalier c329ad53b1 libroot/musl: Check gmtoff before returning timezone names.
And add a fallback for GMT.

Improves the situation in #18471.
2026-01-15 19:18:05 -05:00
Augustin Cavalier 7b94842122 ICUCtypeData: Fix MB_CUR_MAX under most encodings.
See inline comment.

Fixes #19881.
2026-01-15 18:48:10 -05:00
Augustin Cavalier f1ca09f6a2 ICUCtypeData: Use U16_APPEND rather than implementing our own version. 2026-01-15 18:48:10 -05:00
Augustin Cavalier 9be2b373d3 locale: Refactor ctype storage and consolidate some files.
* Drop the global definitions from ctype.h, and move them to
   the internal LocaleData.h: the functions should be used always
   when building new applications (as they're thread-safe.)

 * Make __ctype_get_mb_cur_max thread-safe and move it to live
   alongside the other __ctype...() methods.

 * Put the __ctype...() methods in two files, clearly indicating
   versions: ctype_loc_global for the global (non-thread-safe) versions,
   used for the kernel, and ctype_loc_thread for the libroot versions.

 * Consolidate more internal functions into LocaleInternal.cpp.
2026-01-15 18:48:10 -05:00
Augustin Cavalier 2d20dfef26 libroot/locale: Consolidate some headers.
No behavioral change intended.
2026-01-15 18:48:09 -05:00
Kacper Kasper fa4502cdb5 Fix unit tests to work with test_app_server
* Test suite runs to completion (with failures).
* Observed sporadic hang in "BMessageQueue::Concurrency Test #1
  (with list)".
* Disabled Deskbar tests because they can mess up system's Deskbar.
  Something like test_app_server needs to be provided.
* Disabled B_CMAP8 conversion tests due to #19885.
* Fixed typo in variable names in haikudepot Jamfile.
* "TARGET_PLATFORM=libbe_test jam -q install-unittest-libs" should
  prepare complete testing environment.

Change-Id: Ie73fc3aaec5e6f73e310421404acda08f0b7faf4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10224
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-01-12 22:45:52 +00:00
Jérôme Duval e4b96f0721 libnetwork: use inet_net_ntop and inet_net_pton from OpenBSD
* also used by FreeBSD, they are maintained.
* adjust port_before.h after the musl switch
* tested OK manually with the FreeBSD tests

Change-Id: Id6555aecd4df742d4762d54dd1393f05656793a3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9711
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-01-12 13:08:22 +00:00
Humdinger 4531c92b2e Mail: Keep status going to prev/next message with SHIFT
With this change, when you hold SHIFT when going to the next email
message - either by clicking the tool bar icon or pressing
ALT+CursorUp/Down - the current email is closed while keeping
its status.

Saves doing ALT+SHIFT+W to keep the status and having to go to the
next email message and open it manually.

Change-Id: I21cbb042403ba84d8992e9e0878f428e38c5604c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10210
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-01-12 13:00:19 +00:00
Jérôme Duval 69e473411e tcp: fix RFC reference
Change-Id: Icfcec5122745035cd6b5cb3d53e69fcc48bbbe73
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10222
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-01-11 09:59:53 +00:00
PulkoMandy 842fe03f7c docs/develop: add documentation of known POSIX non-conformities
As discussed in #15102, atime behavior may be POSIX compliant by a
technicality, but it's not the expected behavior. In any case,
compliance requires documenting the functions that update atime.

Change-Id: I266b4d8d8a4a5d0f28f7c352d8942b417c2e31e4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10219
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-01-11 09:12:42 +00:00
Emil Ahlbaeck ce90f34d28 WebPositive downloads: Handle large filenames by horizontal scrolling
Fixes #6622

Change-Id: I3cc993a2ba612a9440a49f6c2d65ea02074ad17a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2946
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-01-10 17:29:54 +00:00
Humdinger 2ee8a1ac06 DriveSetup: minor GUI string changes
* Use B_TRANSLATE_SYSTEM_NAME in BAlert title.
* Put filenames in quotes when spaces in filename could be
  confusing.
* Avoid a space at the endof a string where it could be overlooked
  ("Error:").

Change-Id: I7a705f4c36cbfcf27e69994b8f2126b7f6807363
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10221
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2026-01-10 17:17:07 +00:00
Autocomitter be37605a71 Update translations from Pootle 2026-01-10 08:12:39 +00:00
X512 5be8e81fc8 app_server/AS_GET_BOUNDINGBOXES_STRINGS: store each array independently
Do not use array interleaving.

It is more consistent and removes special case for protocol definition
driven inspection tools.

Change-Id: I5034e344c2c8611d21f8809dd67acc4864dd1d3e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10214
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-01-09 21:30:25 +00:00
Niklas Poslovski a9eae2a658 df: Rework formatting, implement POSIX required flags
POSIX flags:
- -P for a fixed format usable in scripts with only some fields
- -k for kilobytes (the default for -P is 512 byte blocks). Rename -b to -k accordingly
  and implement a new -b to force 512 byte blocks

Default format rework:
- Add usage percentage
- To keep things under 80 columns, use two lines per device: the first
  shows the mountpoint and the second shows the details.
- Mount point is shown in bold and other fields are indented

Change-Id: I33843caf67ff01509ce38bf0b5fdd18517ea1aa9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9276
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2026-01-09 20:40:50 +00:00
Humdinger b34fdb5655 DriveSetup: More correct translation behavior
The application name should never appear in a translatable string.
Otherwise it will always show translated in the app, even if the
user configured the Locale prefs to not "Translate app and folder
names".
Always concatenate the B_TRANSLATE_SYSTEM_NAME'ed string.

Change-Id: I511c870bef6efc11dbde52203ecd411c2009495b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10218
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2026-01-09 20:34:06 +00:00