Commit Graph
68373 Commits
Author SHA1 Message Date
Máximo Castañeda c33f1b8ccd Deskbar: fix loop exit when adding a team
We want to check all apps until we find the one we are looking for, not
just the first.

Error introduced in fb885767b6.

Fixes: #19152
Change-Id: I8b7c5a7c2fcd530b13c70f7a1addda583e30ecdc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10076
Reviewed-by: Máximo Castañeda <[email protected]>
2025-12-10 01:29:08 +00:00
Augustin Cavalier 333909db33 kernel: Adjust missed OpenHashTable include. 2025-12-09 16:18:49 -05:00
Augustin Cavalier 1257e2ba22 Move most headers containing generic template classes out of kernel/util.
This follows on the move of BitUtils. Many of these headers were
already used in userspace.

Fixes #19849.
2025-12-09 16:11:46 -05:00
Augustin Cavalier 9f786b6af7 Rename "headers/private/utils" to "util".
This undoes some changes from cf930b7e6c.

Nearly all the other utility directories in the tree are named "util"
not "utils", so let's be consistent.
2025-12-09 16:03:02 -05:00
Augustin Cavalier 9c4c97f7f1 BUSBInterface: Fix incorrect management of fEndpoints on updating.
num_endpoints will be changed by the ioctl; we need to use the old
one when deleting the array.

fDescriptor is just zeroed if we fail to fetch, so just perform
the deletions up-front.
2025-12-09 15:00:47 -05:00
PulkoMandy 97675f2fc4 arm: relocate UART when remapping virtual memory
The uart virtual address changes as soon as we apply the kernel memory
map. gUART is used only after that, from serial_init() onwards. So it
should use the virtual address, and not the physical address it was
previously created with while parsing the FDT.

Change-Id: I8c8a024fe564b49d6555f8e48f5ab31652d30708
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10068
Reviewed-by: Fredrik Holmqvist <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-12-09 19:35:39 +00:00
Axel Dörfler 0f7bee148d AboutSystem: Open with golden ration window size
* This looks more pleasing than the too flat window before.

Change-Id: I0e97c094abf6f7d71d86cfe28aaf9c2d6960f79c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10065
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-09 10:18:39 +00:00
Oscar Lesta 82755a4c33 TextView: Move caret position to the end of selection on SelectAll().
This makes it consistent with the behaviour of double/triple click
selections.

Fixes #4094 / #19842.

Change-Id: Ibbbe36c9703207744e79c83447f95815ea5bf8fe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10066
Reviewed-by: John Scipione <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-09 10:15:55 +00:00
Jérôme Duval 9d587f4f3f tcp: send RST instead of FIN, when user closed and received data get lost
this is the abort way of closing a connection.
tested with golang's http test TestTransportGzip. All TestTransport* pass.

Change-Id: Ib79516eb8a16480d7a4425675748ff76554e9c6c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10054
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-09 10:14:36 +00:00
Samuel Rodríguez Pérez 5860e2c161 input mouse mm: Trace event, status and positional information
Change-Id: I5689355c15139d7a194ecb74a9206718afee9b2b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9914
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-09 10:08:25 +00:00
Samuel Rodríguez Pérez d519530a2b input mouse mm: Improve tracing with a function tracer
The function tracer from MouseInputDevice.cpp adapted for
movement_maker.cpp.

Change-Id: I7414d9c69e231de2f8833814a5a7ee358c8088dd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9924
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-09 10:08:25 +00:00
Samuel Rodríguez Pérez b7a226b66e input mouse mm: Fix tracing, trace all methods and add destructor
- Fix tracing when TRACE_MOVEMENT_MAKER is defined.
  This seems to be a leftover from the migration of
  movement_maker.cpp from kernel to user space at
  hrev56293.

- Improve tracing by adding a call per method
  When tracing is enabled, the class name and the function
  method is provided to trace every method call by using
  new CALLER helper macro.

- Add destructor as well to improve tracing.

Change-Id: I60b49b1d83a8abeb3ba6835d0e303f1b28dde90a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9909
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-09 10:08:25 +00:00
PulkoMandy 172caabf4d BitUtils: fix gcc2 build
Change-Id: Ib347785c466df7df3f40c4781bb46f6fc12ef647
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10046
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-09 10:08:25 +00:00
PulkoMandy cf930b7e6c Move BitUtils.h outside of kernel directory
It is not specific to the kernel

Change-Id: I334c39b39d74f61b30215fb5489dec09e318dacd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10049
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-09 10:08:25 +00:00
Autocomitter 2172f376f8 Update translations from Pootle 2025-12-06 08:11:44 +00:00
Augustin Cavalier 3b66de32f4 libroot/strftime: Add support for %k and %l.
These aren't in POSIX but glibc and FreeBSD support them,
and our ICUTimeData class expects that strftime will handle them.

Fixes #18471 and some of the problems described in #14356.
2025-12-04 16:41:45 -05:00
Augustin Cavalier 984dfdee36 ICUTimeData: Replace all spaces with a regular ' '.
ICU 72 started using Unicode spaces in many patterns.
We don't want those here, so just replace them with
a regular ASCII space character.
2025-12-04 16:23:49 -05:00
Sylvain Kerjean 3b7038d884 [Network] Clear buffer before use.
Clean unix address buffer before use : more robust to bad user addresses missing trailing '\0',
 and prevents leaking data

Change-Id: I769b895327f97870886309a7054facd3c169fb7f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10052
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-12-04 19:25:48 +00:00
Axel Dörfler 85ced2a68e Sudoku: Fixed colors in normal mode again
* It was not supposed to use panel color as background; it now uses
  document color instead.
* Improved color computation with less calls to ui_color(), and only
  two place to change in the future, if ever needed.
* Still does not look good in dark mode, though (no changes there).

Change-Id: I2aa355728de4b7da1939417adf6922dde77aac44
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10053
Reviewed-by: nephele nephele <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-03 21:20:51 +00:00
Samuel Rodríguez Pérez 658d2d1222 input mouse: Tracing cleanup fixes
- Replace LOG_ERR by LOG_ERROR. LOG_ERR is a constant on syslog.
- Fix compilation on x86_64 with TRACE_MOUSE_DEVICE enabled by:
  - Replacing %ld by %" B_PRId32 ".
  - Replacing %lu by %" B_PRIu32 ".
  - Replacing %lx by %" B_PRIx32" .

Change-Id: I8ffc4fc32e835406bfc8641f09b60489155d946a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9907
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-12-03 07:48:12 +00:00
PulkoMandy 1dfcf1b9c6 input_server addons: use shared FunctionTracer
Change-Id: I1985dd8508388ff829b8bfb4af61a0b118da26a0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10045
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-12-03 07:48:12 +00:00
PulkoMandy 9cb525a2e3 FunctionTracer: add support for "this" pointer and custom printf function
Prepare for replacement of modified version used in input_server addons.
Adapt existing callers.

The "this" argument is required, and the CALLED macro can only set it to
one single value for an entire file currently. So, in any case where at
least one standalone function or static method uses CALLED, the macro
has to use a NULL pointer for all calls.

Change-Id: I42fdcbeaf6dd039d4c4369818220ad85e0b8087e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10041
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-03 07:48:12 +00:00
Nathan Patrizi 4b6432d831 Kernel: Add hrev after kernel debugger welcome
Fixes #19299

Change-Id: I4058537977f2caef80676a12e51575ce6dfb6fac
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10034
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-02 15:12:14 +00:00
PulkoMandy b939b5a9f4 debug_printf: return number of printed characters
For compatibility with other printf functions

Change-Id: I52c85d590b8480427952740cb896112bb4e71c18
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10044
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Axel Dörfler <[email protected]>
2025-12-02 09:43:45 +00:00
Kacper Kasper ccf8b1e96f BTab: decouple display label from view name.
In BeOS, the tab label was synchronized with the view name. This means
BTab::SetLabel would change the view name. This behavior is unexpected,
and also annoying, for example it prevents using localized tab labels
but fixed view names for scripting.

* Document this divergence from BeOS in the Haiku book
* Detect if we're running in a BeOS app to preserve the old behavior
  then

Change-Id: I5b758a035fe8752cee2ea7789a30ea47a01467b9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/122
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
2025-12-02 08:00:36 +00:00
Jérôme Duval 0200659132 Terminal: unmask signal SIGUSR1 for child processes
Terminal masks SIGUSR1 in TermApp for its own use, but doesn't unmask it for the processes it creates. The bug must have been exposed by 91acc30 (kernel/team: use child-forked thread signal_mask)

Change-Id: I4eed723b50bd92d23a3e7e43bfdd2c11162ce9d4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10047
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-02 07:54:21 +00:00
PulkoMandy dffebdd68a Rename some debug_printf functions in drivers
There is a debug_printf function in headers/os/kernel/OS.h that can
conflict with these.

Change-Id: Ic0d4e8169984f5b4df2be8fc3e00b8b55e68d864
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10043
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Axel Dörfler <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-02 07:22:27 +00:00
PulkoMandy 772e0a03ef x86_64 efi bootloader: use generic function instead of copying it
Change-Id: I4bddc86c1e19f7654db62be52e04056e9e858513
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10037
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2025-12-01 16:01:16 +00:00
PulkoMandy 51c5d2370a OpenSound: use shared function tracer and fix format macros in tracing
Change-Id: Ie2311eb212fcd30460f293c4dbe25d512a2acefc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10040
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Niels Sascha Reedijk <[email protected]>
2025-12-01 09:48:36 +00:00
PulkoMandy dd24562c1a TextSearch: use shared FunctionTracer
Change-Id: I952e33649c4e0cf6e065040ec47d587fa627aa4c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10039
Reviewed-by: Niels Sascha Reedijk <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-01 09:48:36 +00:00
PulkoMandy b1ff3e6c46 FunctionTracer: use __PRETTY_FUNCTION__
Change-Id: I49d53f4bb7b65d32c9e1e22be89add6199ccad24
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10038
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: Niels Sascha Reedijk <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-12-01 09:48:36 +00:00
nipos 7ad0bd3735 Network: Use statuses from NetworkStatus rather than just 'connected' and 'disconnected'
Fixes #15261

Change-Id: I782abf970521a13eabfe74d103e39d69618306a2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9341
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-11-30 21:28:53 +00:00
Samuel Rodríguez Pérez 99b68e8d36 input mouse mm: Make make_small truncf + license updates. No functional change expected.
Change-Id: Ib526e6417202951899ecb224b835648d7bd4afa4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9912
Reviewed-by: Adrien Destugues <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-11-30 21:27:26 +00:00
John Scipione 783ceb6c24 Tracker: Sort volumes before folders if you have "List folders first"
setting turned on (default on). Implements #19807

Sort root (aka Disks) before volumes and folders.

strcasecmp => NaturalCompare in one more case.

Change-Id: Ib907ae07edd47e802dcf4263e1bd676e1fa074ae
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9761
Reviewed-by: humdinger humdinger <[email protected]>
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
2025-11-30 19:05:25 +00:00
John Scipione b109d591fa Tracker: File panel responds to Tracker Window settings.
Change-Id: Ie9cf791566a20b4d44987ee84a7a34e78cccd136
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9763
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: John Scipione <[email protected]>
2025-11-30 19:05:25 +00:00
John Scipione d7022afd57 Tracker: Simplify adding/removing poses when mounting/unmounting
... and sorting.

Change-Id: Ia72e85d12682d4f77200629f3f5f278a9a40c423
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9890
Reviewed-by: John Scipione <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-11-30 19:05:25 +00:00
John Scipione 1584b1ecab Tracker: BPoseView replace BView with _inherited and style fixes.
Change-Id: Ic24f4ee3831a94a659cc584e5b4393f08695061d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9889
Reviewed-by: John Scipione <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-11-30 19:05:25 +00:00
Nathan Patrizi 0e2e36f650 MediaPlayer: Make location field clickable in File info window
The "Location" field in the File info window will be clickable if it
refers to a local file. This will open the containing folder in the Tracker.

Fixes #8842

Change-Id: I0b17587607275da12aac89a1716ec85652a31e29
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9796
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: nephele nephele <[email protected]>
2025-11-30 08:11:42 +00:00
Jérôme Duval c7c819c28f strace: send_signal and sigaction now use signal names
Change-Id: I5080da504899c96642bb4695eada2805fcffd773
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10036
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-11-30 07:56:05 +00:00
Augustin Cavalier 49a702dd58 libroot/locale: Only set all locales if we checked the whole set.
If we only checked one, then of course we can't set LC_ALL,
as that will override ones we didn't verify were the same.

Seems this code has been wrong since it was first imported in 2010.

Fixes #19446.
2025-11-29 19:38:37 -05:00
Augustin Cavalier 1f58862893 app_server: Acquire the window lock in Set*Cursor.
SetScreenMode() and other methods around here also acquire it
in this way.

Adjust one place in ServerApp that would cause a lock-order-inversion
otherwise.

Should fix #19837.
2025-11-29 19:20:42 -05:00
Samuel Rodríguez Pérez 0ab44682c9 input mouse: Fix use default values for non available touchpad settings
+ license update

This fixes loading old versions of touchpad settings files by
providing default values for missing setting entries.

Change-Id: Ib655bcc439e28efc57388602e4aee35868a35028
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9906
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-11-29 19:36:51 +00:00
Samuel Rodríguez Pérez 5cc2a47ef1 input headers: Fix fingerWith documentation + license update
Add and fix description of the current values for fingerWith
field and related constants along with future expectations
for the same. The latest explainted as TODO item.

Change-Id: I876a9cf03a935309159401a6c88d9047bf225f90
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9863
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-11-29 19:36:51 +00:00
John Scipione 8df94f989a Appearance: Compose fake scroll bar height.
Change-Id: Ife4d1f6f73934ac23b3d81cb7a249d0579377464
Reviewed-on: https://review.haiku-os.org/c/haiku/+/9896
Reviewed-by: John Scipione <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-11-29 19:36:01 +00:00
John Scipione 46386c023b HaikuControlLook: scroll bar thumb dots 2px wide
... instead of 1px so that they are more visible.

(as requested by CodeforEvolution in #9137)

Change-Id: I7419f0422b89f26ed9d2bb5e7510ff35561643a7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4333
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: Jessica Hamilton <[email protected]>
Reviewed-by: John Scipione <[email protected]>
2025-11-29 19:36:01 +00:00
Autocomitter cc342ed852 Update translations from Pootle 2025-11-29 08:12:04 +00:00
Augustin Cavalier 39c7c29e69 net_server: Run DHCP negotiation on a separate thread to fix hangs.
Previously we ran DHCP negotiation on the looper thread. This meant
that we just blocked it for long periods of time, which stopped
configuration settings changes from working properly, and causing
the Network preferences panel to hang when net_server failed to
respond to its messages.

Now, we spawn a separate thread to do the real work on, and unlock
the looper around the recvfrom() with long timeouts. There's now a
kMsgAutoConfigureFailed that is sent when auto-configuration fails,
so that the AutoconfigLooper can fallback as before. Additionally,
the main NetServer class quits loopers for devices on any configuration
change, rather than deferring it unecessarily (and possibly wrongly, in
some cases.)

Fixes #18037. Probably fixes #17300 and may help with others.
2025-11-27 14:30:54 -05:00
Máximo Castañeda 2f598715f1 usb_disk: remove spaces at beginning of normalized name
Happens when the device has an empty vendor name.

Change-Id: Ib401749763a2e7ffe292feef41595f2dfae17d82
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10028
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-11-27 09:17:05 +00:00
John Scipione fe86227a3f BPartition: Return B_BUSY when calling Mount()
... on an already mounted volume.

Change-Id: I7bffa385c6d1850db9106c3ab9a5a66e79165d11
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10024
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
2025-11-27 05:16:01 +00:00
John Scipione b5884b112e Tracker: Clear drag data on MouseUp().
The same is done at the top of MouseDown.

Fixes #19402.

Change-Id: I75fe2249a585612c859d80a7a71825b5cb1b1df8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/10026
Reviewed-by: waddlesplash <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2025-11-27 04:10:53 +00:00