Commit Graph

65812 Commits

Author SHA1 Message Date
InfiniteVerma
c293445163 fs_shell: Add touch command.
Tested with btrfs and xfs but since create isn't supported yet in either, command fails with error: "Read-only file system".

Change-Id: Ice48680d289261a43e82a4189a2bc5619d4f5d9c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7371
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2024-02-07 08:06:46 +00:00
Emir SARI
fed199a7be Terminal: use multiplication sign instead of x
Change-Id: I800b765b8820d9ab48af735fb419207bf0e156bc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7374
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-02-06 17:24:29 +00:00
Emir SARI
fce034d2ce notification_server: Use automatic percent formatting
This uses automatic percent formatting for the BStatusBar
progress text, instead of appending the sign manually.

Change-Id: I435220dd774822b60e376972a0f379a0e2b7359e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7375
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-02-06 17:24:13 +00:00
Oscar Lesta
3e8df064cd usb_rndis: fix minor copy/paste and typo errors.
Change-Id: Ie75b763ec241a12bad107e1b48f89079c462c248
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7396
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-02-05 07:54:24 +00:00
Trung Nguyen
4331338685 headers/os: Add name to spacing enum.
The `enum` containing `B_USE_DEFAULT_SPACING` and other members are
regularly used in default arguments.

Adding the name to this `enum` makes the header more generator-friendly
(see #6716).

Change-Id: I6676d2329bdb2152ccb37615345b97ba35f70563
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7377
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
2024-02-04 08:13:53 +00:00
Máximo Castañeda
1ad4f095e9 FileTypes ApplicationTypesWindow: fix UI updates
Fixes #5050 and the info staying empty after selecting a just
deselected item.

Change-Id: I519f7b260658e8e5a1671b854b0980d2fcde8352
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7370
Reviewed-by: Máximo Castañeda <antiswen@yahoo.es>
2024-02-03 20:41:25 +00:00
Augustin Cavalier
7f07b9f63d usb_audio: Disable for 2.0 devices.
It does not seem to work and causes high CPU usage.
2024-02-03 09:56:38 -05:00
Augustin Cavalier
34d116cc34 usb_audio: Fix -Wmisleading-indentation. 2024-02-03 09:56:14 -05:00
Jérôme Duval
a1bc100a78 listusb: fix MaxPacketSize, display length
audio: fix zero divide, add missing newline
Change-Id: Ia7d0ae6e403938291471185b14e07dc3e0f90ef4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7369
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-02-03 14:52:45 +00:00
Autocomitter
6ce1856158 Update translations from Pootle 2024-02-03 08:18:10 +00:00
Anant Verma
084e24d0bf docs/develop: minor improvements in the fs section
Change-Id: Ie94dbc1339facbee59080d85b6938f2c160eb05e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7368
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-02-02 19:11:31 +00:00
PulkoMandy
a4ae49d573 Package server: turn down logging a bit.
This prints two quite long lists of packages that are mixed up with
other logs, making them annoying to read. It is also not very useful now
that the package server is working quite reliably.

Change-Id: Ibf9d5fc3eadc5cef42a78aea831e0a035e248de3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7366
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-02-01 21:31:29 +00:00
Oscar Lesta
ed6d7787bf acpi_ac: fix driver build.
Change-Id: Ie698dfdb402bd2eb1ed24c0f760458782708eb3e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7365
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-02-01 21:31:21 +00:00
PulkoMandy
e96dd82392 Screen preferences: some ui fixes
- When there is no refresh rate info available, disable the menu rather
  than showing "nan Hz"
- Rework the screen info tooltip generation, to avoid a confusing %s
  that was mistakenly moved to the end of the string in the French
  translation.

Change-Id: I4c29863a30c8c761021be57f8a2e2010709b16d5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7364
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-02-01 21:19:19 +00:00
X512
e925863d95 kernel/DPC: allow adding callback to queue if already added (will do nothing)
It caused DPC list corruption when adding already added callback before
this change.

Change-Id: I81928795f91c6cf46fe3be4a8a042e07b9203161
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7363
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-02-01 14:42:14 +00:00
Augustin Cavalier
123fa38638 usb_audio: Add to regular image.
Requires multiple media server restarts to switch
outputs to it, but that's a known media services
problem (#12777 and #12776.)

Input doesn't work quite right with the hardware
I've been testing with, but that's also a known
problem it seems (#9951). Meanwhile, output
seems to work pretty well, once it gets going.
2024-01-31 23:05:43 -05:00
Augustin Cavalier
3a9063ba08 usb_audio: Increase default buffer size to 2048 samples.
Ultimately this is just a minimum, in reality
we round up to the nearest page size and use
that to determine how many packets we queue
at once.
2024-01-31 22:44:13 -05:00
Augustin Cavalier
62ec294959 XHCI: Don't double-report completion status for isochronous transfers. 2024-01-31 14:49:00 -05:00
Augustin Cavalier
b785b0cf1c usb_audio: Report callback errors to syslog.
That way they don't just get lost.
2024-01-31 14:39:33 -05:00
Augustin Cavalier
f4e363ee29 XHCI: Report ring overrun/underrun (isochronous errors) back to drivers.
Since transfer status is reported via the packet descriptors, we
can report the endpoint status through the callback status.

Reduces syslog spam when using the USB audio driver.
2024-01-31 14:36:52 -05:00
Augustin Cavalier
be3ce6d7e9 USB: Make "buffer error" reporting consistent.
This error means that the controller failed to read or write data
to/from system memory fast enough. As a result, we should report it
as READ_ERROR/WRITE_ERROR, rather than something that sounds like
an error with the device itself.

Then, make BABBLE reporting consistent: this is a data overrun/underrun
of the device itself, not the buffers passed to the controller.
This then leaves B_DEV_FIFO_OVERRUN/UNDERRUN unused, and thus usable
for reporting ring overrun/underrun on isochronous transfers.

The API documentation already described DATA_OVERRUN/UNDERRUN basically
like they were babble errors, while FIFO_OVERRUN/UNDERRUN are
currently described as "internal errors" at present. No driver actually
checked for these.
2024-01-31 13:55:40 -05:00
Augustin Cavalier
22f0158a25 XHCI: Move error status conversion to its own function and reuse it.
Also add COMP_MISSED_SERVICE -> B_DEV_TOO_LATE while at it.
2024-01-31 13:47:34 -05:00
Jérôme Duval
4a6a465c80 intel_extreme: for DDI, map the ddc pin to the GPIO
add port G for Gen12

Change-Id: I70bba2d6d2ec0fbad8bdbec14412ea982690d563
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5626
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-01-31 18:32:58 +00:00
Augustin Cavalier
dbc23cdfb7 userlandfs: Allocate requests in-kernel as kernel-only.
Things still seem to work, and may fix some SMAP
violations.
2024-01-30 21:44:02 -05:00
Augustin Cavalier
41a1732deb userlandfs: Disable use of the file cache in FUSE for now.
It still needs more work, it appears.

Fixes #18746.
2024-01-30 21:43:26 -05:00
Augustin Cavalier
d385686cbf userlandfs: Make DoIO handle IO smaller than the request size properly.
When _InternalIO returns with "bytes" smaller than the
original request, this isn't an error (or something we
should retry), but just something we need to pass on.

Fixes part of #18746. However, even after this commit,
file reads don't work quite right: reading past the end
of a file returns errors instead of just no data.
2024-01-30 21:43:00 -05:00
Joachim Mairböck
cbe17a5f23 haiku_extras: add provides for TV and acpi_call
Also fix the broken DeskBar symlink for TV.

Change-Id: I23a9cc5cf3e3d0c6ae1608a3b96a37e9a8c431a2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7362
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-01-30 21:19:57 +00:00
Augustin Cavalier
ed574cce93 TTY: Return success on partial writes.
Otherwise the calling program will think that
no part of the write succeeded, when in fact
it did.

tty_read() already did this correctly. Not sure
how this wasn't uncovered previously.

Fixes #18447.
2024-01-30 16:01:21 -05:00
Augustin Cavalier
ef1427bb58 PowerStatus: Add logic to automatically install in Deskbar.
Modeled after NetworkStatus. Also add it to
default_deskbar_items.sh.

Fixes #18748.
2024-01-30 14:44:28 -05:00
Augustin Cavalier
6a47944773 kernel/condition_variable: Add another check of the wait status after _RemoveFromVariable.
If it was set, we want to return it.
2024-01-30 14:22:54 -05:00
Augustin Cavalier
a162e7af99 desklink: Size custom items based on Deskbar's current icon size.
Fixes #18757.
2024-01-30 14:18:29 -05:00
Augustin Cavalier
b2720cd3d9 BScrollView: Don't adjust other dimension if it's negative.
Some non-layout applications start out with negative
view dimensions. Making them positive too early on can
break the view's appearance, it seems.

Fixes #18690.
2024-01-30 13:52:56 -05:00
Augustin Cavalier
230de61bd6 registrar: Truncate the recent apps/entries lists to 100 items.
The constant can easily be changed if needed.

Fixes #18737.
2024-01-30 13:44:45 -05:00
Augustin Cavalier
4fec81750d TCP: Refactor sending logic.
* Break segment setup out into its own method.

 * Break the actual sending logic out into its own method.
  - While at it, remove some old/obsolete comments and
    rearrange some of the logic to match.

 * Separate the send-pure-ACK and send-data methods.
  - This way, the "force" parameters will act differently,
    specifying "force" to SendAcknowledge() may generate
    a duplicate ACK, while to SendQueued() it will either
    send data smaller than a segment size, or do nothing.

Functional changes should be minor, and the code
meanwhile should be much easier to read.

Change-Id: I1e14b9a1e3b7c8b2d3bf8ae30f1369d8c9f662a4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7361
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-01-30 17:34:27 +00:00
Augustin Cavalier
d2f65e76ee OHCI: Remove unused variable following previous commit. 2024-01-30 00:43:57 -05:00
Augustin Cavalier
8c458fc42b USB: Initialize packet descriptors inside the stack.
Allows deletion of generic code from bus drivers.
2024-01-30 00:39:47 -05:00
Augustin Cavalier
02f5db9104 usb_audio: Always USB_ISO_ASAP rather than scheduling transfers by frame.
Seems to make things work much better.
2024-01-30 00:16:07 -05:00
Augustin Cavalier
005ba2b47d usb_audio: Do not use any timeout in _MultiBufferExchange.
The other multi-audio drivers do likewise.
2024-01-30 00:14:49 -05:00
Augustin Cavalier
1f6757e31f XHCI: Overhaul isochronous transfer handling.
* Each packet needs to be its own TD.

 * All transfers are scheduled in frames, not microframes.

Combined with a few fixes to the USB audio driver, this seems
to get things working much better than before.
2024-01-30 00:14:23 -05:00
Augustin Cavalier
d49d21bba0 graphics/virtio: Disable tracing.
Reduces syslog spam.
2024-01-29 22:52:37 -05:00
Augustin Cavalier
6eaaa52128 usb_disk: Cancel queued transfers on the interrupt endpoint in removed().
May help with some KDLs.
2024-01-29 22:06:34 -05:00
Augustin Cavalier
5c2c391d20 TCP: Remove overridden default buffer size.
The default of 65535 now seems to work OK,
following previous commits.
2024-01-29 16:06:25 -05:00
Augustin Cavalier
c4f37b0017 TCP: Initiate a send before waiting in SendData().
Otherwise, we will sit around here waiting forever,
with the send queue full but nothing actually sending
data.
2024-01-29 16:05:54 -05:00
Augustin Cavalier
0382176581 IPv4: Overall MTU is 65535 (0xFFFF).
If the route supports a greater MTU, we need to
clamp it.

The loopback reports an MTU greater by one byte
(65536), and if we don't clamp it here, TCP will
try to send packets actually that large (and fail.)
2024-01-29 16:05:11 -05:00
Máximo Castañeda
3c51bab74e runtime_loader: remove unnecessary loop
Left behind when we moved from changing only /usr/bin/env to anything
under /usr/bin.

Change-Id: I9ceba844e18deda5f3d395fc6b5df84a1a8ce363
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7360
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-01-29 18:58:44 +00:00
Máximo Castañeda
621200ebbd BOutlineListView: fix ItemUnderAt and accept NULL as superitem
ItemUnderAt was returning items that were not under the superitem (this
was fixed for EachItemUnder in hrev52210).
Make a NULL superitem mean the parent of the topmost items. Despite not
being explicitly documented in the BeBook, that's how BeOS works, the
MenuWorld test app uses it and, well, it's handy.

Change-Id: I2551e8ce874a6238c5e5fb1eb742e68e62d3928a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7359
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-01-29 18:58:03 +00:00
Máximo Castañeda
787179956b tools/elfsymbolpatcher: fix format warnings
Change-Id: I3e7d2feff9e8bfae981d2f16f95adb835870cdd5
2024-01-29 19:30:26 +01:00
Máximo Castañeda
d579eb9efe HaikuBook: minor fixes
Fix some copy-pasta and strange grammar.
Remove a note that seems unnecessary in context and easy to misinterpret
out of context.

Change-Id: If1ce26b293c8098c260a9697fb0ef0611a4958c4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7358
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-01-29 18:15:16 +00:00
Trung Nguyen
ba9a9ce167 headers/os: Add missing Interface Kit includes
Adds headers that have not been directly or indirectly included by
the "InterfaceKit.h" master include.

Change-Id: Id163e0e8db54bc553593819801e0e854cde78fa3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7376
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@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-01-28 20:36:07 +00:00
PulkoMandy
0199d1f39b ffmpeg: remove interlaced_frame
Change-Id: I870bea36c6180e46ae3d63fe407126606bdda3c1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7254
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2024-01-28 16:14:21 +00:00