Commit Graph

64593 Commits

Author SHA1 Message Date
Humdinger
cba5ecbbb4 Thumbnail: fix off-by-one of Height/Width attribute
Fixes #18128

Change-Id: I3abe72552657517acece101a1653b2f013b4f23f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5881
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit d3811d0036)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5855
2022-12-08 20:39:58 +00:00
xoblite
6bfa69ea26 Updated the PCI and USB ID lists to the latest versions.
From their respective GitHub repositories:
https://raw.githubusercontent.com/usbids/usbids/master/usb.ids (version 2022.05.20)
https://raw.githubusercontent.com/pciutils/pciids/master/pci.ids (version 2022.12.04)
Change-Id: I9348da6c4dca920e85ea607e8e6c4cf5c2cc41b3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5874
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 6dd06f66d0)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5854
2022-12-07 23:17:37 +00:00
Augustin Cavalier
59e09f7beb libroot: Fix open flags in shm_open.
We need O_CLOEXEC here, not FD_CLOEXEC (which is equal to 0x1, which
in openflags is O_WRONLY and thus leads to the conflicts caught by
the previous commit.)

Fixes haikuports/haikuports#7524.
2022-12-07 17:57:40 -05:00
Augustin Cavalier
9bc250e28d kernel/vfs: Validate that only one of O_RDWR or O_WRONLY is used, if any.
Otherwise we will have open modes that could have both and lead to
confusion in code that presumes only one will be set.

This catches the cause of some ported software (e.g. Wayland layer)
misbehaving with ramfs mounted in /var/shared_memory: the ramfs does not
properly handle both flags set, and due to another bug, they are for
shm_open'ed files.
2022-12-07 17:56:27 -05:00
X512
2c6cf678e6 kernel: enable ramfs build and automount to shared_memory directory
This will allow proper operation of POSIX SHM API (shm_open etc.).
Now memory files are stored fully in memory and do not affect disk
storage (except swap if enabled).

Change-Id: Iae3ce1afa968df72e82198e598a273cbf7cb0269
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5802
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
(cherry picked from commit bf2786efae)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5851
2022-12-01 02:09:54 +00:00
Augustin Cavalier
1b2c521e91 ramfs: Fix SMAP violations in DataContainer.
Change-Id: Id5e1ad86f2b18b210326c83c873a2f11decab9c3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5850
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-12-01 02:08:55 +00:00
Augustin Cavalier
41b1ec3e58 ramfs: Switch from an embedded to a separately allocated small buffer.
This saves 16 bytes in the class vs. the old size, but more importantly
allows us to avoid allocating VMCaches and wasting an entire page for
any attribute larger than 32 bytes; instead, attributes can be up to
1024 bytes before we allocate a full page for them.

Unfortunately small files cannot take advantage of this optimization
right now as the cache is always used for them. I added a TODO about
this.
(cherry picked from commit 396e3dfb9c)

Change-Id: I6c939565dd577cb86aeb7b518a219da01cb313a1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5849
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-12-01 01:28:54 +00:00
Augustin Cavalier
fb7aa63d18 ramfs: Volume->WriteLock but do not unlock in unmount.
As, of course, we are deleting it. This problem was obscured by the
one fixed by the previous commit.
(cherry picked from commit 4e742d81ab)

Change-Id: I071b6356d85fb4e834125fa4a453b8ebf206510a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5848
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-30 05:26:46 +00:00
Augustin Cavalier
6c771e473a ramfs: Correct "reference" (link) counting of Node objects.
* RemoveReference() could delete us immediately, thus we must do
   all important work before invoking it.

 * Add assertions about fRefCount and remove a spurious add.

 * Do not use Link but PublishVNode on the root, as we manually manage
   when this object is published/deleted.

Fixes #18032.
(cherry picked from commit 605ecac1ee)

Change-Id: I696e652bc4094baacb5336b1180d8b90f3f0f864
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5847
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-30 05:26:28 +00:00
Augustin Cavalier
11956b660f ramfs: Correct usage of Nodes in Entry.
* We do not want to set fNode in the constructor but let the invocation
   of Link() take care of doing so instead.

 * Link/Unlink manipulate linked-lists. Thus it is dangerous to use them
   in tandem on the same Node object. Add a check for this.

 * Minor cleanup.
(cherry picked from commit 6a8bb0562e)

Change-Id: Iec3c8596d4b8fa24be94247a1f29b9cbdf9909fe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5846
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-30 05:25:56 +00:00
Augustin Cavalier
c120e44ab0 ramfs: Acquire write lock before unmounting.
Might help with #18032.
(cherry picked from commit 05fdda96b7)

Change-Id: I8be5c88d3749d19984de5458973c88a0f47afb71
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5845
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-30 04:06:42 +00:00
Augustin Cavalier
1306b294db ramfs: Prevent creating files or directories named "." and "..".
Fixes #18031.
(cherry picked from commit d48f4fd05f)

Change-Id: I0ba9f12874cea734818c8b6a7b97614bf9c2955e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5844
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-30 01:14:11 +00:00
Jérôme Duval
12d5284dcc random: always use the PRNG, and use entropy sources to feed it
remove the yarrow module. the hardware modules can push entropy with queue_randomness().
virtio_rng will now push entropy every 300 seconds.
helps with #14937

Change-Id: If76c5deabf61dc616a0e051332f44b89deb6b8a1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5824
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 34e9243872)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5843
2022-11-29 23:16:21 +00:00
Augustin Cavalier
a261ec2dc9 libroot: Adjust malloc_hoard2 to use max_align_t when available.
Spotted while investigating #18111, but likely does not fix it.
This matches the existing behavior of the runtime_loader heap.
(cherry picked from commit 5f40b96c35)

Change-Id: I85a60309585ffeec8ab558b899a7782e8da5a413
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5841
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-29 21:16:23 +00:00
Augustin Cavalier
2f119b8217 Tracker: Do not try to change to an invalid or unset icon size.
This can happen if we are already at the largest or smallest size.

Fixes #18066.
2022-11-28 17:27:18 -05:00
Máximo Castañeda
a33e6fc51d WebPositive: save the cookie jar in the user settings directory also for the curl backend
The files and formats are different for libnetservices and curl
backends, but now they are under the same directory whatever the
installed haikuwebkit version uses.

Change-Id: Iab87d5fd27ebea1fa0a8967a9802dfa2fb11240a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5835
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 753349fb2e)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5839
2022-11-28 19:49:30 +00:00
Jérôme Duval
52de73712a libroot/glibc: apply upstream fix for _itoa: "Make sure at least a zero is emitted."
6cae39579b
fix #18098
Change-Id: I1b29f8cf723bf0731ed0be3a2ab3d2b152af449c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5833
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
(cherry picked from commit 17ec9b7f4e)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5836
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-27 19:54:23 +00:00
Jérôme Duval
b782f25f6e tty: let processes open a slave tty again, ignoring O_NOCTTY.
they just won't control the tty.
fixes https://github.com/haikuports/haikuports/issues/7457

Change-Id: I8968b620a39c3050f6498faaa95c25aaed86e5c1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5832
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 685e124c99)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5838
2022-11-27 19:54:04 +00:00
Jérôme Duval
3cf6e0dc24 silicon_image_3112: use kernel read/write protection for map_physical_memory
Change-Id: I04655afb3f552e5919923ab96f96f32d0f8db6b9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5834
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
(cherry picked from commit bce7dc883a)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5837
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-27 19:53:17 +00:00
Augustin Cavalier
eacbc91433 New installer logo, courtesy of Humdinger. 2022-11-22 12:19:07 -05:00
Autocomitter
da709ed6f9 Update translations from Pootle 2022-11-20 20:43:56 +00:00
Autocomitter
7fc3c24fcc Update translations from Pootle 2022-11-19 08:13:27 +00:00
Augustin Cavalier
e0ee00b723 FAT: Limit volume names to 11 characters, not 10.
The rest of the code does a memcpy(..., ..., min(11, strlen(...))
so clearly no NULL terminator is needed and 11 is the real limit.

Should fix #18074.

Change-Id: I6aea166899eab2bab9511ca52981ccc9172b6c17
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5823
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
(cherry picked from commit 0843085384)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5795
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-19 01:59:06 +00:00
Máximo Castañeda
16c04c68e2 BAlert: invalidate icon view on icon change
Invalidating the layout may not be enough for an update.

Fixes: #18069
Change-Id: I93f6b0feb043c7f317a9ff1e7af11b2047fc7cd5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5821
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 5728bdf606)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5794
2022-11-17 21:39:34 +00:00
Jérôme Duval
4df79935e5 usb: fix references on the module B_PCI_X86_MODULE_NAME
the dependency is optional, only the device modules depend on it.
should fix #18075

Change-Id: Ifddb9814ff5ff59ee7d80d06b14ba9fded04cd56
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5822
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit d2875e7b28)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5793
2022-11-17 21:17:43 +00:00
Jérôme Duval
f78374ec16 xhci: wait a bit after starting the controller
without this, my swift SF114-34 doesn't find the boot partition when booting on xhci, while it works on another port.

Change-Id: I141aa1497582860500991c44cdea81cff55756ed
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5792
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-17 05:51:40 +00:00
Rudolf Cornelissen
fa1d24918f nvidia gfx: removed a syslog message as it was spamming..
Change-Id: Idbc0bd1fcd1101f88b506c2125b31726f001822e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5820
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-15 20:32:05 +00:00
Rudolf Cornelissen
d11abdf76a nvidia gfx: fixed SMAP faults, added 2 G98 IDs to kerneldriver.
Change-Id: I3592bec014a94873eb044c35e4e041f64fbb6b3d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5819
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-15 20:32:05 +00:00
Alexander von Gluck IV
23de679db5 release: Bump source release to 1.4GiB
* The if statements now "make sense"
* 1.4 GiB release images easily fit a "mini single layer DVD"
* Our source build is around 1.1GiB
* 200 MiB of "space" in our read-only image allows
  a little room for live-media shenanigans
* Empty space is compressed anyway in release zip files

Change-Id: I5ad017e3f80d5977ca9604f5bf200684796fc7b9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5791
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-14 01:38:32 +00:00
Alexander von Gluck IV
741fcc921f release: Bump image size to 800MiB. Sorry CD-R
Change-Id: Ib21a3fb8c26a25d84b0b3dd298c22618a53cb7d1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5790
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2022-11-13 23:53:12 +00:00
Augustin Cavalier
d5bb8bb6e3 HaikuPorts/x86_gcc2: Synchronize, and adjust TIFFTranslator to match.
(cherry picked from commit 75fa60f74a)

Change-Id: If6fa12c461dd0c525d9345b7c2819dc86218c03d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5789
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-13 06:02:37 +00:00
Augustin Cavalier
687f5f75fd HaikuPorts/x86_64: Synchronize.
* Userguide now provided from HaikuPorts.
 * Python 3.7 -> 3.9.
 * Lots of other version bumps.
(cherry picked from commit 96db3233c8)

Change-Id: Ica29a8b8e572763ff3eca960d67a6ba948bddb53
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5788
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-13 04:53:34 +00:00
Máximo Castañeda
f7a4f667a4 View: provide the transform between different coordinate spaces
There's currently no way for an application to convert between view and
drawing coordinates with a drawing states stack without keeping track of
all the transformations itself, which is not very convenient for helper
or library functions.

Handle other spaces too, for good measure.

Change-Id: Ic8404a1c111e273fff1eebf2f9f59f58246b796c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5775
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 241f109ccb)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5787
2022-11-13 04:04:52 +00:00
Autocomitter
ed1a2247d7 Update translations from Pootle 2022-11-12 08:14:46 +00:00
Autocomitter
23aa00729f Update translations from Pootle 2022-11-12 07:25:09 +00:00
Augustin Cavalier
62cddcab6e Disable a bunch of Radeon HD devices that likely don't work.
Just for the beta branch. Can be reactivated when fixed.
Ticket #18023.
2022-11-11 16:13:23 -05:00
Augustin Cavalier
efe2fd6cbb webpositive: Depends on haiku_datatranslators.
If nothing else for the Media codecs.
(cherry picked from commit 62bd88a64d)

Change-Id: Ief056668d98fb4f974189e70b729f92ec7b1684c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5786
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-11 20:56:06 +00:00
Augustin Cavalier
39ec2f7ae8 Move print add-ons to the haiku_datatranslators package.
This allows us to move the Gutenprint dependency there, too.
(cherry picked from commit fefa5edf96)

Change-Id: I7cead5949e4e7a201a213cf2cd323368b6028db3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5785
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-11 20:55:36 +00:00
Augustin Cavalier
6414eef107 usb_ecm: Disable tracing by default.
(cherry picked from commit f156c66999)

Change-Id: I7f554ec14ebae0d76a0fce693b5eb66871ddd312
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5784
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-11 20:55:10 +00:00
John Scipione
5e02b97319 BAlert: Reserve room for stripe and large icon
... even if no icon is present. Draw stripe w/o icon.

"After ... hrev56382 alerts ... with no icons appears without a
gray stripe, causing it to jump left and right."

Fixes #18033 for R1B4 Release Milestone.

Change-Id: I35acc07411cadd4b394d6dfa1957049280b6f4b3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5810
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 369c7b11d2)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5783
2022-11-11 19:34:48 +00:00
Alexander von Gluck IV
97d3758445 accelerants/radeon_hd: Style cleanup; no functional change
Change-Id: Id54ae8191f7a0b4cd0ffdf3e507df8d694f21899
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5809
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit f162d76431)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5782
2022-11-09 22:57:54 +00:00
Alexander von Gluck IV
b4923b940b accelerants/radeon_hd: Fix double +
Change-Id: If51bf45076de9871bbd9ed75a4701c31ce9615cb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5808
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit d1b7a784d7)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5781
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2022-11-09 22:56:44 +00:00
Augustin Cavalier
b75173ab60 BControlLook: Fix corner spacing calculation.
Fixes #18046. Ideally app_server would just use
this to pick the size of corners...
2022-11-08 13:06:52 -05:00
Augustin Cavalier
db02c57ed1 Disable serial debug output by default.
Per the "Release Milestones" page.
2022-11-08 12:49:15 -05:00
Alexander von Gluck IV
b9c0fea70a haiku/repository_info: Bump os repo to r1beta4
Change-Id: Ib1aa2c3292c7c58dd7ac29d73f02d4bdece58687
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5805
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-08 17:26:17 +00:00
PulkoMandy
9afd6079ee stdint.h: fix definition of UINT8_MAX, UINT16_MAX, UINT8_C and UINT16_C
C99 chapter 7.18.2, Limits of specified-width integer types:

"This expression shall have the same type as would an expression that is
an object of the corresponding type according to the integer promotions."

C99 chapter 6.3.1.1:

"If an int can represent all values of the original type, the value is
converted to an int; otherwise, it is converted to an unsigned int.
These are called the integer promotions."

Therefore, UINT8_MAX, UINT16_MAX, UINT8_C and UINT16_C should be signed.

This prevents building WebKit with -Werror.

Change-Id: Ib2a2c15acc2c761cccf8caa016c7ff163e3fdc0d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5806
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 32a71a00aa)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5779
2022-11-08 16:12:07 +00:00
Alexander von Gluck IV
957adb9952 build: Enable HAIKU_OFFICIAL_RELEASE to change logos; #17028
* Changes Haiku "development" logos to plain Haiku logos
  in AboutSystem, Installer, Tracker Icons

Change-Id: I91696aa259411037f47b50eda354660c89374f47
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4111
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
(cherry picked from commit 79a172ef78)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5777
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2022-11-05 13:29:14 +00:00
X512
483f78eb36 kernel/file_cache: fix VMCache object leak
Fixes #18039.

Change-Id: Ia3cda69f91e56efb36931a97028378ec3ceb2100
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5801
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>
(cherry picked from commit 8be7c1aa58)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5778
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-11-05 13:27:39 +00:00
Augustin Cavalier
36c5d2644d kernel_debug_config: Turn KDEBUG_LEVEL down from 2 to 1.
Per the ReleaseCookbook.
2022-11-03 20:44:08 -04:00
Augustin Cavalier
53b1be204f Versioning: This will be R1/beta4. 2022-11-03 20:42:03 -04:00