Commit Graph

62708 Commits

Author SHA1 Message Date
Trung Nguyen
598bbbd34e libs/bsd: implemented dl_iterate_phdr
dl_iterate_phdr now fills the first four fields of
struct dl_phdr_info. The last four fields remain
unimplemented, as it requires help from the
runtime_loader.

Change-Id: Id96a7c7ac05633a71b9fb62c98b3a40f7d4f255b
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
(cherry picked from commit 908107a15f)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5456
2022-07-12 01:33:09 +00:00
Augustin Cavalier
0e96df5264 kernel/vm: Disable mlock implementation, it's broken.
Change-Id: If9e962685c3a363ef05ea3771ef6cafd87540e2c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5165
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2022-03-30 00:37:17 +00:00
Alexander von Gluck IV
6397752c67 kernel/fs/fat: Fix volume label of newly created filesystems
* solves #17659
* We assigned the volume label to the root, but not the boot
  sector (partition boot sector, not MBR)

Change-Id: I9c53204c18709c2d225cc8ea338290aa89d42083
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5106
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
(cherry picked from commit d188fff30b)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5116
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2022-03-29 22:09:29 +00:00
Alexander von Gluck IV
20bdd9b5a8 system/kernel: Increase MAX_PROCESS_ARGS_SIZE; fixes #17612
* Resolves an issue compiling icu70
* FreeBSD is 262,144
* Linux is 2,097,152
* Haiku was 131,072

This roughly doubles the maximum args length, and makes us
function inline with FreeBSD today.  If we're the shortest
straw, we're going to find a lot of things broken (such
as ICU 70.1) Matching FreeBSD means any limitations we see
will also be seen on FreeBSD, making fewer "Haiku issues".

Change-Id: I677c0523a2f27c9e9901fda4180445bcb6da31b2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4991
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
(cherry picked from commit 526669de6f)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4996
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2022-03-06 01:10:32 +00:00
Máximo Castañeda
7e242ef503 ServerFont: keep style if possible when setting face flags
The current style probably has the correct style flags portion. Getting
a new style in that case is unnecessary, and problematic with some font
families that have several fonts mapping to the same style flag
(SemiBold, Bold and ExtraBold are all B_BOLD_FACE, for example): the
chosen one might be different than the one already set.

Fixes #17229

Change-Id: Ie8e73627cc0547df9d624a8fac07f521fc983d06
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4416
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
(cherry picked from commit 910ebfc4f5)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4896
Reviewed-by: Máximo Castañeda <antiswen@yahoo.es>
2022-01-23 08:46:52 +00:00
Augustin Cavalier
c8394c8111 kernel: Adjust timeout computation for syscall_restart.
If the timeout is already >= B_INFINITE_TIMEOUT, we do not need
to do any of the following math (which would usually overflow anyway)
and can leave the timeout alone.

Spotted by kernel undefined behavior sanitizer.

Change-Id: If750a7c4ec0f9607f1c260fded7d393fac88bea7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4561
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-10-09 13:32:33 +00:00
Jérôme Duval
55e400ac88 usb_disk: fix SMAP violation for B_GET_MEDIA_STATUS ioctl
should fix #17283. To be tested.

Change-Id: If594129a6e16b50c314efa2a7bb1d18e01cdad15
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4505
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
(cherry picked from commit 407f08de29)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4576
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-10-09 13:32:05 +00:00
X512
8761e3caab kernel/vm_page: add vm_page table dump debugger command
Change-Id: I493228736f90f5e248f1d4fa3e354beb186546cb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4308
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
(cherry picked from commit 3517616b39)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4337
2021-10-08 19:48:58 +00:00
Augustin Cavalier
dd5aabaaed listusb: Fix typo in usb_audio descriptor printing.
Change-Id: I521167f6dccd439f94e634ae10501781e3b7e43d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4560
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-10-08 19:46:32 +00:00
Adrien Destugues
9ef494cd64 app_server: turn DPMS on only after setting a valid mode
It's not allowed to enable the screen before having set a mode. At least
in the case of the intel_extreme driver, this creates some problem. Move
the call just a bit later in the init process, where the mode is already
set.

Fixes #17163.

Change-Id: Iaa665f0edc15316890032f1a5928f33634dc8749
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4362
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: François Revol <revol@free.fr>
Reviewed-by: <BeagleJoe13@gmail.com>
(cherry picked from commit 1c88f77dcc)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4338
2021-10-08 19:44:46 +00:00
Autocomitter
bf71420afe Update translations from Pootle 2021-08-28 08:41:23 +00:00
Autocomitter
44211f20d5 Update translations from Pootle 2021-08-21 08:40:44 +00:00
Autocomitter
07384bb529 Update translations from Pootle 2021-08-14 08:46:23 +00:00
Autocomitter
147f80cee3 Update translations from Pootle 2021-08-07 08:54:30 +00:00
Autocomitter
aac7a06e59 Update translations from Pootle 2021-07-31 08:44:33 +00:00
Autocomitter
6faac2126e Update translations from Pootle 2021-07-24 08:49:37 +00:00
Alexander von Gluck IV
4a57958b73 haikuports: Bump haikuwebkit for font fix in images
Change-Id: I4d109045336d5bcdeac90c42d8fd1c4201f20933
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4238
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
(cherry picked from commit 6b0e805d8c)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4256
2021-07-22 12:08:09 +00:00
Coldfirex
aa00f359fe Debugger: va_list 'args' opened but not closed by va_end()
pointed out by cppcheck

Change-Id: Idf81666674c881ca9e00bf3985ed0dcf928c19d5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4220
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 cf4ce7e38b)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4257
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-07-22 12:06:53 +00:00
Niels Sascha Reedijk
d16b89abeb User documentation: synchronize userguide from the userguide translator
Change-Id: I9b30ae27658a40b85c67a4c30aaea2b4bf9507f9
2021-07-21 12:52:38 +01:00
Niels Sascha Reedijk
2d76b65dea User documentation: synchronize welcome docs from the userguide translator
Change-Id: I2a2b01d87c35f22f688d51740812a28acf51e11d
2021-07-21 12:52:06 +01:00
Autocomitter
dd4183db56 Update translations from Pootle 2021-07-21 08:00:12 +00:00
Niels Sascha Reedijk
eb359ceb4c Update translator credits for r1beta3
Change-Id: I49e0c1148aa1fb8445888e362e605015dc2efde8
2021-07-21 08:35:07 +01:00
François Revol
50d1ddab89 app_server: only turn screens on once at start
Previous code from hrev55212 was triggered on every workspaces change.

Fixes #17078.

Change-Id: Ib914fc5b909b24b71ca79a0107e0f719917ecda7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4184
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-07-19 12:41:21 +00:00
Autocomitter
de75989f54 Update translations from Pootle 2021-07-18 20:24:36 +00:00
Autocomitter
3deb0de178 Update translations from Pootle 2021-07-17 08:42:41 +00:00
Alexander von Gluck IV
b911ea916f haikuports: Bump haikuwebkit in image to 1.8.2-1
Change-Id: I5404446ac9e1280300e8252a609d72ec43b297bd
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4213
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
(cherry picked from commit 2703c740d8)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4183
2021-07-16 20:15:25 +00:00
Adrien Destugues
b5e7c3b953 Package kit: fix error handling in case of HTTP errors
HTTP errors can have some content sent with them (a message to display
to the user, usually). The package kit would not ignore this and append
the content to the end of the downloaded file. This could result in a
file larger than the expected size, and in that case, it would keep
growing infinitely by adding more error messages to it.

Also add some more specific error messages for some HTTP codes, in
particular, "invalid range" which is likely to happen if something goes
wrong with range requests. Now this case will be detected and the
download will stop.

Change-Id: I18927f361235e9f72a5701c1bd7977abda9e21ad
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4210
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
(cherry picked from commit fa1e07fa7a)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4182
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-07-16 20:06:53 +00:00
X512
910dcb5298 app_server: fix integer overflow in ServerBitmap
Integer overflow caused bitmap buffer creation of wrong size and out of
bounds access when large bitmap was created. Now allocation failure is
reported for large bitmaps.

This prevents app_server from crashing while playing YouTube in WebPositive.

Fixes #16489.

Change-Id: I297aa6e3b79b32a486d297f1239a1fd4397a8a36
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4209
Reviewed-by: Sergei Reznikov <diver@gelios.net>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
(cherry picked from commit 2641b03c91)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4181
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-07-15 14:45:29 +00:00
Máximo Castañeda
5cd152c7ac BCountry: return country name
ICU's Locale::getDisplayName fills in the locale's name in the form
"language (country, variation)". We are interested in the country here.

Fixes #17081

Change-Id: Icb810dbe2c486d95251d4d06a48dfe3a000fa968
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4206
Reviewed-by: humdinger <humdingerb@gmail.com>
(cherry picked from commit ae56997857)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4180
Reviewed-by: Máximo Castañeda <antiswen@yahoo.es>
2021-07-14 10:40:41 +00:00
Alexander von Gluck IV
138cd819ee installer: Update logo for R1/beta3 based on forum contest
Change-Id: Ib5c6ac1def95b12690dd43bf4e32cf1755347659
2021-07-12 12:47:42 -05:00
beaglejoe
781115bd87 bootmenu: fix initial current boot volume selection
Fixes #17069

Change-Id: I42f6ecbad57d7d6b21bfbde2645f1d7112d650b8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4200
Reviewed-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
(cherry picked from commit 66d0470035)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4177
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-07-12 16:59:29 +00:00
John Scipione
4a76737729 Tracker: fix last minute mini icon mode bugs
Pose::CalcRect() assumed top is at icon top in mini-icon mode. This
is not true for larger font sizes where the top of the text is above
the top of the icon. Calculate top and bottom based on font and icon
size matching the calculation in TextWidget::CalcRectCommon(). This
fixes a highlight redraw bug in mini icon mode at larger font sizes.

Push Edit name right 2px to match label position (in mini-icon mode.)

Round to integer to help with 1px off bug. Edit name box is still off
by 1px from the label for some font families and sizes.

Change-Id: Ibba897d6f3c7a879631adedada5cd59d2071191a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4204
Reviewed-by: John Scipione <jscipione@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
(cherry picked from commit 50107f9f2b)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4178
2021-07-12 14:57:01 +00:00
Autocomitter
db60f8090b Update translations from Pootle 2021-07-10 08:44:26 +00:00
Jessica Hamilton
cd0e1a94da Build: replace mtools with fatshell.
EFI System Partition was the last remaining holdout for mtools usage.

Change-Id: I988f82a2f4318f2f90ec1efb80f7ff5c8908aff7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4140
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
(cherry picked from commit 977a873ab2)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4027
Reviewed-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
2021-07-08 21:47:45 +00:00
Jessica Hamilton
80f9add6c0 efi: fix searching for additional Haiku installations
* platform_add_block_devices() is a no-op, as efi already
  provides all devices to the generic loader code.
* remove iterator.Remove() in platform_get_boot_partitions()
  as the simplified devices scan no longer duplicates
  partition entries.

Fixes #17051

Change-Id: I38789b069e1be9b18312e2455bc91e6195114599
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4160
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
(cherry picked from commit 2123a7ccb4)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4176
Reviewed-by: Jessica Hamilton <jessica.l.hamilton@gmail.com>
2021-07-08 13:19:24 +00:00
Alexander von Gluck IV
49ef6af110 build: Small bump to release image size
* Haiku now consumes right at 700 MiB on x86_gcc2h
  after the webkit update.

Change-Id: Ia41a3e6252190e73feaa49ebe7c58ef4c80df4dc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4161
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
(cherry picked from commit 12bb3886c5)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4031
2021-07-06 13:21:17 +00:00
Alexander von Gluck IV
1de3b9dfeb build/HaikuPorts: Update haikuwebkit build packages to 1.8.1
Change-Id: Ia451535775c6e64f77739907b0d58cc2fc8837cf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4159
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
(cherry picked from commit fae4769be6)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4030
2021-07-06 01:05:45 +00:00
Adrien Destugues
2f25623db8 webpositive: Fix for HaikuWebKit 1.8.1
Change-Id: I00b2b01bf84e0d22ec759511b2f9435403207c95
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4150
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
(cherry picked from commit 2b1972cf66)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4029
2021-07-06 01:05:41 +00:00
Jessica Hamilton
8d95ce0977 loader: fetch all potential boot partitions for device
This also keeps the functionality of hrev53848, which simplifies the
list of disks searched for bootable partitions; however, it maintains
the previous behaviour of platform_get_boot_partitions that continues
to iterate over a list of possible boot partitions, which should
allow finding a bootable BFS partition better in more circumstances.

Particularly, there are numerous reports of the UEFI loader entering
the boot menu despite it finding a bootable partition, which this
should address.

EFI's device_contains_partition is also structured such that it
compares the disk GPT table of the partition the loader is
querying of the EFI disk's GPT table, in the case that there are
multiple disks, as the most reliable method of comparison, with
a generic fallback for non-GPT disks, which will be less reliable.

This reverts commit 0d932a49ad.

Change-Id: I5fac8608035d56b8bb4dc6c3d495ec6db42fa9b7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4149
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
(cherry picked from commit 62f80a2a71)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4028
2021-07-05 20:57:53 +00:00
X512
9af81b33d9 app_server: turn on screen on start
Screen may be turned off if video card is not supported by firmware and boot
loader.

Change-Id: Ie60fc00da281ec3781084dd97466a68b885fde7b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4114
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
(cherry picked from commit cc265c1482)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4026
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-07-04 15:58:33 +00:00
Rudolf Cornelissen
6d39fb750f intel_extreme: gen4 displayport now sets modes, dualhead clone works.
Change-Id: I3c5c5895e87b758511f98d1aef39f03bc9091e73
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4147
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-07-04 15:56:43 +00:00
Adrien Destugues
95c57b012a libnetservices: fix handling of HEAD requests and 204 responses
We were incorrectly reporting a B_IO_ERROR for these requests because we
could not read the content after the headers. There is no content in
these cases.

Add an unit test for both HEAD and 204 status, checking that there is no
content and the headers are correct.

Fixes #16885.

Change-Id: I98fefc5c604253bb2545b50395b7af9f8834def0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4142
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
(cherry picked from commit 3ca5eec002)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4025
2021-07-04 15:45:49 +00:00
Autocomitter
61a3c5b31d Update translations from Pootle 2021-07-03 08:46:25 +00:00
Autocomitter
b07fbec4c9 Update translations from Pootle 2021-07-02 07:13:42 +00:00
CodeforEvolution
518e25c4d1 mime_db: New text/markdown MIME type and other MIME type polishing
- New text/markdown MIME type was added according to IANA registry.
- MIME types gained new extensions that weren't previously included.
- Resource definition files will now open up with Pe by default.
- text/x-vcard was renamed to text/vcard, as it's now a registered IANA MIME type.
- text/x-source-code had its sniffing rules increased in priority,
  so that it would get precedence over text/plain and its own sniffing rules.

Change-Id: I28af24de8c0e96ef39dfc67703a0884e8d4c842e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4109
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
(cherry picked from commit 74f28747a2)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4018
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-07-01 15:17:27 +00:00
Rudolf Cornelissen
c6467c489d intel_extreme:dualhead clone mode with displayport works on Sandy/Ivy Bridge.
Change-Id: I0b8242916c676c45c00e0255b4f38e3eab89bc4f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4139
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-07-01 15:15:37 +00:00
Rudolf Cornelissen
a6a2ae7678 intel_extreme: displayport now scales to BIOS set mode.
Change-Id: I0aa3527a04c376192c656952af23384d0657a51a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4138
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-07-01 15:15:21 +00:00
Rudolf Cornelissen
2667594430 intel_extreme: disable digital dpms monitor shutoff, it's faulty and incomplete (ticket #12964)
Change-Id: I17ed039d49a93731e87228987303ebc5fb6f4a45
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4137
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-07-01 15:14:56 +00:00
Rudolf Cornelissen
e5e0ad83cb intel_extreme: init port_count always (typo fix).
Change-Id: I2dd5e042a94a20f0862d3fdf8b2c29fd77e3bcda
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4136
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-07-01 15:14:36 +00:00
Rudolf Cornelissen
6fdffce077 intel_extreme: haswell+ has DDI, no DP, so block scanning that for screens.
Change-Id: Ia6b60f152f83aff480304f3ba8299df8cca6233e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4135
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2021-07-01 15:13:56 +00:00