65990 Commits

Author SHA1 Message Date
Augustin Cavalier
c54549e7fd tests: Wire in L2capClient's Jamfiles. hrev57715 2024-04-26 16:21:19 -04:00
Augustin Cavalier
fd38d7d4c3 btDebug: Fix duplicate "bt: " in CALLED entries. 2024-04-26 16:21:19 -04:00
Augustin Cavalier
692ac8f330 L2CAP: Cleanups and refactors to l2cap_address.
Mostly deleting leftovers from where this was copied from IPv4,
and implementing some missing functionality.

Notable bugfix: is_empty_address was broken due to an incorrect
comparison.
2024-04-26 16:21:19 -04:00
Augustin Cavalier
b9209765f9 NetBufferUtilities: Add NetBufferDeleter.
As the name implies, it's an AutoDeleter for NetBuffers.
2024-04-26 16:21:19 -04:00
Augustin Cavalier
d3192e1006 kernel/util: Adjust includes of VectorMap.
This way it can be included even if "util" isn't in the header search
path.
2024-04-26 16:21:19 -04:00
Jim906
fd8513028f Tracker: deal with race condition in CopyFile
* If a user selects 2 files whose names differ only in case,
  right-drags them to a FAT volume Tracker window as a set, chooses
  the move option from the drop-down, and chooses to continue if an
  alert box appears, the second file in line to be copied will be lost
  (this is consistently reproducible on my system).
* Eliminate the option to continue in this situation, so that the move
  will always be aborted instead of progressing to deletion of the
  second file from the origin directory.

Change-Id: I52197945fe28072eeddcd68e91ce5e7b8534b184
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7623
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57714
2024-04-26 19:44:55 +00:00
Jérôme Duval
85ea044bdb intel_reg: tool to read and write mmio registers
the intel_extreme driver has to be loaded.

Change-Id: I0cf438b1f4ace2ca0eb26cd72a8495721c088d95
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7630
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57713
2024-04-26 08:40:34 +00:00
Máximo Castañeda
ff3b6fb75b Remove unnecessary dependencies on localestub
Introduced in hrev57710, they are the remnants of a previous version of
the change, not needed with the final one.

Change-Id: I03dbb86fd8963897dfed7bd77772e4ac97a8e739
hrev57712
2024-04-25 16:43:01 +02:00
Jérôme Duval
9673f7b8bf ramfs: honor the O_DIRECTORY flag on open()
by returning B_NOT_A_DIRECTORY on non-directory nodes, fix #18896.
* like BFS, opening a directory read-write returns B_IS_A_DIRECTORY, instead of
switching read-only.
* fill st_blocks.

Change-Id: I706dc13209299b95be3da04ae19a6a9397b50c37
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7629
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57711
2024-04-24 19:56:29 +00:00
Máximo Castañeda
28b96e105f IK, libshared: fix string formatting of size and rate
- Out of bounds index for values that would use a bigger unit than
  available.
- Jumping from bytes to MiB, without using KiB despite being better.
- Wrong catalog key for base units.
- BSizeColumn showing incorrect values for sizes less than 1 MiB.
- Extraction of catalog messages for BSizeColumn.

Fixes: #18892
Change-Id: Ib36a30a29b425654ab569537b11c8c56093ddc2e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7626
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57710
2024-04-24 19:29:03 +00:00
Autocomitter
67be23fafe Update translations from Pootle hrev57709 2024-04-20 08:19:10 +00:00
Máximo Castañeda
a193d1e157 Tracker: remove spurious enum value
Introduced in 90510b4af9d1d88bf75ff403b3522dc37dc89c5f with no use. As
those values are the page indices of the list in the settings window,
adding the later pages fail.

Fixes: #18890
Change-Id: I9b28f8b279163ea1b54e5659c95c2fd80bb88ed2
hrev57708
2024-04-18 17:28:43 +02:00
Alexander von Gluck
dd2a1e350b 3rdparty/vagrant: drop vagrant
* Honestly, Vagrant seems pretty dead at this point.
* We didn't see many users of this.
* Hashicorp has been doing weird license things too
  with BSL.

Change-Id: I2932a28fc6316266925e434c02bdd117c874d838
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7622
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57707
2024-04-16 20:18:07 +00:00
priyanshu-gupta07
d68df0863d xfs: update the Short-Attributes Class.
Update: OnDisk format and manage endianness for the ShortAttribute Class.A separate private function to Swap endianness is implemented inside the Class

Change-Id: I348d6c0ac128fe56d63a16e4f10ff90708c6a7a4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7582
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>
hrev57706
2024-04-16 10:38:33 +00:00
PulkoMandy
5ea01a50c2 cmedia: enable -Werror
Errors are now enabled for all audio drivers.

Change-Id: Ia4e986f0ed8965376c3bbefc3d9f04bcd68ad561
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7621
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alexander von Gluck <alex@terarocket.io>
hrev57705
2024-04-15 16:02:49 +00:00
PulkoMandy
99351a72d3 sb16: enable -Werror
Change-Id: I990362cd764e3a219e5022a62264b76be4cdf80c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7620
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alexander von Gluck <alex@terarocket.io>
2024-04-15 16:02:49 +00:00
PulkoMandy
98afcfa72a geode audio: fix almost all warnings, enable -Werror
The compiler complains about implicit declaration of free and calloc
despite stdlib.h being included. I think it's because of -ffreestanding
being used on the command line?

Change-Id: I57c3899e5034d1c2ee9cb6c1ed4c92aa818b53ea
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7619
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alexander von Gluck <alex@terarocket.io>
2024-04-15 16:02:49 +00:00
PulkoMandy
e7e9e58fbd emuxki: use shared util.c instead of a separate copy
Change-Id: I1ba248d442e558565e41472a6daab279ee8ee8af
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7618
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alexander von Gluck <alex@terarocket.io>
2024-04-15 16:02:49 +00:00
PulkoMandy
d3503944f0 echo: actually fix warnings and enable -Werror
The driver Jamfile had a "-w" added to the compiler command line to
disable all warnings.

Use the generic util.c/h instead of having a separate copy.

Change-Id: I74e325850d573e75d652658748426c9ae353c6e7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7617
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alexander von Gluck <alex@terarocket.io>
2024-04-15 16:02:49 +00:00
PulkoMandy
beb5d39776 audio drivers: move util.{c,h} to generic directory
Change-Id: Ied0afa5ad9f66ee6f2249715d66fb62e6206d137
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7607
Reviewed-by: Alexander von Gluck <alex@terarocket.io>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-04-15 16:02:49 +00:00
PulkoMandy
8a3e82a04d ich, ichaudio: remove
These have never been included in the Haiku build as far as I can see.
All the soundcards they support are already handled in the auich dirver.
All the IDE driver that ichaudio claims to support, I'm not sure why they
are in an audio driver.

One of them was written for BeOS and never updated for Haiku
multi_audio, and the other was apparently some experiment that didn't
get anywhere in the end. To avoid confusion, let's keep only one driver.

Change-Id: I5bf48e7dd2c5340e84a1ab4eb3e3b079103b7988
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7604
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-04-15 16:02:49 +00:00
PulkoMandy
f5e5891bbb es1370: enable -Werror
- use shared (updated) util.c for memory allocation
- disable functions that are currently not used (ac97 suopport)

Untested, I don't have the hardware.

Change-Id: I9c406e46af94dfc213cfa258c5f375da3c0c719d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7603
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alexander von Gluck <alex@terarocket.io>
2024-04-15 16:02:49 +00:00
Muhamed Emad
464efaf403 auvia: enable -Werror, style fixes
Move util.c from auich (the most up to date version) to the parent
directory of ac97. Use it also for auvia. This means changing several
physical addresses to use phys_addr_t instead of pointers, and declaring
buffers allocated by alloc_mem to be user-accessible or not.

Untested, I don't have the hardware.

Change-Id: I2ababc713384cbf34174fbcecfb3595547a1fd97
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7602
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alexander von Gluck <alex@terarocket.io>
2024-04-15 16:02:49 +00:00
PulkoMandy
d6e543c388 emuxki: enable Werror
Change-Id: I6ed7bfbe157bee86a8ce1dabc5829b8825e43f99
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7609
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-04-15 16:02:49 +00:00
Muhamed Emad
af8ec5e1b4 echo: enable Werror
Part of #9460

* If there is an operation between signed and unsigned int, the unsigned is changed to signed one,
  except for some operations (if before the operation the signed one is checked to be less than
  zero or not, then the signed one get cast to be unsigned (errors due to sign error when casting
  are impossible))
* When doing operations on pointers, integers get cast to uintptr_t type

Untested: I don't have the hardware.

Change-Id: I6a959c004862e055ee99f6f2ad5ca3397b32cdd2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7484
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-04-15 16:02:49 +00:00
PulkoMandy
fe640d9339 pcmcia: fix compilation warnings and errors
Needed for the echo indigo soundcard driver build.

IRQ is used as a field name in pmcia/cs.h. The IRQ() macro should only
be used with parameters. So we can avoid the use of IRQ in cs.h being
accidentally replaced by the macro.

Change-Id: Ib10f3c5148cfb7c87a0b258a95a590778b6e5cb4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7608
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-04-15 16:02:49 +00:00
Muhamed Emad
6f52406a73 auich: Fix warnings, enable -Werror
Change-Id: I03a686d124444d60b92b34c1b7a10d73c872c21d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7606
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-04-15 16:02:49 +00:00
Alexander von Gluck
c237c4ce59 finddir: Add SYSTEM_DESKBAR_DIRECTORY
* Resolves #18883

Change-Id: Ib971272319d55b37fa06d6874f257c8080bdab8f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7611
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Reviewed-by: Alexander von Gluck <alex@terarocket.io>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57704
2024-04-13 14:03:35 +00:00
Autocomitter
1778920aff Update translations from Pootle hrev57703 2024-04-13 08:19:37 +00:00
Jérôme Duval
51bce128f7 tcp: don't allow read on listening sockets
fix #18884

Change-Id: If4e337316ea4faa2f00fa73295c57e93de0a2cbc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7616
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Rene Gollent <rene@gollent.com>
hrev57702
2024-04-12 20:09:31 +00:00
Augustin Cavalier
979a0bc487 Appearance: Hide most colors by default and compute them automatically.
In the new "automatic" mode, the number of displayed colors
is just 3, as opposed to the full 38. Much more manageable!

The HSL routines added in this commit were derived from
https://gist.github.com/ciembor/1494530 which is itself derived
from the Wikipedia page describing HSL/HSV.

Part of #15543 and #11636.

Change-Id: I230a358d18c379fb0673162e0b3cbdb8d1b8d84e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7479
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57701
2024-04-11 17:38:45 +00:00
Muhamed Emad
9b655000bc hda audio: Enable -Werror
There seem to be a gcc2 bug resulting in bitfields of uint32 type being cast to int.
The bitfield is mostly not needed here, since the fields are 8, 16 or 32
bits, so just use the appropriate types.

Change-Id: Ie4297db8bcda8ca0937c7f55915b318a1f4f6e55
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7599
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57700
2024-04-06 20:35:18 +00:00
Adrien Destugues
4d058c90a6 null_audio: fix warnings, enable -Werror
Change-Id: I83630f697cfb3d12bf8bea35b24dbdfd93b38ef1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7595
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2024-04-06 20:35:18 +00:00
Adrien Destugues
fa2e76a142 audio drivers: enable Werror for drivers that have no warnings
Change-Id: I8b1721da5337e5368e1ecb19285ac29869c9d41f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7594
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
2024-04-06 20:35:18 +00:00
Adrien Destugues
aa9d729ebf virtio_audio: add to build, enable Werror, fix build
Change-Id: I52f1ed9cd2a967d7fecf866aec7cd390ae4885b8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7593
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
2024-04-06 20:35:18 +00:00
Máximo Castañeda
11ec18db9c ffmpeg: return AVERROR_EOF instead of 0 on stream end
Fixes: #18877
Change-Id: I1ce8b14089570fa42526819b8cb961a45998020b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7601
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
hrev57699
2024-04-06 11:28:12 +00:00
Autocomitter
fb07166f52 Update translations from Pootle hrev57698 2024-04-06 08:14:19 +00:00
InfiniteVerma
44e09f07ce fs_shell: Fix cat on symlink file
Changes mirror those in kernel VFS.

Change-Id: I47edf548d460d3932857254ac9730fb2161f3250
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7584
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
hrev57697
2024-04-05 19:30:18 +00:00
Augustin Cavalier
2d8b193455 quicktour: Fix syntax error.
Fixes #18871.
hrev57696
2024-04-05 15:27:32 -04:00
Augustin Cavalier
d919c744b2 src/tools: Remove duplicate copy of MsgSpy.
There is another (and more recently updated) one
in src/tests, which is also wired in to the build
system (which this one was not.)
hrev57695
2024-04-05 15:25:21 -04:00
Augustin Cavalier
c92708ab72 Tracker: Lock the menu looper before getting its font.
Most of the time when this function is invoked,
the menu is not yet attached to a window, and so
there is no looper to lock. But some of the time,
there is, leading to a crash if we don't lock it.

Fixes #18875.
hrev57694
2024-04-05 15:22:49 -04:00
Augustin Cavalier
aa977a0227 ffmpeg: Fix fCodecContext initialization and usage.
* Don't allocate a context up front if we're
   just going to free it anyway.

 * Actually set the various flags originally set
   in the constructor in the place where the context
   is actually allocated.

 * Remove now-duplicate thread_count assignment.
hrev57693
2024-04-05 15:07:22 -04:00
Diego Roux
96e8469863 [GSoC '24]: wip: virtio_audio: initial basic driver.
This commit in no form is intended to provide a working/functional
driver, but rather as a starting base and minimal code contribution
for GSoC.

This driver can only identify if the current device is a Sound
VirtIO device.

Change-Id: I718bb87c768dd84ff2be77a14e839f94955671fc
Signed-off-by: Diego Roux <diegoroux04@protonmail.com>
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7557
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
hrev57692
2024-04-05 09:04:51 +00:00
Daniel Martin
28d2323a4b screen: use B_COUNT_OF(), no functional changes
Change-Id: I827da35d9c04ed3d4884d477a1904f1ff4a4aad1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7588
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57691
2024-04-03 23:43:11 +00:00
Sylvain78
ad441271c5 Network test : unit test for receiving from unbound unix socket.
Change-Id: If5c77feedf71161be00833711bda6ba41b0b4357
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7549
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>
hrev57690
2024-04-03 10:53:18 +00:00
PulkoMandy
57ad6e6f34 BFilePanel: fix items from favorites menu not working
Regression from hrev57294.

The code introduced there relies on the state of the "open" button being
updated from a previous selection in the file panel. But that is no the
case if the B_REFS_RECEIVED message does not come from the file panel
(in this case it comes directly from the favorites menu).

Fixes #18627.

Change-Id: Ic12b1989a4fbd631ce048aa6286d4d7c60ab1d99
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7577
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
hrev57689
2024-04-02 19:44:53 +00:00
PulkoMandy
1f09e28c68 ffmpeg: enable multi-threaded decoding
Fixes #18874.

Change-Id: I24c74080fcc8280796af64624e0cdbf96cd57dc7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7586
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
hrev57688
2024-04-02 18:55:22 +00:00
priyanshu-gupta07
641b9f704b xfs: Inode Structure updated
background: Inodes structure needs to be updated in the same on Disk format for uniforming the code.

Inode structure is Updated to the OnDisk format same as that of Extent Header and the relative Changes are made to Inode class.

Change-Id: I1e89c514a7abe29479b152c6b038ff8b7c94abce
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7552
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>
hrev57687
2024-04-02 17:39:58 +00:00
PulkoMandy
b0674032b5 AVCodecDecoder: remove legacy ffmpeg support
Change-Id: I103ab2d7063dca33f2ef9c04202dd1699f871196
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7564
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
hrev57686
2024-04-02 14:58:48 +00:00
PulkoMandy
3281146c1f ffmpeg: implement equivalent of avcodec_guess_frame_rate
The frame rate in the codec context isn't always a frame frate in the
video sense. It may be a smaller time unit used as a base for the frame
presentation timestamps.

I did not initially notice this because we set it to a default value
from the AVFormat passed input encoded_video format, but it is erased
after reading the first frame.

Fixes #18797.

Change-Id: I6157ae9942f6d5ca32aad7bac012df0822659a21
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7563
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
2024-04-02 14:58:48 +00:00