Commit Graph

66965 Commits

Author SHA1 Message Date
Jérôme Duval
1e3e4210de FAT: restore all lowercase labels, the behavior from r1beta4.
Change-Id: If65e2899b841cfb6be68b7f896a0cb199098232d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8530
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-11-11 10:11:08 +00:00
X512
4bfc14b6c7 libroot: add posix_devctl() from POSIX.1-2024
Change-Id: I2ae748b2febcdeca0256e9033119dcf9988ccc74
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8556
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2024-11-10 20:08:54 +00:00
Jérôme Duval
a31d463b38 Screen: initialize fUserSelectedColorSpace
should fix #19244

Change-Id: I629cd6689409f91a6399d3cca821759b59c94a0a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8558
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-11-10 19:52:34 +00:00
Andrew Lindesay
c078962803 HaikuDepot: Split out Local Info From Pkg
Continued work to normalize the data model
in the application.

Change-Id: I6dc6d17cff866b18f56431056958092c8bdc3a19
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8524
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-11-09 20:19:18 +00:00
Augustin Cavalier
3a91fe8d4f libroot: Treat invalid timespecs as zero-timeouts with a special error code.
Amends b8fdef84a6.

We also now use B_RELATIVE_TIMEOUT in sigtimedwait() rather than
converting to an absolute timeout.

Thanks to korli for the review!
2024-11-09 14:25:32 -05:00
Augustin Cavalier
0b04cf2f5b libroot: Merge sigtimedwait.cpp into sigwaitinfo.cpp.
No functional change intended.
2024-11-09 14:20:26 -05:00
Augustin Cavalier
18b7c68ed6 realtekwifi: Add device ID for TPLink RTL8192CU.
Should fix #19234.
2024-11-09 13:47:44 -05:00
Autocomitter
1a080e5f9f Update translations from Pootle 2024-11-09 08:16:43 +00:00
Augustin Cavalier
b8fdef84a6 libroot: Use timespec_to_bigtime and bigtime_to_timespec in more places.
Two minor behavioral changes: EINVAL is now returned on invalid
times in more places, and clock_settime now rounds up instead of down.
Otherwise all should be as before.
2024-11-08 13:41:36 -05:00
Humdinger
7c5e909fba New/updated icons for native/installed apps in HaikuDepot
* A new icon to indicate native apps in HaikuDepot. It's simply the
  Overlay_leaf on a blue disk.

* Slight change to HaikuDepot_Installed to add a black outline to its
  green disk. That makes is better distinguishable on similar coloured
  backgrounds.

* Made the green of HaikuDepot_Installed a bit less glaring, using a
  slightly light green that shown in the old Haiku Color Palette [1]

[1] https://www.haiku-os.org/files/downloads/2007-03-20_haiku-color-palette.png

Change-Id: I5c29d65e05561fafe5d84c173ddaf083281d391b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8526
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-11-07 19:06:29 +00:00
Andrew Lindesay
7d8bc41066 HaikuDepot: Installed icon on list view
How the installed tick indicator on package
list view.

Change-Id: Ib7ea0de3d268f7eb16acdd5d575eb6da096170b2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8510
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2024-11-07 07:30:05 +00:00
Augustin Cavalier
eb2080d241 usb_disk: Cancel queued interrupt transfers on failure to attach.
We reschedule the interrupt transfers every time they succeed,
so we need to cancel them on failure to attach in order to not
leave one lingering (and later KDL).

Fixes #17549 and related tickets.
2024-11-07 01:08:27 -05:00
Augustin Cavalier
2a46c1e589 pthread: testcancel() should exit with PTHREAD_CANCELED.
Fixes #19232.
2024-11-06 14:58:09 -05:00
Augustin Cavalier
eaa234b678 pthread: Use timespec_to_bigtime in pthread_cond_clockwait. 2024-11-06 14:57:44 -05:00
Augustin Cavalier
14744074dd Revert "unistd.h: Add cast to (void*) for first argument in C mode."
This reverts commit c4497fa258.

Breaks 2-argument ioctl, it seems.
2024-11-05 22:03:58 -05:00
Augustin Cavalier
36708e6ab8 network: Let modules process all ancillary data at once, and adjust UNIX.
This way, modules can decide to do different things based on having
all the ancillary data available. In particular, the UNIX module will
now post only one message header for all the FDs, even if they came
from multiple sets of ancillary data.

This should fix "Message needs unreceived descriptors" from the Chromium
IPC code (which is used by Firefox).
2024-11-05 15:23:24 -05:00
Augustin Cavalier
85a9e4abfb mpu401: Move to the "midi" drivers directory.
For now it remains in the "generic" directory in the package.
2024-11-05 14:20:26 -05:00
Augustin Cavalier
6e1bd12f74 locked_pool: Delete.
The SCSI module was the only thing using it, and now it isn't
used at all.
2024-11-05 14:05:04 -05:00
Augustin Cavalier
79efafa0e0 libroot: Add x86-specific stub.
Needed for bootstrapping.
2024-11-05 13:51:02 -05:00
Augustin Cavalier
79e2ef5c69 arp: Move sCacheLock to be near the structure it's protecting.
No functional change intended.
2024-11-05 13:48:54 -05:00
Augustin Cavalier
1f4aed8088 nvme_disk: Slight code cleanup.
* Add const to rounded_len.

 * Remove dead store of lba_count: it's really set inside the while
   loop.

No functional change intended.
2024-11-05 13:48:35 -05:00
Augustin Cavalier
f9141f8935 bootloader: Remove unused include. 2024-11-05 13:47:02 -05:00
Augustin Cavalier
e9c9b2e448 kernel/condition_variable: Make the debug type fetcher a static function.
No behavioral change intended.
2024-11-05 13:46:53 -05:00
Augustin Cavalier
7746364088 SCSI: Use an object_cache for the CCB pool.
Same as for the scatter/gather pool. This also changes CCBs
to use condition variables instead of semaphores for completion,
which means they're now C++-only. A few C files still include
<SCSI.h>, but none use CCBs directly, so this works out fine.

A quick check with a compile benchmark didn't show a performance regression.
2024-11-05 13:43:48 -05:00
Jérôme Duval
67c520afb0 auvia & es1370: let userland access audio buffers
Change-Id: I23873c7e102f0a0ba112f427d72b185887755835
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8521
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-11-05 16:54:59 +00:00
Augustin Cavalier
44d5b89d66 bootloader: Fetch and display the size of the partition, if possible.
Fixes #19202.
2024-11-04 17:15:33 -05:00
Augustin Cavalier
105f00f768 SCSI: Use an object_cache for the scatter/gather pool.
All object_caches use locked memory by default; and in fact
the CACHE_UNLOCKED_PAGES flag isn't even implemented at present.
So the locked_pool system is redundant here.
2024-11-04 16:10:09 -05:00
Augustin Cavalier
02857568c9 kernel/slab: Use final keyword. 2024-11-04 16:07:49 -05:00
Augustin Cavalier
a2694db751 kernel/slab: Check both pressure and min_object_reserve before returning slabs.
Otherwise, if the pressure is low, then we won't properly respect
the min_object_reserve.
2024-11-04 16:07:39 -05:00
Augustin Cavalier
6101e74932 SCSI: Remove unused sim_priv fields.
Whatever "compatibility layer" these were for, nothing in-tree
uses them anymore.
2024-11-04 15:14:47 -05:00
Augustin Cavalier
c16f375b92 SCSI: Minor cleanups. 2024-11-04 15:08:06 -05:00
Augustin Cavalier
53728117bc SCSI: Reset flags on the correct request in submit_autosense.
The passed request is the one triggering the auto-sense, not
the auto-sense itself.

Resetting the "buffered" flag on the wrong request meant that
if a buffer had been used for the triggering request, it would
be leaked, and subsequently we would get KDLs when trying to
unlock memory that wasn't actually locked at all.

Fixes #19218 and related tickets.
2024-11-04 15:07:56 -05:00
Jérôme Duval
7190c0f117 libroot: add tcgetwinsize() and tcsetwinsize() for POSIX.1/2024
Change-Id: I46c0b7b5b9c8e7c74278a6e10e9b83142db21d94
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8520
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-11-04 17:55:40 +00:00
Jérôme Duval
7a4e12b7b8 libroot: add ptsname_r for POSIX.1/2024
Change-Id: I9996ff998b2b52a65a101cf7075a3ffb37220962
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8519
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-11-04 17:55:40 +00:00
Jérôme Duval
8b5cc9cf52 libroot: move memmem for POSIX.1/2024
Change-Id: I1b051586c993cd0e3d43abaa22a3722699f7134e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8517
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-11-04 17:55:40 +00:00
Jérôme Duval
6beff0d163 kernel/libnetwork: add accept4() from POSIX.1/2024
* add SOCK_NONBLOCK and SOCK_CLOEXEC
* also extends the type parameter on socketpair() and socket()

Change-Id: I73570d5bfb57c2da00c1086149c9f07547ba61ce
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8515
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-11-04 17:55:40 +00:00
Jérôme Duval
966076b273 kernel/libroot: add dup3() from POSIX.1-2024
this adds a parameter to the dup2 syscall. Adjust strace.

Change-Id: Icc2d0e054365865d38e5d596843a47c95100ca59
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8514
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-11-04 17:55:40 +00:00
Jérôme Duval
11cd4af6e1 kernel/libroot: add pipe2() from POSIX.1-2024
this adds a parameter to the create_pipe syscall. Adjust strace.

Change-Id: I83e9f039eb28c862458654b66c03e2e21a258822
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8513
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-11-04 17:55:40 +00:00
Jérôme Duval
30179dd326 libroot: add reallocarray() from POSIX.1-2024
Change-Id: I75d469ad9a01eb221ca607830589a7794eff71e8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8512
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-11-04 17:55:40 +00:00
Autocomitter
592a3b6921 Update translations from Pootle 2024-11-02 08:16:29 +00:00
Augustin Cavalier
4ec199c6dc kernel/events: Allow numFDs greater than max FDs in select().
So long as the numFDs is <= FD_SETSIZE, anyway.

Fixes #19220.
2024-11-01 23:42:02 -04:00
Augustin Cavalier
7ee61327ce sys/select.h: Cleanup.
* Always declare FD_SET rather than conditionally. This matches
   the behavior of the glibc, musl, FreeBSD headers.

 * Simplify comments.

 * Leave the custom FD_SETSIZE possibility in place for now. Neither
   glibc nor musl permit this, but FreeBSD still does.
2024-11-01 23:29:22 -04:00
X512
30be30f25d Application: do not delete port owned by app_server
Change-Id: I99dbee8ed7900eda8bf0024e0893449e1b217255
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8516
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-11-01 16:07:04 +00:00
Andrew Lindesay
c65ff9f1e0 HaikuDepot: Factor out localizable text.
This change will factor out the localizable
text into a sub-model from the package model.

Change-Id: I5b6375665f37dd51ae0e16000956894283da2243
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8508
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-10-30 19:10:33 +00:00
Andrew Lindesay
1c4d43a6b0 HaikuDepot: Show default icons early in list
Resolves #19205

Change-Id: I16def80ba004efbea4303f7d74ee87678a959027
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8511
Reviewed-by: Jérôme Duval <jerome.duval@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-10-30 15:51:46 +00:00
Andrew Lindesay
905c332163 HaikuDepot: Installed icon has filled tick
The HaikuDepot application has an icon to show
that it is installed. This has a transparent
tick inside which in this commit is changed to
be a white filled tick.

Change-Id: Ib36c43d9ca63244d8409889e760d0f38e0016f4d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8509
Reviewed-by: humdinger humdinger <humdinger@mailbox.org>
2024-10-28 06:59:50 +00:00
Autocomitter
e21c4321f6 Update translations from Pootle 2024-10-26 08:13:41 +00:00
Andrew Lindesay
55a87be02d HaikuDepot: Fix list packages view
Resolves #19201

Change-Id: Iaba3a84aeb2dfafc3512ffea21bb58c548aa3dee
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8504
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-10-26 01:57:57 +00:00
Oscar Lesta
8ece85d220 configure: let CC default to gcc-x86 on Haiku 32 bits.
Fixes #18935.

Change-Id: I05807d0f38e38b7abaad770fc390d38cbc76f8a5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8503
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-10-25 16:14:43 +00:00
Pascal Abresch
ca9854451d TextControl: Make background of invalid control red
Co-Authored-By: Niklas Poslovski <ni.pos@yandex.com>
Change-Id: Idd6aa8984aab5d8a8aee81bade23946b88f2497e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/8428
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
2024-10-24 09:05:03 +00:00