Commit Graph

66314 Commits

Author SHA1 Message Date
Andrew Lindesay
50fc99b8a5 HaikuDepot: Ratings scroller
Fix an issue where the scrollbar on user ratings
was not adjusting to the length of the ratings.

Change-Id: I690f4cbef0cdd88dd7540b47889166e0b3bf513d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7819
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-28 15:27:08 +00:00
Jérôme Duval
6c9192d702 kernel: revert unneeded change, requested by waddlesplash
Change-Id: If55f93ed75dc20363de9bf0022d93800f5a9661f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7816
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2024-06-27 16:16:23 +00:00
Augustin Cavalier
44e9aa9f33 file_systems/QueryParser: Don't let the equation score be 0 if there's an index.
Without this, a query term that does have an index but for which
the pattern starts with a wildcard (e.g. "*term*") is treated as having
a score of 0. That means that it is then dependent on the query order
as to whether or not the equation will run at all, since if all the terms
have a score of 0 but one has an index, placing that term first
will make the query run while any other would not.

Fixes #18672.
2024-06-26 18:20:50 -04:00
Augustin Cavalier
88911fe61c file_systems/QueryParser: Only increment within the operators loop.
If we have a matching operator, we will replace the current item
with a new item, and we may need to process it again. For example,
in cases like "A||B||C", the first pass will turn this into "(A||B)||C",
and so we need to re-process the first item to get "((A||B)||C".

Fixes "Open with..." and some other things following the query parser
refactorings.
2024-06-26 17:23:11 -04:00
Augustin Cavalier
eca86a00ae Tracker: Add a try/catch around ModelMenuItem's creation in AddOneAddOn.
ModelMenuItem can throw exceptions if its Model fails to initialize,
and even though we pass a Model in directly, copying the Model
results in opening the underlying file again, which of course may
fail if something changed since our Model was created.

While at it, remove the return value, since it isn't used anywhere.

Should fix #18905.
2024-06-26 16:37:28 -04:00
Augustin Cavalier
1a3dae790e Tracker: Code cleanup around add-ons.
Mostly de-indents and some shuffling in headers.
No functional change intended.
2024-06-26 16:37:26 -04:00
Jérôme Duval
28748463d9 kernel: check for NULL core in power_saving mode choose_core()
Change-Id: I94fccef73c4254888ad71dfbc748fac72e5bc124
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7795
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
2024-06-26 10:35:33 +00:00
Augustin Cavalier
d1c8e2fe7c strace: Don't print the starting "_kern_" in the stats view.
Same change that was made for the non-stats printing a long
time ago.
2024-06-25 22:10:49 -04:00
PulkoMandy
a85ea80f68 Fix adding Gutenprint to regular image
This was missed in the update to Gutenprint 9.

Change-Id: Ie372a38d557e8f1506b27294b3d6699bb30f7fc0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7716
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
2024-06-26 01:54:07 +00:00
Augustin Cavalier
05404cc538 freebsd_network: Print the bounce buffer type in panic message.
May help with diagnosing #18885.
2024-06-25 21:48:28 -04:00
Augustin Cavalier
8e56b86bdd kernel: Use BStackOrHeapArray in fd & port vector I/O syscalls.
The socket syscall needs to still use the heap. Also add a comment
around get_iovecs_from_user() indicating what callers must do.
2024-06-25 21:33:20 -04:00
Augustin Cavalier
20ac27def6 kernel/fs: Fix readv/writev after the seek-disabled refactor.
This fixes a regression introduced in 34fcf3d9ea.

That commit correctly adjusted the "pos" checks at the top of these
functions, but missed that there was a place in the loop where pos
is incremented. After the first increment, we would have a non-zero
pos, and so the new checks in the actual read/write routines would
return an error, meaning that only the first iovec was ever processed.

This fixes WINE following the aforementioned change.
2024-06-25 20:46:54 -04:00
Augustin Cavalier
32c59a45e1 strace: TypeHandler for iovec*.
Useful for readv, writev, and writev_port_etc.
2024-06-25 20:20:15 -04:00
Augustin Cavalier
0caf909cec Move mounting the shared_memory ramfs to launch_daemon.
The directory is created there, so we should also perform the
mount operation there. If we don't, the first boot of a new
Haiku image will not have the ramfs shared_memory, since of
course the kernel can't mount it at a nonexistent directory.
2024-06-25 19:09:38 -04:00
Augustin Cavalier
146690fec4 aironetwifi: Amend last change.
Seems my local incremental build spuriously succeeded.
2024-06-25 18:57:35 -04:00
Augustin Cavalier
6335cebddd usb.ids: Update. 2024-06-25 18:37:30 -04:00
Augustin Cavalier
e791322263 pci.ids: Update. 2024-06-25 18:37:16 -04:00
Augustin Cavalier
4780e4d4df freebsd_network: Remove some now-unneeded methods and compatibility macros. 2024-06-25 18:35:03 -04:00
Augustin Cavalier
5a39afd352 aironetwifi: Synchronize to the last version before it was removed. 2024-06-25 18:32:53 -04:00
Augustin Cavalier
df49d6c934 drivers/network: Remove remaining declarations of "devclass".
Mainly the ported OpenBSD drivers (where this was added in Haiku-specific
code), and then the few remaining drivers that are no longer supported
on FreeBSD.
2024-06-25 17:40:09 -04:00
Augustin Cavalier
088c695b17 freebsd_network: Remove fls/ffsl from generic/cpufunc.h 2024-06-25 17:14:45 -04:00
Jérôme Duval
61607003b1 kernel: check for NULL smallTaskCore in power_saving mode rebalance()
should fix power saving issue from #18915

Change-Id: Ie0d64445599a3f3af6b2c7f654b20e26bd4e3b8b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7790
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
2024-06-25 20:53:36 +00:00
Augustin Cavalier
97a29cc796 freebsd_network: Remove definitions of ffs/fls functions from x86/cpufunc.h 2024-06-24 22:19:49 -04:00
Augustin Cavalier
054e94c69b iaxwifi200: Port a change from upstream OpenBSD. 2024-06-24 22:18:15 -04:00
Augustin Cavalier
25e0933970 openbsd_wlan: Synchronize with upstream OpenBSD. 2024-06-24 22:05:52 -04:00
Augustin Cavalier
95ce8f21aa rtl8125: Synchronize with upstream OpenBSD. 2024-06-24 21:57:29 -04:00
Augustin Cavalier
b1ae2896a0 openbsd_network: Add cast to silence a warning. 2024-06-24 21:56:59 -04:00
Augustin Cavalier
1f33dab2e6 freebsd_network: Move ffs/fls routines to libkern.h and use builtins.
FreeBSD upstream did this a while back. Should fix the 32-bit build.
2024-06-24 21:56:08 -04:00
Augustin Cavalier
86021fd407 Synchronize freebsd_net80211 and all maintained FreeBSD drivers with 14.1.
Tested with realtekwifi, still works.
2024-06-24 21:19:47 -04:00
Augustin Cavalier
f6b6453fee freebsd_network: Additions for FreeBSD 14.x net80211 and drivers. 2024-06-24 20:55:29 -04:00
Augustin Cavalier
1454f3c27a Synchronize all remaining FreeBSD ethernet drivers with FreeBSD 14.1.
Except those since dropped from FreeBSD.
2024-06-24 19:58:44 -04:00
Augustin Cavalier
3fcde6b236 freebsd_iflib, intel22x, ipro1000: Synchronize with FreeBSD 14.1.
ipro1000 tested in QEMU, still works.
2024-06-24 19:48:17 -04:00
Augustin Cavalier
7d36436b75 freebsd_network: Additions and modifications for FreeBSD 14.x drivers.
* Add more if_{get|set}* routines, and move all copied directly from
   FreeBSD into a fbsd_if.c file. Also clean up the header.

 * DRIVER_MODULE macros dropped the "devclass" parameter.
   In order to not break all existing drivers, use FreeBSD's
   interim solution of compatibility macros.
2024-06-24 19:46:25 -04:00
Augustin Cavalier
83e4de8b64 file_systems/QueryParser: Limit to 32 equations maximum.
This way, we won't run into stack overflow issues due to recursion.
Who would really need a FS query with more than 32 equations, anyway?

Fixes #18692.

Change-Id: Ieda401446d9cae2e56100ddbab08bebcc724b484
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7789
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
6d7e181767 file_systems/QueryParser: Rewrite parsing logic to avoid recursion.
This way, we can handle parse trees of arbitrary depth without
running into stack overflows. Of course, evaluation is still
a problem...

While at it, use "const char*" everywhere, and also put the
query parser into an Init() function so we can return
more statuses than just B_BAD_VALUE.

Part of #18692.

Change-Id: Ib81e6545935ce484df10dfe36ca4ffcf2b3cd607
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7710
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
e0ff85edaa tests/file_systems: Add a QueryParserTest.
At present it just accepts query strings as command-line arguments
and prints the parsed query to the stream (or the error, if there
is one.)

Change-Id: I907380e370790ad9fb4d8f9406a18d359d0dcc2b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7709
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
76f38b534f tests/file_systems: Synchronize <userland>ramfs Jamfile with kernel one.
Doesn't fully build but at least gets closer to the kernel version.

Change-Id: I3f7c83da97b7163724e3dc547603a88796def254
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7708
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
804e27b8fb tests/file_systems: Delete obsolete beos_interface Jamfiles.
Change-Id: I6a8777f763e2c24e60823deef5a7521248a30b72
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7707
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
f91b5cb297 tests/file_systems: Move some tests to a common "shared" directory.
Rather than having individual directories for the tests. No
functional change intended.

Change-Id: Ie453eab2d7347cef4ea68a1e7793d01817e7da39
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7706
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
0a44afc6bf BFS: Use the shared QueryParser.
Ideally should have no functional changes from the old one.

Change-Id: Id557d8fb069603221887447597ef0ffce5de07a6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7705
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
7da55c7296 file_systems: Backport changes to QueryParser from BFS.
* 3e818f2075
 * 711e2dc05b
 * 6609c1a03a
 * f79179975d
 * 0ed0f5cb35 (tweaked for 64-bit)
 * a2eb6bbda4

Change-Id: I11d9946b475449b7b5aeed956e3ae8a776a0b20a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7704
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-24 19:40:08 +00:00
Augustin Cavalier
3a17bd3545 file_systems: Adjustments to QueryParser in preparation for BFS using it.
Should not result in functional changes to packagefs and ramfs
queries behavior.

Change-Id: If361ca65de99d255e67f929c3442e0c20e39cdf4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7703
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-06-24 19:40:08 +00:00
Trung Nguyen
1f2b4425c4 kernel/debug: Report new team before resuming it
Ensures that the new team has been reported to the debugger before
the main thread gets resumed. This allows the debugger to attach
to child teams as early as possible.

`fork` and `load_image` without `B_WAIT_TILL_LOADED` have always been
working as desired. This commit fixes the remaining case of
`B_WAIT_TILL_LOADED` by reporting before resuming the thread of
`runtime_loader`.

Change-Id: I7fd74606801c6ca5335d91c92f3157e6c6e66308
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7797
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-24 17:45:54 +00:00
Trung Nguyen
25cf646333 kernel/signal: Make DEBUG_THREAD non-deferrable
Add `SIGNAL_DEBUG_THREAD` to the list of non-deferrable signals.
This allows debuggers to immediately install themselves and break
newly-forked children, as `libroot` requests signals to be deferred
around `_kern_fork`.

Change-Id: Ifc98c3ce4d394f187070a089a9be9fe665ee81d9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7796
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-06-24 17:45:54 +00:00
Máximo Castañeda
d6669c48ad BHandler: fix IsWatched
Using map[key] inserts the key in the map if it wasn't there, making it
non-empty.

Change-Id: I4404b896126aee202780b6e93e7c17c69ca8f34d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7787
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-24 17:45:27 +00:00
Abdelrahman Youssef
d7d7d543bc Icon-O-Matic: restors default position when it starts out of screen
fixes #18865

Change-Id: If8c286c730b5660be6c20e159a9de6637af25f47
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7788
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-06-24 17:44:03 +00:00
Autocomitter
289b4316da Update translations from Pootle 2024-06-22 08:12:31 +00:00
Autocomitter
36ad35bb2d Update translations from Pootle 2024-06-22 08:12:30 +00:00
Humdinger
0981bdb742 Magnify: improve label for width and height
When you add two crosshairs to measure pixels, it was a bit confusing to see:

1) x: 14 y: 11  x: 19
2) x: 33 y: 20  y: 9

Now it's:

➀  x: 14, y: 11
                  width: 19, height: 9
➁  x: 33, y: 20

"1)" and "2)" got replaced by dingbats numbers in a circle.

Change-Id: I7fd1b3bd7869a3251e15e249f74916150eef8218
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7724
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-06-20 17:15:03 +00:00
Trung Nguyen
f3cb51a85a kernel/debug: Report killing signals
Adds a `signal` field to the `team_deleted` event. Since killing
signals like `SIGKILL` and `SIGKILLTHR` do not generate a
`signal_received` event, debuggers would only see a `team_deleted`
message with the `status` field set to 0. This makes debuggers like
GDB think that the debuggee has exited with a status code of 0.

To correctly report these signals, when a killing signal is sent
to a team, this signal is relayed to the main thread instead of
defaulting to just a `SIGKILLTHR` for both cases.

Change-Id: If69c9e2e4d87bfbd31f654f5cb6f696ac69ef777
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7756
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-20 17:11:58 +00:00