Commit Graph

66203 Commits

Author SHA1 Message Date
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
Oscar Lesta
9e2c51c22f package: adjust help text spacing to be less cramped.
Using 4 spaces, instead of two, makes it easier to find
the available commands at a glance.

Change-Id: I2bbfaa323b89ebce490e34a39c4dfd163c23fd06
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7784
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-06-20 16:18:53 +00:00
Jérôme Duval
0e72f7e22f ps2: republish debugger command should use keyboard number 5 by default
should fix #18919, I couldn't reproduce the crash locally.

Change-Id: Ic522c299a758a98e83de03a0e84014e97984ae69
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7785
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-06-20 16:17:10 +00:00
Humdinger
de2a79cea2 Removing some B_UTF8_ELLIPSIS, sentence-casing
"New player" in MediaPlayer and "Get info" in ShowImage do exactly
like the item says, so no ellipsis needed. Similar to Terminal's
"New Terminal" and Trackers "Get info".

Change-Id: I32e59e219af7a09bd74b489459281cc71cbffd9c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7783
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2024-06-20 06:50:00 +00:00
Andrew Lindesay
6a0e78e576 HaikuDepot: Fix vertical scroller
The package rating comment field was not adjusting
the vertical scroller as the text was being edited.

Change-Id: Ic84c72a126fae5ce9a9ab8930fa13d426b513ed9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7782
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2024-06-15 08:41:46 +00:00
Andrew Lindesay
6846b8ea7c HaikuDepot: Fix crash on early quit
Change-Id: Ic3173f9be7cf2dd387f5f1e4fc67333399ea0595
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7778
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-06-14 20:19:48 +00:00
Andrew Lindesay
c4e439b5a5 HaikuDepot: Allow paste into text view
HaikuDepot has its own text-engine. This change will allow
the text-engine to have text pasted into its view.

Change-Id: I639cf0ba4fa42a0130af0a4dc169f0f2e585765d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7723
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2024-06-14 11:11:00 +00:00
Jérôme Duval
43db77b370 kernel: fix race condition on boot, using SetBitAtomic
fix #18915

Change-Id: Ia8829822e21f6d6b765746ddab05f8781385745f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7777
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-06-14 06:07:23 +00:00
Diego Roux
8b32e9b4ac virtio_sound: setting up driver to be loaded.
Change-Id: I25c99e3e06e52448968bd8210b2f0599d129a7bb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7776
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-06-13 08:05:17 +00:00
Andrew Lindesay
c1cc7751a7 ColumnListView: Status view w/ scaling
Visible in HaikuDepot when the font is scaled, the placement
of the BColumnListView is broken owing to the calculation of
the height of the scrollbar being based on a constant.
Fixes #17900.

Change-Id: Id34138feb491618a4c685b7cdb88b875e3ec5329
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7726
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-12 16:34:24 +00:00
Zardshard
984f843b91 HaikuBook: document missing BBitmap constructor
Change-Id: I4fc51b0e499f9cb5e5c4ce58d6baddf462322b3f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7719
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-10 16:36:12 +00:00
Jérôme Duval
c5a740cdb2 gnu: add pthread_setaffinity_np()/pthread_getaffinity_np()
* also sched_setaffinity/sched_getaffinity() added.
* add a test

Change-Id: Id8c308788f6364f5340b4991def2fbb9a05da728
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7675
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-06-10 16:34:25 +00:00