Commit Graph
68486 Commits
Author SHA1 Message Date
Augustin Cavalier 64a26f88bf Jamfile: Drop expat, make gzip architecture-dependent. 2026-02-04 17:42:41 -05:00
Augustin Cavalier 310f75e043 docs: Move fs_query documentation to the Haiku Book.
Also add a missing include in QueryPoseView.
2026-02-04 17:41:53 -05:00
Augustin Cavalier 379c8aebab fs_shell: Add the new B_QUERY_WATCH_ALL. 2026-02-04 17:21:25 -05:00
Augustin Cavalier fe444bc3cb libroot/glibc: Reinstate long-double printf_fphex code.
Fixes #19925.
2026-02-04 17:09:50 -05:00
Augustin Cavalier 53ee2648fb fs_query: Make B_QUERY_WATCH_ALL part of the public API.
It seems to work well enough at this point, and is used in Tracker,
so why not?

Also update live_query to demonstrate the functionality.
2026-02-04 17:09:50 -05:00
Augustin Cavalier c32328567c NTFS: Move some initialization to the struct volume constructor.
May fix #19926.
2026-02-04 16:41:37 -05:00
Augustin Cavalier 543aa2c72f kernel/vm: Refactor and reinstate swap-space freeing in the page daemon.
This has been disabled since a refactor in 2010.

Seems to work OK in some basic testing.
2026-02-04 15:34:27 -05:00
Augustin Cavalier dce3a4366d packagefs: Add a fallback buffer for reading heaps in low-memory conditions.
Otherwise we might fail with B_NO_MEMORY, or wait for long periods of
time, which we don't want to do in such a critical routine.

Should improve system responsiveness (or even prevent application
crashes) under high memory pressure.
2026-02-04 14:59:27 -05:00
X512 685d305a5b video_mixer: fix build and crash, add to image
Change-Id: I3c58538666313e74134fb6f1f5fc0c697b213cca
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3033
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2026-02-04 09:49:13 +00:00
Humdinger b8045ba67f libmail: Set thread attribute when sending a mail
MAIL:thread is added to all incoming mails and when replying to a mail.
This change adds it also to new mails that are sent.
It also sets the subject and thread to "No Subject" when empty.

Change-Id: I377b50022b203bff960b7f78ef5ff55d39a6e08e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10264
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Haiku-Format: Haiku-format Bot <[email protected]>
2026-02-03 09:52:09 +00:00
Priyanshu Gupta f357ddbe8e tests/SupportKit: Add BStopWatch unit tests
Change-Id: I157b8b87538cfbb3a697d71c4c7aec9a941fefba
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10308
Reviewed-by: Kacper Kasper <[email protected]>
2026-02-01 13:37:50 +00:00
Máximo Castañeda 1f3bc6f056 app_server: fix build for older FreeType
5c254dff8c updated FreeType build packages for x86_64 and x86_gcc2,
including a change in app_server to adapt to a different pointer type
in a FT_Outline member. Other arches are still using older versions
of FreeType, though, so they need the older type.

Change-Id: I4ad934821a338e93e3827069618948e77eae66e1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10306
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Máximo Castañeda <[email protected]>
2026-01-31 14:51:12 +00:00
Autocomitter 6425cf681a Update translations from Pootle 2026-01-31 08:14:48 +00:00
Augustin Cavalier 2c4d5ab101 libnetapi: Disable -Werror for GCC2.
Fixes the build after the package repo sync.
2026-01-30 21:37:00 -05:00
Augustin Cavalier cbb5c2c9f0 generate_build_packages_repo: Fix mode. 2026-01-30 21:36:42 -05:00
Augustin Cavalier eb3a8bce86 tools: Update hardlink_packages.py into generate_build_packages_repo.py.
It doesn't hardlink packages anymore, as we use S3, so it copies instead.
This is a better name anyway.
2026-01-30 21:32:37 -05:00
Augustin Cavalier 5c254dff8c HaikuPorts: Synchronize x86_64 and x86_gcc2.
One change to app_server to build with the new FreeType.
2026-01-29 22:51:52 -05:00
Augustin Cavalier f78defbd46 Jamfile: Reformat and adjust AddHaikuImageSystemPackages.
* Put each package on its own line. This mirrors the earlier
   refactor of image rules.

 * Drop a few packages with library-only provides. The build
   system will pull them in automatically as needed (libicns, etc.)
2026-01-29 22:49:29 -05:00
Augustin Cavalier 0af3006721 QueryParser: Don't send notifications if the node's been deleted.
Gets rid of redundant messages under B_QUERY_WATCH_ALL.
2026-01-29 18:10:12 -05:00
Augustin Cavalier 377f154bf0 BFS: Implement the trivial case of Volume::CheckForLiveQuery.
Saves a bit of work when there are no live queries running
(as will often be the case on an idle system.)
2026-01-29 18:01:37 -05:00
Augustin Cavalier 18dd362efa kernel/fs: Return B_BAD_VALUE for O_RDONLY|O_TRUNC on open().
According to Sortix os-test, this better matches the behavior
of OpenBSD and other OSes that reject this combination of flags.
2026-01-29 15:24:03 -05:00
Augustin Cavalier 6fc8d99e21 libroot: Expose exect() only if building with BeOS ABI compatibility.
It's non-standard and redundant, but was in the public R5 headers,
so we need to keep it around at least for compatibility.
2026-01-29 15:04:23 -05:00
Augustin Cavalier 4310e8e1c8 posix_spawn: Expose file_actions_add[f]chdir.
The non-"_np" versions were exported, but not declared in the header.
Do that, and also make the "_np" versions the alias, as these are
specified in POSIX-2024.
2026-01-29 15:00:12 -05:00
Jérôme Duval afbcaac486 POSIX-2024: add getresuid(), setresuid(), getresgid(), setresgid()
remove syscalls for getuid and getgid

Change-Id: Ic6608bb65a654ff7d8fa25c8f39b71777b62b99c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9339
Reviewed-by: waddlesplash <[email protected]>
2026-01-29 17:06:11 +00:00
Augustin Cavalier 83da6699df Tracker: BPoseView handles "size" and "last_modified" with B_STAT_UPDATE.
Fixes #19916.
2026-01-28 22:30:32 -05:00
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