Commit Graph

61701 Commits

Author SHA1 Message Date
Andrew Lindesay
991d1a2097 PackageKit: HPKR BMessage Format Fix
Some older repositories are having problems because
they are configured with a `url` (identifier) form
that is not actually a well-formed URL.  This caused
problems when it was then interpreted as the
base-url because it did not start with "http".  I
have changed this so that the base-url is not
derived from the url and can be missing.

Resolves #16149

Change-Id: I10acd8db65082ff6c72fcff1550eb63475e86133
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2931
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-20 18:30:20 +00:00
Michael Lotz
2778057ccd kernel/vm: Change free swap reporting to actually free pages.
Previously system_info->free_swap_pages was using swap_available_pages
which has reservations removed. Tools like ActivityMonitor would
therefore show mere reservations as swap use which is misleading at
best.

Switch to use the sum of the free slots of all swap files instead.
This doesn't add overhead as the swap file list was already locked and
traversed for max_swap_pages before (via swap_total_swap_pages()).

Fixes #16248.

Change-Id: I3ebf223ec108bf342d4f32d68405170e72528899
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2917
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-06-20 18:27:46 +00:00
CodeforEvolution
29ae0e0f61 wacom: SMAP Fixes and Refactoring
Utilize user_memcpy and IS_USER_ADDRESS when necessary to prevent SMAP violations.
Also add a "wacom_device_header" struct to more easily share data between the wacom
kernel driver and input_server addon.

Should fix #14589

Change-Id: Ie2784020b21523f82fd450a2db2de60ccf9d6620
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2783
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-06-20 18:26:45 +00:00
Augustin Cavalier
a32381ee57 BFS: Fix typo in prior commit. 2020-06-20 14:22:31 -04:00
Adrien Destugues
fc5ce31970 Missing pluralization in Tracker InfoWindow
Fixes #16086

Change-Id: I1984ff7a9a5f6614e7a278efae45e6c7100d759f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2769
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-20 18:16:57 +00:00
X512
e1bb846d71 BColumnListView: fix keyboard navigation
Make expanding/collapsing logic the same as in BOutlineListView.

Change-Id: Ia8669ec6ac1be15c09879aa759474b4841451c39
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2933
Reviewed-by: John Scipione <jscipione@gmail.com>
2020-06-20 18:14:48 +00:00
Humdinger
f29b420144 Teammonitor: Add 'Open Terminal' button
* Add a button to open a Terminal to the left of the Cancel button.
  The ALT+OPT+T combo is a bit hidden, as mentioned in #16243.

* After opening a Terminal, close the Team Monitor. Being a modal
  window, the user would have to close it manually anyway to be able
  to use the Terminal.

* Remove the unneeded instructions how to use the Quit and Kill buttons.
  Now we can use a simple BStringView and avoid most of the font style
  complications.

* Put some weight on the scroll view, so it's the only view getting
  taller when vertically resize the window.

Change-Id: I4a58033c0ce9b36a0e714f9bdd5c5542bca30849
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2906
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-20 18:14:11 +00:00
Leorize
bbc0611099 docs: Add docs for BUrlProtocolAsynchronousListener
Change-Id: Ib9df07d42d0153a7e0135acae85c00f3a1e6bd93
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2930
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-20 18:13:33 +00:00
Leorize
b927cf6822 docs: Add documentation for BUrlProtocolListener
Change-Id: I6fb6092d31e9ff94a1c9466240b375b9b88f2d8f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2929
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-20 18:13:33 +00:00
Leorize
fcf08bbd68 docs: Add documentation for BUrlProtocolRoster
Change-Id: Id4bc0809c970ea14f814820b54e52073e3396502
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2928
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-20 18:13:33 +00:00
X512
fbb8bf7ee3 Preferences/Input: fix scripting
Change-Id: Iafe52399f193c079eac8c45273801c762a99e023
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2935
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-20 18:12:51 +00:00
Axel Dörfler
2d4d531731 bfs: CheckVisitor only deletes nodes on specific errors
* This should prevent erroneously deleting any files in low memory
  situations.

Change-Id: I21b1d042e5f7e03a5abfaaa567b6c679b95e3188
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2914
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-06-20 18:10:03 +00:00
Axel Dörfler
93845aec95 block_cache: Change signature of *_etc() functions
* This allows file systems to retrieve the actual error code on a
  failure, and report it to the user.
* All affected file systems have been adjusted to the API change.
  This is a binary incompatible change.

Change-Id: Id73392aaf9c6cb7d643ff9adcb8bf80f3037874c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2913
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-06-20 18:10:03 +00:00
Autocomitter
cc7b6b5870 Update translations from Pootle 2020-06-20 08:11:47 +00:00
Leorize
d345666ea8 libnetapi/HttpResult: improve Length() algorithm
`atoi()` maximum value is `LONG_MAX` which is smaller than `SIZE_MAX`.
This cause any Content-Length > LONG_MAX to be represented in an
erroneous value. This will also happen to any invalid Content-Length
header.

This change uses strtoul() for the extended range (should be the same as
size_t range), and combined with proper error checking to determine
whether the received Content-Length is a valid and/or representable
value. Returns 0 if the data is invalid or can not be represented.

Some shortcomings about the current implementation are also
noted accordingly. They will be solved in later patches.

Change-Id: If28c4c3b8430ed83dd0f600030ec8949cf7e0051
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2927
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-20 02:02:49 +00:00
Rob Gill
9bfdc55864 Add DoCatalogs entries
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
Change-Id: Iee85ccda72608548b77d61fac0d6cbfe98a5c7e8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2926
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-06-19 20:58:53 +00:00
Rob Gill
f435226298 Trivial additions for localization of strings
Signed-off-by: Rob Gill <rrobgill@protonmail.com>
Change-Id: I078f2de99c6461a937f4c645b65d5caf06d54dcb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2925
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-06-19 20:57:21 +00:00
Humdinger
437e3c1c06 Notifications: Fix pluralization, max/min window width font size dependend
Plus, use kWidthStep when loading/saving slider setting.

Fixes #16119

Change-Id: I2c86bb008a8d9e089d9db09013c9af67b0f5e731
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2902
Reviewed-by: Kacper Kasper <kacperkasper@gmail.com>
2020-06-19 06:43:11 +00:00
Rob Gill
7522ed82b8 preferences/input Add default mappings to mouse buttons 4/5
* Adds default mappings to newly added buttons 4 and 5

* Include mappings of buttons 4 and 5 in settings dump

* Fixes Bug #16268

Signed-off-by: Rob Gill <rrobgill@protonmail.com>
Change-Id: If466088e622a9e818f9eb7bd67c3a65154b9ad37
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2924
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-17 04:51:08 +00:00
Rob Gill
088f5faefe addons/input-devices Wacom PTZ-431W tablet
* Add usb ID and resolution for this tablet
* Fixes #16261

Signed-off-by: Rob Gill <rrobgill@protonmail.com>
Change-Id: I426576dc47241846d5a956d41a19186f9c599eb9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2923
Reviewed-by: Sergei Reznikov <diver@gelios.net>
2020-06-16 08:47:05 +00:00
CruxBox
e3e93916b7 xfs: get_vnode and read_stat hook
This patch aimed at implementing the get_vnode and read_stat hook.
read_stat seems to work well, get_vnode can be checked after working on
dir.

Change-Id: I487915b7e8f6ee6f97349b0c638676d5389cd2df
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2859
Reviewed-by: Chế Vũ Gia Hy <cvghy116@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-06-15 06:44:23 +00:00
CruxBox
406d14d4ce xfs: Reading Inodes
This patch successfully reads inodes. There are also some style fixes.
The inodes aren't published and some useful hooks are yet to implement.

Change-Id: I73e6c68f1c2177871fbd0b241a67826aea1b17be
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2738
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-06-15 06:44:23 +00:00
Gerasim Troeglazov
4814d0aa44 wacom: Add Product ID for One by Wacom (CTL-672) tablet.
Change-Id: I3d874c1ab5ccdd956a9f11132c4a59fedd423c1a
2020-06-15 16:13:48 +10:00
Adrien Destugues
f32bcfd516 Mouse add-one: Fix touchpads detection.
The "touchpad" string is part of the path, not of the device name.

Regression introduced in hrev53835.
2020-06-14 14:29:59 +02:00
Michael Lotz
3ff5a87931 kernel/guarded_heap: Add stack traces to allocations command.
This allows dumping the allocation stack traces in the more powerful
allocations command with the optional "trace" argument. The stack trace
could previously only be dumped manually by inspecting individual
guarded heap pages.
2020-06-13 23:34:18 +02:00
Michael Lotz
e65c8deae2 kernel/thread: Fix team double lock when reaching thread limit.
The team is locked for the allocation of the user thread. When the
thread limit is reached, the user thread is removed again by
team_free_user_thread which internally locks the team, resulting in a
double lock. Unlock the teamLocker before calling team_free_user_thread.

Amazingly noone seems to ever have hit the thread limit, even though it
is currently at an arbitrarily low 4096.
2020-06-13 23:24:36 +02:00
Michael Lotz
3cd10d35ab kernel/thread: Remove outdated comment.
The thread limit enforcement was actually implemented back in hrev45811.
2020-06-13 23:24:35 +02:00
Michael Lotz
146630e096 kernel/vm: Fix build with swap support disabled.
The rename of the system_info members was missed in
d02aaee17e (part of the scheduler branch
merge of hrev46690). The unguarded object_cache was introduced even
earlier as part of hrev43133.
2020-06-13 23:24:35 +02:00
Michael Lotz
31cee26cfe kernel: Whitespace cleanup only. 2020-06-13 23:24:27 +02:00
Kacper Kasper
c63d300251 app_server: fix tiled drawing when phase is outside bitmap bounds
sourceRect has phase baked in. If phasecomponents are larger than bitamp bounds
sourceRect no longer intersects and nothing gets drawn.

Change-Id: Ib3f676b8e78e2d941c89e699f9a0ab39cc93e173
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2916
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-13 20:35:29 +00:00
Murai Takashi
ed78fbfc36 inbound_protocols/imap: Fix PVS V773
Fix IMAPProtocol::_CreateFolder() was exited
without releasing 'folder' pointer.

Change-Id: I80249694b7a977a220cfb0853b169bae83129f76
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2908
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-13 18:21:58 +00:00
Murai Takashi
58dbf89d71 Locale Kit: Fix PVS V773
Fix BTimeUnitFormat::Formatunction() was exited
without releasing 'timeUnitAmount' pointer.

Change-Id: I1d3cedd3ca376a7874ce5305b31194ae054e1a0c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2911
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-13 18:21:58 +00:00
Murai Takashi
022f01ea4d Debugger Kit: Fix PVS V773
Fix ThreadHandler::_HandleBreakpointConditionIfNeeded() was exited
without releasing 'listener' pointer.

Change-Id: I79b72701b5bcf9a8faeacc6d37eb39ce4bd5cc68
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2910
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-13 18:21:58 +00:00
Murai Takashi
e53c219e05 Mail: Fix PVS V773
Fix WIndex::SetTo() was exited without releasing 'dataFile' pointer.

Change-Id: I4bb3f818d08ffca48ce5059d47471f8fe36040f0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2909
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-13 18:21:58 +00:00
Alexander von Gluck IV
f612d852cf radeon_hd/atombios: Minor updates from Linux
* These are hand plucked from Linux's atombios parser.
  drm code has been leaking into Linux's version :-|

Change-Id: Iaab4f474edf57f0e5011e20a21bd1036b54ba47c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2912
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-13 18:01:52 +00:00
Autocomitter
6953cef14e Update translations from Pootle 2020-06-13 08:14:53 +00:00
Bailey Carlson
7a01e91863 Expander: prevent "Show Contents" checkbox shift 1px
Relocate ExpanderWindow ScrollView outside of vertical LayoutGroup to
prevent show/hide from shifting the LayoutGroup.

Fixes #15692

Change-Id: Ie6cb58a78b07ff74e890e475e7cce359dd93b21e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2899
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-11 14:52:40 +00:00
CruxBox
bb6b48a9c3 FS Interface Docs: Made read_dir description clear
Small change in the docs to make the explanation of read_dir
functionality a little more clear.

Change-Id: I202eb0f70b38c78962ad9ca1d267995977c04951
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2900
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2020-06-11 10:39:35 +00:00
Humdinger
3959883f50 Fix typo in unicode block name
Fixes #16235
2020-06-10 14:55:26 +02:00
X512
2e4991285b app_server: fix transformations in BPicture
Fixes #16122, #16147.

Change-Id: Iee7aa8a2325d34a526578a58507ea3690459c8d7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2898
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-10 04:04:24 +00:00
waddlesplash
2d69e313a8 Revert "app_server: fix transformations in BPicture"
This reverts commit b8e5671d53.

Reason for revert: Broke all builds.

Change-Id: Ie7c5b4a3c877894a1dc49a9de7a19f79e7eb2ab7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2897
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-10 01:19:59 +00:00
X512
b8e5671d53 app_server: fix transformations in BPicture
Fixes #16122, #16147.

Change-Id: I16a38919d25836546389aff6093415eda781668f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2889
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2020-06-10 01:12:04 +00:00
Alexander von Gluck IV
cfb118c926 arm64: Add missing kernel linker script
Change-Id: If06134a75c382fbbd5658e8a0951842670bf71ac
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2818
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-10 00:44:14 +00:00
Alexander von Gluck IV
797e861029 arm64: Fix libroot math, add fix crosstools package revision
Change-Id: Ibce15f70e20ea010937edb0a297d220c4e5a7af2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2817
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-10 00:44:14 +00:00
waddlesplash
9ab0dec545 Revert "PackageKit: HPKR BMessage Format Fix"
This reverts commit 82f985c036.

Reason for revert: Broke the build with this message:
/packages/groff-1.22.3-1-x86_64.hpkg: Scheme missing.

Change-Id: I9dea4986238cedfdc33c84739e69a331add09cdf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2896
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-10 00:20:21 +00:00
Autocomitter
16ad15142c Update translations from Pootle 2020-06-09 21:51:25 +00:00
Pascal Abresch
6ffd243dbc app_server: Fall back to style "Regular" before style 0
Most notably in noto sans cjk style 0 seems be thin or light, and not Regular
this should make the fallback try Regular and only fall back to 0
if no font has a regular variant for the requested glyph

Change-Id: Ib152a50e6cace032278a60f664c2569fa9fe82fc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2887
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2020-06-09 08:33:06 +00:00
Andrew Lindesay
82f985c036 PackageKit: HPKR BMessage Format Fix
Some older repositories are having problems because
they are configured with a `url` (identifier) form
that is not actually a well-formed URL.  This caused
problems when it was then interpreted as the
base-url because it did not start with "http".  I
have changed this so that the base-url is not
derived from the url and can be missing.

Resolves #16149

Change-Id: Ic972fde43f99466db9d5ea2325c0e77cf7d4aad5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2886
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-06-09 08:32:30 +00:00
X512
8301c4980b AutoDeleter: add operator [] for ArrayDeleter
Change-Id: I015951053050b58e73fd71e4abb104a0755416f7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2890
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2020-06-09 08:10:42 +00:00
X512
638f8647a6 app_server: fix crash caused by missing locking
Change-Id: Ib9b0c2282f947c0c6ac61fc3e97f9eca7af8dda4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2891
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2020-06-09 08:05:47 +00:00